Shortest Distance Between Two Lines
The formula
For two lines r=a1+λb1 and r=a2+μb2that don't intersect, the shortest distance between them is:
d=∣b1×b2∣(a2−a1)⋅(b1×b2)Worked example
Find the shortest distance between r=i^+j^+λ(2i^−j^+k^) and r=2i^+j^−k^+μ(3i^−5j^+2k^).
Solution: Here a2−a1=i^−k^, b1=(2,−1,1), b2=(3,−5,2).
b1×b2=(3,−1,−7),∣b1×b2∣=9+1+49=59(a2−a1)⋅(b1×b2)=(1)(3)+(0)(−1)+(−1)(−7)=10d=5910A second worked example
Find the shortest distance between r=i^+2j^+k^+λ(i^−j^+k^) and r=2i^−j^−k^+μ(2i^+j^+2k^).
Solution: a2−a1=i^−3j^−2k^, b1=(1,−1,1), b2=(2,1,2).
b1×b2=(−3,0,3),∣b1×b2∣=9+0+9=32(a2−a1)⋅(b1×b2)=(1)(−3)+(−3)(0)+(−2)(3)=−9d=329=23Continue learning
Both examples here start from the vector form of a line's equation covered separately.