Calculating Distance from Point to Line: A Scientific Approach

  • Thread starter Thread starter UrbanXrisis
  • Start date Start date
  • Tags Tags
    Line Point
AI Thread Summary
To calculate the distance from the point (3, 5, 1) to the line defined by x=0, y=5+4t, z=1+4t, the approach involves using vectors and orthogonality. The line is shifted to pass through the origin, and the projection of the shifted point onto the shifted line is determined. The distance is then derived from the difference between the original point and its projection on the line. The distance function is expressed as D=√((x-3)² + (y-6)² + (z-1)²) and minimized to find the shortest distance. The discussion emphasizes the importance of understanding projections and derivatives in this context.
UrbanXrisis
Messages
1,192
Reaction score
1
Find the distance from the point (3, 5, 1) to the line x=0,y=5+4t,z=1+4t

I know that there is a distance formula for a point and a plane but how do I find the distance from a point to a line?
 
Physics news on Phys.org
Well, you could do this with vectors and orthogonality. First shift everything so that the line passes through the origin, then find the projection of the shifted point onto the shifted line, and the distance between that projection and the shifted point is the distance between the original point and line.
 
I don't happen to have the formula memorized (but I know it is in my Calculus book) so let's work it out:
Let (x,y,z) be the point on the line closest to (3, 5, 1). A vector pointing from (3, 5, 1) to (x, y, z) is (x-3)i+ (y-5)j+ (z-1)k. Of course, the line from (3, 5, 1) to (x, y, z) must be perpendicular to the given line. (If not, construct a right triangle have that line as hypotenuse and the given line as "opposite" side. Since the hypotenuse of a right triangle is the longest side in any right triangle, it can't be the shortest distance.)
A vector in the direction of the given line is, of course, 4j+ 4k and that must be perpendicular to (x-3)i+ (y-5)j+ (z-1)k:
(4j+ 4k).((x-3)i+ (y-5)j+ (z-1)k)= 4(y-5)+ 4(z- 1)= 0 so 4y- 20+ 4z- 4= 0 and 4y+ 4z= 24 or y+ z= 6. We now can write the point (x,y,z) as (0, y, 6-y) (x= 0 for any point on the line and clearly z= 6- y).

The distance function is
D= \sqrt{(x-3)^2+ (y- 6)^2+ (z-1)^2}= \sqrt{9+ (y-6)^2+ (5-y)^2}
Minimize that, or better,
D^2= 9+ (y-6)^2+ (5-y)^2= 9+ y^2- 12y+ 36+ 25-10y+ y^2= 3y^2-22y+ 70
 
Urban, do you know about projections? Do you know about derivatives?
 
I picked up this problem from the Schaum's series book titled "College Mathematics" by Ayres/Schmidt. It is a solved problem in the book. But what surprised me was that the solution to this problem was given in one line without any explanation. I could, therefore, not understand how the given one-line solution was reached. The one-line solution in the book says: The equation is ##x \cos{\omega} +y \sin{\omega} - 5 = 0##, ##\omega## being the parameter. From my side, the only thing I could...
Back
Top