(i) The vector equations of the given lines are
These two lines pass through the points having position vectors and are parallel to the vector .
Now,
and
The shortest distance between the two lines is given by
(ii)
These two lines pass through the points having position vectors and are parallel to the vector .
Now,
and
The shortest distance between the two lines is given by