MULTIVARIABLE CALCULUS • VECTORS AND GEOMETRY IN 3D

3D Line Equations — Equations of lines in 3D (parametric/vector forms)

Learn how vectors and parameters let you describe lines that stretch through three-dimensional space.

Historical Context & Motivation

Describing a straight line might seem simple—after all, you've been writing equations like y = mx + b since middle school. But that classic slope-intercept form only works on a flat, two-dimensional plane. The moment you step into three dimensions—the world you actually live in—you need new tools. The story of how mathematicians developed those tools stretches across centuries and continents.

~300 BCE
Euclid's Elements
Euclid formalized the geometry of lines and planes in his famous work, but his treatment was purely geometric—no coordinates, no algebra.
1637
Descartes Creates Coordinate Geometry
René Descartes published La Géométrie, introducing the idea of using algebra to describe geometric shapes with coordinates. This created the x-y plane you know so well.
1748
Euler Extends to 3D
Leonhard Euler expanded analytic geometry into three dimensions, defining points with (x, y, z) triples and laying the groundwork for 3D line equations.
1844
Grassmann & Vector Spaces
Hermann Grassmann introduced the concept of vector spaces, giving mathematicians a powerful algebraic language to describe directions and lines in any number of dimensions.
1901
Gibbs & Modern Vector Notation
Josiah Willard Gibbs popularized modern vector notation, making parametric and vector equations the standard way to describe lines in 3D—the forms you'll learn in this lesson.

The central question this lesson addresses is straightforward: How do you write the equation of a line when that line doesn't stay on a flat page, but instead extends through three-dimensional space? The answer relies on two powerful ideas—direction vectors and parameters—that turn a tricky spatial problem into clean algebra.

Core Principles & Definitions

Before diving into formulas, you need to understand the key ingredients that define a line in 3D. Unlike in 2D, where slope alone can characterize direction, a line in space requires a full vector to describe where it points. The following foundational ideas will guide every equation you write in this lesson.

1

Point on the Line

Every line equation needs at least one known point P₀ = (x₀, y₀, z₀) that the line passes through. This anchors the line in space.
2

Direction Vector

A direction vector ⟨a, b, c⟩ tells you which way the line points in 3D. Any nonzero scalar multiple of this vector gives the same line direction.
3

Parameter t

The parameter t is a real number that slides along the line. At t = 0, you're at the known point. As t increases or decreases, you move along the line in either direction.
4

Position Vector

A position vector r⃗ = ⟨x, y, z⟩ points from the origin to any point in space. The vector form of a line equation uses position vectors.
5

Symmetric Form (Bonus)

Eliminating the parameter t from the parametric equations produces the symmetric equations of a line—a parameter-free representation that is sometimes more compact.
KEY TAKEAWAY
Think of a line in 3D like a train track. The known point is a particular train station on the track. The direction vector tells you which compass heading the track runs in. And the parameter t is your odometer reading—changing t moves you forward or backward along the track from the station. With a station and a compass heading, the entire track is determined.

Visual Explanation

The diagram below shows a 3D coordinate system with a line passing through the point P₀. The direction vector d⃗ is drawn from P₀, and several positions along the line are marked for different values of the parameter t. Notice how the line extends infinitely in both directions as t ranges from −∞ to +∞.

The line passes through P₀ (the cyan dot) and extends in the direction of d⃗ (the gold arrow). Green dots show positions for positive t values, while pink dots show negative t values.

Study the diagram carefully. The key idea is that every single point on the purple line can be reached by starting at P₀ and adding some multiple of the direction vector d⃗. When t = 0, you're exactly at P₀. When t = 1, you've moved one full copy of d⃗ away from P₀. When t = −1, you've gone one copy of d⃗ in the opposite direction. This is the geometric heart of parametric representation.

Mathematical Framework

Now let's translate the geometric picture into precise equations. There are three standard ways to write the equation of a line in 3D. All three carry the same information—they just package it differently.

Vector Form

VECTOR FORM
r⃗(t) = r⃗₀ + t · d⃗
r⃗(t) = position vector of any point on the line, r⃗₀ = position vector of the known point P₀, d⃗ = direction vector ⟨a, b, c⟩, t = parameter (any real number).

