Find the distance between the point and the line
Write the distance to a general point of the line. A point of is , so
This function answers "how far is from the point at parameter " — the distance to the line is its minimum value.
Minimise the quadratic under the root. A square root is increasing, so minimising is the same as minimising , whose vertex is at
This is the same the perpendicular projection would give: .
Evaluate at the vertex.
Confirm with the 2D cross-product shortcut. In the plane the distance from to a line through the origin with direction is
and indeed , matching the minimised quadratic exactly.
State the answer carefully. If the question means the distance to the whole line, the answer is
If instead a specific parameter is intended, the distance is the function , which equals at and grows without bound as .
Need to solve a different problem like this? Open the solver →