An equation of a line joining two points, A and B, in three-dimensional space defines the unique straight path that passes through both of those points. Unlike a 2D line defined by a slope, a 3D line is determined by a starting point (e.g., point A) and a direction vector. This direction vector is found by calculating the vector from point A to point B.
| Symbol | Description |
|---|---|
| \[ \vec{r} \] | Position vector representing any point (x, y, z) on the line. |
| \[ \vec{a} \] | Position vector of the first known point on the line, A(x₁, y₁, z₁). |
| \[ \vec{b} \] | Position vector of the second known point on the line, B(x₂, y₂, z₂). |
| \[ \vec{B} - \vec{A} \] | The direction vector of the line, found by subtracting the position vectors of the two points. |
| \[ t \] | A scalar parameter that varies to generate all points along the line. |
| \[ (x_1, y_1, z_1) \] | Coordinates of the first point, A. |
| \[ (x_2, y_2, z_2) \] | Coordinates of the second point, B. |
| \[ (l, m, n) \] | Direction ratios, which are the components of the direction vector (e.g., l = x₂ - x₁, m = y₂ - y₁, n = z₂ - z₁). |
A 3D Cartesian coordinate system with x, y, and z axes. Two distinct points are shown: A with coordinates (x₁, y₁, z₁) and B with coordinates (x₂, y₂, z₂). A straight line passes through both A and B, extending infinitely. The vector originating at A and terminating at B, denoted as AB, serves as the direction vector for the line.
Uniqueness: Exactly one straight line can pass through any two distinct points in 3D space.
Direction: The direction of the line is explicitly defined by the vector connecting the two points, \[ \vec{d} = \vec{B} - \vec{A} \]. The line extends infinitely in both this direction and its opposite.
Parametric Nature: Any point on the line can be reached by starting at point A and moving a certain amount (determined by the parameter t) along the direction vector \[ \vec{AB} \]. Different values of t correspond to different points on the line (t=0 gives point A, t=1 gives point B).
Collinearity: Any third point C lies on the line defined by A and B if and only if the vector \[ \vec{AC} \] is a scalar multiple of the vector \[ \vec{AB} \].
To derive the vector equation of a line passing through two points A and B, we use the principles of vector addition and scalar multiplication.
Let P be any arbitrary point on the line passing through A and B, with position vector \[ \vec{r} \].
The vector from A to B defines the direction of the line. This direction vector is:
Since point P lies on the same line, the vector from A to P must be parallel to the vector from A to B. This means that \[ \vec{AP} \] is a scalar multiple of \[ \vec{AB} \].
We can express \[ \vec{AP} \] in terms of the position vectors \[ \vec{r} \] and \[ \vec{a} \]:
Substituting this into the parallelism condition:
Finally, solving for \[ \vec{r} \] gives the standard vector equation of the line:
Aircraft flight paths, missile trajectories, and satellite orbits use 3D line equations to calculate optimal routes between two points and ensure collision avoidance in three-dimensional space.
Ray tracing algorithms cast lines from a viewpoint to objects to render realistic lighting and shadows. Collision detection systems model projectiles or lines-of-sight as lines between two points to determine intersections.
The placement of structural elements like beams, columns, and tension cables is defined by the line connecting their two endpoints. This is crucial for creating accurate blueprints and performing structural analysis.
The trajectory of a particle moving with constant velocity is a straight line between its initial and final positions. Robot arm movements are often planned as a series of linear segments connecting key waypoints.
Architecture and Construction. The center line of a steel beam in a building frame is defined by the coordinates of its two ends. Architects and engineers use this line equation to ensure it connects correctly with other structural elements and to calculate stresses and loads.
Robotics. A pick-and-place robot arm is programmed to move a component from a starting bin to a final assembly point. The most efficient initial path is a straight line, and its equation is calculated from the 3D coordinates of the start and end points to guide the motors.
Telecommunications. A microwave signal is transmitted in a straight line between a tower on a hill and a receiving dish on a building. The line-of-sight path is determined by the GPS coordinates of the two antennas, and this equation is used to check for obstructions like other buildings or terrain.
A line passing through two points can be represented in several equivalent forms, each useful for different purposes.
| Form | Equation | Description |
|---|---|---|
| Vector Form | \[ \vec{r} = \vec{a} + t(\vec{b} - \vec{a}) \] | Compactly expresses the line using a starting point and a direction vector. Ideal for theoretical and computational work. |
| Parametric Form | \[ x = x_1 + t(x_2-x_1) \] \[ y = y_1 + t(y_2-y_1) \] \[ z = z_1 + t(z_2-z_1) \] | Expresses each coordinate (x, y, z) as a separate function of the parameter 't'. Useful for plotting points and analyzing motion over time. |
| Symmetric (Cartesian) Form | \[ \frac{x-x_1}{x_2-x_1} = \frac{y-y_1}{y_2-y_1} = \frac{z-z_1}{z_2-z_1} \] | Eliminates the parameter 't', relating the x, y, and z coordinates directly. Defines the line as the intersection of planes. |
Forgetting to Subtract Vectors for Direction: A frequent error is using one of the points (e.g., \(\vec{b}\)) as the direction vector instead of the difference (\(\vec{b} - \vec{a}\)). Always remember the direction is the path *from* one point *to* the other.
Incorrect Order of Subtraction: When writing the symmetric form, ensure the point coordinates (x₁, y₁, z₁) are consistent with the point \(\vec{a}\) used in the vector form. Mismatching the point and the numerator (e.g., using \(\vec{b}\)'s coordinates in the numerator with a direction vector based on \(\vec{a}\)) will define a different, parallel line.
Division by Zero in Symmetric Form: If any component of the direction vector is zero (e.g., x₂ - x₁ = 0), the symmetric form is not written with a zero in the denominator. If x₂ - x₁ = 0, it means x is constant, so you write that part as a separate equation: \( x = x_1 \), and the rest as a standard ratio, e.g., \( \frac{y-y_1}{y_2-y_1} = \frac{z-z_1}{z_2-z_1} \).