Math Help - Finding minimum distance between two lines

1. Finding minimum distance between two lines

I need to find the points on two lines in 4 dimensions that are closest to each other. How would I go about doing that?

Thanks!

2. Re: Finding minimum distance between two lines

What are the equations of the lines?

3. Re: Finding minimum distance between two lines

The first line is all scalar multiples of (1,2,0,0).
The second line is (1,0,-2,3) + all scalar multiples of (-1,1,2,-1).

The answer I got was the points (3/7,6/7,0,0) and (-1/7,8/7,2/7,5/7). The distance I got was one.

Is this correct?

Thanks!