Multivariable CalculusLines, Planes and Surfaces1 of 4
Lines, Planes and Surfaces · 1

Lines in Space

In 3D space, a single linear equation like x+2y+3z=6\start{x + 2y + 3z = 6} describes a flat plane rather than a line, so we need a new way to describe a straight line through space.

1

Vector Form: Starting Point and Step Vector

To describe a straight line in 3D space, we want a formula that reaches every point on the line using only a starting location and a direction to walk.

Vector Form: Starting Point and Step Vector
x\htmlClass{lc-mute}{x}
y\htmlClass{lc-mute}{y}
z\htmlClass{lc-mute}{z}
(1,2,3)\htmlClass{lc-blue}{(1, 2, 3)}
4\htmlClass{lc-pink}{4}
−1\htmlClass{lc-pink}{-1}
5\htmlClass{lc-pink}{5}

Starting at r⃗0=⟨1,2,3⟩\start{\vec{r}_0} = \start{\langle 1, 2, 3 \rangle} and adding tt steps along the direction vector v⃗=⟨4,−1,5⟩\step{\vec{v}} = \step{\langle 4, -1, 5 \rangle} gives the vector form of the line:

r⃗(t)\displaystyle \start{\vec{r}(t)} =⟨1,2,3⟩⏟starting point r⃗0+t⟨4,−1,5⟩⏟step vector v⃗\displaystyle = \underbrace{\start{\langle 1, 2, 3 \rangle}}_{\start{\text{starting point } \vec{r}_0}} + t\underbrace{\step{\langle 4, -1, 5 \rangle}}_{\step{\text{step vector } \vec{v}}}

As tt runs through all real numbers, walking forward for positive tt and backward for negative tt, it traces the entire infinite line.

Aiming the step vector in a new direction pivots the line through its starting point, while stretching, shrinking or reversing it along the same direction only changes where its steps land on the exact same line.
2

The Line and Segment Through Two Points

When a problem gives two points A(1,2,3)\start{A(1, 2, 3)} and B(5,1,8)B(5, 1, 8) instead of a direction arrow, we want to find the equation of the infinite line through them, as well as the equation of just the finite line segment between them.

The Line and Segment Through Two Points
x\htmlClass{lc-mute}{x}
y\htmlClass{lc-mute}{y}
z\htmlClass{lc-mute}{z}
A(1,2,3)\htmlClass{lc-blue}{A(1, 2, 3)}
B(5,1,8)B(5, 1, 8)
Text solution
Find the step from A\start{A} to BBSubtract the coordinates of A(1,2,3)\start{A(1, 2, 3)} from B(5,1,8)B(5, 1, 8) to see how much xx, yy, and zz change in one full step from A\start{A} to BB.
v⃗=⟨5−1, 1−2, 8−3⟩=⟨4,−1,5⟩\displaystyle \begin{aligned} \step{\vec{v}} &= \langle 5 - \start{1},\, 1 - \start{2},\, 8 - \start{3} \rangle \\ &= \step{\langle 4, -1, 5 \rangle} \end{aligned}
Start at A\start{A} and add tt stepsUse A(1,2,3)\start{A(1, 2, 3)} as the starting point and attach tt to the step vector to trace the full infinite line.
r⃗(t)\displaystyle \start{\vec{r}(t)} =⟨1,2,3⟩+t⟨4,−1,5⟩\displaystyle = \start{\langle 1, 2, 3 \rangle} + t\step{\langle 4, -1, 5 \rangle}
Restrict tt from 00 to 11 for the segmentBecause t=0t = 0 starts at A\start{A} and t=1t = 1 takes one full step to reach BB, keeping the same equation and restricting tt between 00 and 11 gives just the segment connecting them.
r⃗(t)\displaystyle \start{\vec{r}(t)} =⟨1,2,3⟩+t⟨4,−1,5⟩,0\displaystyle = \start{\langle 1, 2, 3 \rangle} + t\step{\langle 4, -1, 5 \rangle}, \quad 0 ≤t\displaystyle \le t ≤1\displaystyle \le 1
3

