Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2020/ii/paper-1/5j/b/solution

The weighted least squares objective is
Its gradient is
Since is positive diagonal and has full column rank, is positive definite. The unique stationary point is therefore the unique minimizer:

New to topics? Read the docs here!