Linear Algebra: Distance between a point and a line

Click For Summary

Homework Help Overview

The problem involves finding the distance from a point Q to a line defined by two points P and R in a three-dimensional space, utilizing concepts from linear algebra.

Discussion Character

  • Exploratory, Mathematical reasoning, Assumption checking

Approaches and Questions Raised

  • Participants discuss the formulation of the line equation and the application of the distance formula. There are suggestions to use dot products to find the shortest distance vector and to minimize the distance function. Some participants express uncertainty about the applicability of certain methods, such as the dot product in this context.

Discussion Status

The discussion is active, with various methods being proposed to approach the problem. Participants are exploring different mathematical strategies, including minimizing the square of the distance and using dot products, while also clarifying the roles of the points involved.

Contextual Notes

Participants note specific coordinates for points P, Q, and R, which may influence the methods discussed. There is an acknowledgment of the need to minimize the distance function, but the exact setup and parameters remain under exploration.

dcramps
Messages
43
Reaction score
0

Homework Statement


Find the distance from the point Q to the line passing through the points P and R.

Homework Equations


r=r0+tv
D=|ax0 + by0 + cz0 + d| / sqrt(a2 + b2 + c2)

The Attempt at a Solution


To find the line:
(x,y,z) = (2,3,1) + t(3-2,1-3,1-1)
(x,y,z) = (2,3,1) + t(1,-2,0)
(x,y,z) = (2,3,1) + (t,-2t,0)
(x,y,z) = (t+2,3-2t,1)

My problem is I don't know how to format that answer so it fits in with my distance formula.
 
Physics news on Phys.org
the (unique) shortest distance vector between a point and a line will always be perpindicular to the line, so try writing a dot product that describes above
 
Er, I forgot to mention that P = (2,3,1) Q = (3,5,3) R = (3,1,1)

With that in mind, I don't think a dot product would work.
 
let T be the point on the line closest to Q

Then try setting up the dot product QT dot PR, then solving for T

Otherwise an even quicker way to do it would be to minimise the distance function
 
Last edited:
Let me see if I understand your method... I am doing a dot product of QT and PR to get a vector T, the normal to the line, which I can use with a length formula to get what I need to know? What about the t parameter in PR?
 
Actually an even quicker way is to note, minimizing the distance is the same as minimizing the square of the distance, so write down th square of the distance between Q and any point on the line, then minimize wrt t
 
this would be (in this case) mine solution too

lanedance said:
Actually an even quicker way is to note, minimizing the distance is the same as minimizing the square of the distance, so write down th square of the distance between Q and any point on the line, then minimize wrt t
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 3 ·
Replies
3
Views
1K
Replies
4
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
2
Views
1K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 24 ·
Replies
24
Views
4K