Parametric Form and Testing a Point

Vector form keeps the whole line in one expression, but to test whether our line passes through a specific point like (13,−1,17)(13, -1, 17), we need separate equations for xx, yy, and zz so we can solve for tt.

Parametric Form and Testing a Point
⟨x,y,z⟩=⟨1,2,3⟩+t ⟨4,−1,5⟩\langle x, y, z\rangle = \start{\langle 1, 2, 3\rangle} + t\,\step{\langle 4, -1, 5\rangle}
x\htmlClass{lc-mute}{x}
y\htmlClass{lc-mute}{y}
z\htmlClass{lc-mute}{z}
(1,2,3)\htmlClass{lc-blue}{(1, 2, 3)}

Multiplying tt into the step vector and adding the xx, yy, and zz components separately splits the vector equation into the parametric form of the line:

x=1+4ty=2−1tz=3+5t\displaystyle \begin{aligned} x &= \start{1} + \step{4}t \\ y &= \start{2} \step{- 1}t \\ z &= \start{3} + \step{5}t \end{aligned}

Just as in vector form, restricting 0≤t≤10 \le t \le 1 here gives only the segment from A\start{A} to BB.

Text solution
Solve the xx-equation for ttSet the line's xx-coordinate equal to 1313 to find the exact time tt when the line reaches x=13x = 13.
13=1+4t12=4tt=3\displaystyle \begin{aligned} 13 &= \start{1} + \step{4}t \\ 12 &= 4t \\ t &= 3 \end{aligned}
Check yy and zz at t=3t = 3Plug t=3t = 3 into the yy and zz equations to find the point on the line at that moment.
y=2−1(3)=−1z=3+5(3)=18\displaystyle \begin{aligned} y &= \start{2} \step{- 1}(3) = -1 \\ z &= \start{3} + \step{5}(3) = 18 \end{aligned}

At t=3t = 3, the line is at (13,−1,18)(13, -1, 18), which misses (13,−1,17)(13, -1, 17) by one unit in zz, so the point (13,−1,17)(13, -1, 17) is not on the line.

Because all three coordinates move together with time, lining up two of them with the test point pulls the third one off, leaving the point off the line.
4

Symmetric Form of a Line

When we don't care about the time tt and only want an equation in xx, yy, and zz that relates the three coordinates directly, we can eliminate tt from the parametric equations.

Symmetric Form of a Line
x=1+4ty=2−1tz=3+5t\displaystyle \begin{aligned} x &= \start{1} + \step{4}t \\ y &= \start{2} \step{- 1}t \\ z &= \start{3} + \step{5}t \end{aligned}
t\displaystyle t =  ?\displaystyle = \;?
Text solution
Solve each parametric equation for ttIsolate tt in each equation to count how many steps the point (x,y,z)(x, y, z) has taken from the starting coordinate in each direction.
t\displaystyle t =x−14,t\displaystyle = \frac{x - \start{1}}{\step{4}}, \qquad t =y−2−1,t\displaystyle = \frac{y - \start{2}}{\step{-1}}, \qquad t =z−35\displaystyle = \frac{z - \start{3}}{\step{5}}
Set the step counts equalBecause all three coordinates must be on the same step tt, setting the three fractions equal gives the symmetric form of the line.
x−1⏞start x04⏟step a\displaystyle \frac{x - \overbrace{\start{1}}^{\start{\text{start } x_0}}}{\underbrace{\step{4}}_{\step{\text{step } a}}} =y−2⏞start y0−1⏟step b\displaystyle = \frac{y - \overbrace{\start{2}}^{\start{\text{start } y_0}}}{\underbrace{\step{-1}}_{\step{\text{step } b}}} =z−3⏞start z05⏟step c\displaystyle = \frac{z - \overbrace{\start{3}}^{\start{\text{start } z_0}}}{\underbrace{\step{5}}_{\step{\text{step } c}}}

