3D Geometry: Step-by-Step Worked Examples (6)

hard 3 min read

Question

Find the shortest distance between the lines

r1=(1,2,3)+λ(1,1,1)\vec{r}_1 = (1, 2, 3) + \lambda (1, -1, 1)

and

r2=(2,4,5)+μ(2,1,1)\vec{r}_2 = (2, 4, 5) + \mu (2, 1, 1)

Solution — Step by Step

Direction vectors: b1=(1,1,1)\vec{b}_1 = (1, -1, 1), b2=(2,1,1)\vec{b}_2 = (2, 1, 1).

Position vectors: a1=(1,2,3)\vec{a}_1 = (1, 2, 3), a2=(2,4,5)\vec{a}_2 = (2, 4, 5).

b1×b2=i^j^k^111211=i^(11)j^(12)+k^(1+2)\vec{b}_1 \times \vec{b}_2 = \begin{vmatrix} \hat{i} & \hat{j} & \hat{k} \\ 1 & -1 & 1 \\ 2 & 1 & 1 \end{vmatrix} = \hat{i}(-1-1) - \hat{j}(1-2) + \hat{k}(1+2)

=(2,1,3)= (-2, 1, 3). Magnitude: b1×b2=4+1+9=14|\vec{b}_1 \times \vec{b}_2| = \sqrt{4+1+9} = \sqrt{14}.

a2a1=(1,2,2)\vec{a}_2 - \vec{a}_1 = (1, 2, 2).

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: (1,2,2)(2,1,3)=2+2+6=6|(1, 2, 2) \cdot (-2, 1, 3)| = |-2 + 2 + 6| = 6.

d=6141.604d = \frac{6}{\sqrt{14}} \approx 1.604

Final answer: shortest distance =614= \frac{6}{\sqrt{14}} units.

Why This Works

The shortest distance between two skew lines is along the common perpendicular. The vector b1×b2\vec{b}_1 \times \vec{b}_2 is perpendicular to both lines (by definition of cross product). Projecting the connecting vector a2a1\vec{a}_2 - \vec{a}_1 onto this perpendicular direction gives the distance.

If the two lines were parallel, b1×b2=0\vec{b}_1 \times \vec{b}_2 = \vec{0} and this formula breaks. Use a different formula for parallel lines: project a2a1\vec{a}_2 - \vec{a}_1 perpendicular to b1\vec{b}_1.

Alternative Method

Parametrise both lines and minimise distance squared P1P22|P_1 P_2|^2 over λ,μ\lambda, \mu. Set partial derivatives to zero, solve the 2×22 \times 2 system, find P1,P2P_1, P_2, compute P1P2|P_1 P_2|. Same answer, much more algebra. Use the cross-product formula in exams.

CBSE board PYQ standard: this exact pattern appears almost every year. Memorise the formula 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|} — it works for any skew lines.

Common Mistake

Using b1b2\vec{b}_1 \cdot \vec{b}_2 in the formula instead of b1×b2\vec{b}_1 \times \vec{b}_2. The dot product gives a scalar; we need a vector perpendicular to both lines, which is the cross product.

Forgetting the absolute value in the numerator. Distance is always positive — the formula gives a signed quantity that we make positive with ...|...|.

Want to master this topic?

Read the complete guide with more examples and exam tips.

Go to full topic guide →

Try These Next