The shortest distance between two skew lines is given by d=∣b1×b2∣(a2−a1)⋅(b1×b2)
Line 1: a1=5i^+2j^+4k^, b1=i^+2j^−3k^
Line 2: a2=−3i^−5j^+k^, b2=i^+4j^−5k^
a2−a1=(−3−5)i^+(−5−2)j^+(1−4)k^
a2−a1=−8i^−7j^−3k^
b1×b2=i^11j^24k^−3−5
b1×b2=i^(−10−(−12))−j^(−5−(−3))+k^(4−2)
b1×b2=2i^+2j^+2k^
∣b1×b2∣=22+22+22=12=23
(a2−a1)⋅(b1×b2)=(−8)(2)+(−7)(2)+(−3)(2)
(a2−a1)⋅(b1×b2)=−16−14−6=−36
d=23−36
d=63