Solution:
Key idea: For two non-parallel lines r=a1+λb1 and r=a2+μb2, the shortest distance (S.D.) is the length of their common perpendicular, given by
S.D.=b1×b2(a2−a1)⋅(b1×b2)
Step 1 — Write the first line in the form a1+λb1.
We collect the constant terms and the terms in λ separately.
r=(8i^−9j^+10k^)+λ(3i^−16j^+7k^)
So a1=8i^−9j^+10k^ and b1=3i^−16j^+7k^. From the second equation, a2=15i^+29j^+5k^ and b2=3i^+8j^−5k^.
We subtract the first point from the second.
a2−a1=7i^+38j^−5k^
Step 2 — Find the cross product and its magnitude.
The cross product is perpendicular to both lines.
b1×b2=i^33j^−168k^7−5
b1×b2=(80−56)i^−(−15−21)j^+(24−(−48))k^
b1×b2=24i^+36j^+72k^
b1×b2=242+362+722
b1×b2=7056
b1×b2=84
Step 3 — Find the shortest distance.
We take the dot product of a2−a1 with the cross product and divide by the magnitude.
(a2−a1)⋅(b1×b2)=(7)(24)+(38)(36)+(−5)(72)
(a2−a1)⋅(b1×b2)=1176
S.D.=841176
S.D.=14
Therefore, the shortest distance between the lines is 14 units.