01 / 21

3D Line
Equations

Master vector and parametric forms of lines in three-dimensional space using points and direction vectors.

Calculus 3

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

x z y
\(P_0\)
\(\vec{d}\)
\(P\)
\(\vec{r}_0\)

Why Not Slope-Intercept?

2D Lines
Described by \( y = mx + b \). The single slope \( m \) captures the line's direction because it only tilts in one plane.
3D Lines
A single number cannot capture direction in space. We need three components \( \langle a, b, c \rangle \) to describe how the line tilts through all three axes.

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

1
Identify a point. Find or choose a point \( P_0 = (x_0, y_0, z_0) \) on the line.
2
Find the direction vector. If two points are given, compute \( \vec{d} = P_1 - P_0 \). If a parallel line or vector is given, use its direction.
3
Write the vector form: \( \vec{r}(t) = \vec{r}_0 + t\,\vec{d} \).
4
Expand to parametric form by separating into \( x, y, z \) components.
5
Convert to symmetric form (if needed) by solving each for \( t \) and setting equal.

Example 1: Two Points

Find the parametric equations for the line through \( A = (1, 2, 3) \) and \( B = (4, 0, -1) \).

1
Choose a point: \( P_0 = (1, 2, 3) \).
2
Direction vector: \( \vec{d} = B - A = \langle 3, -2, -4 \rangle \).
3
Parametric equations: \( x = 1 + 3t, \quad y = 2 - 2t, \quad z = 3 - 4t \).

Example 1: Visualized

x z y
\(A(1,2,3)\)
\(B(4,0,-1)\)
\(\vec{d} = \langle 3,-2,-4 \rangle\)
\(t=0\)
\(t=1\)

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 \).

1
Vector: \( \vec{r}(t) = \langle 2, -1, 5 \rangle + t\langle 1, 4, -2 \rangle \)
2
Parametric: \( x = 2 + t, \quad y = -1 + 4t, \quad z = 5 - 2t \)
3
Symmetric: \(\displaystyle \frac{x - 2}{1} = \frac{y + 1}{4} = \frac{z - 5}{-2}\)

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.

Same line
\( \vec{d}_1 = k\,\vec{d}_2 \) for some \( k \neq 0 \). The parametric equations differ only in how fast \( t \) traverses.
Different line
If \( \vec{d}_1 \neq k\,\vec{d}_2 \) for any \( k \), the directions are different: not the same line (they may intersect, be skew, or be parallel).

Common Mistakes

✕ Wrong subtraction order
Computing \( \vec{d} = P_0 - P_1 \) instead of \( P_1 - P_0 \). This reverses the direction but still gives a valid line. However, mixing up which point you use as \( P_0 \) can give wrong coordinates.
✕ Mismatched point and direction
Using the direction numbers \( \langle a,b,c \rangle \) with a point that is not on the line. Always pair \( (x_0,y_0,z_0) \) with a direction from that same point.
✕ Dividing by zero in symmetric form
Writing \(\frac{y - y_0}{0}\) when \( b = 0 \). Instead, write the constraint \( y = y_0 \) separately alongside the other fractions.

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?