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

  • Thread starter Thread starter Nickg140143
  • Start date Start date
  • Tags Tags
    Line Point Vector
Nickg140143
Messages
30
Reaction score
0

Homework Statement


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


Homework Equations


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

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
Nickg140143 said:

Homework Statement


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


Homework Equations


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

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.
 
Nickg140143 said:

Homework Statement


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


Homework Equations


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

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.
 
There are two things I don't understand about this problem. First, when finding the nth root of a number, there should in theory be n solutions. However, the formula produces n+1 roots. Here is how. The first root is simply ##\left(r\right)^{\left(\frac{1}{n}\right)}##. Then you multiply this first root by n additional expressions given by the formula, as you go through k=0,1,...n-1. So you end up with n+1 roots, which cannot be correct. Let me illustrate what I mean. For this...
Prove $$\int\limits_0^{\sqrt2/4}\frac{1}{\sqrt{x-x^2}}\arcsin\sqrt{\frac{(x-1)\left(x-1+x\sqrt{9-16x}\right)}{1-2x}} \, \mathrm dx = \frac{\pi^2}{8}.$$ Let $$I = \int\limits_0^{\sqrt 2 / 4}\frac{1}{\sqrt{x-x^2}}\arcsin\sqrt{\frac{(x-1)\left(x-1+x\sqrt{9-16x}\right)}{1-2x}} \, \mathrm dx. \tag{1}$$ The representation integral of ##\arcsin## is $$\arcsin u = \int\limits_{0}^{1} \frac{\mathrm dt}{\sqrt{1-t^2}}, \qquad 0 \leqslant u \leqslant 1.$$ Plugging identity above into ##(1)## with ##u...
Back
Top