Find the distance from the point P to a line - linear algebra

Oliviacarone
Messages
18
Reaction score
1

Homework Statement


Find the distance from point P (1,7,3) to the line
(x,y,z) = (-2,1,4) + s(1,-3,4),
s is a free variable

Homework Equations


projnQP = ( QP⋅n/(lengthQP)(lengthn) )(n)

The Attempt at a Solution


I'm not quite sure about how to find the normal (n) here, but if I make s=0, I'm guessing it's just (-2,1,4)?
QP would be Q= a point on the line, so I'm not sure which point to use since all I have here is a point, it feels like, and I used this point (-2,1,4) for the normal...
Then if I found QP I would just plug in everything.
 
Physics news on Phys.org
Oliviacarone said:
I'm not quite sure about how to find the normal (n) here, but if I make s=0, I'm guessing it's just (-2,1,4)?
I think the problem is that you are guessing. Try sketching the line and the point. When you understand how parametric representations of lines work, you can start to solve problems with them.
 
Oliviacarone said:

Homework Statement


Find the distance from point P (1,7,3) to the line
(x,y,z) = (-2,1,4) + s(1,-3,4),
s is a free variable

Homework Equations


projnQP = ( QP⋅n/(lengthQP)(lengthn) )(n)

The Attempt at a Solution


I'm not quite sure about how to find the normal (n) here, but if I make s=0, I'm guessing it's just (-2,1,4)?
QP would be Q= a point on the line, so I'm not sure which point to use since all I have here is a point, it feels like, and I used this point (-2,1,4) for the normal...
Then if I found QP I would just plug in everything.

You could use calculus to minimize the squared distance between P and a point Q in the line; that squared-distance is a quadratic form in the variable ##s##.
 
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...
Back
Top