Solution

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

Use only the dot product to minimize the squared Euclidean distance from the origin:
Completing the square gives
The square is minimized at , yielding
Geometrically this subtracts the squared length of the orthogonal projection parallel to the line. At the minimizing point, , as required for perpendicular distance.

New to topics? Read the docs here!