Showing 3 Points Belong to a Straight Line in 3D

  • Context: Undergrad 
  • Thread starter Thread starter sutupidmath
  • Start date Start date
  • Tags Tags
    Line Points
Click For Summary

Discussion Overview

The discussion revolves around methods to determine whether three points in 3D space lie on a straight line. Participants explore various approaches, including vector algebra and geometric reasoning, while sharing their thoughts on the effectiveness of different methods.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant suggests deriving the equation of a line connecting two points and testing if the third point satisfies the equations, expressing uncertainty about the general validity of their method based on slope comparisons.
  • Another participant proposes a simpler approach of picking two points, finding the line equation, and checking if the third point fits, questioning the necessity of vector algebra.
  • A different participant provides a parametric representation of the line through two points and suggests solving for a single parameter to check if the third point lies on the line.
  • Another method mentioned involves checking if the cross product of the vectors formed by the points is the zero vector, indicating collinearity.
  • One participant agrees that the simpler method proposed earlier is the most straightforward approach.

Areas of Agreement / Disagreement

Participants express differing views on the best method to determine collinearity in 3D, with no consensus reached on a single preferred approach.

Contextual Notes

Some methods rely on specific algebraic manipulations or geometric interpretations that may not be universally applicable without additional assumptions or clarifications.

sutupidmath
Messages
1,629
Reaction score
4
I encountered a problem where it asked us to show whether 3 points belong to a straight line in 3D. I have worked such problems in 2D before, but never in 3D, so i tried to carry out the same idea here as well. I understand that to do such a thing as a way one could start by first deriving the eq. of such a line that connects two points,(using some vector algebra i would think), and then test whether the coordinates of the third point satisfy the equations, however i am interested to know whether the following method would work as well. In fact it worked for 2 or 3 cases that i tested, but i don't know how would i show that it is valid in general.


I started by assuming that since we are working in 3D, we are going to have slopes with respect to the x-axis and y-axis as well. Say we have three points in space:

P_1(x_1,y_1,z_1),P_2(x_2,y_2,z_2),P_3(x_3,y_3,z_3)

Now the slopes with respect to x-axis and y-axis respectively would be:

(i) for the segment(line)

\bar{P_1P_2}

\frac{z_2-z_1}{x_2-x_1}, \frac{z_2-z_1}{y_2-y_1}

(ii) for \bar {P_1P_3}


\frac{z_3-z_1}{x_3-x_1},\frac{z_3-z_1}{y_3-y_1}


(iii) for \bar {P_2P_3}


\frac{z_3-z_2}{x_3-x_2},\frac{z_3-z_2}{y_3-y_2}


Now, in order for these points to lie on a straight line, their slopes w.r.t x and y have to be equal.

Also, after we set them equal, i managed with some elementary algebraic manipulations to come with a single relation, which worked for those same cases i tested:


\frac{z_2-z_1}{z_3-z_1}=\frac{y_2-y_1}{y_3-y_1}=\frac{x_2-x_1}{x_3-x_1}


THis last expression, indeed, turned out to be not the only one, with some slightly different manipulatoins i could come up with simmilar relations which seemed to work as well.


So any feedback?

THnx in advance.
 
Mathematics news on Phys.org
try this:
pick any two points
find the equation
see if the third point fits.

i think that is easier than what you did.
vector algebra is not needed.
just take two points, (x_1,y_1,z_1),(x_2,y_2,z_2).
not really sure how this is supposed to work in 3D, but i would find 2 different slopes, one in the xy plane, and one in the yz plane, and just work it out that way.
 
The line through the points (x_1, y_1, z_1) and (x_2, y_2, z_2) is given by
x= x_1+ (x_2-x_1)t
y= y_1+ (y_2-y_1)t
z= z_1+ (z_2-z_1)t

If t= 0, that gives (x_1, y_1, z_1) and when t= 1, (x_2, y_2, z_2). Since a line is determined by two points that is all you need.

Now, to determine whether (x_3, y_3, z_3) is on that line, try to solve:
x_3= x_1+ (x_2-x_1)t
y_3= y_1+ (y_2-y_1)t
z_3= z_1+ (z_2-z_1)t
See if that can be solved for a single value of t. Solve, say, the first equation for t and the see if it also satisfies the other two equations. If so the point is on the line, if not, the point is not on the line.
 
Perhaps another possibility is to check if the cross product of the vectors P1P2 and P1P3 is the zero vector. But Halls' method looks neater.
 
Actually, Dodo, I think your suggest is simplest.
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 2 ·
Replies
2
Views
584
Replies
1
Views
4K
  • · Replies 2 ·
Replies
2
Views
16K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 16 ·
Replies
16
Views
2K
  • · Replies 7 ·
Replies
7
Views
3K
Replies
26
Views
5K
  • · Replies 4 ·
Replies
4
Views
2K