Shortest Distance between two lines
How to find shortest distance between two lines in space.
The shortest distance d between two lines
and
is given by the following formula.
Example1: Find shortest distance between the lines
r =〈4,-1,0〉 + s〈1,2-3〉 and r =〈1,-1,2〉 + t〈2,4,-5〉 .
Solution: Here we have a1 = (4,-1,0) , a2 = (1,-1,2) and b1 = (1,2,-3) , b2 = (2,4,-5)
Step1) a2-a1 = (1,-1,2)-(4,-1,0) =
Step2)
= i(-10+12) –j(-5+6) +k(4-4)
= 2i-j+0k
Step3)
Step4) Plug in all the values into formula
Example2.By computing the shortest distance determine whether the following pair of lines intersect or not.
and
Solution: Given equation can be rewritten in proper form as,
and
Here we have a1 = (1,-1,0) , a2 =(-1,2,2) , b1= (2,3,1) and b2=(5,1,0)
Step1) a2 -a1 = (-1,2,2)-(1,-1,0) = (-2,3,2)
Step2)
= i(0-1) –j(0-5)+k(2-15)
= -i+5j-13k
Step3)
= (-2,3,2).(-1,5,-13)
= 2+15-26= -9 ≠ 0
If the shortest distance between two lines is 0 , then the lines intersect each other.
Here we got that distance is not 0 so the two lines doesn’t intersect each other.
Shortest distance between two Parallel lines:
Lets assume two parallel lines with same direction vector b are given by the equations
and
Then the shortest distance between them is found by the following formula.
Example3: Find shortest distance between the lines
r = 〈1,2,3〉 + s 〈2,3,4〉 and r =〈2,4,5〉+ t 〈4,6,8〉 .
Solution: Rewriting second equation we get ,
r = 〈2,4,5〉 + 2t 〈2,3,4〉
We see that both lines have same direction vector , therefore both are parallel lines. Here we have a1 = (1,2,3) , a2 = (2,4,5) and b= (2,3,4).
Step1)
a2 -a1 = (2,4,5)-(1,2,3) = 〈1,2,2〉
Step2)
= i(8-6) –j(4-4)+k(3-4)
= 2i-0j-k
Step3)
Step 4) Plug in the values into the formula.
Practice problems:
- Find shortest distance between the lines
r = 〈3,8,3〉 + s〈3,-1,1〉 and r = 〈-3,-7,-6〉 +t 〈-3,2,4〉
- Find shortest distance between the lines
, and
- By computing the shortest distance determine whether the following pair of lines intersect or not.
, and
Answers:
- √270
- 1/√6
- NO
