Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

2.5: Linear equations in ℝ³

In Chapter 2.4, we described lines and planes through the origin using spans and parametric equations. Here, we’ll describe them using linear equations:

ax+by+cz=dax + by + cz = d

Recall, a homogenous linear equation is one whose right-hand side above is 0. We will focus on homogenous equations here, and explore nonzero values of dd in Chapter 2.6.


Why does one linear equation describe a plane?

In R2\mathbb R^2, a linear equation of the form ax+by=cax+by=c, with a,ba,b not both zero, describes a line.

In R3\mathbb R^3, a single linear equation with at least one nonzero coefficient describes a plane. For now, we’ll focus on homogeneous equations:

ax+by+cz=0.ax+by+cz=0.

Why a plane instead of a line? For example, consider

x−2y+z=0,x-2y+z=0,

or equivalently,

z=−x+2y.z=-x+2y.

We can plug in any xx and any yy to get an output zz. For instance, when x=1x=1 and y=1y=1, we get z=1z=1. Allowing every possible pair of xx and yy gives us a plane.

Loading...

The plane x−2y+z=0x-2y+z=0, or z=−x+2yz=-x+2y. Every pair of xx and yy determines a point on the plane.

But a line only works for very specific pairs of xx and yy. Recall the line spanned by v⃗=[345]\vec v=\begin{bmatrix}3\\4\\5\end{bmatrix} from Chapter 2.4. There’s no point on this line that has x=3x=3 and y=1y=1. Rather, when x=3x=3, yy is forced to be 4, and zz is forced to be 5.

So we cannot describe this line by a formula for zz in terms of xx and yy that lets us plug in any xx and any yy: most pairs of xx and yy-values do not lie on the line.

Loading...

For example, y=0y=0 gives us the xzxz-plane.

Loading...

The equation 2x−3y+9z=02x-3y+9z=0 describes another plane through the origin.


Linear equations for planes

Let’s return to the plane from Chapter 2.4:

P=span⁡(v⃗1,v⃗2),v⃗1=[345],v⃗2=[52−1].P=\operatorname{span}(\vec v_1,\vec v_2),\qquad \vec v_1=\begin{bmatrix}3\\4\\5\end{bmatrix},\qquad \vec v_2=\begin{bmatrix}5\\2\\-1\end{bmatrix}.

Note that we don’t yet have a linear equation describing this plane: we’ve expressed the plane as the span of two vectors. How might we find a linear equation that describes this plane?

Loading...

The plane PP spanned by v⃗1=[345]\vec v_1=\begin{bmatrix}3\\4\\5\end{bmatrix} and v⃗2=[52−1]\vec v_2=\begin{bmatrix}5\\2\\-1\end{bmatrix}.

For now, we’ll just tell it to you: an equation for this plane is

x−2y+z=0.x-2y+z=0.

You should verify yourself that both v⃗1=[345]\vec v_1 = \begin{bmatrix} 3 \\ 4 \\ 5 \end{bmatrix} and v⃗2=[52−1]\vec v_2 = \begin{bmatrix} 5 \\ 2 \\ -1 \end{bmatrix} satisfy the equation above.

How could we have found this equation without guessing? The key is to find a vector perpendicular to the plane. Note that the equation above can be written as

[xyz]⋅[1−21].\begin{bmatrix} x \\ y \\ z \end{bmatrix} \cdot \begin{bmatrix} 1 \\ -2 \\ 1 \end{bmatrix}.

All vectors that satisfy x−2y+z=0x - 2y + z = 0 are perpendicular to [1−21]\begin{bmatrix} 1 \\ -2 \\ 1 \end{bmatrix}!


Normal vectors

Remember that in Chapter 2.1, we saw that in the equation of a line in R2\mathbb{R}^2,

ax+by=c,ax + by = c,

the vector [ab]\begin{bmatrix} a \\ b\end{bmatrix} – found by reading the coefficients of xx and yy above – is orthogonal to the line above.

Let’s try the same thing here. The coefficients on xx, yy, and zz in

x−2y+z=0x-2y+z=0

imply the normal vector

w⃗=[1−21].\vec w=\begin{bmatrix}1\\-2\\1\end{bmatrix}.
Loading...

The vector w⃗=[1−21]\vec w=\begin{bmatrix}1\\-2\\1\end{bmatrix} is perpendicular to the plane PP.

