IB Maths AI HLVector Equations of LinesPaper 1 & 2Skew lines~10 min read
Shortest Distance Between Two Lines
Two skew lines (not parallel, not intersecting) have one unique line segment perpendicular to both — that’s the shortest connection. Two methods: scalar-product (set F1F2 · b1 = 0 and F1F2 · b2 = 0) or vector-product (use b1 × b2, which is perpendicular to both).
📘 What you need to know
Skew lines: not parallel, never meet. Live in 3D, not in 2D (where lines must either meet or be parallel).
Shortest distance = length of the common perpendicular between the two lines.
Cross product trick: d = b1 × b2 is automatically perpendicular to both directions. Use it to align the connecting segment.
Parallel lines: pick any point on one line, treat as point-to-line distance (use the previous sub-topic).
Intersecting lines: shortest distance = 0.
How to tell parallel/skew/intersecting:
· b1 = kb2 ⇒ parallel (or same line)
· otherwise try to solve a1 + λb1 = a2 + μb2: solution exists ⇒ intersect; no solution ⇒ skew
Scalar-product method — two perpendicular conditions
Let F1 on l1 and F2 on l2 be the two closest points. The segment F1F2 must be perpendicular to both lines. So you get two scalar-product equations:
Scalar product method
F1F2 · b1 = 0 and F1F2 · b2 = 0
two equations in λ, μ → solve → substitute → distance = |F1F2|
The teal segment F1F2 is the only line segment perpendicular to both skew lines. Its direction is parallel to b1 × b2 — the cross product of the direction vectors.
Vector-product shortcut — one formula
Since the common perpendicular direction is b1 × b2, project the gap vector a2 − a1 (between the two lines’ base points) onto this direction. The magnitude of that projection is the shortest distance.
Vector-product shortcut
d = |(a2 − a1) · (b1 × b2)||b1 × b2|numerator = absolute value of the scalar triple product; denominator = magnitude of the cross product
Shortcut warning: this formula only works when the lines are skew (not parallel). If b1 × b2 = 0, the lines are parallel — use the point-to-line method instead. Also: if the lines actually intersect, the numerator comes out to 0 (distance = 0).
🧭 Recipe — shortest distance between two skew lines
Check first: are they parallel (b1 ∥ b2)? Are they intersecting (set the equations equal and solve)?
If parallel: pick a point on one, find its distance to the other (point-to-line).
If intersecting: d = 0.
If skew — pick a method:
· Vector product: d = |(a2 − a1) · (b1 × b2)| / |b1 × b2|. Three computations, one answer.
· Scalar product: write F1 = a1 + λb1, F2 = a2 + μb2, form F1F2, set F1F2 · b1 = 0 and F1F2 · b2 = 0, solve for λ and μ, then d = |F1F2|.
Use the GDC for cross products and simultaneous equations.
Worked examples
WE 1
Vector-product method (from the PDF)
l1: r = (3−1−2) + λ(1−20), l2: r = (99−9) + μ(−141). Find the shortest distance between them.
A drone starts at (−5, 4, −8) and moves in direction (−121). At the same time a bird starts at (6, −4, 3) and moves in direction (2−34). Find the minimum distance between them.
Classify first — check parallel (scalar multiple of directions), then intersecting (solve simultaneously), then skew.
Vector-product formula is faster when lines are skew — fewer steps and the GDC handles the cross product.
Scalar method gives F1 and F2 too — if the question asks for the closest points themselves, use this method.
Use different parameters: λ for l1, μ for l2. They’re independent.
Cross product = 0 means parallel — drop to the point-to-line method.
⚠ Common mistakes
Using one perpendicularity equation instead of two in the scalar method — you need F1F2 perpendicular to both directions, giving two equations.
Applying the skew-line formula to parallel lines — b1 × b2 = 0 gives division by zero. Use point-to-line instead.
Using a1 − a2 instead of a2 − a1 — magnitudes are the same so the distance still works, but be consistent.
Forgetting absolute value in the numerator — the triple product can be negative; the distance can’t.
Treating the cross product like a number — b1 × b2 is a vector; the formula uses its magnitude on the bottom and a dot product with it on top.
Chapter complete — you now have all five Vector Equations of Lines sub-topics: vector form (r = a + λb), parametric form, angle between two lines (scalar product), shortest distance from a point to a line (perpendicular), and shortest distance between two lines (skew, parallel, intersecting). Together they cover every Paper 1 & 2 vector-line question on the AI HL syllabus.
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.