Find the distance between a point and a line (given its vector equation)

In summary, to find the distance from a point to a line in R3, you can use the cross product of a vector from any point on the line to the external point with the unit direction vector of the line. This will give you the magnitude of the perpendicular distance.
  • #1
Nickg140143
30
0

Homework Statement


Let [tex]l_1:<x,y,z>=<2,-1,3>+t<-1,2,1>[/tex] and [tex]P(1,3,2)[/tex] be a line and point in R3, respectively. Find the distance from P to l.


Homework Equations


distance between two points in R3
[tex]d=\sqrt{(x-x_0)^2+(y-y_0)^2+(z-z_0)^2}[/tex]

and the line in this problem is given to us in vector equation form, from which I can find the directional vector v and the position vector r0


The Attempt at a Solution


I'll need a bit of guidance on this problem. I believe that I'm supposed to find the shortest distance between P and some point on line L, and I can only think that the shortest distance between P and some point on L would be some path from P that intersects L at a 90 degree angle (perpendicular to L). I was thinking of perhaps using L's directional vector and the point P in order to construct some line that goes through P and is perpendicular to L, which would mean I would need to cross the directional vector with something?

I'm not too sure on how to go about this, or whether or not this is a proper way of approaching this problem.

Any guidance would be greatly appreciated.
 
Physics news on Phys.org
  • #2
Nickg140143 said:

Homework Statement


Let [tex]l_1:<x,y,z>=<2,-1,3>+t<-1,2,1>[/tex] and [tex]P(1,3,2)[/tex] be a line and point in R3, respectively. Find the distance from P to l.


Homework Equations


distance between two points in R3
[tex]d=\sqrt{(x-x_0)^2+(y-y_0)^2+(z-z_0)^2}[/tex]

and the line in this problem is given to us in vector equation form, from which I can find the directional vector v and the position vector r0


The Attempt at a Solution


I'll need a bit of guidance on this problem. I believe that I'm supposed to find the shortest distance between P and some point on line L, and I can only think that the shortest distance between P and some point on L would be some path from P that intersects L at a 90 degree angle (perpendicular to L).
Yes.
Nickg140143 said:
I was thinking of perhaps using L's directional vector and the point P in order to construct some line that goes through P and is perpendicular to L, which would mean I would need to cross the directional vector with something?
The dot product would be more appropriate. The dot product is zero for two perpendicular vectors.
Nickg140143 said:
I'm not too sure on how to go about this, or whether or not this is a proper way of approaching this problem.

Any guidance would be greatly appreciated.
 
  • #3
Nickg140143 said:

Homework Statement


Let [tex]l_1:<x,y,z>=<2,-1,3>+t<-1,2,1>[/tex] and [tex]P(1,3,2)[/tex] be a line and point in R3, respectively. Find the distance from P to l.


Homework Equations


distance between two points in R3
[tex]d=\sqrt{(x-x_0)^2+(y-y_0)^2+(z-z_0)^2}[/tex]

and the line in this problem is given to us in vector equation form, from which I can find the directional vector v and the position vector r0


I was thinking of perhaps using L's directional vector and the point P in order to construct some line that goes through P and is perpendicular to L, which would mean I would need to cross the directional vector with something?

Yes. Draw a picture of a line and a point on the line and your point off the line. Doesn't need to be to scale. Call the point on the line P and draw the line's direction vector with its tail at P. Call the point off the line Q. You can calculate the vector PQ. If you drop the perpendicular to the line from Q, you have a right triangle with PQ as its hypotenuse. Just from trig, the distance from Q to the line is d = |PQ|sin(θ) where θ is the angle between the direction vector D and PQ. Suppose you divide D by its length to make a unit vector U.

Now if take the cross product PQ x U and look at its maginitude:

|PQ x U| = |PQ||U|sin(θ) = |PQ|sin(θ) = d.

To summarize: To get the distance from a point to a line take the magnitude of the cross product of a vector from any point on the line to the external point with the unit direction vector.
 

FAQ: Find the distance between a point and a line (given its vector equation)

How do you find the distance between a point and a line using its vector equation?

To find the distance between a point and a line using its vector equation, you can use the formula d = |(p - q) x v| / |v|, where p is the point, q is a point on the line, and v is the direction vector of the line.

Can you explain the components of the distance formula for a point and line?

The numerator of the distance formula represents the cross product of the vector from the point to a point on the line and the direction vector of the line. The magnitude of this cross product is the area of the parallelogram formed by these two vectors. The denominator represents the magnitude of the direction vector, which is used to find the length of the base of the parallelogram. Therefore, the distance formula is essentially finding the height of the parallelogram.

What is the significance of using the cross product in the distance formula?

The cross product is used in the distance formula because it represents the area of the parallelogram formed by the two vectors. This area is equivalent to the distance between the point and the line, which is the height of the parallelogram. Using the cross product allows us to find this distance without having to actually construct the parallelogram and measure its height.

Can the distance between a point and a line be negative?

No, the distance between a point and a line cannot be negative. Distance is always a positive value, representing the length between two points or objects. If the distance between a point and a line is negative, it means that the point is on the opposite side of the line from where we are measuring the distance.

Are there any other methods for finding the distance between a point and a line?

Yes, there are other methods for finding the distance between a point and a line, such as using the formula for the perpendicular distance from a point to a line. This method involves finding the equation of the line perpendicular to the given line that passes through the given point, and then finding the intersection point between the two lines. The distance between the given point and the intersection point is the perpendicular distance, which is equivalent to the distance between the point and the given line.

Back
Top