IB Maths AA HL Topic 3 โ€” Geometry & Trigonometry Paper 1 & 2 ~7 min read HL only

Shortest Distance Between a Point and a Line

The shortest distance from a point to a line is always the perpendicular distance. Two equally good methods get you there: scalar product (parameterise the foot of the perpendicular and minimise) or vector product (one-shot formula).

๐Ÿ“˜ What you need to know

Two methods, same answer

Scalar product method
b ยท FP = 0
find ฮป at the foot, then |FP|
Vector product method
d = |AP ร— b||b|
one calculation, no parameter
When to use which: scalar product if you also need the foot of the perpendicular (the closest point on the line). Vector product if you only need the distance โ€” it’s faster.

The vector product formula

Shortest distance from P to line r = a + ฮปb d  =  |AP ร— b||b|

Here A is any point on the line (typically the anchor) and P is the external point. Geometrically, |AP ร— b| is the area of the parallelogram on AP and b; dividing by |b| (the base) gives the height โ€” which is the perpendicular distance.

๐Ÿงญ Recipe โ€” shortest distance using scalar product method

  1. Write F as a function of ฮป: F = a + ฮปb.
  2. Compute FP = P โˆ’ F in terms of ฮป.
  3. Set the scalar product = 0: b ยท FP = 0 (perpendicularity).
  4. Solve for ฮป; substitute back to find F (foot of perpendicular).
  5. Compute |FP| for the shortest distance.

Worked examples

WE 1

Shortest distance using the scalar product method

Find the shortest distance from the point P(4, 3, 2) to the line r = (1, 0, 2) + ฮป(1, 2, 2).

Step 1: General point F on line F = (1+ฮป, 2ฮป, 2+2ฮป) Step 2: FP = P โˆ’ F FP = (3 โˆ’ ฮป, 3 โˆ’ 2ฮป, โˆ’2ฮป) Step 3: Set b ยท FP = 0 (1)(3โˆ’ฮป) + (2)(3โˆ’2ฮป) + (2)(โˆ’2ฮป) = 0 9 โˆ’ 9ฮป = 0 โ†’ ฮป = 1 Step 4: FP at ฮป = 1, then magnitude FP = (2, 1, โˆ’2);   |FP| = โˆš(4+1+4) = โˆš9 Shortest distance = 3 F = (2, 2, 4) is the foot of perpendicular
WE 2

Shortest distance using the vector product method

Find the shortest distance from the point P(7, 2, โˆ’2) to the line r = (2, 1, โˆ’1) + ฮป(1, 2, โˆ’2).

Step 1: A = (2, 1, โˆ’1) is on the line; AP = P โˆ’ A AP = (5, 1, โˆ’1) Step 2: AP ร— b AP ร— b = (1ยท(โˆ’2) โˆ’ (โˆ’1)ยท2,   โˆ’(5ยท(โˆ’2) โˆ’ (โˆ’1)ยท1),   5ยท2 โˆ’ 1ยท1) = (0, 9, 9) Step 3: Magnitudes |AP ร— b| = โˆš(0+81+81) = โˆš162 = 9โˆš2 |b| = โˆš(1+4+4) = 3 Distance = 9โˆš2 / 3 = 3โˆš2 vector product is faster when you only need the distance
WE 3

Find the foot of the perpendicular and the distance

Find the foot of the perpendicular F from the point P(4, 1, 0) to the line r = (4, 1, โˆ’3) + ฮป(1, โˆ’1, 2), and hence the shortest distance from P to the line.

Step 1: F in terms of ฮป, then FP F = (4+ฮป, 1โˆ’ฮป, โˆ’3+2ฮป) FP = P โˆ’ F = (โˆ’ฮป, ฮป, 3 โˆ’ 2ฮป) Step 2: b ยท FP = 0 (1)(โˆ’ฮป) + (โˆ’1)(ฮป) + (2)(3โˆ’2ฮป) = 0 6 โˆ’ 6ฮป = 0 โ†’ ฮป = 1 Step 3: Substitute ฮป = 1 F = (5, 0, โˆ’1);   FP = (โˆ’1, 1, 1) |FP| = โˆš3 F = (5, 0, โˆ’1),   distance = โˆš3 when the question asks for the foot, scalar product is the natural method
WE 4

Shortest distance from the origin to a line

Find the shortest distance from the origin O to the line r = (3, โˆ’1, 4) + ฮป(2, 1, โˆ’2).

Step 1: A = (3, โˆ’1, 4); AO = O โˆ’ A = (โˆ’3, 1, โˆ’4) Step 2: AO ร— b AO ร— b: i-comp = (1)(โˆ’2) โˆ’ (โˆ’4)(1) = 2           j-comp = โˆ’[(โˆ’3)(โˆ’2) โˆ’ (โˆ’4)(2)] = โˆ’14           k-comp = (โˆ’3)(1) โˆ’ (1)(2) = โˆ’5 AO ร— b = (2, โˆ’14, โˆ’5) Step 3: Magnitudes |AO ร— b| = โˆš(4 + 196 + 25) = โˆš225 = 15 |b| = โˆš(4+1+4) = 3 Distance = 15 / 3 = 5 treat the origin like any other point โ€” same formula applies
WE 5

Distance from a point to a line through two given points

Find the shortest distance from the point P(0, 5, 5) to the line passing through A(1, 0, 2) and B(3, 4, 4).

Step 1: Direction AB and simplify AB = B โˆ’ A = (2, 4, 2) โ†’ simplify to b = (1, 2, 1) Step 2: AP = P โˆ’ A AP = (โˆ’1, 5, 3) Step 3: AP ร— b i: (5)(1) โˆ’ (3)(2) = โˆ’1 j: โˆ’[(โˆ’1)(1) โˆ’ (3)(1)] = 4 k: (โˆ’1)(2) โˆ’ (5)(1) = โˆ’7 AP ร— b = (โˆ’1, 4, โˆ’7) Step 4: Magnitudes |AP ร— b| = โˆš(1+16+49) = โˆš66 |b| = โˆš(1+4+1) = โˆš6 Distance = โˆš66 / โˆš6 = โˆš11 simplifying the direction first keeps the numbers manageable
WE 6

Closest approach of a moving particle to a fixed point

A particle moves with position vector r = (2, โˆ’1, 4) + t(1, 2, โˆ’1), where t is in seconds. A camera is fixed at C(6, 1, 6). Find the time at which the particle is closest to the camera, and find the minimum distance.

Step 1: Particle at time t and FC F(t) = (2+t, โˆ’1+2t, 4โˆ’t) FC = C โˆ’ F = (4โˆ’t, 2โˆ’2t, 2+t) Step 2: Set b ยท FC = 0 (perpendicular at minimum) (1)(4โˆ’t) + (2)(2โˆ’2t) + (โˆ’1)(2+t) = 0 6 โˆ’ 6t = 0 โ†’ t = 1 Step 3: Compute FC at t = 1 FC = (3, 0, 3);   |FC| = โˆš(9+0+9) = โˆš18 = 3โˆš2 t = 1 second,   min distance = 3โˆš2 shortest distance from the path = perpendicular distance, occurring at one instant

๐Ÿ’ก Top tips

โš  Common mistakes

Final note in this section: Shortest Distance Between Two Lines. For two skew lines, the shortest distance is along the common perpendicular. Two methods again โ€” vector product of the directions plus a connecting displacement, or two scalar product equations to find the feet of perpendicular on each line.

Need help with Vector Equations of Lines?

Get 1-on-1 help from an IB examiner who knows exactly what Paper 1 & 2 are looking for.

Book Free Session โ†’