Chapter 5. Planes and their normal vectors

In general, the equation of a plane in ℝ3 takes the shape

𝑎𝑥+𝑏𝑦+𝑐𝑧=𝑑

where 𝑎, 𝑏, 𝑐, 𝑑 are real numbers (and 𝑎, 𝑏, 𝑐 are not all zero).

§5.1 [TEXT] Normal vectors to planes in ℝ3

In 18.01, we had lines in ℝ2, and we used the notion of slope of the line often. For 18.02, planes don’t have a “slope”; not a single number, anyway. So the thing I want to communicate is:

Idea
Everything we used slope for in 18.01, we should rephrase in terms of normal vectors for 18.02.

So what’s that? A normal vector 𝐯 to a plane is a vector such that, if you pick any point 𝑃 on the plane, then the arrow joining 𝑃 to 𝑃+𝐯 — that is, the arrow 𝐯 when you draw the starting point as 𝑃 — is perpendicular to that plane.

Figure 8: Normal vector to a plane.

(Note that it doesn’t matter which point 𝑃 you pick. You could equally well even ignore 𝑃 altogether, imagine drawing 𝐯 as an arrow starting from some random point not necessarily on the plane — like the origin — and requiring that 𝐯 punctures the plane at a right angle.)

The main goal of this chapter is to prove the following result:

Memorize: Normal vectors of plane
Given a plane 𝑎𝑥+𝑏𝑦+𝑐𝑧=𝑑, the normal vectors to it are the multiples of (𝑎𝑏𝑐).

Keep in mind that normal vectors only matter up to scaling: if (123) is a normal vector, then so are (102030), (−100−200−300), etc.

§5.2 [TEXT] Normal vectors to lines in ℝ2

Before explaining why this is true in ℝ3, I want to do everything in ℝ2 first for comparison, where pictures are easier to draw and you have intuition from eighth or ninth grade algebra.

Here’s a question: which vectors in ℝ2 are perpendicular to (12)? They’re the vectors lying on a line of slope −12 through the origin, namely

0=(𝑥𝑦)⋅(12)⟺0=𝑥+2𝑦.

See Figure 9.

Figure 9: Plots of 𝑥+2𝑦=0 and 𝑥+2𝑦=𝜋.

Okay, in that case what does the line

𝑥+2𝑦=𝜋

look like? Well, it’s a parallel line, the slope is still the same.

Equivalently, you could also imagine it as the vectors (𝑥𝑦) such that

(𝑥𝑦)−(𝜋0) is perpendicular to (12)

or do the same thing for any point on the line, like

(𝑥𝑦)−(0𝜋/2) is perpendicular to (12)

or even

(𝑥𝑦)−(0.218𝜋0.391𝜋) is perpendicular to (12)

But that’s silly. Most of the time you don’t care about base points. All you care is the line has slope −12, and for that the LHS just needs to be 𝑥+2𝑦 (or even 100𝑥+200𝑦). The RHS can be whatever you want.

§5.3 [TEXT] Normal vectors to a plane

In ℝ3, the exact same thing is true for the expression 𝑎𝑥+𝑏𝑦+𝑐𝑧=𝑑. The only difference is that the word “slope” is banned. Nevertheless, even if we can’t talk about slope, we can still talk about parallel planes, and now the whole discussion carries over wholesale.

For example, what’s the set of vectors perpendicular to (123)? That’s the same as requiring

0=(𝑥𝑦𝑧)⋅(123)=𝑥+2𝑦+3𝑧.

So the plane 𝑥+2𝑦+3𝑧=0 passes through the origin and has normal vector (123).

What about something like 𝑥+2𝑦+3𝑧=6? Analogous to last section different ways to write it are:

But again, like last time, the base point doesn’t really matter. The end story is the same: the coefficients control the direction of the plane via the normal vector (see Figure 10).

Figure 10: Normal vectors to the plane 𝑥+2𝑦+3𝑧=6.

§5.4 [RECIPE] Finding a plane through a point with a direction

