Three Dimensional Geometry
Equations of Planes in Three Dimensions
Normal Vector
In three dimensions, the set of lines perpendicular to a particular vector that go through a fixed
point define a plane. To try out this idea, pick out a single point and from this point imagine a
vector emanating from it, in any direction. Now, consider the piece of paper that always forms a
right angle with this vector. This piece of paper is representing a specific plane in three dimensions.
Thus, we need two pieces of information to ascertain the equation of a plane:
1) Its normal vector
2) A point on the plane
Now, consider drawing a vector from the origin (0,0,0) to any point on the plane (x, y, z). Let the
normal vector to the plane be ai + bj + ck. The dot product between these two vectors is ax + by +
cz. But the dot product between these vectors divide by both of their magnitudes is also the cosine
of the included angle. Consider the following picture:
Using the distances labeled in the diagram, we have
𝑎𝑥 + 𝑏𝑦 + 𝑐𝑧 = 𝑀𝐷𝑐𝑜𝑠𝜃
But, remember that we can get an expression for cos θ by using the right triangle connecting the
𝐷
origin, (a, b, c) and (x, y, z). Thus, we have 𝑐𝑜𝑠𝜃 = 𝑀. Thus, we can simplify the equation above
to
𝑎𝑥 + 𝑏𝑦 + 𝑐𝑧 = 𝐷2
Typically, most textbooks will write that the Cartesian form for the equation of the plane is
𝑎𝑥 + 𝑏𝑦 + 𝑐𝑧 = 𝐷
Notice that these two forms are consistent. In the latter form, D no longer represents the distance
of the plane from the origin. But, using the former form, we can make the following realization:
𝐷2 = 𝑎2 + 𝑏 2 + 𝑐 2 . Thus, D represents the magnitude of the vector that is the normal to the plane,
starting from the origin. If we divide both sides by D, we get the following:
𝑎 𝑏 𝑐
𝑥+ 𝑦+ 𝑧=𝐷
𝐷 𝐷 𝐷
Remember that the coefficients a, b and c are nothing but the components of the normal vector to
the plane. In this latter form, we’ve scaled this normal vector to be a unit vector, a vector of
magnitude 1. (This is relatively easy to see because we defined D to be the distance of the point
(a, b, c) from the origin.) Thus, this gives rise to the vector equation of a plane:
𝑟 ∙ 𝑛̂ = 𝐷
The position vector (point) r represents an arbitrary point on the plane. (This is equivalent to (x,y,z)
in the Cartesian equation.). The direction vector 𝑛̂ represents the unit normal vector to the plane.
Note that the accent ( ̂ ) represents that the vector is scaled to be a unit vector.) Finally, D
represents the distance of the plane from the origin. Note that typically, if we don’t scale the normal
vector, then the vector equation of the plane is simply: 𝑟 ∙ 𝑛 = 𝐷, and in this situation the distance
𝐷
of the plane from the origin is | |𝑛| |.
Here are examples of the same plane expressed in a Cartesian equation and a vector equation:
3𝑥 − 2𝑦 + 6𝑧 = 21
𝑟 ∙ (3𝑖 − 2𝑗 + 6𝑘) = 21
3 2 6
Notice that if we scale the normal vector to be a unit vector, it would be 7 𝑖 − 7 𝑗 + 7 𝑘. Thus, we
could also write this equation as:
3 2 6
𝑟 ∙ ( 𝑖 − 𝑗 + 𝑘) = 3
7 7 7
Thus, this plane has distance 3 from the origin.
Determining a cross product of three dimensional vectors
Let the two vectors be ai+bj+ck and di+ej+fk. This computation can be done via the following
determinant:
𝑖 𝑗 𝑘
|𝑎 𝑏 𝑐 | = (𝑏𝑓 − 𝑒𝑐)𝑖 + (𝑐𝑑 − 𝑓𝑎)𝑗 + (𝑎𝑒 − 𝑑𝑏)𝑘
𝑑 𝑒 𝑓
In general, the 3 x 3 determinant above is equal to 𝑖𝑏𝑓 + 𝑗𝑐𝑑 + 𝑘𝑎𝑒 − 𝑑𝑏𝑘 − 𝑒𝑐𝑖 − 𝑓𝑎𝑗, using
the “basket-weaving method” described here:
http://home.cc.umanitoba.ca/~thomas/Courses/Determinants.pdf (page 71).
Example
Find the cross product (3i – 2j + 6k) x (i + j + 3k):
𝑖 𝑗 𝑘
|3 −2 6| = (−6 − 6)𝑖 + (6 − 9)𝑗 + (3 − (−2))𝑘 = −12𝑖 − 3𝑗 + 5𝑘
1 1 3
Note that the order is important. Specifically, if we swap the order of the vectors in the cross
product, the result will be negated. Thus, (i+j+3k) x (3i – 2j + 6k) = 12i + 3j – 5k.
Determining the equation of a plane from three non-collinear points on the plane
If we are given three non-collinear points on the plane, we can create two non-parallel vectors on
the plane. Then, by definition, if we take the cross product of these two vectors on the plane, we’ll
obtain the normal vector to both of them, which must ALSO be the normal vector to the plane.
From here, there is only one unknown, namely the constant on the right hand side of the plane
equation. In either form, we can solve for this constant by plugging in any of the points in the
equation.
Example
What is an equation of a plane that goes through the points (2, 4, 6), (8, 1, 4) and (-2, 1, 6)?
Two vectors on the plane are 6i – 3j – 2k (movement from first point to second point) and -4i – 3j
+ 0k (movement from first point to third point).
𝑖 𝑗 𝑘
Their cross product is | 6 −3 −2| = −6𝑖 + 8𝑗 + (−18 − 12)𝑘 = −6𝑖 + 8𝑗 − 30𝑘
−4 −3 0
A multiple of this vector is 3i – 4j + 15k. Thus, an equation for this plane takes the form 3x – 4y
+ 15z = D. To find D, plug in a point on the plane. Let’s choose (2, 4, 6);
3(2) − 4(4) + 15(6) = 80
Thus, an equation of the plane is 3𝑥 − 4𝑦 + 15𝑧 = 80. Note that when we plug in the other two
points into this equation, they satisfy the equation, showing that this equation is consistent with
the points given.
80 16√10
Incidentally, the distance of this plane from the origin is √32 = .
+42 +152 10
Determining the intersection of three planes in the typical case
The typical intersection of three planes is a point. Atypical cases include no intersection because
either two of the planes are parallel or all pairs of planes meet in non-coincident parallel lines, two
or three of the planes are coincident, or all three planes intersect in the same line.
If we are given the information about the three planes as Cartesian equations, the point of
intersection is simply the solution to the system of three equations in three variables. This can be
solved via Cramer’s rule:
ax + by + cz = j
dx + ey + fz = k
gx + hy + iz = l
j b c a j c a b j
k e f d k f d e k
l h i g l i g h l
Then x = ,y= ,z=
a b c a b c a b c
d e f d e f d e f
g h i g h i g h i
These solutions only hold, of course, if the denominator in each expression is non-zero. If this denominator
is zero, then we’re in one of the atypical cases described previously.
Example
Find the point at which the planes 2x + 4y + 3z = -14, x – 2y + 4z = -9 and -3x + y -3z = 1 intersect.
Using Cramer’s rule, we find:
14 4 3
9 2 4
1 1 3 84 16 27 6 56 108 141
x= 3
2 4 3 12 48 3 18 8 12 47
1 2 4
3 1 3
2 14 3
1 9 4
3 1 3 54 168 3 81 8 42 94
y= 2
47 47 47
2 4 14
1 2 9
3 1 1 4 108 14 84 18 4 188
z= 4
47 47 47
Thus, the intersection of the three planes is (3, -2, -4).
Equations of Lines in Three Dimensions
Though the Cartesian equation of a line in three dimensions doesn’t obviously extend from the two
dimensional version, the vector equation of a line does. Thus, given a point, p0, on the line and the line’s
direction vector, v, the equation of the line can be written as r = p0 + λv, just like in two dimensions.
Thus, a line through the point (5, -2, 4) with the direction vector i+ 2j + 3k has the vector equation:
𝑟 = (5, −2, 4) + 𝜆(1, 2, 3)
As a parametric equation this is simply written as follows:
𝑥 =5+𝜆
𝑦 = −2 + 2𝜆
𝑧 = 4 + 3𝜆
If you wanted a Cartesian equation (which almost never gets used in programming representation of three
dimensional lines), you can solve for λ in each of the equations above and set all three of these expressions
𝑦+2 𝑧−4
equal: 𝑥 − 5 = 2 = 3 . The denominators are the direction vector of the line and a point on the line is
embedded in the numerator as the constants subtracted from x, y and z, respectively.
Intersection of a Plane and a Line
Now that we’ve defined equations of lines and planes in three dimensions, we can solve the intersection of
the two. We solve the typical case as follows:
1) Get a parametric equation of the line
2) Substitute the right-hand sides of x, y and z into the plane equation.
3) Solve for λ, if possible. (If it’s not possible, we’re in a degenerate case.)
4) Plug in for λ in the line equation to determine the point of intersection.
The degenerate case corresponds to a situation where the line is parallel to the plane. Either, the line will
be ON the plane, or it will not intersect with it at all. To determine which of the two scenarios is correct,
pick any point on the line to plug into the plane equation. If it satisfies it, then the line is on the plane. If it
doesn’t, the line is parallel to the plane, but on a different plane.
Example
What is the intersection of the line (i + 4j + 9k) + (2i – j -4k)λ and the plane 3x – 4y + 6z = 13?
Rewrite the equation of the line parametrically: x = 1 + 2λ, y = 4 – λ, z = 9 – 4λ. Plug this into the plane
equation:
3(1 + 2λ) – 4(4 – λ) + 6(9 – 4λ) = 13
3 + 6λ – 16 + 4λ + 54 – 24λ = 13
-14λ + 41 = 13
-14λ = -28
λ=2
Thus, the point of intersection is x = 1 + 2(2) = 5, y = 4 – 2 = 2, z = 9 – 4(2) = 1, or (5, 2, 1).
Plane, Plane intersection
Typically, this is a line. It's not is when the normal vectors for both planes are parallel to each other.
Otherwise, plug in an arbitrary value of x into both planes. This leaves you two equations in y and z. Solve
for both of these for the point. Now, do this for a different value of x to yield a second point of intersection.
Now, you have your line. The only time this won't work is when the intersection line is contained with a
plane of the form x=c. You'll recognize this since the system of equations won't have a unique solution,
meaning that a determinant in Kramer's rule will be zero. If this is the case, simply plug in two arbitrary
values for y and solve for x and z. Example: Planes x+3y+z = 12 and 4x-5y+z = -8. Plug in x=0 to yield
3y+z=12 and –5y+z =-8. The solution here is y=2.5, z=4.5, soothe point (0, 2.5, 4.5) is on the line. Now,
plug in x=-2 to yield –2+3y+z = 12 and –8-5y+z = -8. These simplify to 3y+z=14 and –5y+z = 0. Solving,
we get y=1.75,z=8.75, so the point (-2,1.75,8.75) is also on the line of intersection. The equation of this line
of intersection is r = (0, 2.5, 4.5) + t(-2, -.75, 4.25).
Distance between two parallel planes
𝐷
In the equation Ax + By + Cz = D, the distance of the plane from the origin is 2 2 2 . Recall that Ai +
√𝐴 +𝐵 +𝐶
Bj + Ck is nothing but the normal vector to the plane for this equation. This means that if we scale our
normal vector to be a unit normal vector, then the absolute value of D represents the distance of the plane
from the origin. Thus, if we have two planes, Ax + By + Cz = D1 and Ax + By + Cz = D2, then the distance
|𝐷1 −𝐷2 |
between those planes is .
√𝐴2 +𝐵2 +𝐶 2
Distance between a point and a plane
Given a point (x1, y1, z1) and a plane Ax + By + Cz = D, the plane parallel to the given plane through the
point is: Ax + By + Cz = Ax1 + By2 + Cz2. From here, just fine the distance between the two planes!
Distance between a line and a plane
If you attempt to intersect a line and a plane and don’t get a unique solution, this means the line lies on a
plane parallel to the given plane. We can find the distance between the two by taking any point on the line,
determine the plane through that point parallel to the given plane and then finding the distance between the
planes.
Note on calculating intersections of parametric equations
Sometimes the parameter in two parametric equations is the same, other times it is different. Make sure you
know the difference. If we describe the motion of two different airplanes in terms of t, and are asked to
calculate whether the airplanes crash, the parameter we plug into the two equations can't be different. (In
real life, my car goes through the exact same spot in space as yours all the time, but hopefully never at the
same exact time. Only the latter infers a wreck.) With the intersection of two lines, the two parameters are
different.