Because the starting coordinates are subtracted in the numerators, a plus sign like x+1x + 1 really means x−(−1)x - (\start{-1}), so you flip the sign on top to read the starting coordinate −1\start{-1}.

If a component in the step vector is 0\step{0}, such as ⟨4,0,5⟩\step{\langle 4, 0, 5 \rangle}, we cannot divide by 0\step{0}. Since y=2+0ty = \start{2} + \step{0}t means yy stays at 2\start{2} for every tt, we set the remaining fractions equal and write the fixed coordinate beside them:

x−14\displaystyle \frac{x - \start{1}}{\step{4}} =z−35,y\displaystyle = \frac{z - \start{3}}{\step{5}}, \quad y =2\displaystyle = \start{2}
5

Parallel, Intersecting, and Skew Lines

Given two lines in 3D space, we want to determine whether they are parallel (walking in the same or opposite direction), intersecting (crossing at a single point), or skew (neither parallel nor touching, because one passes over the other at a different height).

Parallel
Intersecting
Skew

Let's test this on a pair of lines written in parametric form:

Line 1:x=1+2t,y=3+1t,z=2+4tLine 2:x=2+1s,y=1+3s,z=7−1s\displaystyle \begin{aligned} &\start{\text{Line 1:}} \\ &x = \start{1} + \step{2}t, &&y = \start{3} + \step{1}t, &&z = \start{2} + \step{4}t \\ &\text{Line 2:} \\ &x = 2 + \step{1}s, &&y = 1 + \step{3}s, &&z = 7 \step{- 1}s \end{aligned}
Parallel, Intersecting, and Skew Lines
x\htmlClass{lc-mute}{x}
y\htmlClass{lc-mute}{y}
z\htmlClass{lc-mute}{z}
Text solution
Compare the step vectors for parallel linesRead the step vectors from the numbers attached to tt and ss, and check whether one vector is a multiple of the other.
v⃗1=⟨2,1,4⟩,v⃗2=⟨1,3,−1⟩2⟨1,3,−1⟩=⟨2,6,−2⟩≠⟨2,1,4⟩\displaystyle \begin{aligned} \step{\vec{v}_1} &= \step{\langle 2, 1, 4 \rangle}, \\ \step{\vec{v}_2} &= \step{\langle 1, 3, -1 \rangle} \\ 2\step{\langle 1, 3, -1 \rangle} &= \step{\langle 2, 6, -2 \rangle} \miss{\ne} \step{\langle 2, 1, 4 \rangle} \end{aligned}
Because multiplying v⃗2\step{\vec{v}_2} by 22 to match the first component fails to match the other components, the lines are not parallel.
Solve the xx and yy equations for tt and ssSet the xx-coordinates equal and the yy-coordinates equal to find when the two lines are at the same (x,y)(x, y) location.
1+2t=2+1s  ⟹  s=2t−13+1t=1+3(2t−1)3+t=6t−25=5tt=1,s=2(1)−1=1\displaystyle \begin{aligned} \start{1} + \step{2}t &= 2 + \step{1}s \implies s = 2t - 1 \\ \start{3} + \step{1}t &= 1 + \step{3}(2t - 1) \\ 3 + t &= 6t - 2 \\ 5 &= 5t \\ t &= 1, \qquad s = 2(1) - 1 = 1 \end{aligned}
Check the zz-heights at t=1t = 1 and s=1s = 1Plug t=1t = 1 and s=1s = 1 into the two zz-equations to see if the lines are at the same height above that (x,y)(x, y) spot.
z1=2+4(1)=6z2=7−1(1)=6\displaystyle \begin{aligned} z_1 &= \start{2} + \step{4}(1) = 6 \\ z_2 &= 7 \step{- 1}(1) = 6 \end{aligned}
Find the point of intersectionBoth heights equal 66, so the lines intersect; plugging t=1t = 1 back into Line 1 gives the intersection point (3,4,6)(3, 4, 6).
Above the spot where their shadows cross, two non-parallel lines meet only when their heights match, even if their times are different.