Sometimes you know the direction the plane goes, and you need to get one point to lie on it. This just means you have to pick the number 𝑑 to match:

Recipe for finding a plane given a normal vector and a point on it

Suppose the given normal vector is (𝑎𝑏𝑐), and 𝑃∈ℝ3 is a given point.

  1. Write 𝑎𝑥+𝑏𝑦+𝑐𝑧 for the left-hand side.
  2. Evaluate the left-hand side at 𝑃 to get a number 𝑑.
  3. Output 𝑎𝑥+𝑏𝑦+𝑐𝑧=𝑑.
Sample Question
Compute the equation of the plane parallel to 𝑥+2𝑦+3𝑧=100 which passes through the point (1,4,9).

Solution. Planes are parallel when they have normal vectors in the same direction, so we use the normal vector (123) for both. Hence the answer should take the form

𝑥+2𝑦+3𝑧=𝑑

for some 𝑑. In order to pass through (1,4,9) we should choose 𝑑=1+2⋅4+3⋅9=36. So output 𝑥+2𝑦+3𝑧=36.□

§5.5 [TEXT] Calculating the distance from a point to a plane

There’s a classical exercise that’s used to test understanding of normal vectors to plane and projections, which is to find the distance from a point to a plane.

Sample Question
Compute the distance from the point (7,8,5) to the plane 𝑥+2𝑦+3𝑧=0.

Solution. The plane 𝑥+2𝑦+3𝑧=0 has a normal vector 𝐧 given by the coefficients of 𝑥, 𝑦, and 𝑧:

𝐧=(123).

Now consider the vector 𝐯=(785) pointing from the origin (which lies on the plane) to the given point (7,8,5). The main insight is that the scalar component of 𝐯 to the vector 𝐧 coincides with the distance we’re trying to compute; look at the figure Figure 11 to see why this is true. The point is that there’s a rectangle formed by the origin, the endpoint of 𝐯, and the projections of 𝐯 onto 𝐧 and the plane, respectively.

Figure 11: The two projections from 𝐯 onto 𝐧 and the plane (in purple) form a rectangle, so that the distance from 𝐯 to the plane is given exactly by comp𝐧(𝐯).

Calculate the dot product:

𝐯⋅𝐧=(7)(1)+(8)(2)+(5)(3)=7+16+15=38.

Calculate the magnitude:

|𝐧|=(1)2+(2)2+(3)2=1+4+9=14.

Hence, the scalar component is:

comp𝐧𝐯=𝐯⋅𝐧|𝐧|=3814.

This is the answer.□

Here’s the same exercise with one change: we change to 𝑥+2𝑦+3𝑧=60. This means we’ll have to pick a point on the plane besides the origin.

Sample Question
Compute the distance from the point (7,8,5) to the plane 𝑥+2𝑦+3𝑧=60.

Solution. As before, the plane 𝑥+2𝑦+3𝑧=60 has a normal vector 𝐧 given by the coefficients of 𝑥, 𝑦, and 𝑧:

𝐧=⟨1,2,3⟩.

Now we can’t use the origin (0,0,0) this time, but we can pick any other point on the plane; we’ll chose (0,0,20). (You could do the problem with (60,0,0) or (0,30,0) or even (−77,13,37) if you prefer; they all give the same answer.)

The vector 𝐯 from (0,0,20) to (7,8,5) is:

𝐯=⟨7−0,8−0,5−20⟩=⟨7,8,−15⟩.

Now we can just repeat the steps from before, where

𝐯⋅𝐧=(7)(1)+(8)(2)+(−15)(3)=−22|𝐧|=(1)2+(2)2+(3)2=1+4+9=14.

Hence

comp𝐧𝐯=𝐯⋅𝐧|𝐧|=−2214.

The distance is the absolute value 2214.□

Remark
It’s fine that you get a negative number for the scalar component. This corresponds to the fact that the point (7,8,5) is sandwiched between the two planes 𝑥+2𝑦+3𝑧=0 and 𝑥+2𝑦+3𝑧=60. Depending on which way you choose to point 𝐧, one of the components will be positive and the other negative. See Figure 12.

