(i) The equation of the line passing through the points (0, 0, 0) and (1, 0, 2) is
(ii) The equation of the line passing through the points (1, 3, 0) and (0, 3, 0) is
Since the first line passes through the point (0, 0, 0) and has direction ratios proportional to 1, 0, 2, its vector equation is
Also, the second line passes through the point (1, 3, 0) and has direction ratios proportional to 1, 0, 0.
Its vector equation is
Now,
The shortest distance between the lines is given by