The shortest distance between two skew lines is along their common perpendicular. The vector b1×b2 points along this common perpendicular (perpendicular to both directions). Project a2−a1 (the connector between any two specific points on the lines) onto this perpendicular direction, and take the magnitude. That’s the shortest distance.
If b1×b2=0, the lines are parallel — different formula. If the dot product is zero but the cross product is not, the lines intersect (distance is 0).
Alternative Method
Parametrise: minimise ∣P1P2∣2 where P1 is on line 1 and P2 is on line 2. Take partial derivatives with respect to λ and μ, set them to zero, and find the critical λ,μ. Then compute the distance. This is heavy algebra but equivalent.
Edge case trap: if (a2−a1)⋅(b1×b2)=0, the lines are coplanar — they either intersect or are parallel. Always compute this scalar triple product first; a zero value tells us we don’t have skew lines.
Common Mistake
Forgetting the absolute value in the formula. The dot product can come out negative; distance is always positive. Also, students sometimes forget to divide by ∣b1×b2∣, treating it as a vector instead of a scalar. The output should be a number with units of length.
Want to master this topic?
Read the complete guide with more examples and exam tips.