Figure 12: A 2D cartoon of the point (7,8,5) sandwiched between the planes 𝑥+2𝑦+3𝑧=0 and 𝑥+2𝑦+3𝑧=60. If we choose 𝐧=⟨1,2,3⟩ then we get +3814 and −2214 for the scalar components as shown in purple.

The thing about this exercise is that you can just do it with symbols instead of numbers and get a general formula, which means that doing it with specific numbers over and over is sort of a fool’s errand. Let’s just do them all at once.

Sample Question

Compute the distance from a point (𝑥0,𝑦0,𝑧0) to the plane defined by the equation

𝑎𝑥+𝑏𝑦+𝑐𝑧=𝑑.

Give the answer in terms of 𝑎, 𝑏, 𝑐, 𝑑, 𝑥0, 𝑦0, 𝑧0.

Solution. The normal vector 𝐧 to the plane is given by the coefficients of 𝑥, 𝑦, and 𝑧 in the plane equation:

𝐧=⟨𝑎,𝑏,𝑐⟩.

Now we select any base point (𝑥1,𝑦1,𝑧1) that lies on the plane 𝒫︀. We’ll do the case 𝑐≠0 and use

(𝑥1,𝑦1,𝑧1)=(0,0,𝑑𝑐)

but the other cases 𝑎≠0 and 𝑏≠0 are done in the same way. (In fact, you don’t really need to pick the base point either, it just makes the calculation a bit easier to think about in what follows.)

The vector 𝐯 from (𝑥1,𝑦1,𝑧1) to (𝑥0,𝑦0,𝑧0) is:

𝐯=⟨𝑥0−𝑥1,𝑦0−𝑦1,𝑧0−𝑧1⟩=⟨𝑥0,𝑦0,𝑧0−𝑑𝑐⟩.

Now, the scalar component of 𝐯 along 𝐧 is given by

comp𝐧𝐯=𝐯⋅𝐧|𝐧|.

We compute it. Compute the dot product 𝐯⋅𝐧:

𝐯⋅𝐧=𝑎𝑥0+𝑏𝑦0+𝑐(𝑧0−𝑑𝑐)=𝑎𝑥0+𝑏𝑦0+𝑐𝑧0−𝑑.

Compute the magnitude of 𝐧:

|𝐧|=𝑎2+𝑏2+𝑐2.

Therefore, the scalar component is:

comp𝐧𝐯=𝑎𝑥0+𝑏𝑦0+𝑐𝑧0−𝑑𝑎2+𝑏2+𝑐2.

Finally, the distance from the point to the plane is the absolute value of the scalar component:

|comp𝐧𝐯|=|𝑎𝑥0+𝑏𝑦0+𝑐𝑧0−𝑑𝑎2+𝑏2+𝑐2|.

□

§5.6 [RECIPE] Distance to a plane

If you just want to memorize the final result, here it is:

Recipe for distance from point to plane

If asked to find the distance from a point (𝑥0,𝑦0,𝑧0) to the plane defined by the equation 𝑎𝑥+𝑏𝑦+𝑐𝑧=𝑑, output the answer

|𝑎𝑥0+𝑏𝑦0+𝑐𝑧0−𝑑|𝑎2+𝑏2+𝑐2.

(We’ve moved the absolute value to the numerator, since the square root is always positive.)

§5.7 [EXER] Exercises

Exercise 5.1. A cube is drawn somewhere in ℝ3 (its faces are not parallel to the coordinate axes). Two of the faces of the cube are contained in the planes 𝑥+2𝑦+3𝑧=4 and 5𝑥+6𝑦+𝑘𝑧=7, respectively, for some real number 𝑘. Given this information, compute 𝑘.
Exercise 5.2. The distance from a certain point 𝑃 to the plane 3𝑥+4𝑦+12𝑧=−1 is 42. What are the possible distances from 𝑃 to the plane 3𝑥+4𝑦+12𝑧=1000?