Given,
Equation of the lines
x+1=2y=−12z and x=y+2=6z−6
⇒1x+1=21y=12−1z and 1x=1y+2=61z−1
We know that, shortest distance between the lines is given by S.D=∣p×q∣(b−a)⋅(p×q)
Here \vec{p}=\hat{i}+\frac{\hat{j}}{2}+\frac{-\hat{k}}{12}&\vec{q}=\hat{i}+\hat{j}+\frac{\hat{k}}{6} and \vec{a}=\hat{i}&\vec{b}=2\hat{j}-\hat{k}
⇒S.D=(−i^+2j^−k^)⋅∣p×q∣(p×q)
Now solving p×q≡∣i^11j^211k^12−161∣
⇒p×q≡61i^−41j^+21k^
⇒p×q≡2i^−3j^+6k^
Hence, S.D=22+32+62(−i^+2j^−k^)⋅(2i^−3j^+6k^)=∣7−14∣=2