Exercise 109Calculus › Single-variable calculus › Differentiation › Optimisation and curve sketchingHigh schoolAdded 4 Nov 2026
Distance to a line, without a formula
#optimisation#distance#line#quadratic function
Statement
Find the point of the line closest to the origin, and the distance from the origin to the line.
Hint
Write in terms of and minimise the squared distance .
Show solutionHide solution
Solution
Squared distance. , so
Minimising (the squared distance) is equivalent to minimising the distance, since the square root is increasing.
Minimum. , hence . is a convex parabola, so this is the global minimum, and .
Answer. The closest point is and the distance is .
Check. The formula agrees. Also, the vector is proportional to the normal vector of the line, as it must be.