Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2005/ib/paper-2/18f/a/solution

Take nonzero of exact degree , so are an orthogonal basis of the polynomials of degree at most . Their orthogonal projection is
Indeed its residual is orthogonal to every such polynomial. For another polynomial of degree at most , the squared error is
since the cross term vanishes. It is uniquely minimized at . The approximation need not have exact degree when the highest coefficient happens to vanish.

New to topics? Read the docs here!