01 / 21

3D Line
Equations

Master the parametric and vector forms of lines in three-dimensional space: from a point and a direction to a complete equation.

Multivariable Calculus

Why Study Lines in Three Dimensions?

In 2D, you can describe any line with \( y = mx + b \). But in 3D there is no single equation that captures a line: you need a system. Lines in \(\mathbb{R}^3\) are the building blocks of tangent lines to space curves, intersection edges of planes, and trajectories of particles.

A Point and a Direction

x z y \(P_0(x_0, y_0, z_0)\) \(\mathbf{d} = \langle a, b, c \rangle\) t < 0 t > 0

Pick any point \( P_0 = (x_0, y_0, z_0) \) on the line. Then every other point is reached by traveling along the direction vector \( \mathbf{d} = \langle a, b, c \rangle \) by some scalar amount \( t \).

The Vector Form

The parameter \( t \in (-\infty, \infty) \) sweeps out every point on the line. When \( t = 0 \), you are at \( P_0 \). Positive \( t \) moves in the direction of \( \mathbf{d} \); negative \( t \) goes the opposite way.

The Parametric Equations

These are simply the component-by-component expansion of the vector form. Each coordinate is a linear function of the same parameter \( t \). The coefficients \( a, b, c \) are the components of the direction vector.

The Symmetric Equations

If you solve each parametric equation for \( t \) and set them equal, you get the symmetric form:

This is really two equations (the left pair and the right pair), each defining a plane. The line is their intersection. Note: if any direction component is zero (say \( a = 0 \)), you replace that fraction with the statement \( x = x_0 \).

Comparing the Three Forms

Vector Parametric Symmetric
Form \(\mathbf{r} = \mathbf{r}_0 + t\mathbf{d}\) \(x = x_0 + at\), etc. \(\frac{x-x_0}{a} = \cdots\)
Uses parameter \( t \)? Yes Yes No
Compact? Most Moderate Moderate
Works if \(a=0\)? Yes Yes Special case
Best for Theory / proofs Computation Geometric insight

Finding Direction from Two Points

If you are given two points \( P_1 = (x_1, y_1, z_1) \) and \( P_2 = (x_2, y_2, z_2) \) on the line, the direction vector is simply:

Then use either point as \( P_0 \) in any of the three forms. The direction vector is not unique: any nonzero scalar multiple \( k\mathbf{d} \) gives the same line.

Step-by-Step Approach

1
Identify what you are given: two points, or a point and a direction vector, or a point and a parallel line.
2
Compute the direction vector \( \mathbf{d} = \langle a, b, c \rangle \). If given two points, subtract coordinates.
3
Choose a base point \( P_0 = (x_0, y_0, z_0) \): any known point on the line.
4
Write the desired form: plug into vector, parametric, or symmetric equations.
5
Check: verify that both given points (if applicable) satisfy \( t \)-values that are consistent across all three parametric equations.

Example 1: Line Through Two Points

Find parametric equations for the line through \( P_1 = (2, -1, 3) \) and \( P_2 = (5, 1, -1) \).

1
Direction vector: \( \mathbf{d} = \langle 5-2,\; 1-(-1),\; -1-3 \rangle = \langle 3, 2, -4 \rangle \)
2
Base point: Use \( P_1 = (2, -1, 3) \).
3
Parametric equations: \( x = 2 + 3t \), \( y = -1 + 2t \), \( z = 3 - 4t \).

Example 1: Visual

x z y \(P_1(2, -1, 3)\) \(P_2(5, 1, -1)\) t = 0 t = 1 \(\mathbf{d} = \langle 3, 2, -4 \rangle\)

Example 2: Symmetric Equations

Write symmetric equations for the line through \( (1, 0, -2) \) with direction \( \mathbf{d} = \langle 4, -3, 6 \rangle \).

1
Parametric first: \( x = 1 + 4t \), \( y = 0 - 3t \), \( z = -2 + 6t \).
2
Solve each for \( t \): \( t = \frac{x-1}{4} = \frac{y}{-3} = \frac{z+2}{6} \).

Example 3: When a Component Is Zero

Find all three forms for the line through \( (3, 5, -1) \) with direction \( \mathbf{d} = \langle 2, 0, -7 \rangle \).

Vector
\( \mathbf{r}(t) = \langle 3, 5, -1 \rangle + t\langle 2, 0, -7 \rangle \)
Parametric
\( x = 3+2t \), \( y = 5 \), \( z = -1-7t \)
Symmetric
\( \displaystyle \frac{x-3}{2} = \frac{z+1}{-7} \), \( y = 5 \)

Parallel vs. Identical Lines

\(L_1\) \(L_2\) \(\mathbf{d}_1\) \(\mathbf{d}_2 = k\mathbf{d}_1\)

Two lines are parallel if their direction vectors are scalar multiples: \( \mathbf{d}_2 = k\,\mathbf{d}_1 \) for some \( k \neq 0 \). They are identical if, in addition, a point from one line satisfies the equations of the other.

Skew Lines in 3D

\(L_1\) \(L_2\) do not intersect not parallel

In 3D, two lines can be non-parallel and still never meet: these are called skew lines. This is impossible in 2D. Skew lines lie in different parallel planes.

Common Mistakes to Avoid

✕ Using a Point as Direction
The direction is the difference of two points, not a point itself. \( \mathbf{d} = P_2 - P_1 \), not \( \mathbf{d} = P_1 \).
✕ Forgetting Zero Components
When \( a = 0 \), the symmetric form cannot have \( \frac{x-x_0}{0} \). Write \( x = x_0 \) instead.
✕ Mixing Parameters
When comparing two lines, use different parameters (\( t \) and \( s \)). Setting them equal forces \( t = s \), which is wrong.

Question 1 of 5

What is the direction vector of the line through \( (1, 3, -2) \) and \( (4, 0, 5) \)?

Question 2 of 5

Which parametric equations represent the line through \( (0, 2, -1) \) with direction \( \langle 1, -4, 3 \rangle \)?

Question 3 of 5

The line \( x = 3 + 2t,\; y = 5,\; z = -1 - 7t \) has direction \( \langle 2, 0, -7 \rangle \). What is the correct symmetric form?

Question 4 of 5

Lines \( L_1: \mathbf{r} = \langle 1,0,2 \rangle + t\langle 2,1,-1 \rangle \) and \( L_2: \mathbf{r} = \langle 0,3,1 \rangle + s\langle 4,2,-2 \rangle \) are:

Question 5 of 5

A line passes through \( (2, -1, 4) \) and is parallel to the line \( x = 3t,\; y = 1 - t,\; z = 2 + 5t \). What is its vector equation?