The shortest distance between two skew lines is along the common perpendicular. The vector b1×b2 is perpendicular to both lines (by definition of cross product). Projecting the connecting vector a2−a1 onto this perpendicular direction gives the distance.
If the two lines were parallel, b1×b2=0 and this formula breaks. Use a different formula for parallel lines: project a2−a1 perpendicular to b1.
Alternative Method
Parametrise both lines and minimise distance squared ∣P1P2∣2 over λ,μ. Set partial derivatives to zero, solve the 2×2 system, find P1,P2, compute ∣P1P2∣. 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=∣b1×b2∣∣(a2−a1)⋅(b1×b2)∣ — it works for any skew lines.
Common Mistake
Using b1⋅b2 in the formula instead of b1×b2. 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.