Lines and Planes

Many results from single-variable calculus extend to objects in "higher dimensions". Since lines and planes are among the simplest higher-dimensional objects, it's natural to study them first.

I'll be working in three-dimensional space. I'll denote points by (e.g.) $(1, 2, 3)$ and vectors by (e.g.) $(4, 5, 6)$ .

A plane is determined by a point on the plane and a vector perpendicular to the plane. The perpendicular vector is often referred to as a normal vector.

Think of an infinite stack of pancakes. Exactly one of the pancakes passes through a given point in space:

$$\hbox{\epsfysize=1.5in \epsffile{lines-and-planes-1.eps}}$$

What is the equation of the plane which passes through the point $P(a, b, c)$ and is perpendicular to the vector $\vec{v} = (v_1, v_2, v_3)$ ? For a point $Q(x, y, z)$ to be on the plane, the vector $\bvec{P Q}$ must be perpendicular to $\vec{v}$ :

$$\hbox{\epsfysize=1.5 in \epsffile{lines-and-planes-2.eps}}$$

This means that the dot product of the vectors must be 0. Since $\bvec{P Q} = (x - a, y - b, z -
   c)$ , I have

$$\eqalign{ (v_1, v_2, v_3) \cdot (x - a, y - b, z - c) & = 0 \cr v_1 (x - a) + v_2 (y - b) + v_3 (z - 3) & = 0 \cr}$$

Thus, the equation of the plane which passes through the point $P(a, b, c)$ and is perpendicular to the vector $\vec{v} = (v_1, v_2, v_3)$ is

$$v_1 (x - a) + v_2 (y - b) + v_3 (z - 3) = 0.$$


Example. Find the equation of the plane which passes through the point $(5,
   -3, 1)$ and is perpendicular to the vector $(2, 4, 11)$ .

$$2 (x - 5) + 4 (y + 3) + 11 (z - 1) = 0, \quad\hbox{or}\quad 2 x + 4 y - 11 z = 9.\quad\halmos$$

Note: I got the second plane equation by multiplying out and simplifying the first. This isn't absolutely necessary, but it does make it easier to compare your answer to another one --- for example, in problems where you have a choice of more than one point.


Example. For the plane $3 x - 2 y + 7 z = 8$ , find a normal vector to the plane and a point on the plane.

To find the normal vector, read off the coefficients of x, y, and z: The normal vector is $(3, -2,
   7)$ . (Of course, any multiple of this vector would work.)

Since there are infinitely many points on the plane, you can't solve the plane equation for a unique point. Instead, you can:

(a) Set two of the variables equal to whatever numbers you want and solve for the third.

(b) "Juggle numbers" to find a combination that works.

As as example of (a), set $y =
   0$ and $z = 0$ . I get $3 x =
   8$ , so $x = \dfrac{8}{3}$ . The point $\left(\dfrac{8}{3}, 0, 0\right)$ lies on the plane.

Since it's better to avoid fractions if you're using the point in subsequent computations, you might instead set $x = 0$ and $z = 0$ . This gives $-2 y = 8$ , so $y = -4$ . Then $(0, -4, 0)$ is a point on the plane.

As an example of (b), I just play with numbers --- preferably integers to avoid fractions --- till I find a combination that satisfies the equation. For example, I notice that

$$3 \cdot 5 - 2 \cdot 0 + 7 \cdot (-1) = 8.$$

Therefore, $(5, 0, -1)$ is a point on the plane.


Example. Find the equation of the plane containing the points $P(4, 2,
   -1)$ , $Q(1, 0, 5)$ , and $R(5, 3,
   1)$ .

To construct a plane, you need a point on the plane and a vector perpendicular to the plane. For the point on the plane, I can use any of the three given points. I'll use $P(4, 2, -1)$ .

When you need a vector perpendicular to something, a common approach is to take the cross product of two vectors which lie in (or are parallel to) the thing. In this case, I'll use the vectors $\bvec{P Q}$ and $\bvec{P
   R}$ . Their cross product will be perpendicular to the plane.