This is the most compact form. It says: to get any point on the line, start at r⃗₀ and add t copies of the direction vector d⃗. Written in component form, it expands to the parametric equations.

Parametric Form

PARAMETRIC EQUATIONS
x = x₀ + at, y = y₀ + bt, z = z₀ + ct
Each coordinate is expressed as a separate linear function of the parameter t. Here (x₀, y₀, z₀) is the known point and ⟨a, b, c⟩ is the direction vector.

Symmetric Form

SYMMETRIC EQUATIONS
(x − x₀)/a = (y − y₀)/b = (z − z₀)/c
Obtained by solving each parametric equation for t and setting them equal. This form only works when a, b, and c are all nonzero. If one component of the direction vector is zero, you instead write that coordinate as a constant (e.g., x = x₀).
⚠️ Important Note
Unlike 2D lines (which have a unique slope-intercept form), the parametric and vector equations of a 3D line are not unique. You can choose any point on the line as P₀, and any nonzero scalar multiple of d⃗ as your direction vector, and you'll still describe the same line.

Comparing the Three Forms

The diagram below illustrates how the three forms are related. The parametric form is the most explicit, giving you each coordinate directly. The vector form packages those three equations into one elegant expression. The symmetric form removes the parameter entirely, which can be useful for finding intersections with planes.

The three standard forms of a 3D line equation are interchangeable. The green box at the bottom shows a single example written in all three forms.
Comparison of the three representations of a 3D line
FeatureVector FormParametric FormSymmetric Form
Shows parameter t?YesYesNo (t eliminated)
Number of equations1 (vector)3 (one per axis)2 (chain of ratios)
Works if a component = 0?AlwaysAlwaysNeeds modification
Easy to find specific points?Yes—plug in tYes—plug in tHarder—must re-introduce t

Worked Example

Let's work through a complete problem from start to finish. Suppose you're given two points in 3D space and asked to write the equation of the line passing through them in all three forms.

Find the equation of the line through A(2, −1, 4) and B(5, 3, −2)
1
Step 1 — Find the Direction VectorSubtract the coordinates of A from B to get the direction vector: d⃗ = B − A = ⟨5 − 2, 3 − (−1), −2 − 4⟩ = ⟨3, 4, −6⟩. Any nonzero scalar multiple of this vector would also work as a direction vector, but we'll use this one.
d⃗ = ⟨3, 4, −6⟩
2
Step 2 — Choose a Known PointEither A or B can serve as the known point P₀. We'll choose A(2, −1, 4), so x₀ = 2, y₀ = −1, z₀ = 4.
P₀ = (2, −1, 4)
3
Step 3 — Write the Vector FormSubstitute into r⃗(t) = r⃗₀ + t · d⃗.
r⃗(t) = ⟨2, −1, 4⟩ + t⟨3, 4, −6⟩
4
Step 4 — Write the Parametric FormBreak the vector equation into three separate equations, one for each coordinate: x = 2 + 3t, y = −1 + 4t, z = 4 − 6t.
x = 2 + 3t, y = −1 + 4t, z = 4 − 6t
5
Step 5 — Write the Symmetric FormSolve each parametric equation for t: t = (x − 2)/3, t = (y + 1)/4, t = (z − 4)/(−6). Since all direction components are nonzero, set the three expressions equal.
(x − 2)/3 = (y + 1)/4 = (z − 4)/(−6)
6
Step 6 — Verify with Point BPoint B should lie on the line. Plugging t = 1 into the parametric equations: x = 2 + 3(1) = 5 ✓, y = −1 + 4(1) = 3 ✓, z = 4 − 6(1) = −2 ✓. Point B is indeed on the line at t = 1.
B(5, 3, −2) confirmed at t = 1 ✓

Strengths, Limitations & Tips

Each form has its own strengths and weak points. Understanding these will help you choose the right form for the task at hand and avoid common mistakes.

