PYQ Vault

HSC Maths · Line and Planes

Skew Lines and the Shortest Distance Between Two Lines

Two lines in space that neither meet nor are parallel are skew. This page finds the shortest distance between them, tests whether two lines intersect, and finds the distance between parallel lines.

Why this matters

21 questions, six of them from board papers: the shortest distance between two skew lines (2016, 2023, 2024, 2025) and the distance between two parallel lines (2022, 2026). The four skew-line questions are only two questions, each set twice: the 2016 and 2024 one is Exercise 6.2 Question 3, and the 2023 and 2025 one is Solved Example 15. The textbook rows are Exercise 6.2 Questions 3, 4, 7 and 8, Solved Examples 14 to 18, Miscellaneous Exercise 6 A Questions 16 and 17, and two MCQs of Miscellaneous Exercise 6 B.

Concept 1 of 3: Shortest distance between skew lines

Skew lines never meet and are not parallel, so no plane holds both. The shortest segment PQ joining them is perpendicular to both lines, so it runs along b₁ × b₂. Its length is the projection, on that direction, of the segment AB joining a point of one line to a point of the other.

Definition

  • Theorem 6.6: the lines rˉ=a1ˉ+λb1ˉ\bar{r} = \bar{a_1} + \lambda\bar{b_1} and rˉ=a2ˉ+μb2ˉ\bar{r} = \bar{a_2} + \mu\bar{b_2} pass through A(a1ˉ)A(\bar{a_1}) and B(a2ˉ)B(\bar{a_2}).
  • Let PQPQ be the segment perpendicular to both lines. It is parallel to b1ˉ×b2ˉ\bar{b_1} \times \bar{b_2}.
  • PQPQ = the projection of AB‾=a2ˉ−a1ˉ\overline{AB} = \bar{a_2} - \bar{a_1} on b1ˉ×b2ˉ\bar{b_1} \times \bar{b_2}.
  • ∴d=∣(a2ˉ−a1ˉ)⋅(b1ˉ×b2ˉ)∣b1ˉ×b2ˉ∣∣\therefore d = \left|\dfrac{(\bar{a_2} - \bar{a_1}) \cdot (\bar{b_1} \times \bar{b_2})}{|\bar{b_1} \times \bar{b_2}|}\right|.
  • For lines in Cartesian form, first read a1ˉ,b1ˉ\bar{a_1}, \bar{b_1} and a2ˉ,b2ˉ\bar{a_2}, \bar{b_2} from the numerators and denominators.
  • Board layout: a1ˉ,a2ˉ,b1ˉ,b2ˉ\bar{a_1}, \bar{a_2}, \bar{b_1}, \bar{b_2}; b1ˉ×b2ˉ\bar{b_1} \times \bar{b_2} as a determinant; its magnitude; a2ˉ−a1ˉ\bar{a_2} - \bar{a_1}; the dot product; dd with units.

Shortest distance between skew lines

d=∣(a2ˉ−a1ˉ)⋅(b1ˉ×b2ˉ)∣b1ˉ×b2ˉ∣∣d = \left|\frac{(\bar{a_2} - \bar{a_1}) \cdot (\bar{b_1} \times \bar{b_2})}{|\bar{b_1} \times \bar{b_2}|}\right|

Worked example

Find the shortest distance between the lines rˉ=(i^+j^)+λ(2i^−j^+k^)\bar{r} = (\hat{i} + \hat{j}) + \lambda(2\hat{i} - \hat{j} + \hat{k}) and rˉ=(2i^+j^−k^)+μ(3i^−5j^+2k^)\bar{r} = (2\hat{i} + \hat{j} - \hat{k}) + \mu(3\hat{i} - 5\hat{j} + 2\hat{k}).
Practise this conceptself-check · 2 quick reps

The same idea in a real exam question:

Maharashtra HSC Class 12 · 2025 · Q. 20Moderate

Example 1 · Line and Planes · Skew Lines and Shortest Distance