$$\hbox{\epsfysize=1.5in \epsffile{lines-and-planes-3.eps}}$$

$\bvec{P Q} = (-3, -2, 6)$ and $\bvec{P R} = (1, 1, 2)$ , so

$$(-3, -2, 6) \times (1, 1, 2) = \left|\matrix{ \ihat & \jhat & \khat \cr -3 & -2 & 6 \cr 1 & 1 & 2 \cr}\right| = (-10, 12, -1).$$

The plane is

$$-10 (x - 4) + 12 (y - 2) - (z + 1) = 0, \quad\hbox{or}\quad -10 x + 12 y - z = -15.\quad\halmos$$


Example. Determine whether the following planes are parallel:

$$x + 2 y - 3 z = 0 \quad\hbox{and}\quad -2 x - 4 y + 6 z = 7.$$

Two planes are parallel if and only if their perpendicular vectors are parallel --- i.e. if and only if their perpendicular vectors are multiples.

$$\hbox{\epsfysize=1.5 in \epsffile{lines-and-planes-4.eps}}$$

$(1, 2, -3)$ is perpendicular to the first plane. $(-2, -4, 6)$ is perpendicular to the second plane. Since $(-2, -4, 6) = -2 \cdot (1, 2,
   -3)$ , the two vectors are parallel. Therefore, the planes are parallel.


A line in space is determined by a point on the line and a vector parallel to the line.

The lines which are parallel to a given vector are like a stack of spaghetti noodles. Exactly one of the parallel noodles passes through a given point in space.

$$\hbox{\epsfysize=1.5 in \epsffile{lines-and-planes-5.eps}}$$

What is the equation of the line which passes through the point $P(a, b, c)$ and is parallel to the vector $\vec{v} = (v_1, v_2, v_3)$ ? For a point $Q(x, y, z)$ to be on the line, the vector $\bvec{P Q}$ must be parallel to $\vec{v}$ :

$$\hbox{\epsfysize=1.5 in \epsffile{lines-and-planes-6.eps}}$$

This means that $\vec{v}$ and $\bvec{P Q}$ must be multiples. Since $\bvec{P Q} = (x - a, y - b, z -
   c)$ , I have

$$\eqalign{ (x - a, y - b, z - c) & = t \cdot (v_1, v_2, v_3) \cr (x - a, y - b, z - c) & = (v_1 t, v_2 t, v_3 t) \cr}$$

Equating components, I find that the line which passes through the point $(a, b, c)$ and is parallel to the vector $(v_1, v_2, v_3)$ has the parametric equations

$$x - a = v_1 t, \quad y - b = v_2 t, \quad z - c = v_3 t.$$

Sometimes people use the symmetric equations instead. To get the symmetric equations from the parametric equations, solve the equations for t, then equate the results:

$$\dfrac{x - a}{v_1} = \dfrac{y - b}{v_2} = \dfrac{z - c}{v_3}.$$

This assumes that $v_1$ , $v_2$ , and $v_3$ are nonzero. If any of them are 0, use the parametric equations instead.

To go from the symmetric equations to the parametric equations, equate the three symmetric equation expressions to t, then solve for x, y, and z.

I'll usually use the parametric equations for a line in doing problems.


Example. For the following line, find a vector parallel to the line, and find two points which lie on the line.

$$x = 4 + 2 t, \quad y = 3 - t, \quad z = 5 + 11 t.$$

Reading off the coefficients of the t's, I find that the vector $(2, -1, 11)$ is parallel to the line.

To get points on the line, plug in specific values for t. For example, $t = 0$ gives the point $(4, 3, 5)$ . And $t = 1$ gives the point $(6, 2, 16)$ .


Example. Find the parametric equations and the symmetric equations of the line which passes through the points $P(1, 0, 2)$ and $Q(-3, 1,
   1)$ .

