Lesson 6: Scalar and vector projections
The shortest distance from a point to a line
SkillsScalar and vector projectionsVectors between points
Worked example
A straight path passes through in the direction of . A drinking fountain is at . Units are metres. Find the point on the path closest to the fountain and the shortest distance from the path to the fountain.
Step 1: Find the vector from A to the point
Step 2: Project it onto the path direction
The closest point is where the perpendicular from meets the path, so is the part of along the path: its vector projection.
Step 3: Locate F
Step 4: Find the distance and check the right angle
, so . Check: ✓.
Answer
The closest point is , and the shortest distance is m.
Try a similar one
A fresh question of the same kind, checked as you answer, with hints and a full solution.
Method
Join a known point on the line to the outside point.
Vector projection onto the direction gives the foot of the perpendicular.
The perpendicular part gives the shortest distance; check with a dot product.
Watch out for
Taking as the shortest distance: that is the distance to , not to the path.