- Joined
- Apr 5, 2005
- Messages
- 2,068
- Reaction score
- 0
Q: What is the min distance between these two lines:
Equation #1: y = 3/2 x + 9
Equation #2: y = 3/2 x -4
a) 5.83
b) 6.50
c) 7.21
d) 9.19
e) 13.00
For some reason, I can't solve the above problem using the formula for "distance from a point (P) to a plane in R3"
i.e. d = |QP dot N| / ||N|| = |Ax0 + By0 + Cz0 + D| / square root of (A^2 + B^2 + C^2)
where Q is any point in a given plane and N is a normal to the given plane and P is the point.
The cross product of the two lines obviously gives us a line that is perpendicular to both lines but I figured I could get my perpendicular line by negating the inverse of the slope of both lines since both lines have the same slope. (i.e. slope = -1 / (3/2) = -2/3).
So the perpendicular line has the following formula: y = -2/3 x >> y + (2/3)x = 0
To find a plane that goes through one of the two lines I did the following:
P1 (-2, 6) is a point on "line #1": y = (3/2) x + 9 or y -(3/2)x - 9 = 0
So, my plane equation is:
(2/3)(x - (-2)) + 1(y - 6) = 0
(2/3)x + 4/3 + y - 6 = 0
(2/3)x + y - 14/3 = 0 << the plane that goes through line #1
Now all I need to do is find a point on line #2 and use the plane equation to find the distance:
P2 (2, -1) is on line #2: y = 3/2 x - 4
d = |QP dot N| / ||N|| = |Ax0 + By0 + Cz0 + D| / square root of (A^2 + B^2 + C^2)
d = | (2/3) * 2 + 1 (-1) -14/3 | / sq rt of ( (2/3)^2 + 1^2 )
d = (13/3) / (sq rt of 13) / 3
d = sq rt of 13
d = 3.6
but answer is 7.2 (which is 2 * d ) 😕 😕
Everything seems correct but for some reason I can't get the right answer. 😡
I know, for sure, 7.2 is the right answer because my second solution gives the right answer:
Solution #2:
Find the intersection of y = -2/3 x with the other two lines
and then use the points of intersection to find the distance
points of intersection are approx. (-4.15, 2.77) & (1.85, -1.23)
d = sq rt of [ (4.15 + 1.85)^2 + (2.77 + 1.23)^2 ] = 7.21
Does anyone know why my 1st solution doesn't give me the right answer???!!!! 😕 (solution #1 is better than #2 because solution #1 works for any pair of skew lines in 3 dimensional space; solution #2 is only good for this problem)
Thanks a bunch in advance.
Equation #1: y = 3/2 x + 9
Equation #2: y = 3/2 x -4
a) 5.83
b) 6.50
c) 7.21
d) 9.19
e) 13.00
For some reason, I can't solve the above problem using the formula for "distance from a point (P) to a plane in R3"
i.e. d = |QP dot N| / ||N|| = |Ax0 + By0 + Cz0 + D| / square root of (A^2 + B^2 + C^2)
where Q is any point in a given plane and N is a normal to the given plane and P is the point.
The cross product of the two lines obviously gives us a line that is perpendicular to both lines but I figured I could get my perpendicular line by negating the inverse of the slope of both lines since both lines have the same slope. (i.e. slope = -1 / (3/2) = -2/3).
So the perpendicular line has the following formula: y = -2/3 x >> y + (2/3)x = 0
To find a plane that goes through one of the two lines I did the following:
P1 (-2, 6) is a point on "line #1": y = (3/2) x + 9 or y -(3/2)x - 9 = 0
So, my plane equation is:
(2/3)(x - (-2)) + 1(y - 6) = 0
(2/3)x + 4/3 + y - 6 = 0
(2/3)x + y - 14/3 = 0 << the plane that goes through line #1
Now all I need to do is find a point on line #2 and use the plane equation to find the distance:
P2 (2, -1) is on line #2: y = 3/2 x - 4
d = |QP dot N| / ||N|| = |Ax0 + By0 + Cz0 + D| / square root of (A^2 + B^2 + C^2)
d = | (2/3) * 2 + 1 (-1) -14/3 | / sq rt of ( (2/3)^2 + 1^2 )
d = (13/3) / (sq rt of 13) / 3
d = sq rt of 13
d = 3.6
but answer is 7.2 (which is 2 * d ) 😕 😕
Everything seems correct but for some reason I can't get the right answer. 😡
I know, for sure, 7.2 is the right answer because my second solution gives the right answer:
Solution #2:
Find the intersection of y = -2/3 x with the other two lines
and then use the points of intersection to find the distance
points of intersection are approx. (-4.15, 2.77) & (1.85, -1.23)
d = sq rt of [ (4.15 + 1.85)^2 + (2.77 + 1.23)^2 ] = 7.21
Does anyone know why my 1st solution doesn't give me the right answer???!!!! 😕 (solution #1 is better than #2 because solution #1 works for any pair of skew lines in 3 dimensional space; solution #2 is only good for this problem)
Thanks a bunch in advance.