Find the shortest distance between two skew lines in 3D

medium CBSE JEE-MAIN CBSE 2024 3 min read

Question

Find the shortest distance between the lines:

x12=y+13=z11\frac{x-1}{2} = \frac{y+1}{3} = \frac{z-1}{-1} x+15=y21=z3\frac{x+1}{5} = \frac{y-2}{1} = \frac{z}{3}

(CBSE 2024, 5 marks)


Solution — Step by Step

Line 1 passes through a1=(1,1,1)\vec{a}_1 = (1, -1, 1) with direction b1=(2,3,1)\vec{b}_1 = (2, 3, -1).

Line 2 passes through a2=(1,2,0)\vec{a}_2 = (-1, 2, 0) with direction b2=(5,1,3)\vec{b}_2 = (5, 1, 3).

b1×b2=i^j^k^231513\vec{b}_1 \times \vec{b}_2 = \begin{vmatrix} \hat{i} & \hat{j} & \hat{k} \\ 2 & 3 & -1 \\ 5 & 1 & 3 \end{vmatrix} =i^(9(1))j^(6(5))+k^(215)= \hat{i}(9 - (-1)) - \hat{j}(6 - (-5)) + \hat{k}(2 - 15) =i^(10)j^(11)+k^(13)=(10,11,13)= \hat{i}(10) - \hat{j}(11) + \hat{k}(-13) = (10, -11, -13) a2a1=(11,2(1),01)=(2,3,1)\vec{a}_2 - \vec{a}_1 = (-1 - 1, 2 - (-1), 0 - 1) = (-2, 3, -1) d=(a2a1)(b1×b2)b1×b2d = \frac{|(\vec{a}_2 - \vec{a}_1) \cdot (\vec{b}_1 \times \vec{b}_2)|}{|\vec{b}_1 \times \vec{b}_2|}

Numerator: (2)(10)+(3)(11)+(1)(13)=2033+13=40=40|(-2)(10) + (3)(-11) + (-1)(-13)| = |-20 - 33 + 13| = |-40| = 40

Denominator: 102+(11)2+(13)2=100+121+169=390\sqrt{10^2 + (-11)^2 + (-13)^2} = \sqrt{100 + 121 + 169} = \sqrt{390}

d=40390=40390390=439039\boxed{d = \frac{40}{\sqrt{390}} = \frac{40\sqrt{390}}{390} = \frac{4\sqrt{390}}{39}}

Why This Works

The cross product b1×b2\vec{b}_1 \times \vec{b}_2 gives a vector perpendicular to both lines. The shortest distance between two skew lines is the projection of the vector connecting any two points (one on each line) onto this perpendicular direction.

Geometrically, think of it as: a2a1\vec{a}_2 - \vec{a}_1 connects a point on line 1 to a point on line 2. The component of this vector along b1×b2\vec{b}_1 \times \vec{b}_2 is exactly the perpendicular gap between the lines — everything else is “along” one of the lines and doesn’t contribute to the distance.


Alternative Method — Parametric approach

Set points on each line as P=(1+2s,1+3s,1s)P = (1+2s, -1+3s, 1-s) and Q=(1+5t,2+t,3t)Q = (-1+5t, 2+t, 3t).

The vector PQ\vec{PQ} must be perpendicular to both direction vectors. This gives two equations:

PQb1=0\vec{PQ} \cdot \vec{b}_1 = 0 and PQb2=0\vec{PQ} \cdot \vec{b}_2 = 0

Solving for ss and tt, then computing PQ|\vec{PQ}|. This works but involves more algebra. The cross product formula is faster.

In CBSE boards, the examiner expects the cross product formula. Show every step: write b1×b2\vec{b}_1 \times \vec{b}_2 using the determinant, compute a2a1\vec{a}_2 - \vec{a}_1, take the dot product, then divide. Don’t skip the intermediate cross product — it carries marks in the marking scheme.


Common Mistake

The most common error: computing a1a2\vec{a}_1 - \vec{a}_2 instead of a2a1\vec{a}_2 - \vec{a}_1 (or vice versa) and worrying about the sign. Since we take the absolute value of the dot product in the numerator, the direction of a2a1\vec{a}_2 - \vec{a}_1 doesn’t matter. Don’t waste time checking which way to subtract — the modulus takes care of it.

Want to master this topic?

Read the complete guide with more examples and exam tips.

Go to full topic guide →

Try These Next