To show that w⃗\vec w is perpendicular to PP, we need to show that it’s orthogonal to every vector in PP. There are infinitely many such vectors, but we only need two dot products to get started:

v⃗1⋅w⃗=3(1)+4(−2)+5(1)=0,\vec v_1\cdot\vec w=3(1)+4(-2)+5(1)=0,
v⃗2⋅w⃗=5(1)+2(−2)+(−1)(1)=0.\vec v_2\cdot\vec w=5(1)+2(-2)+(-1)(1)=0.

Remember that every vector in PP is a linear combination of v⃗1\vec v_1 and v⃗2\vec v_2. Since both dot products above are 0, the dot product of w⃗\vec w with any of their linear combinations is also 0:

(av⃗1+bv⃗2)⋅w⃗=a(v⃗1⋅w⃗)+b(v⃗2⋅w⃗)=a(0)+b(0)=0.\begin{aligned} (a\vec v_1+b\vec v_2)\cdot\vec w &=a(\vec v_1\cdot\vec w)+b(\vec v_2\cdot\vec w)\\ &=a(0)+b(0)=0. \end{aligned}

That’s why checking the two spanning vectors is enough. It tells us that w⃗\vec w is perpendicular to the entire plane.

For our plane through the origin (where d=0d=0), we can write

P={[xyz]:w⃗⋅[xyz]=0}.P=\left\{\begin{bmatrix}x\\y\\z\end{bmatrix}: \vec w\cdot\begin{bmatrix}x\\y\\z\end{bmatrix}=0\right\}.

The above form is sometimes called the dot-product form equation of a plane.

We’ll write P⊥P^\perp for the set of vectors orthogonal to every vector in PP. Here it is the line

P⊥=span⁡(w⃗).P^\perp=\operatorname{span}(\vec w).

This extends the perpendicular notation from Chapter 2.1 through Chapter 2.3.

  • In R2\mathbb R^2, the vectors perpendicular to a line through the origin form another line.

  • In R3\mathbb R^3, the vectors perpendicular to a plane through the origin form a line, while the vectors perpendicular to a line through the origin form a plane.

A normal vector is not unique. Using 3w⃗=[3−63]3\vec w=\begin{bmatrix}3\\-6\\3\end{bmatrix} gives 3x−6y+3z=03x-6y+3z=0, which is the original equation multiplied by 3. The plane does not change.


Finding a normal vector for a plane

So far, we’ve checked a normal vector after being given an equation. What if we only know the spanning vectors? Let’s find a normal to the same plane

P=span⁡(v⃗1,v⃗2),v⃗1=[345],v⃗2=[52−1].P=\operatorname{span}(\vec v_1,\vec v_2),\qquad \vec v_1=\begin{bmatrix}3\\4\\5\end{bmatrix},\qquad \vec v_2=\begin{bmatrix}5\\2\\-1\end{bmatrix}.

Write the unknown normal as n⃗=[abc]\vec n=\begin{bmatrix}a\\b\\c\end{bmatrix}. It must be orthogonal to both spanning vectors, so

3a+4b+5c=0,5a+2b−c=0.3a+4b+5c=0,\qquad 5a+2b-c=0.

The second equation gives c=5a+2bc=5a+2b. Substituting into the first gives

3a+4b+5(5a+2b)=0⟹28a+14b=0.3a+4b+5(5a+2b)=0\quad\Longrightarrow\quad28a+14b=0.

Thus b=−2ab=-2a and c=5a+2(−2a)=ac=5a+2(-2a)=a. Choosing a=1a=1 gives

n⃗=[1−21].\vec n=\begin{bmatrix}1\\-2\\1\end{bmatrix}.

These are exactly the coefficients in the plane’s equation:

x−2y+z=0.x-2y+z=0.

Any nonzero choice of aa gives a scalar multiple of this normal and an equivalent equation for the same plane.

Here’s a video reviewing how to find the equation of the plane spanned by two vectors in R3\mathbb{R}^3.


Lines as intersections of planes

We now have an understanding of how planes in R3\mathbb{R}^3 can be expressed:

  • As the span of two linearly independent vectors in R3\mathbb{R}^3.

  • As a linear equation,

    ax+by+cz=dax + by + cz = d

    (so far, we’ve only seen the case where d=0d=0.)

