PYQ Vault

CBSE Class 12 Maths · Three Dimensional Geometry

Shortest Distance Between Two Lines

Two lines in space either meet, run parallel or are skew; the shortest distance is zero for lines that meet, the perpendicular gap for parallel lines, and the length of the common perpendicular for skew lines.

Why this matters

31 questions, twenty-four of them from board papers, set in every year from 2022 to 2026. The board asked for the shortest distance between skew lines (2022, 2024, 2025 and 2026, once with the distance given and an unknown to find), the distance between parallel lines (every year, once as the side of a square and once as the height of a parallelogram), and whether two lines intersect, are skew or lie in one plane (2022, 2023, 2025 and 2026). The textbook adds Examples 9 and 10, Exercise 11.2 Q12 to Q15 and Miscellaneous Exercise Q4.

Concept 1 of 3: Shortest distance between skew lines

Skew lines are neither parallel nor meeting, like a diagonal across a ceiling and a diagonal down a wall. The shortest segment joining them is perpendicular to both, so it runs along b1⃗×b2⃗\vec{b_1} \times \vec{b_2}. Its length is the projection of any joining vector a2⃗−a1⃗\vec{a_2} - \vec{a_1} on that direction.

Definition

  • For r⃗=a1⃗+λb1⃗\vec{r} = \vec{a_1} + \lambda\vec{b_1} and r⃗=a2⃗+μb2⃗\vec{r} = \vec{a_2} + \mu\vec{b_2}: d=∣(b1⃗×b2⃗)⋅(a2⃗−a1⃗)∣b1⃗×b2⃗∣∣d = \left|\dfrac{(\vec{b_1} \times \vec{b_2}) \cdot (\vec{a_2} - \vec{a_1})}{|\vec{b_1} \times \vec{b_2}|}\right|.
  • Check first that the lines are not parallel: if b1⃗×b2⃗=0⃗\vec{b_1} \times \vec{b_2} = \vec{0}, use the parallel-lines formula.
  • A line given as r⃗=(1−t)i^+(t−2)j^+…\vec{r} = (1 - t)\hat{i} + (t - 2)\hat{j} + \ldots must first be split into a⃗+tb⃗\vec{a} + t\vec{b}: the terms without tt give a⃗\vec{a}, the coefficients of tt give b⃗\vec{b}.
  • In Cartesian form the numerator is the determinant with rows x2−x1,y2−y1,z2−z1x_2 - x_1, y_2 - y_1, z_2 - z_1; a1,b1,c1a_1, b_1, c_1; a2,b2,c2a_2, b_2, c_2.
  • A non-zero answer shows the lines are skew.

Shortest distance between skew lines

d=∣(b1⃗×b2⃗)⋅(a2⃗−a1⃗)∣b1⃗×b2⃗∣∣d = \left|\dfrac{(\vec{b_1} \times \vec{b_2}) \cdot (\vec{a_2} - \vec{a_1})}{|\vec{b_1} \times \vec{b_2}|}\right|
  • a1⃗,a2⃗\vec{a_1}, \vec{a_2}position vectors of a point on each line
  • b1⃗,b2⃗\vec{b_1}, \vec{b_2}direction vectors of the two lines

Worked example

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

The same idea in a real exam question:

CBSE Class 12 · 2025 · 65/2/1 · 34 (a)Hard

Example 1 · Three Dimensional Geometry · Shortest Distance Between Two Lines

Find the shortest distance between the lines : x+12=y−11=z−9−3\dfrac{x + 1}{2} = \dfrac{y - 1}{1} = \dfrac{z - 9}{-3} and x−32=y+15−7=z−95\dfrac{x - 3}{2} = \dfrac{y + 15}{-7} = \dfrac{z - 9}{5}.

A negative distance

The dot product can be negative. The distance is its modulus divided by ∣b1⃗×b2⃗∣|\vec{b_1} \times \vec{b_2}|; write the modulus in the formula line, where it earns a mark.

The skew formula on parallel lines

For parallel lines b1⃗×b2⃗=0⃗\vec{b_1} \times \vec{b_2} = \vec{0} and the formula becomes 00\dfrac{0}{0}. Compare the direction ratios before you choose a formula.

Terms printed out of order

When a vector equation prints its k^\hat{k} term before its j^\hat{j} term, sort the parts by i^\hat{i}, j^\hat{j}, k^\hat{k} before you read a⃗\vec{a} and b⃗\vec{b}.

Concept 2 of 3: Distance between parallel lines

Parallel lines lie in one plane and keep the same gap all along. Take a point on each line. The gap is the height of the parallelogram formed by b⃗\vec{b} and the joining vector a2⃗−a1⃗\vec{a_2} - \vec{a_1}: area divided by base, that is ∣b⃗×(a2⃗−a1⃗)∣|\vec{b} \times (\vec{a_2} - \vec{a_1})| divided by ∣b⃗∣|\vec{b}|.

