Solution

ID: past-exam-of-the-mathematics-course-of-the-year-2-of-the-natural-sciences-course-of-the-university-of-cambridge/2019/paper-2/1/c/solution

The optimal approximation is the orthogonal projection onto the linear span of . Their orthogonality gives
Completing each square proves both optimality and uniqueness:
For real , these are real coefficients. If complex-valued is allowed while the coefficients remain real, replace the numerator by its real part and use the modulus-squared norm. The question's real formulation corresponds to real .
Here the first three squared norms are one. Using ,
Thus

New to topics? Read the docs here!