Strengths and limitations of 3D line representations
ConsiderationStrengthLimitation / Pitfall
UniquenessYou have freedom to choose any point on the line and any scalar multiple of d⃗.Two correct answers may look completely different—don't panic if yours doesn't match the textbook.
Zero componentsThe parametric and vector forms handle zero direction components naturally.The symmetric form breaks down; you must write the zero-component coordinate as a constant (e.g., y = 3).
Finding intersectionsParametric form lets you substitute into plane equations easily.Two lines in 3D usually do NOT intersect (they may be skew). Always verify the solution satisfies all three coordinates.
Parallel linesChecking parallelism is straightforward—just see if one direction vector is a scalar multiple of the other.Parallel lines are NOT necessarily the same line. You also need to check if they share a common point.
Extending to higher dimensionsVector and parametric forms generalize easily to 4D, 5D, etc.—just add more components.The symmetric form becomes cumbersome in higher dimensions.
KEY TAKEAWAY
In 3D, lines can be skew—neither parallel nor intersecting, like two roads at different elevations on a highway interchange. This is impossible in 2D (where non-parallel lines always meet), and it's one of the biggest conceptual surprises of 3D geometry. Always verify intersection solutions by checking all three coordinates.

Connection to Advanced Topics

The parametric approach you've learned for lines is actually the gateway to much bigger ideas in multivariable calculus. Once you're comfortable letting a parameter t trace out a straight line, the natural next step is to let the formulas become nonlinear—which produces curves instead of lines.

How 3D line equations connect to future topics in multivariable calculus
This Lesson (Lines)What's Coming Next
r⃗(t) = r⃗₀ + t · d⃗ (linear in t)r⃗(t) = ⟨f(t), g(t), h(t)⟩ where f, g, h can be any functions (vector-valued functions)
Direction vector d⃗ is constantThe tangent vector r⃗′(t) changes along the curve
One parameter t → a lineTwo parameters (s, t) → a surface (parametric surfaces)
Line–plane intersectionsLine integrals, surface integrals, Stokes' theorem

You'll also use 3D line equations when studying planes (finding where a line pierces a plane), distances (calculating how far a point is from a line), and motion in physics (the trajectory of any object moving at constant velocity is a line in 3D, with t representing time). Mastering the parametric/vector form now builds a foundation you'll use repeatedly.

Practice Problems

PROBLEM 1CONCEPTUAL
A line in 3D passes through point P(1, 2, 3) with direction vector d⃗ = ⟨0, 5, −7⟩. Can you write this line in symmetric form? Explain why or why not.
PROBLEM 2BASIC CALCULATION
Write the parametric equations of the line through A(3, 0, −1) with direction vector d⃗ = ⟨2, −4, 1⟩. Then find the point on the line when t = 3.
PROBLEM 3INTERMEDIATE
Find the parametric and vector equations of the line through P(4, −2, 6) and Q(−1, 3, 1). Verify that both P and Q lie on your line by finding the t-values that produce them.
PROBLEM 4APPLIED
A drone flies in a straight line from position (10, 20, 50) meters at t = 0 seconds to position (40, 80, 20) meters at t = 6 seconds. Write the parametric equations for the drone's path using time t as the parameter. Where is the drone at t = 4 seconds?
PROBLEM 5CRITICAL THINKING
Line L₁ has parametric equations x = 1 + 2t, y = 3 − t, z = 5 + 4t. Line L₂ has parametric equations x = 3 + 4s, y = 2 − 2s, z = 13 + 8s. Are L₁ and L₂ the same line, parallel but distinct, intersecting, or skew? Justify your answer completely.

Lesson Summary

A line in 3D is completely determined by a known point P₀ = (x₀, y₀, z₀) and a direction vector d⃗ = ⟨a, b, c⟩. The vector form r⃗(t) = r⃗₀ + t · d⃗ is the most compact representation. The parametric form breaks this into three equations (x = x₀ + at, y = y₀ + bt, z = z₀ + ct), and the symmetric form eliminates the parameter: (x − x₀)/a = (y − y₀)/b = (z − z₀)/c.

Remember that the equations of a line are not unique—different choices of P₀ or scalar multiples of d⃗ yield different-looking but equivalent equations. When given two points, find d⃗ by subtracting coordinates. Watch out for zero direction components in the symmetric form, and remember that lines in 3D can be skew—a phenomenon unique to three or more dimensions. These parametric techniques form the foundation for studying curves, surfaces, and motion in multivariable calculus.

Varsity Tutors • Multivariable Calculus • 3D Line Equations — Equations of lines in 3D (parametric/vector forms)