Past exam of the mathematical methods I course of the University of Oxford 2014 10 a iii Solution 2026-10-25
The orthogonal projection of the origin onto the line occurs at , giving closest point . Hence the distance from a point to a line in three dimensions is
Past exam of the mathematical methods I course of the University of Oxford 2014 resit 7 Solution 2026-10-25
The common real variable gives the parametric equation of the line:Write and . The point closest to the origin is orthogonal to , so . Its position is . The distance from a point to a line in three dimensions is therefore
From the line point to , take and line direction . Orthogonal projection gives the nearest parameter . The perpendicular displacement has squared Euclidean normHence the distance from a point to a line in three dimensions isThe nearest point is ; subtracting it from gives a vector orthogonal to , verifying the minimum.
Assume the two line-defining points are distinct. Put and . The triangle formed by the three points has area . The same area is half the base length times the perpendicular height from the third point to the line. Hence the distance from a point to a line in three dimensions isThis remains valid when the nearest point lies outside the segment, since the base line is infinite. If all three points are collinear, the numerator and distance are both zero.