The direction vectors are:
b1=2i^+j^+k^
b2=4i^+2j^+2k^=2b1
Since b2 is a scalar multiple of b1, the lines are parallel.
The shortest distance formula for parallel lines is:
d=∣b∣∣b×(a2−a1)∣
where b=2i^+j^+k^
a2−a1=(i^+j^+2k^)−(i^+j^−k^)
=3k^
b×(a2−a1)=i^20j^10k^13
=i^(3−0)−j^(6−0)+k^(0−0)
=3i^−6j^
∣b×(a2−a1)∣=9+36=45=35
∣b∣=4+1+1=6
d=635
=635×6
=6330
=230
=430
=215
Therefore, the shortest distance is 215