IB Maths AA HL
Topic 3 β Geometry & Trigonometry
Paper 1 & 2
~7 min read
HL only
Shortest Distance Between Two Lines
For two skew lines, the shortest distance lies along the common perpendicular β the unique direction perpendicular to both. The vector product b1 Γ b2 gives that direction directly, so a clean one-step formula handles most exam questions.
π What you need to know
- Skew-line formula: d = |(a2 β a1) Β· (b1 Γ b2)||b1 Γ b2| (not in formula booklet β memorise).
- Geometric meaning: project the displacement a2 β a1 onto the common perpendicular direction b1 Γ b2.
- Scalar product method (alternative): find feet F1, F2 with b1 Β· F1F2 = 0 AND b2 Β· F1F2 = 0; then |F1F2|.
- Parallel lines (b1 Γ b2 = 0): pick any point on one line, find the point-to-line distance to the other.
- Intersecting lines: distance = 0 (they meet).
- Coincident lines: distance = 0 (they’re the same line).
- Use different parameters (Ξ», ΞΌ) for the two lines.
The shortest-distance formula
Shortest distance between skew lines
d = |(a2 β a1) Β· (b1 Γ b2)||b1 Γ b2|
The vector b1 Γ b2 is perpendicular to both lines β exactly the direction of the common perpendicular. Projecting the displacement a2 β a1 onto this direction (and taking magnitude) gives the shortest distance.
Two methods
Vector product (faster)
d = |(a2 β a1) Β· n||n|
where n = b1 Γ b2
no parameters β three vector operations
Scalar product (also gives feet)
b1 Β· F1F2 = 0
b2 Β· F1F2 = 0
solve for Ξ», ΞΌ; gives feet F1, F2 too
When to use which: vector product if you only need the distance β it’s faster. Scalar product if you also need the feet of the perpendicular F1 and F2 on each line.
Special cases
| Lines are⦠| Approach | Distance |
|---|
| Skew | vector product OR scalar product method | positive value from formula |
| Parallel (not coincident) | pick a point on one line, use point-to-line distance | positive constant gap |
| Intersecting | β | 0 |
| Coincident | β | 0 |
π§ Recipe β shortest distance between two skew lines
- Compute b1 Γ b2 β the common perpendicular direction. If it’s 0, the lines are parallel β switch method.
- Compute a2 β a1 β the displacement between anchors.
- Take the dot product (a2 β a1) Β· (b1 Γ b2).
- Take absolute value and divide by |b1 Γ b2|.
- Sanity check: if your answer is 0, the lines must intersect or be coincident β verify.
Worked examples
WE 1Shortest distance between two skew lines
Find the shortest distance between the lines r1 = (1, 2, 3) + Ξ»(1, 1, 0) and r2 = (4, 1, 4) + ΞΌ(1, 0, 1).
Step 1: bβ Γ bβ
i: (1)(1) β (0)(0) = 1
j: β[(1)(1) β (0)(1)] = β1
k: (1)(0) β (1)(1) = β1
bβ Γ bβ = (1, β1, β1); |bβ Γ bβ| = β3
Step 2: aβ β aβ and dot product
aβ β aβ = (3, β1, 1)
(aββaβ)Β·(bβΓbβ) = (3)(1) + (β1)(β1) + (1)(β1) = 3
Distance = |3|/β3 = β3
positive value β lines are skew, not intersecting
WE 2Shortest distance with integer answer
Find the shortest distance between the lines r1 = (3, 1, 2) + Ξ»(1, 0, β1) and r2 = (5, 1, 3) + ΞΌ(1, β2, 0).
Step 1: bβ Γ bβ
i: (0)(0) β (β1)(β2) = β2
j: β[(1)(0) β (β1)(1)] = β1
k: (1)(β2) β (0)(1) = β2
bβ Γ bβ = (β2, β1, β2); |…| = β(4+1+4) = 3
Step 2: aβ β aβ = (2, 0, 1)
(aββaβ)Β·(bβΓbβ) = (2)(β2) + (0)(β1) + (1)(β2) = β6
Distance = 6/3 = 2
always take the absolute value of the dot product before dividing
WE 3Shortest distance using the scalar product method
Find the shortest distance between the lines r1 = (1, 2, 3) + Ξ»(1, β1, 0) and r2 = (3, 4, 5) + ΞΌ(0, 1, β1) using the scalar product method.
Step 1: General points and FβFβ
Fβ = (1+Ξ», 2βΞ», 3); Fβ = (3, 4+ΞΌ, 5βΞΌ)
FβFβ = (2βΞ», 2+ΞΌ+Ξ», 2βΞΌ)
Step 2: Two perpendicularity equations
bβΒ·FβFβ = (2βΞ») β (2+ΞΌ+Ξ») = β2Ξ» β ΞΌ = 0 … (i)
bβΒ·FβFβ = (2+ΞΌ+Ξ») β (2βΞΌ) = Ξ» + 2ΞΌ = 0 … (ii)
Step 3: Solve
From (i): ΞΌ = β2Ξ»; sub (ii): Ξ» β 4Ξ» = 0 β Ξ» = 0, ΞΌ = 0
Step 4: Substitute, find magnitude
FβFβ = (2, 2, 2); |FβFβ| = β12 = 2β3
Distance = 2β3
two equations, two unknowns β solve simultaneously
WE 4Show two lines are skew, then find their shortest distance
(a) Show that the lines r1 = (1, 1, 0) + Ξ»(1, 0, 1) and r2 = (2, 3, 1) + ΞΌ(0, 1, 1) are skew. (b) Find the shortest distance between them.
Part (a): Show skew
x: 1 + Ξ» = 2 β Ξ» = 1
y: 1 = 3 + ΞΌ β ΞΌ = β2
z: Ξ» = 1 + ΞΌ β 1 = 1 + (β2) = β1 β
Inconsistent β skew (and directions aren’t parallel)
Part (b): Vector product method
bβ Γ bβ = (β1, β1, 1); |…| = β3
aβ β aβ = (1, 2, 1)
(aββaβ)Β·(bβΓbβ) = β1 β 2 + 1 = β2
Distance = 2/β3 = 2β3/3
always rationalise the denominator unless the question says otherwise
WE 5Distance between two parallel lines
Show that the lines r1 = (3, 2, 1) + Ξ»(1, 2, 2) and r2 = (5, 1, 1) + ΞΌ(2, 4, 4) are parallel, and find the shortest distance between them.
Step 1: Parallel check
bβ = (2, 4, 4) = 2(1, 2, 2) = 2bβ β β parallel
Step 2: Pick point P = (5, 1, 1) on lβ; find distance from P to lβ
A = (3, 2, 1); AP = P β A = (2, β1, 0)
Step 3: AP Γ bβ (using bβ for direction of lβ)
i: (β1)(2) β (0)(2) = β2
j: β[(2)(2) β (0)(1)] = β4
k: (2)(2) β (β1)(1) = 5
AP Γ bβ = (β2, β4, 5); |…| = β(4+16+25) = β45 = 3β5
Step 4: Apply point-to-line formula
|bβ| = 3; distance = 3β5/3
Distance = β5
for parallel lines, the bβ Γ bβ formula fails (cross product is 0) β switch to point-to-line
WE 6Application β minimum separation between flight paths
Two aircraft fly in straight lines. Aircraft A’s path is given by r = (4, 2, β1) + t(2, 1, β2) and aircraft B’s path by r = (6, 2, 1) + s(1, 2, 2), where coordinates are in km. Find the minimum distance between the two flight paths.
Step 1: Cross product of directions
bβ Γ bβ: i: (1)(2)β(β2)(2) = 6
j: β[(2)(2)β(β2)(1)] = β6
k: (2)(2)β(1)(1) = 3
bβ Γ bβ = (6, β6, 3); |…| = β81 = 9
Step 2: aβ β aβ = (2, 0, 2)
(aββaβ)Β·(bβΓbβ) = 12 + 0 + 6 = 18
Minimum distance = 18/9 = 2 km
paths treated as full lines β minimum separation along their geometric paths, regardless of timing
π‘ Top tips
- Check parallel first: if b1 Γ b2 = 0, switch to the point-to-line method.
- Take absolute value of the dot product β distance is always non-negative.
- Always rationalise a single β in the denominator (e.g., 2/β3 β 2β3/3) unless told otherwise.
- If the answer is 0, lines intersect or are coincident β go back and check the classification.
- For parallel lines, any point on one will give the same distance to the other β pick the simplest.
β Common mistakes
- Forgetting absolute value in the numerator β distance must be non-negative.
- Sign errors in the j-component of the cross product (the determinant flips sign).
- Using the formula on parallel lines β the cross product is zero, formula breaks. Switch to point-to-line.
- Confusing “shortest distance between paths” with “closest approach in time” for moving objects β the latter requires same time on both paths.
- Computing |a2 β a1| as the answer β that’s the gap between anchors, not the perpendicular distance.
That closes Vector Equations of Lines. Up next: Vector Planes. A plane in 3D needs three pieces of information β a point, plus two non-parallel direction vectors (or equivalently, a normal vector). The same scalar/vector product toolkit you’ve built here transfers across, with a few new equations: vector form, parametric form, Cartesian form, and the all-important normal form n Β· (r β a) = 0.
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 β