Find the shortest distance between the lines L1:r=(i^+2j^−4k^)+λ(2i^+3j^+6k^) and L2:r=(3i^+3j^−5k^)+μ(2i^+3j^+6k^).
Solution — Step by Step
Direction vectors are b1=2i^+3j^+6k^ and b2=2i^+3j^+6k^ — identical. So the lines are parallel.
When parallel, we cannot use the cross-product formula ∣b1×b2∣ in the denominator (it would be zero). We use the formula for distance between parallel lines instead.
For parallel lines, the perpendicular distance is the same at every point. We pick any vector connecting the two lines (here a2−a1) and project out the part along b — what’s left is the perpendicular component.
The cross-product trick gives us the perpendicular component’s magnitude in one shot: ∣u×b∣/∣b∣ is the area of the parallelogram divided by the base, which is the height.
Alternative Method
We can drop a perpendicular from any point on L2 (say a2) onto L1. Set up the foot of perpendicular by minimising distance — gets to the same answer through more algebra.
Common Mistake
Applying the skew lines formula d=∣(a2−a1)⋅(b1×b2)∣/∣b1×b2∣ when the lines are parallel. Since b1×b2=0 for parallel lines, you get 0/0. Always check for parallelism first — it’s a 30-second sanity check that saves the whole question.
Want to master this topic?
Read the complete guide with more examples and exam tips.