Summary

Every equation for a line in space is just a different way of writing the same two pieces of information: a starting point and a step vector.

One Line in Three Forms
Starting Point+t  Steps\start{\text{Starting Point}} + t\;\step{\text{Steps}}
x\htmlClass{lc-mute}{x}
y\htmlClass{lc-mute}{y}
z\htmlClass{lc-mute}{z}
Building a line in three forms

From a starting point (x0,y0,z0)\start{(x_0, y_0, z_0)} and a step vector ⟨a,b,c⟩\step{\langle a, b, c \rangle}, pick the form that fits what you need to do:

  • Vector form shows the starting point and direction in a single equation:
  • Parametric form splits the vector into three equations so you can solve for the time tt when testing points or finding intersections:
  • Symmetric form solves each coordinate for tt to compare step counts without the variable tt:
Comparing two lines in space

Check the step vectors first. If one is a multiple of the other (like ⟨−6,2,−4⟩=−2⟨3,−1,2⟩\step{\langle -6, 2, -4 \rangle} = -2\step{\langle 3, -1, 2 \rangle}), stop right there: the lines are parallel, and you don't need to solve for tt and ss. Otherwise, give the lines separate time variables tt and ss, solve the xx and yy equations for tt and ss, and compare their zz-heights at those times. Equal zz-heights mean the lines intersect, and different zz-heights mean they are skew.

6

Practice

1

Write the vector form and parametric form of the line that starts at (2,−3,5)\start{(2, -3, 5)} and has step vector ⟨3,4,−2⟩\step{\langle 3, 4, -2 \rangle}.

Put the starting point and step vector into Start+t(Step)\start{\text{Start}} + t(\step{\text{Step}}), then combine the xx, yy, and zz components separately.

Put (2,−3,5)\start{(2, -3, 5)} as the starting vector and attach tt to the step vector ⟨3,4,−2⟩\step{\langle 3, 4, -2 \rangle} (be careful not to attach tt to the starting point, which would give the wrong line r⃗(t)=⟨3,4,−2⟩+t⟨2,−3,5⟩\vec{r}(t) = \langle 3, 4, -2 \rangle + t\langle 2, -3, 5 \rangle):
Vector form: r⃗(t)\displaystyle \text{Vector form: } \start{\vec{r}(t)} =⟨2,−3,5⟩+t⟨3,4,−2⟩\displaystyle = \start{\langle 2, -3, 5 \rangle} + t\step{\langle 3, 4, -2 \rangle}
Parametric form: x\displaystyle \text{Parametric form: } x =2+3t,y\displaystyle = \start{2} + \step{3}t, \quad y =−3+4t,z\displaystyle = \start{-3} + \step{4}t, \quad z =5−2t\displaystyle = \start{5} \step{- 2}t
2

Find the vector form and parametric form for the line segment from A(4,−1,2)\start{A(4, -1, 2)} to B(1,5,6)B(1, 5, 6).

Find the single step that takes you from A\start{A} to BB, and restrict tt so the path starts at A\start{A} and stops at BB.

Subtract A\start{A}'s coordinates from BB's coordinates to get the step vector ⟨1−4,5−(−1),6−2⟩=⟨−3,6,4⟩\langle 1 - \start{4}, 5 - (\start{-1}), 6 - \start{2} \rangle = \step{\langle -3, 6, 4 \rangle} (watch out for using BB itself as the step vector ⟨1,5,6⟩\langle 1, 5, 6 \rangle, or subtracting A−B=⟨3,−6,−4⟩\start{A} - B = \langle 3, -6, -4 \rangle, which walks backward to (7,−7,−2)(7, -7, -2) at t=1t = 1). Using A(4,−1,2)\start{A(4, -1, 2)} as the starting point and restricting tt between 00 and 11:
Vector form: r⃗(t)\displaystyle \text{Vector form: } \start{\vec{r}(t)} =⟨4,−1,2⟩+t⟨−3,6,4⟩,0\displaystyle = \start{\langle 4, -1, 2 \rangle} + t\step{\langle -3, 6, 4 \rangle}, \quad 0 ≤t\displaystyle \le t ≤1\displaystyle \le 1
Parametric form: x\displaystyle \text{Parametric form: } x =4−3t,y\displaystyle = \start{4} \step{- 3}t, \quad y =−1+6t,z\displaystyle = \start{-1} + \step{6}t, \quad z =2+4t,0\displaystyle = \start{2} + \step{4}t, \quad 0 ≤t\displaystyle \le t ≤1\displaystyle \le 1
3

