Determine the point on the Line r = p+tv closest to the origin

  • Thread starter Thread starter jay_jay_lp
  • Start date Start date
  • Tags Tags
    Line Origin Point
jay_jay_lp
Messages
9
Reaction score
0
Find an expression for the distance between the origin and the line L given by r = p + tv, where t is an element of R and determine the point on L closest to the origin

So the first part of the question i took as just the magnitude of p since the distance will just be |OP|=|P|=(Xo^2+Yo^2+Zo^2)^1/2.

However finding the point on L closest to the origin I'm finding very confusing, I've tried many things such as minimizing |P|=(Xo^2+Yo^2+Zo^2)^1/2 which was too hard for me.

Also the dot product of PR & R = 0, where P is a point on the Line and R is the point on the line closest to the origin. Which gave ax+by+cz=0, where a,b,c are components of the direction vector and x,y,z are the point closest to the origin. This is a solution but it's not unique so that can't be right.

Just a few things I've tried...

Anyway,

Please help!

Thanks

Jay
 
Physics news on Phys.org
Do you see that the shortest distance between the line and the origin will be given by the normal of the line through the origin?

So you just need to find a normal vector of the line. Then you take the line through the origin and this normal vector and you see where it intersects this line...
 
Thanks for replying,

Yea the shortest distance will be a normal to the line that passes through the origin, so will that will be a normal to the direction vector of the line,r, that also passes through the origin. But how do I find this?

Thanks

Jay
 
So you need to find a vector n that is normal to v. That is, you must find n such that

n\cdot v =0

where \cdot denotes the inproduct. Can you find such an n?
 
This will give
ax+by+cz=0, where x,y,z are components of the normal vector and a,b,c components of the direction vector of the line.

but this is not unique?
 
jay_jay_lp said:
This will give
ax+by+cz=0, where x,y,z are components of the normal vector and a,b,c components of the direction vector of the line.

but this is not unique?

No, this is not unique. You will have an entire plane of normal vectors! This plane is uniquely described by ax+by+cz=0. Now, what is the intersection of this plane and the original line?
 
Would this be ax+by+cz=p+tv?
Can I break this into components?
ax=x+at
by=y+bt
cz=z+ct

Is it okay to assume that point P is the point we are interested in?
 
jay_jay_lp said:
Would this be ax+by+cz=p+tv?

I know what you mean and it is right. But you can't do what you do here. p+tv is a vectorial equation, that is: p and v are vectors. But ax+by+cz are not vectors. So you can't just set them equal.

What you do have is that you're vectorial equation p+tv defines a system

\left\{\begin{array}{c} x=x_0+ta\\ y=y_0+tb\\ z=z_0+tc\end{array}\right.

Now plug in these x, y, z into ax+by+cz=0 and solve for t.
 
Thanks for helping so much!

so
a(Xo+ta)+b(Yo+tb)+c(Zo+tc)=0
t(a^2+b^2+c^2)+aXo+bYo+cZo=0
t=-(aXo+bYo+cZo)/(a^2+b^2+c^2)
t=-(v.p)/(a^2+b^2+c^2) - don't know if this is necessary?

So are the points Xo,Yo,Zo now the points we are interested in?

Thanks!

Jay
 
  • #10
jay_jay_lp said:
Thanks for helping so much!

so
a(Xo+ta)+b(Yo+tb)+c(Zo+tc)=0
t(a^2+b^2+c^2)+aXo+bYo+cZo=0
t=-(aXo+bYo+cZo)/(a^2+b^2+c^2)
t=-(v.p)/(a^2+b^2+c^2) - don't know if this is necessary?

So are the points Xo,Yo,Zo now the points we are interested in?

Thanks!

Jay

You're not there yet. You have found t. Now you got to plug that into the equation of your line to find the intersection. This will be your answer.
 
  • #11
So this is going to be very general but:

r = p+tv
(x,y,z) = (Xo,Yo,Zo)-(aXo+bYo+cZo)/(a^2+b^2+c^2)(a,b,c)

so
x=Xo-(aXo+bYo+cZo)/(a^2+b^2+c^2)a
y=Yo-(aXo+bYo+cZo)/(a^2+b^2+c^2)b
z=Zo-(aXo+bYo+cZo)/(a^2+b^2+c^2)c

Now is that it? hah

Thanks again.
 
  • #12
That seems to be it, yes :smile:

A little shorter (but equivalent) expression is

p+\frac{v\cdot p}{\|v\|^2}v
 
  • #13
Oh wow that's much more simplified. Thanks so much! :)
 
Back
Top