Find the shortest distance between the lines, x−12=y−23=z−34\frac{x - 1}{2} = \frac{y - 2}{3} = \frac{z - 3}{4} and x−23=y−44=z−55\frac{x - 2}{3} = \frac{y - 4}{4} = \frac{z - 5}{5}.

A magnitude where a dot product belongs

The numerator is the dot product (a2ˉ−a1ˉ)⋅(b1ˉ×b2ˉ)(\bar{a_2} - \bar{a_1}) \cdot (\bar{b_1} \times \bar{b_2}), a number. Only the denominator is a magnitude, ∣b1ˉ×b2ˉ∣|\bar{b_1} \times \bar{b_2}|.

A negative distance

The dot product may come out negative. A distance never does: take its modulus before dividing.

An unchecked cross product

One sign slip in b1ˉ×b2ˉ\bar{b_1} \times \bar{b_2} spoils both the numerator and the denominator. Dot it with b1ˉ\bar{b_1} and with b2ˉ\bar{b_2}; both must give 0.

Concept 2 of 3: Do two lines intersect?

Two lines meet exactly when the shortest distance between them is zero, so the numerator of the skew-line formula must be zero. In Cartesian form that numerator is a 3 by 3 determinant. A non-zero value means the lines are skew.

Definition

  • Two lines that are not parallel intersect if and only if (a2ˉ−a1ˉ)⋅(b1ˉ×b2ˉ)=0(\bar{a_2} - \bar{a_1}) \cdot (\bar{b_1} \times \bar{b_2}) = 0.
  • Cartesian form: ∣x2−x1y2−y1z2−z1a1b1c1a2b2c2∣=0\begin{vmatrix} x_2 - x_1 & y_2 - y_1 & z_2 - z_1 \\ a_1 & b_1 & c_1 \\ a_2 & b_2 & c_2 \end{vmatrix} = 0.
  • If the value is not 0, the shortest distance is not 0 and the lines do not intersect: they are skew.
  • To find an unknown kk that makes the lines intersect, set the determinant equal to 0 and solve.
  • To find the point where they meet, equate the general points of the two lines.

Condition for two lines to intersect

(a2ˉ−a1ˉ)⋅(b1ˉ×b2ˉ)=0(\bar{a_2} - \bar{a_1}) \cdot (\bar{b_1} \times \bar{b_2}) = 0

Worked example

By computing the shortest distance, show that the lines rˉ=(i^+2j^+3k^)+λ(i^−j^+k^)\bar{r} = (\hat{i} + 2\hat{j} + 3\hat{k}) + \lambda(\hat{i} - \hat{j} + \hat{k}) and rˉ=(2i^+j^+4k^)+μ(2i^+j^+2k^)\bar{r} = (2\hat{i} + \hat{j} + 4\hat{k}) + \mu(2\hat{i} + \hat{j} + 2\hat{k}) intersect, and find their point of intersection.
Practise this conceptself-check · 2 quick reps

The same idea in a textbook question:

Balbharati textbook · Ex 6.2 Q.8Hard

Example 2 · Line and Planes · Skew Lines and Shortest Distance

If lines x−12=y+13=z−14\dfrac{x-1}{2}=\dfrac{y+1}{3}=\dfrac{z-1}{4} and x−31=y−k2=z1\dfrac{x-3}{1}=\dfrac{y-k}{2}=\dfrac{z}{1} intersect each other then find kk.

Using the test on parallel lines

For parallel lines b1ˉ×b2ˉ=0ˉ\bar{b_1} \times \bar{b_2} = \bar{0}, so the triple product is 0 even though the lines never meet. Check the directions are not proportional first.

A verdict without its reason

Write 'shortest distance = 0, hence the lines intersect' or 'shortest distance is not 0, hence the lines do not intersect'. The value alone does not answer the question asked.

Concept 3 of 3: Distance between parallel lines

Parallel lines have the same direction b, so b₁ × b₂ = 0 and the skew-line formula would divide by zero. Instead, the distance between them is the distance of any point of one line from the other line.