Does the line x=2+3t,  y=−1+2t,  z=4−tx = \start{2} + \step{3}t, \; y = \start{-1} + \step{2}t, \; z = \start{4} \step{-} t pass through the point (11,5,2)(11, 5, 2)?

Find the time tt when the line reaches x=11x = 11, then check where yy and zz are at that exact time.

Setting x=11x = 11 gives 11=2+3t11 = \start{2} + \step{3}t, so t=3t = 3. At t=3t = 3, the yy-coordinate is y=−1+2(3)=5y = \start{-1} + \step{2}(3) = 5, which matches (don't stop here and answer "Yes" before checking zz!). Plugging t=3t = 3 into the zz-equation gives z=4−3=1≠2z = \start{4} - 3 = 1 \miss{\ne} 2, so the line passes through (11,5,1)(11, 5, 1) and misses (11,5,2)(11, 5, 2).
No\displaystyle \text{No}
4

Write the symmetric form of the line passing through (3,−4,1)\start{(3, -4, 1)} with step vector ⟨2,0,−5⟩\step{\langle 2, 0, -5 \rangle}.

Look at the middle number of the step vector. What happens to the yy-coordinate as tt changes?

In parametric form, x=3+2tx = \start{3} + \step{2}t, y=−4+0ty = \start{-4} + \step{0}t, and z=1−5tz = \start{1} \step{- 5}t. Because the step in yy is 0\step{0}, yy stays fixed at −4\start{-4} (avoid plugging 0\step{0} into the formula to write x−32=y+40=z−1−5\frac{x - 3}{2} = \frac{y + 4}{0} = \frac{z - 1}{-5}, which divides by zero). Solving the xx and zz equations for tt and writing y=−4y = \start{-4} beside them gives:
x−32\displaystyle \frac{x - \start{3}}{\step{2}} =z−1−5,y\displaystyle = \frac{z - \start{1}}{\step{-5}}, \quad y =−4\displaystyle = \start{-4}
5

Read a starting point and step vector from the symmetric equations x+23=y−4−1=z+52\frac{x + 2}{3} = \frac{y - 4}{-1} = \frac{z + 5}{2}, and determine whether this line is parallel to r⃗(t)=⟨1,0,3⟩+t⟨−6,2,−4⟩\vec{r}(t) = \langle 1, 0, 3 \rangle + t\langle -6, 2, -4 \rangle.

Rewrite each numerator in the form x−x0x - \start{x_0}, then check whether one line's step vector is a multiple of the other's.

Rewriting the numerators as x−(−2)x - (\start{-2}), y−4y - \start{4}, and z−(−5)z - (\start{-5}) gives the starting point (−2,4,−5)\start{(-2, 4, -5)} (reading the signs directly without flipping them gives the wrong point (2,−4,5)(2, -4, 5)). The denominators give the step vector ⟨3,−1,2⟩\step{\langle 3, -1, 2 \rangle}. Comparing this with the second line's step vector gives ⟨−6,2,−4⟩=−2⟨3,−1,2⟩\step{\langle -6, 2, -4 \rangle} = -2\step{\langle 3, -1, 2 \rangle}, which is a scalar multiple:
Starting point: (−2,4,−5);step vector: ⟨3,−1,2⟩;parallel\displaystyle \text{Starting point: } \start{(-2, 4, -5)}; \quad \text{step vector: } \step{\langle 3, -1, 2 \rangle}; \quad \text{parallel}
6

Determine whether Line 1: x=1+2t,  y=4−t,  z=−1+3tx = \start{1} + \step{2}t, \; y = \start{4} \step{-} t, \; z = \start{-1} + \step{3}t and Line 2: x=2+s,  y=−4+2s,  z=8−sx = 2 + s, \; y = -4 + \step{2}s, \; z = 8 \step{-} s are parallel, intersecting, or skew. If they intersect, find the point of intersection.

After checking the step vectors, solve the xx and yy equations for tt and ss, then check whether those values give the same height zz.

The step vectors ⟨2,−1,3⟩\step{\langle 2, -1, 3 \rangle} and ⟨1,2,−1⟩\step{\langle 1, 2, -1 \rangle} are not multiples of each other, so the lines are not parallel. Setting the xx and yy equations equal with separate variables tt and ss (don't replace ss with tt: setting 1+2t=2+t1 + 2t = 2 + t gives t=1t = 1, where y1=3≠y2=−2y_1 = 3 \ne y_2 = -2, making the lines falsely appear skew):
1+2t=2+s  ⟹  s=2t−14−t=−4+2(2t−1)4−t=4t−6t=2,s=3\displaystyle \begin{aligned} \start{1} + \step{2}t &= 2 + s \implies s = 2t - 1 \\ \start{4} \step{-} t &= -4 + \step{2}(2t - 1) \\ 4 - t &= 4t - 6 \\ t &= 2, \qquad s = 3 \end{aligned}
At t=2t = 2 and s=3s = 3, both lines have height z1=−1+3(2)=5z_1 = \start{-1} + \step{3}(2) = 5 and z2=8−3=5z_2 = 8 - 3 = 5, so they intersect. Plug t=2t = 2 back into Line 1 to find the point in space (don't stop at t=2,s=3t = 2, s = 3 and report those time values as coordinates):
Intersecting at (5,2,5)\displaystyle \text{Intersecting at } (5, 2, 5)
7

Determine whether Line 1: r⃗(t)=⟨1,3,2⟩+t⟨1,−1,2⟩\vec{r}(t) = \langle 1, 3, 2 \rangle + t\langle 1, -1, 2 \rangle and Line 2: x−22=y+11=z−13\frac{x - 2}{2} = \frac{y + 1}{1} = \frac{z - 1}{3} are parallel, intersecting, or skew.

Write both lines in parametric form first, using tt for Line 1 and a new variable ss for Line 2, so you can compare their coordinates directly.

The step vectors ⟨1,−1,2⟩\step{\langle 1, -1, 2 \rangle} and ⟨2,1,3⟩\step{\langle 2, 1, 3 \rangle} are not multiples of each other, so the lines are not parallel. Writing Line 1 in parametric form with tt and Line 2 with ss (watch the sign on y+1y + 1 in Line 2: it starts at y=−1y = -1, whereas writing y=1+sy = 1 + s gives the wrong times t=53t = \frac{5}{3} and s=13s = \frac{1}{3}):
Line 1:x=1+t,y=3−t,z=2+2tLine 2:x=2+2s,y=−1+s,z=1+3s\displaystyle \begin{aligned} \start{\text{Line 1:}} \quad x &= \start{1} + t, & y &= \start{3} \step{-} t, & z &= \start{2} + \step{2}t \\ \text{Line 2:} \quad x &= 2 + \step{2}s, & y &= -1 + s, & z &= 1 + \step{3}s \end{aligned}
Solving 1+t=2+2s\start{1} + t = 2 + \step{2}s and 3−t=−1+s\start{3} \step{-} t = -1 + s gives t=3t = 3 and s=1s = 1. Checking the zz-equations at those times gives z1=2+2(3)=8z_1 = \start{2} + \step{2}(3) = 8 for Line 1 and z2=1+3(1)=4z_2 = 1 + \step{3}(1) = 4 for Line 2. Because 8≠48 \miss{\ne} 4, the lines pass at different heights:
Skew\displaystyle \text{Skew}