3D Line
Equations
Master vector and parametric forms of lines in three-dimensional space using points and direction vectors.
What Is a Line in 3D?
In two dimensions, you describe a line with slope and intercept. In three dimensions, slope no longer works: a line can tilt in infinitely many directions. Instead, we specify a line by giving a known point on it and a direction vector that tells us which way it goes.
A Point and a Direction
Why Not Slope-Intercept?
The Vector Equation
If \( \vec{r}_0 = \langle x_0,\, y_0,\, z_0 \rangle \) is the position vector of a point on the line and \( \vec{d} = \langle a,\, b,\, c \rangle \) is its direction vector, then:
Here \( t \in \mathbb{R} \) is the parameter: each value of \( t \) gives a different point on the line. As \( t \) sweeps from \( -\infty \) to \( +\infty \), the point traces out the entire line.
Parametric Equations
By reading off each component of the vector equation, we get three scalar parametric equations:
These are the parametric equations of the line. Each coordinate is a linear function of the same parameter \( t \).
Symmetric Equations
If none of \( a, b, c \) is zero, we can solve each parametric equation for \( t \) and set them equal:
This form eliminates the parameter \( t \). It expresses the line as two equalities among ratios. If one direction number is zero (say \( b = 0 \)), replace that fraction with the equation \( y = y_0 \).
Three Forms Compared
| Form | Expression | Key Feature |
|---|---|---|
| Vector | \( \vec{r} = \vec{r}_0 + t\,\vec{d} \) | Single compact vector equation |
| Parametric | \( x = x_0 + at,\; y = \ldots \) | Separate scalar equations; easy to plot |
| Symmetric | \( \tfrac{x - x_0}{a} = \tfrac{y - y_0}{b} = \ldots \) | No parameter; useful for finding intersections |
How to Write Line Equations
Example 1: Two Points
Find the parametric equations for the line through \( A = (1, 2, 3) \) and \( B = (4, 0, -1) \).
Example 1: Visualized
Example 2: Parallel to a Vector
Find all three forms for the line through \( (2, -1, 5) \) parallel to \( \vec{v} = \langle 1, 4, -2 \rangle \).
Example 3: A Zero Direction Component
Write the symmetric equations for the line through \( (3, 1, -2) \) with direction \( \vec{d} = \langle 4, 0, 6 \rangle \).
Since \( b = 0 \), the \( y \)-coordinate is constant. We cannot divide by zero, so we write:
The line lies entirely in the plane \( y = 1 \).
Direction Vectors Are Not Unique
Any nonzero scalar multiple of a direction vector gives the same line. The vectors \( \langle 2, -4, 6 \rangle \) and \( \langle 1, -2, 3 \rangle \) are parallel and describe the same direction.
Common Mistakes
Summary of Key Ideas
| Concept | Formula / Rule |
|---|---|
| Vector form | \( \vec{r} = \vec{r}_0 + t\,\vec{d} \) |
| Parametric form | \( x = x_0 + at,\; y = y_0 + bt,\; z = z_0 + ct \) |
| Symmetric form | \( \tfrac{x-x_0}{a} = \tfrac{y-y_0}{b} = \tfrac{z-z_0}{c} \) |
| Direction from two points | \( \vec{d} = P_1 - P_0 \) |
| Parallel lines test | \( \vec{d}_1 = k\,\vec{d}_2 \) for some \( k \neq 0 \) |
| Zero component | Replace fraction with \( x_i = x_{i,0} \) |
Question 1 of 5
What is the direction vector for the line through \( (1, 3, -2) \) and \( (5, 1, 6) \)?
Question 2 of 5
Which parametric equations describe the line through \( (0, -1, 4) \) with direction \( \langle 3, 2, -5 \rangle \)?
Question 3 of 5
The symmetric equations of a line are \(\displaystyle \frac{x-2}{3} = \frac{y+1}{-4} = \frac{z}{2}\). What is the direction vector?
Question 4 of 5
A line has parametric equations \( x = 1 + 2t \), \( y = 3 \), \( z = -1 + t \). Which symmetric form is correct?
Question 5 of 5
Are the lines \( \vec{r}_1 = \langle 1,0,2 \rangle + t\langle 2,4,-2 \rangle \) and \( \vec{r}_2 = \langle 3,4,0 \rangle + s\langle -1,-2,1 \rangle \) parallel?