How do we describe lines using linear equations, when a single linear equation in terms of xx, yy, and zz describes a plane? That is what we will now explore. First, some terminology:

  • A linear system is a collection of linear equations in the same unknowns.

  • A solution gives values of the unknowns that satisfy every equation simultaneously. We typically express the solutions as vectors.

  • The solution set is the set of all solutions – we often think of this as a set of vectors.

  • A system is homogeneous if every right-hand side is zero. Otherwise, it is nonhomogeneous.

For a concrete example in R2\mathbb R^2, consider

{x+y=7,x−y=1.\begin{cases}x+y=7,\\x-y=1.\end{cases}

Adding the equations gives 2x=82x=8, so x=4x=4 and y=3y=3. Thus, the solution set is

{[43]}.\left\{\begin{bmatrix}4\\3\end{bmatrix}\right\}.

Geometrically, the two lines intersect at the point (4,3)(4,3). The system is nonhomogeneous because its right-hand sides are not all zero.

Now let’s return to R3\mathbb R^3. To describe a line, we need two linear equations and take their common solutions. Consider

ℓ=span⁡([345]).\ell=\operatorname{span}\left(\begin{bmatrix}3\\4\\5\end{bmatrix}\right).

How do we find two equations? Pick two independent vectors n⃗1\vec n_1 and n⃗2\vec n_2 in ℓ⊥\ell^\perp, the plane of vectors perpendicular to ℓ\ell.

Loading...

The two independent vectors n⃗1\vec n_1 and n⃗2\vec n_2 lie in ℓ⊥\ell^\perp (blue), perpendicular to the line ℓ\ell (orange).

In our example, a vector [xyz]\begin{bmatrix}x\\y\\z\end{bmatrix} is in ℓ⊥\ell^\perp if

3x+4y+5z=0.3x+4y+5z=0.

We can choose any values of xx and yy and solve for z=−3x+4y5z=-\frac{3x+4y}{5}. For instance, choosing x=1,y=−2x=1,y=-2 gives z=1z=1, while choosing x=2,y=1x=2,y=1 gives z=−2z=-2. Thus we can use

n⃗1=[1−21],n⃗2=[21−2].\vec n_1=\begin{bmatrix}1\\-2\\1\end{bmatrix},\qquad \vec n_2=\begin{bmatrix}2\\1\\-2\end{bmatrix}.

Both are perpendicular to [345]\begin{bmatrix}3\\4\\5\end{bmatrix}, and they are not multiples of each other. The line is exactly the set of vectors orthogonal to both normals, so it is the solution set of

{x−2y+z=0,2x+y−2z=0.\begin{cases}x-2y+z=0,\\2x+y-2z=0.\end{cases}

What’s happening geometrically? Each equation describes a plane:

P: x−2y+z=0,P′: 2x+y−2z=0.P:\ x-2y+z=0,\qquad P':\ 2x+y-2z=0.

The line consists of the points on both planes. In other words,

ℓ=P∩P′.\ell=P\cap P'.

The symbol ∩\cap means intersection.

Loading...

The blue plane PP and orange plane P′P\prime intersect along the pink line ℓ\ell.

Our choices of normals were somewhat arbitrary. For example, we could instead use

m⃗1=n⃗1+n⃗2=[3−1−1],m⃗2=n⃗1−n⃗2=[−1−33].\vec m_1=\vec n_1+\vec n_2=\begin{bmatrix}3\\-1\\-1\end{bmatrix},\qquad \vec m_2=\vec n_1-\vec n_2=\begin{bmatrix}-1\\-3\\3\end{bmatrix}.

These are also perpendicular to ℓ\ell and are not multiples of each other. They give another pair of planes,

Q: 3x−y−z=0,Q′: −x−3y+3z=0,Q:\ 3x-y-z=0,\qquad Q':\ -x-3y+3z=0,

whose intersection is the same line: ℓ=Q∩Q′\ell=Q\cap Q'. The two descriptions are shown side by side below.

Loading...

Different pairs of planes can have the same intersection: ℓ=P∩P′=Q∩Q′\ell=P\cap P\prime=Q\cap Q\prime. Drag either panel to rotate its view.

We’ve now described lines and planes through the origin using linear equations (here in Chapter 2.5) as well as in parametric form (in Chapter 2.4). In Chapter 2.6, we’ll translate these objects to study affine lines and planes, which do not need to pass through the origin.