Let I1 and I2 be two skew-lines with equations r=a1+λb1 ...(i)
and r=a2+μb2....(ii)
Take any point S on l1 with position vector a1 and T on I2 with position vector a2. Then, the magnitude of the shortest distance vector will be equal to that of the projection of ST along the direction of the line of shortest distance.
If PQ is the shortest distance vector between I1 and I2, then it being perpendicular to both b1 and b2, the unit vector n^ alnng PQ wnulid therefore he
Then, PQ=dn^
Where, d is the magnitude of the shortest distance vector. Let θ be the angle between ST and PQ. Then, PQ=ST∣cosθ∣ But cosθ=∣∣∣PQ∥ST∣PQ⋅ST∣∣ cosθ=∣∣dSTdnn^⋅(a2−a1)∣∣(∵ST=a2−a1) cosθ=∣∣ST∣b1×b2∣(b1×b2)⋅(a2−a1)∣∣ [from Eq. (iii)]
Hence, the required shortest distance is d=PQ=ST∣cosθ∣ or d=∣∣∣b1×b2∣(b1×b2)⋅(a2−a1)∣∣