Shortest distance between lines and the lines

In summary: , in summary, you took the equation for the line and multiplied it with the distance between the lines to get the length of the connecting line.
  • #1
ezsmith
16
0

Homework Statement


Find the shortest distance between the lines r = (0,7,6) + t (-3,2,2) and the line r = (-3,6,-4) + s (2,-5,6)

The Attempt at a Solution


What I did was I cross product s(2,-5,6) & t(-3,2,2) then I took (0,7,6) - (-3,6,-4)
After getting both answer from the 2 steps I took the 2 equation I got and times (x) with each other. It is even correct? Because I referred this step from Shortest distance between 2 skewed lines since I have no notes or example regarding 2 lines
 
Physics news on Phys.org
  • #2
I didn't understand why you were doing what you said after cross product. Try giving us a conceptual recipe for your steps, such as:

The shortest segment connecting these two lines I would guess would be orthogonal to both of them. This is hard to justify (unless you come up with a slick reason), but it seems lie it might be right. So the segment should be parallel to the cross product of the directions.

We can express the connecting line as a point on the first curve plus some multiple call it u times the cross product we found earlier. We'll set this expression for the connecting line to be equal to the other skew line.

So we now have three unknowns, s,t and u, and one equation, the one for the line. So we don't have enough equations? Actually, our equation is a vector equation, so it is actually three equations, so we'll be able to solve.
Here's another method. Consider the distance squared function,

[itex]f(s,t)=d^2(r_1(s),r_2(t))=|r_1(s)-r_2(t)|^2.[/itex]

This is a function from ℝ^2 to ℝ. Since we are trying to minimize it, we can just check for the partials [itex]\frac{\partial}{\partial s}f(s,t)[/itex] and [itex]\frac{\partial}{\partial t}f(s,t)[/itex] are both zero. The reason I squared the distance is so you wouldn't have to take the derivative of a square root. This is okay since distance is nonnegative, and is an increasing function there.
 
  • #3
algebrat said:
We can express the connecting line as a point on the first curve plus some multiple call it u times the cross product we found earlier. We'll set this expression for the connecting line to be equal to the other skew line.

You can take any vector that connects the two lines. It can be the vector b=(0,7,6)-(-3,6,-4)=(3,1,10) The projection of b onto the direction of the common normal is the distance between the lines. [tex]d=\vec b \cdot \vec n[/tex] where n is the unit normal vector and the dot means dot product.

ezsmith said:
What I did was I cross product s(2,-5,6) & t(-3,2,2) then I took (0,7,6) - (-3,6,-4)
After getting both answer from the 2 steps I took the 2 equation I got and times (x) with each other. It is even correct?

You need to multiply the difference vector by the unit normal vector, that is, the cross product divided by its magnitude. Find the magnitude of the cross product and divide your result with it. That will be all right.
 
  • #4
Oops, that must be what ezsmith was going for. That works nice, very fast, clever trick.
 
  • #5
Sorry for the late reply and thanks for the reply algebrat and ehild.. Its really helpful as I am pretty stuck earlier. Just to make sure whether I am on the right track. After doing cross product which is -22i-22j+11k. I found the magnitude of the cross product which is 33 and then I took the (3,1,10)x(-22,-22,11) and got 198. Lastly, I took 198/33 and the final answer I got was 6.
 
  • #6
ezsmith said:
Sorry for the late reply and thanks for the reply algebrat and ehild.. Its really helpful as I am pretty stuck earlier. Just to make sure whether I am on the right track. After doing cross product which is -22i-22j+11k. I found the magnitude of the cross product which is 33 and then I took the (3,1,10)x(-22,-22,11) and got 198. Lastly, I took 198/33 and the final answer I got was 6.

The cross product is 22i+22j+11k. The magnitude is correct. When multiplying with 3,1,10, it is dot product, so use dot instead of cross. The result is correct, that means you used the correct normal vector instead of the written one.

ehild
 

1. What is the shortest distance between two parallel lines?

The shortest distance between two parallel lines is the length of the perpendicular segment that connects the two lines.

2. How can the shortest distance between two non-parallel lines be calculated?

The shortest distance between two non-parallel lines can be calculated using the formula d = |(p1 - p2) • n| / ||n||, where p1 and p2 are any points on the two lines and n is the vector perpendicular to both lines.

3. How do you find the shortest distance between a point and a line?

The shortest distance between a point and a line can be found by drawing a perpendicular line from the point to the given line and calculating the length of this segment using the Pythagorean theorem.

4. Can the shortest distance between two lines ever be negative?

No, the shortest distance between two lines is always a positive value. This is because distance is a measure of length, and length cannot be negative.

5. Is there a geometric interpretation of the shortest distance between lines?

Yes, the shortest distance between lines can be interpreted as the length of the shortest path that connects the two lines without intersecting them. This can be visualized as a perpendicular line segment connecting the two lines.

Similar threads

  • Calculus and Beyond Homework Help
Replies
2
Views
4K
  • Calculus and Beyond Homework Help
Replies
14
Views
2K
  • Calculus and Beyond Homework Help
Replies
9
Views
1K
  • Calculus and Beyond Homework Help
Replies
4
Views
996
Replies
1
Views
858
  • Precalculus Mathematics Homework Help
Replies
11
Views
3K
  • Calculus and Beyond Homework Help
Replies
12
Views
2K
  • Calculus and Beyond Homework Help
Replies
5
Views
1K
  • Calculus and Beyond Homework Help
Replies
15
Views
2K
Back
Top