Linear Algebra: Distance between a point and a line

Click For Summary
SUMMARY

The discussion focuses on calculating the distance from point Q(3,5,3) to the line defined by points P(2,3,1) and R(3,1,1) using linear algebra concepts. The equation for the line is derived as (x,y,z) = (t+2, 3-2t, 1). Participants suggest using the distance formula D=|ax0 + by0 + cz0 + d| / sqrt(a² + b² + c²) and minimizing the square of the distance function to find the shortest distance. The method involves utilizing the dot product of vectors QT and PR to determine the perpendicular distance from the point to the line.

PREREQUISITES
  • Understanding of vector equations in 3D space
  • Familiarity with the distance formula in linear algebra
  • Knowledge of dot products and their geometric interpretations
  • Ability to minimize functions with respect to a variable
NEXT STEPS
  • Study vector equations and parametric representations of lines in 3D
  • Learn how to apply the distance formula in three-dimensional space
  • Explore the concept of minimizing functions and its applications in optimization
  • Investigate the geometric interpretation of dot products in vector analysis
USEFUL FOR

Students studying linear algebra, mathematicians working on geometric problems, and anyone interested in optimizing distances in three-dimensional space.

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 10 ·
Replies
10
Views
2K
  • · Replies 2 ·
Replies
2
Views
1K
  • · 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