Faster ways to calculate distance between a point and a line in 3D

  • Thread starter Thread starter Krushnaraj Pandya
  • Start date Start date
  • Tags Tags
    3d Line Point
Click For Summary
SUMMARY

The discussion focuses on efficient methods to calculate the distance between a point and a line in 3D space, specifically using the line equation (x-3)=(y-2)=z and the point (1,2,3). Traditional methods involving vector forms and distance formulas are deemed tedious and error-prone under exam conditions. A more effective approach involves using vector projections, where the vector projection of the line direction vector onto the vector from a point on the line to the given point simplifies the calculation. This method reduces the complexity and potential for mistakes in calculations.

PREREQUISITES
  • Understanding of vector projections in 3D geometry
  • Familiarity with Cartesian coordinates and line equations
  • Knowledge of right triangle properties and the Pythagorean theorem
  • Basic calculus concepts related to distance calculations
NEXT STEPS
  • Study vector projection techniques in 3D geometry
  • Learn how to derive distance formulas for points and lines in three-dimensional space
  • Explore advanced applications of calculus in geometric problems
  • Practice solving distance problems using various methods to enhance accuracy
USEFUL FOR

Students in mathematics or physics, educators teaching geometry, and anyone involved in computational geometry or optimization problems in 3D space.

Krushnaraj Pandya
Gold Member
Messages
697
Reaction score
73

Homework Statement


Suppose a line is given, say (x-3)=(y-2)=z in Cartesian form and we are supposed to find a point on it which is at a distance say, 6 units from a given arbitrary point (1,2,3).

2. Relevant tedious methods
1) write line in vector form then equate modulus of vector between point on line and given point to 6
2)use given equation and distance formula to get the point.

The Attempt at a Solution


Using vector form of line as well using distance formula is very tedious and has high chances of calculation mistakes and its a really off-putting thing especially in exam pressure when you put a lot of time into it and still get a wrong answer, I would be glad if the people on PF could brainstorm a shorter, faster way to arrive at this-perhaps calculus could help in some way. Thank you for your help.
 
Physics news on Phys.org
Krushnaraj Pandya said:
Using vector form of line as well using distance formula is very tedious and has high chances of calculation mistakes and its a really off-putting thing especially in exam pressure when you put a lot of time into it and still get a wrong answer
Any technique you choose will entail a number of calculations, so if you make a mistake on one of them, it will affect your answer.

There is another method that you didn't mention. Let's say that you are given a line L and a point P not on the line, and that ##\vec v## is a vector in the same direction as the line.
Pick any arbitrary point Q on the line.
Find the vector projection of ##\overrightarrow{QP}## in the direction of ##\vec v##. Some textbooks denote this as ##\overrightarrow{Proj_v} \vec{QP}##. This is equal to ##\frac{\vec v \cdot \overrightarrow{QP}}{|\vec v|} \frac{\vec v}{|\vec v|} = \left( \frac {\vec v \cdot \overrightarrow{QP}} {|\vec v|^2} \right)\vec v##.
The vector projection of ##\overrightarrow{QP}## in the direction of ##\vec v## can be thought of as the leg of a right triangle that lies on the line, that extends from the point Q to the point R that is closest to the given point P. The hypotentuse of the right triangle is of length ##|\overrightarrow{QP}|##. The other leg of the right triangle is the vector from R to the given point P.
If you know one leg of a right triangle and the hypotenuse, you can get the other leg (the distance you need to find) in a straightforward fashion.
 
  • Like
Likes Krushnaraj Pandya and SammyS
Mark44 said:
Any technique you choose will entail a number of calculations, so if you make a mistake on one of them, it will affect your answer.

There is another method that you didn't mention. Let's say that you are given a line L and a point P not on the line, and that ##\vec v## is a vector in the same direction as the line.
Pick any arbitrary point Q on the line.
Find the vector projection of ##\overrightarrow{QP}## in the direction of ##\vec v##. Some textbooks denote this as ##\overrightarrow{Proj_v} \vec{QP}##. This is equal to ##\frac{\vec v \cdot \overrightarrow{QP}}{|\vec v|} \frac{\vec v}{|\vec v|} = \left( \frac {\vec v \cdot \overrightarrow{QP}} {|\vec v|^2} \right)\vec v##.
The vector projection of ##\overrightarrow{QP}## in the direction of ##\vec v## can be thought of as the leg of a right triangle that lies on the line, that extends from the point Q to the point R that is closest to the given point P. The hypotentuse of the right triangle is of length ##|\overrightarrow{QP}|##. The other leg of the right triangle is the vector from R to the given point P.
If you know one leg of a right triangle and the hypotenuse, you can get the other leg (the distance you need to find) in a straightforward fashion.
That seems like a much better alternative to the methods I mentioned. Thank you very much.
 

Similar threads

  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 20 ·
Replies
20
Views
3K
  • · Replies 11 ·
Replies
11
Views
4K
Replies
20
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
18
Views
2K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 11 ·
Replies
11
Views
3K
Replies
1
Views
2K
  • · Replies 27 ·
Replies
27
Views
5K