Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2023/ib/paper-4/6b/a/solution

The nonzero orthogonal polynomials have distinct degrees and form an orthogonal basis of . Define
For each ,
Thus the residual is orthogonal to all of .
For any , write
The two terms are orthogonal, so the Pythagorean theorem in an inner-product space gives
Equality holds only for . This proves the formula and uniqueness of the least-squares polynomial in an orthogonal-polynomial basis.

New to topics? Read the docs here!