How do you find the slope of a line in 3D coordinate system given two points?

In summary, given two points in 3D, there is no simple way to find the slope of that line without first understanding the concept of direction and angles.
  • #1
Lizwi
40
0
Given two points in 3D, is there a way to find the slope of that line.
 
Physics news on Phys.org
  • #2
Lizwi said:
Given two points in 3D, is there a way to find the slope of that line.

Hey Lizwi.

Your question is incomplete because the slope is usually with respect to some direction.

What you can do is find the direction of the line (take two points on the line with a difference of unit parameter: i.e. take t = 1 and t = 0 and form a vector from those two points), and then project this vector onto some direction vector with length 1.

Alternatively you can simply take your vector calculated with t = 0 and t = 1 and find the length of this vector: this is equivalent to the concept of the total differential that is used in multivariable calculus.

In other geometries, you need to consider the basis, determinant and the stuff in tensor theory but for this example for a normal cartesian geometry, you take the difference of t = 1 and t = 0 and use the fact that the rate of change is constant across the line to give you this 'tangent' vector.
 
  • #3
Lizwi said:
Given two points in 3D, is there a way to find the slope of that line.

Adding to chiro's post:

A "slope" is always connected to some ANGLE.

And, in order to talk about angles, you need TWO lines.

Thus, you cannot talk about "slope", either, without having some reference line in addition to the line specified by the two points.

Agreed?
 
  • #4
Consider a unit vector in the direction of a given line. In two dimensions, it is [itex]<cos(\theta), sin(\theta)>[/itex] where [itex]\theta[/itex] is the angle the line makes with the x-axis. (And the slope is [itex]tan(\theta)[/itex].)

A unit vector in three dimensions is given by [itex]<cos(\alpha), cos(\beta), cos(\gamma)>[/itex] (the "direction cosines" of the direction) where [itex]\alpha[/itex] is the angle the line makes with the x axis, [itex]\beta[/itex] is the angle the line makes with the y axis, and [itex]\gamma[/itex] is the angle the line makes with the z axis. Because this is a unit vector, these must satisfy [itex]cos^2(\alpha)+ cos^2(\beta)+ cos^2(\gamma)= 1[/itex] but this still depends upon two angles so we cannot give a single number, slope or other, that determines the direction of the line.

(Note that in two dimensions we can take [itex]\gamma= 0[/itex] so [itex]cos^2(\alpha)+ cos^2(\beta)= 1[/itex] which means that [itex]cos(\beta)= sin(\alpha)[/itex].)
 

FAQ: How do you find the slope of a line in 3D coordinate system given two points?

What is a 3D coordinate system?

A 3D coordinate system is a mathematical concept used to describe the position of a point in three-dimensional space. It consists of three axes, usually labeled as x, y, and z, that intersect at a point called the origin.

What are the three axes in a 3D coordinate system?

The three axes in a 3D coordinate system are the x-axis, y-axis, and z-axis. The x-axis is the horizontal axis, the y-axis is the vertical axis, and the z-axis is the depth axis.

How is a point represented in a 3D coordinate system?

A point in a 3D coordinate system is represented by its coordinates on each axis. For example, a point with coordinates (2,3,4) would be located 2 units along the x-axis, 3 units along the y-axis, and 4 units along the z-axis from the origin.

What is the purpose of a 3D coordinate system?

The purpose of a 3D coordinate system is to provide a way to describe the location of objects or points in three-dimensional space. This is useful in fields such as mathematics, physics, and computer graphics.

How is a 3D coordinate system used in computer graphics?

In computer graphics, a 3D coordinate system is used to create and render three-dimensional objects on a two-dimensional screen. By using the x, y, and z coordinates of each point, a computer can accurately display the position of an object in a 3D space.

Similar threads

Back
Top