I need a point on the line, and I have two. I'll use $P(1, 0, 2)$ .

I need a vector parallel to the line. Since P and Q lie on the line, the vector $\bvec{P Q}$ lies on the line:

$$\bvec{P Q} = (-4, 1, -1).$$

The parametric equations are

$$x - 1 = -4 t, \quad y = t, \quad z - 2 = -t.$$

The symmetric equations are

$$-\dfrac{x - 1}{4} = y = -(z - 2).\quad\halmos$$


For two different lines in space, there are several possibilities:

(a) The lines may intersect in a point. (If they intersect in more than one point, then they are the same line.)

(b) The lines may be parallel.

(c) The lines may be skew. (By definition, this means that they aren't parallel and don't intersect.)

A simple way to picture two skew lines is to imagine two non-parallel lines, one lying in the ceiling and the other in the floor:

$$\hbox{\epsfysize=1.5 in \epsffile{lines-and-planes-7.eps}}$$

Example. Determine whether the following lines are parallel, skew, or intersect.

$$x = s, \quad y = 2 + s, \quad z = 3 - s,$$

$$x = -1 + t, \quad y = -1 + 2 t, \quad z = 2 t.$$

If they intersect, find the point where they intersect.

The first line is parallel to the vector $(1, 1, -1)$ . The second line is parallel to the vector $(1, 2, 2)$ . The vectors aren't multiples, so the vectors aren't parallel. Therefore, the lines aren't parallel.

To determine where two things intersect, you solve their equations simultaneously.

Equate the two expressions for x:

$$s = x = -1 + t.$$

Equate the two expressions for y and substitute $s = -1 + t$ :

$$\eqalign{ 2 + s = -1 + 2 t \cr 2 + (-1 + t) & = -1 + 2 t \cr 1 + t & = -1 + 2 t \cr 2 & = t \cr}$$

Then $s = -1 + 2 = 1$ .

That's not all! I must use the z-expressions as a consistency check. Plug $s = 1$ and $t = 2$ into the z-equations:

$$z = 3 - 1 = 2 \quad\hbox{and}\quad z = 2 t = 2\cdot 2 = 4.$$

The z-values do not agree. Therefore, the lines do not intersect.

Since they're not parallel and don't interest, they're skew.

Notes: If the z-value had agreed, you could plug either s or t into the appropriate equations to find the intersection point. It is important to check the z-values for consistency.


Remarks. 1. A common mistake is to solve for s and t as I did, but then to plug s or t in immediately to get a point $(x, y, z)$ --- mistakenly concluding that the lines intersect. You must use all three sets of equations.

2. Sometimes the lines in problems like this are given with the same parameter: i.e. both lines may use t, instead of t and s. In this situation, change the parameter in one of the lines so the lines have different parameter variables.

Example. Find the equation of the plane which contains the point $P(1, 4,
   0)$ and the line

$$x = 1 + t, \quad y = -2 t, \quad z = 3 + t.$$

I need a point on the plane. I'll use $P(1, 4, 0)$ .

I need a vector perpendicular to the plane. To construct a vector perpendicular to something, you often use the cross product. To use the cross product here, I need two vectors which lie in the plane.

Since the line lies in the plane, a vector parallel to the line may be regarded by translation as lying in the plane.

To get another vector, take a point Q on the line and construct the vector $\bvec{P Q}$ .

$$\hbox{\epsfysize=1.5 in \epsffile{lines-and-planes-8.eps}}$$

The vector $\vec v = (1, -2,
   1)$ is parallel to the line.

I can get a point on the line by setting t equal to a number. Set $t = -1$ ; I obtain $Q(0, 2, 2)$ . Then

$$\bvec{P Q} = (-1, -2, 2).$$

Next, take the cross product of the two vectors:

$$(1, -2, 1) \times (-1, -2, 2) = \left|\matrix{\ihat & \jhat & \khat \cr 1 & -2 & 1 \cr -1 & -2 & 2 \cr}\right| = -2\ihat - 3\jhat - 4\khat = (-2, -3, -4).$$

This vector is perpendicular to the plane.

The equation of the plane is

$$-2(x - 1) - 3(y - 4) - 4(z - 0) = 0, \quad\hbox{or}\quad 2 x + 3 y + 4 z = 14.\quad\halmos$$


Example. Determine whether the following plane and line are parallel:

$$x - y - 3 z = 5,$$

$$x = 1 + 2 t, \quad y = 3 + 3 t, \quad z = 5 - 4 t.$$

If they aren't parallel, find the point at which they intersect.

A line and a plane are parallel if and only if the line's parallel vector is perpendicular to the plane's perpendicular vector --- i.e. if the line's parallel vector and the plane's perpendicular vector have dot product zero.

$$\hbox{\epsfysize=1.5 in \epsffile{lines-and-planes-9.eps}}$$

$(1, -1, -3)$ is perpendicular to the plane. $(2, 3, -4)$ is parallel to the line.

$$(1, -1, -3) \cdot (2, 3, -4) = 1 - 3 + 12 = 10 \ne 0.$$

The vectors aren't perpendicular, so the line and plane aren't parallel.

To find the intersection point, plug the line equations into the plane equation:

$$(1 + 2 t) - (3 + 3 t) - 3(5 - 4 t) = 5, \quad t = 2.$$

Plug this back into the line equations. I get $x = 5$ , $y = 9$ , $z = -3$ . The intersection point is $(5, 9, -3)$ .


Example. The following lines are skew:

$$x = t, \quad y = t + 2, \quad z = 3 - t \quad\hbox{and}\quad x = s - 1, \quad y = 2 s - 1, \quad z = 2 s$$

Find the equation of the plane which contains the first line and is parallel to the second line.

I need a point on the plane. The plane contains the first line, so I can use a point on the first line. Set $t = 0$ : I get $P(0,
   2, 3)$ .

I need a vector perpendicular to the plane. It's natural to take the cross product of two vectors in the plane. For one vector, I use the vector for the first line: $\vec{a} = (1, 1, -1)$ . Since the plane is parallel to the second line, I can regard the second line's vector as lying in the plane, by translation. The second line's vector is $\vec{b} = (1, 2, 2)$ .

$$\hbox{\epsfysize=1.5 in \epsffile{lines-and-planes-10.eps}}$$

Take the cross product:

$$(1, 1, -1) \times (1, 2, 2) = \left|\matrix{ \ihat & \jhat & \khat \cr 1 & 1 & -1 \cr 1 & 2 & 2 \cr}\right| = (4, -3, 1).$$

The plane is

$$4(x - 0) - 3(y - 2) + (z - 3) = 0, \quad\hbox{or}\quad 4 x - 3 y + z = -3.\quad\halmos$$


Example. Find the equation of the line of intersection of the planes

$$2 x - 3 y + z = 0 \quad\hbox{and}\quad x + y + z = 4.$$

There are many ways to do this problem.

Subtract twice the second equation from the first:

$$\matrix{ 2 x - 3 y + z & = 0 \cr 2 x + 2 y + 2 z & = 8 \cr \noalign{\vskip2pt \hrule \vskip2pt} -5 y - z & = - 8 \cr}$$

This gives $5 y + z = 8$ .

Method 1. ( Parametric equations) The equation $5 y + z = 8$ gives $z = 8 - 5 y$ . Set $y =
   t$ , so $z = 8 - 5 t$ . Then

$$\eqalign{ x + y + z & = 4 \cr x + t + (8 - 5 t) & = 4 \cr x & = 4 t - 4 \cr}$$

The line is

$$x = 4 t - 4, \quad y = t, \quad z = 8 - 5 t.$$