Definition

  • Theorem 6.7: the distance between the parallel lines rˉ=a1ˉ+λbˉ\bar{r} = \bar{a_1} + \lambda\bar{b} and rˉ=a2ˉ+μbˉ\bar{r} = \bar{a_2} + \mu\bar{b} is d=∣(a2ˉ−a1ˉ)×bˉ∣∣bˉ∣d = \dfrac{|(\bar{a_2} - \bar{a_1}) \times \bar{b}|}{|\bar{b}|}.
  • Another way: it is the distance of A(a1ˉ)A(\bar{a_1}) from the other line, d=∣a2ˉ−a1ˉ∣2−[(a2ˉ−a1ˉ)⋅bˉ∣bˉ∣]2d = \sqrt{|\bar{a_2} - \bar{a_1}|^2 - \left[\dfrac{(\bar{a_2} - \bar{a_1}) \cdot \bar{b}}{|\bar{b}|}\right]^2}.
  • First check that the lines are parallel: their direction ratios must be proportional. Use the same bˉ\bar{b} for both.

Distance between parallel lines

d=∣(a2ˉ−a1ˉ)×bˉ∣∣bˉ∣d = \frac{|(\bar{a_2} - \bar{a_1}) \times \bar{b}|}{|\bar{b}|}

Worked example

Find the distance between the parallel lines rˉ=(i^+2j^−4k^)+λ(2i^+3j^+6k^)\bar{r} = (\hat{i} + 2\hat{j} - 4\hat{k}) + \lambda(2\hat{i} + 3\hat{j} + 6\hat{k}) and rˉ=(3i^+3j^−5k^)+μ(2i^+3j^+6k^)\bar{r} = (3\hat{i} + 3\hat{j} - 5\hat{k}) + \mu(2\hat{i} + 3\hat{j} + 6\hat{k}).
Practise this conceptself-check · 2 quick reps

The same idea in a real exam question:

Maharashtra HSC Class 12 · 2026 · Q. 19Moderate

Example 3 · Line and Planes · Skew Lines and Shortest Distance

Find the distance between parallel lines x2=y−1=z2\frac{x}{2} = \frac{y}{-1} = \frac{z}{2} and x+12=y−1−1=z+12\frac{x + 1}{2} = \frac{y - 1}{-1} = \frac{z + 1}{2}

Using the skew-line formula on parallel lines

For parallel lines b1ˉ×b2ˉ=0ˉ\bar{b_1} \times \bar{b_2} = \bar{0}, so the skew-line formula divides by zero. Use ∣(a2ˉ−a1ˉ)×bˉ∣∣bˉ∣\dfrac{|(\bar{a_2} - \bar{a_1}) \times \bar{b}|}{|\bar{b}|}.

Two different multiples of the direction

If one line is written with bˉ\bar{b} and the other with 2bˉ2\bar{b}, pick one of them and use it throughout. Mixing them changes the cross product and the magnitude by different factors.

Summary — formulas & gotchas at a glance

A revision cheat-sheet for the formulas and gotchas above. Click any concept name to jump back to its full explanation.

Formulas (3)

  • Shortest distance between skew lines

    Shortest distance between skew lines

    d=∣(a2ˉ−a1ˉ)⋅(b1ˉ×b2ˉ)∣b1ˉ×b2ˉ∣∣d = \left|\frac{(\bar{a_2} - \bar{a_1}) \cdot (\bar{b_1} \times \bar{b_2})}{|\bar{b_1} \times \bar{b_2}|}\right|
  • Do two lines intersect?

    Condition for two lines to intersect

    (a2ˉ−a1ˉ)⋅(b1ˉ×b2ˉ)=0(\bar{a_2} - \bar{a_1}) \cdot (\bar{b_1} \times \bar{b_2}) = 0
  • Distance between parallel lines

    Distance between parallel lines

    d=∣(a2ˉ−a1ˉ)×bˉ∣∣bˉ∣d = \frac{|(\bar{a_2} - \bar{a_1}) \times \bar{b}|}{|\bar{b}|}

Watch out for (7)

Test yourself on Line and Planes

15 past MH HSC 12 questions from this chapter, timed at 23 minutes and marked the way the exam marks it. You see your score and every answer the moment you finish. Free to start.