(adsbygoogle = window.adsbygoogle || []).push({}); 1. The problem statement, all variables and given/known data

In R^{3}, consider the line l given by the equations {x=t,y=t,z=t} and the line m given by the equations {x=s,y=2s-1,z=1}. Let P be a point on l, and let Q be a point on m. Find the values of t and s that minimize the distance between the lines by minimizing the squared distance abs(P-Q).

2. Relevant equations

[P] = A(A^{T}A)^{-1}A^{T}

3. The attempt at a solution

Let the basis for l be span{(1, 1, 1)} and the basis for m be span{(1,2,0),(0,-1,1)}

From here on I actually don't know what to do:( Do I have to apply the formula to both lines?

Please help!

**Physics Forums | Science Articles, Homework Help, Discussion**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Homework Help: Distance between lines

**Physics Forums | Science Articles, Homework Help, Discussion**