Method 2. Setting $y = 0$ in $5 y + z =
   8$ gives $z = 8$ . Then plugging $y = 0$ and $z = 8$ into $x + y +
   z = 4$ gives $x + 8 = 4$ , so $x =
   -4$ . This means that $(-4, 0, 8)$ is a point on the line of intersection of the planes. From here I can continue in a couple of ways.

Method 2(a). Setting $y = 1$ in $5 y + z =
   8$ gives $5 + z = 8$ , so $z = 3$ . Then plugging $y = 1$ and $z = 3$ into $x + y + z = 4$ gives $x + 4 = 4$ , so $x = 0$ . This means that $(0, 1, 3)$ is another point on the line of intersection of the planes.

The vector from $(-4, 0, 8)$ to $(0, 1, 3)$ is $(4, 1,
   -5)$ . This vector is parallel to the intersection line. Using the point $(-4, 0, 8)$ , I get the same line equations as I did earlier:

$$x = 4 t - 4, \quad y = t, \quad z = 8 - 5 t.$$

Method 2(b). The vector $(2, -3, 1)$ is perpendicular to the first plane. The vector $(1, 1, 1)$ is perpendicular to the second plane. Their cross product is parallel to the line of intersection.

$$\hbox{\epsfysize=1.5 in \epsffile{lines-and-planes-11.eps}}$$

The cross product is

$$(2, -3, 1) \times (1, 1, 1) = \left|\matrix{ \ihat & \jhat & \khat \cr 2 & -3 & 1 \cr 1 & 1 & 1 \cr}\right| = (-4, -1, 5).$$

Using $(-4, 0, 8)$ as the point on the line, I get the equations

$$x = -4 t - 4, \quad y = -t, \quad z = 8 + 5 t.\quad\halmos$$


Example. (a) Show that the following lines intersect:

$$x = 2 + 3 t, \quad y = -4 - 2 t, \quad z = -1 + 4 t$$

$$x = 6 + 4 s, \quad y = -2 + 2 s, \quad z = -3 - 2 s$$

(b) Find the equation of the plane containing the two lines in part (a).

(a) Set the x-expressions equal:

$$2 + 3 t = x = 6 + 4 s, \quad t = \dfrac{4}{3} + \dfrac{4}{3}s.$$

Set the y-expressions equal:

$$-4 - 2 t = y = -2 + 2 s.$$

Plug in $t = \dfrac{4}{3} +
   \dfrac{4}{3}s$ :

$$-4 - 2\left(\dfrac{4}{3} + \dfrac{4}{3}s\right) = -2 + 2 s, \quad s = -1.$$

Therefore, $t = \dfrac{4}{3}
   + \dfrac{4}{3} s = 0$ .

Check for consistency by substituting the s and t values into the equation for z:

$$z = 1 - 4 t = -1, \quad z = -3 - 2 s = -1.$$

Since the equation checks, the lines intersect. $t = 0$ gives $x =
   2$ , $y = -4$ , $z = -1$ : The intersection point is $(2, -4, -1)$ .

(b) The vector $(3, -2, 4)$ is parallel to the first line, and the vector $(4, 2, -2)$ is parallel to the second line. The cross product is perpendicular to the plane containing the lines:

$$(3, -2, 4) \times (4, 2, -2) = \left|\matrix{ \ihat & \jhat & \khat \cr 3 & -2 & 4 \cr 4 & 2 & -2 \cr}\right| = (-4, 22, 14).$$

$$\hbox{\epsfysize=1.5 in \epsffile{lines-and-planes-12.eps}}$$

From part (a), the point $(2,
   -4, -1)$ is on both lines, so it is surely in the plane. Therefore, the plane is

$$-4 (x - 2) + 22 (y + 4) + 14 (z + 1) = 0, \quad\hbox{or}\quad 2 x - 11 y - 7 z = 55.\quad\halmos$$


Contact information

Bruce Ikenaga's Home Page

Copyright 2018 by Bruce Ikenaga