Past exam of the mathematics course of the University of Cambridge 2023 ib Paper 4 6B a Solution Created 2026-09-24 Updated 2026-09-25
The nonzero orthogonal polynomials have distinct degrees and form an orthogonal basis of . DefineFor each ,Thus the residual is orthogonal to all of .
For any , writeThe two terms are orthogonal, so the Pythagorean theorem in an inner-product space givesEquality holds only for . This proves the formula and uniqueness of the least-squares polynomial in an orthogonal-polynomial basis.