Definition

  • For r⃗=a1⃗+λb⃗\vec{r} = \vec{a_1} + \lambda\vec{b} and r⃗=a2⃗+μb⃗\vec{r} = \vec{a_2} + \mu\vec{b}: d=∣b⃗×(a2⃗−a1⃗)∣∣b⃗∣d = \dfrac{|\vec{b} \times (\vec{a_2} - \vec{a_1})|}{|\vec{b}|}.
  • If the second line is printed with a multiple of b⃗\vec{b}, such as 2b⃗2\vec{b}, the lines are still parallel. Use the same b⃗\vec{b} above and below.
  • For two lines through given points (sides of a parallelogram or a square), first show the direction ratios are proportional.
  • The gap between opposite sides is the height: area of a parallelogram = side ×\times this distance; a square whose opposite sides lie on the lines has side equal to it.

Distance between parallel lines

d=∣b⃗×(a2⃗−a1⃗)∣∣b⃗∣d = \dfrac{|\vec{b} \times (\vec{a_2} - \vec{a_1})|}{|\vec{b}|}

Worked example

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

The same idea in a real exam question:

CBSE Class 12 · 2026 · 65/1/3 · Q32Hard

Example 2 · Three Dimensional Geometry · Shortest Distance Between Two Lines

Show that line AB passing through points A(0, 4, 1), B(2, 3, -1) and the line CD passing through points C(4, 5, 0), D(2, 6, 2) are parallel. Also, find distance between them.

Two different b's

If the second line carries 2b⃗2\vec{b}, use b⃗\vec{b} in both the cross product and the denominator, or 2b⃗2\vec{b} in both. Mixing them doubles or halves the answer.

A dot product in place of the cross product

For parallel lines the numerator is the length of a cross product, ∣b⃗×(a2⃗−a1⃗)∣|\vec{b} \times (\vec{a_2} - \vec{a_1})|. A dot product there gives a different number.

Concept 3 of 3: Do the lines meet? Intersecting, parallel or skew

If two lines that are not parallel have shortest distance zero, they must meet. So the numerator of the skew-lines formula is a test: zero means the lines lie in one plane and cross, non-zero means they are skew.

Definition

  • Step 1: are the direction ratios proportional? If yes, the lines are parallel (or the same line).
  • Step 2: if not parallel, find (a2⃗−a1⃗)⋅(b1⃗×b2⃗)(\vec{a_2} - \vec{a_1}) \cdot (\vec{b_1} \times \vec{b_2}). Zero: the lines intersect. Not zero: they are skew.
  • Step 3: to find the point, equate the general points of the two lines (the Equation of a Line page).
  • The present NCERT book has no separate section on coplanar lines; the 2022 papers asked whether two lines are coplanar. The test is the same zero triple product, written as the determinant with rows x2−x1,y2−y1,z2−z1x_2 - x_1, y_2 - y_1, z_2 - z_1; a1,b1,c1a_1, b_1, c_1; a2,b2,c2a_2, b_2, c_2.

Lines that are not parallel intersect exactly when

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

Worked example

Determine whether the lines r⃗=(i^+2j^)+λ(i^−j^+k^)\vec{r} = (\hat{i} + 2\hat{j}) + \lambda(\hat{i} - \hat{j} + \hat{k}) and r⃗=(i^−2j^+4k^)+μ(i^+j^−k^)\vec{r} = (\hat{i} - 2\hat{j} + 4\hat{k}) + \mu(\hat{i} + \hat{j} - \hat{k}) intersect. If they do, find the point.
Practise this conceptself-check · 2 quick reps

The same idea in a real exam question:

CBSE Class 12 · 2025 · 65/6/1 · Q25Moderate

Example 3 · Three Dimensional Geometry · Shortest Distance Between Two Lines

Determine if the lines r⃗=(i^+j^−k^)+λ(3i^−j^)\vec{r} = (\hat{i} + \hat{j} - \hat{k}) + \lambda(3\hat{i} - \hat{j}) and r⃗=(4i^−k^)+μ(2i^+3k^)\vec{r} = (4\hat{i} - \hat{k}) + \mu(2\hat{i} + 3\hat{k}) intersect with each other.

A zero triple product alone

Zero also happens for parallel lines, which lie in one plane but never meet. Say the directions are not proportional as well; only then does zero mean the lines intersect.

Skew is not parallel

Lines that do not meet may be parallel or skew. Skew lines have directions that are not proportional and a non-zero shortest distance.

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=∣(b1⃗×b2⃗)⋅(a2⃗−a1⃗)∣b1⃗×b2⃗∣∣d = \left|\dfrac{(\vec{b_1} \times \vec{b_2}) \cdot (\vec{a_2} - \vec{a_1})}{|\vec{b_1} \times \vec{b_2}|}\right|
  • Distance between parallel lines

    Distance between parallel lines

    d=∣b⃗×(a2⃗−a1⃗)∣∣b⃗∣d = \dfrac{|\vec{b} \times (\vec{a_2} - \vec{a_1})|}{|\vec{b}|}
  • Do the lines meet? Intersecting, parallel or skew

    Lines that are not parallel intersect exactly when

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

Watch out for (7)

Test yourself on Three Dimensional Geometry

15 past CBSE Class 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.