Skip to main content

Section 6.5 Lines and Planes

Lines and planes are perhaps the simplest of curves and surfaces in three dimensional space. They also will prove important as we seek to understand more complicated curves and surfaces.

You may recall that the equation of a line in two dimensions is \(ax+by=c\text{;}\) it is reasonable to expect that a line in three dimensions is given by \(ax + by +cz = d\text{.}\) However it turns out that this is the equation of a plane. We will turn our attention to a study of planes and return to consider lines later in this section.

A plane does not have an obvious “direction” as does a line. It is possible to associate a plane with a direction in a very useful way, however: there are exactly two directions perpendicular to a plane. Any vector with one of these two directions is called normal to the plane. While there are many normal vectors to a given plane, they are all parallel or anti-parallel to each other.

Suppose two points \((v_1,v_2,v_3)\) and \((w_1,w_2,w_3)\) are in a plane; then the vector \(\langle w_1-v_1,w_2-v_2,w_3-v_3\rangle\) is parallel to the plane. In particular, if this vector is placed with its tail at \((v_1,v_2,v_3)\) then its head is at \((w_1,w_2,w_3)\) and it lies in the plane. As a result, any vector perpendicular to the plane is perpendicular to \(\langle w_1-v_1,w_2-v_2,w_3-v_3\rangle\text{.}\) In fact, it is easy to see that the plane consists of precisely those points \((w_1,w_2,w_3)\) for which \(\langle w_1-v_1,w_2-v_2,w_3-v_3\rangle\) is perpendicular to a normal to the plane, as indicated in Figure 6.11. Turning this around, suppose we know that \(\langle a,b,c\rangle\) is normal to a plane containing the point \((v_1,v_2,v_3)\text{.}\) Then \((x,y,z)\) is in the plane if and only if \(\langle a,b,c\rangle\) is perpendicular to \(\langle x-v_1,y-v_2,z-v_3\rangle\text{.}\) In turn, we know that this is true precisely when \(\langle a,b,c\rangle\cdot\langle x-v_1,y-v_2,z-v_3\rangle=0\text{.}\) That is, \((x,y,z)\) is in the plane if and only if

\begin{align*} \langle a,b,c\rangle\cdot\langle x-v_1,y-v_2,z-v_3\rangle\amp =0\\ a(x-v_1)+b(y-v_2)+c(z-v_3)\amp =0\\ ax+by+cz-av_1-bv_2-cv_3\amp =0\\ ax+by+cz\amp =av_1+bv_2+cv_3\text{.} \end{align*}

Working backwards, note that if \((x,y,z)\) is a point satisfying \(ax+by+cz=d\) then

\begin{align*} ax+by+cz\amp =d\\ ax+by+cz-d\amp =0\\ a(x-d/a)+b(y-0)+c(z-0)\amp =0\\ \langle a,b,c\rangle\cdot\langle x-d/a,y,z\rangle\amp =0\text{.} \end{align*}

Namely, \(\langle a,b,c\rangle\) is perpendicular to the vector with tail at \((d/a,0,0)\) and head at \((x,y,z)\text{.}\) This means that the points \((x,y,z)\) that satisfy the equation \(ax+by+cz=d\) form a plane perpendicular to \(\langle a,b,c\rangle\text{.}\) (This doesn't work if \(a=0\text{,}\) but in that case we can use \(b\) or \(c\) in the role of \(a\text{.}\) That is, either \(a(x-0)+b(y-d/b)+c(z-0)=0\) or \(a(x-0)+b(y-0)+c(z-d/c)=0\text{.}\))

Figure 6.11. A plane defined via vectors perpendicular to a normal.

Thus, given a vector \(\langle a,b,c\rangle\) we know that all planes perpendicular to this vector have the form \(ax+by+cz=d\text{,}\) and any surface of this form is a plane perpendicular to \(\langle a,b,c\rangle\text{.}\)

Definition 6.10. Scalar Equation of a Plane.

Any plane can be written in the form

\begin{equation*} ax + by + cz = d \end{equation*}

where \(a, b, c, d\) are constants and not all \(a, b, c\) are zero.

This plane is perpendicular to the vector \(\langle a,b,c \rangle\text{.}\)

Example 6.11. Perpendicular Plane.

Find an equation for the plane perpendicular to \(\langle 1,2,3\rangle\) and containing the point \((5,0,7)\text{.}\)

Solution

Using the formula above, the plane is \(1x+2y+3z=d\text{.}\) To find \(d\) we may substitute the known point on the plane to get \(5+2\cdot0+3\cdot7=d\text{,}\) so \(d=26\text{.}\)

Example 6.12. Normal Vector.

Find a vector normal to the plane \(2x-3y+z=15\text{.}\)

Solution

One example is \(\langle 2, -3,1\rangle\text{.}\) Any vector parallel or anti-parallel to this works as well, so for example \(-2\langle 2, -3,1\rangle=\langle -4,6,-2\rangle\) is also normal to the plane.

We will frequently need to find an equation for a plane given certain information about the plane. While there may occasionally be slightly shorter ways to get to the desired result, it is always possible, and usually advisable, to use the given information to find a normal to the plane and a point on the plane, and then to find the equation as above.

Example 6.13. Plane Perpendicular.

The planes \(x-z=1\) and \(y+2z=3\) intersect in a line. Find a third plane that contains this line and is perpendicular to the plane \(x+y-2z=1\text{.}\)

Solution

First, we note that two planes are perpendicular if and only if their normal vectors are perpendicular. Thus, we seek a vector \(\langle a,b,c\rangle\) that is perpendicular to \(\langle 1,1,-2\rangle\text{.}\) In addition, since the desired plane is to contain a certain line, \(\langle a,b,c\rangle\) must be perpendicular to any vector parallel to this line. Since \(\langle a,b,c\rangle\) must be perpendicular to two vectors, we may find it by computing the cross product of the two.

Therefore we need a vector parallel to the line of intersection of the given planes. For this, it suffices to know two points on the line. To find two points on this line, we must find two points that are simultaneously on the two planes, \(x-z=1\) and \(y+2z=3\text{.}\) Any point on both planes will satisfy \(x-z=1\) and \(y+2z=3\text{.}\) It is easy to find values for \(x\) and \(z\) satisfying the first, such as \(x=1, z=0\) and \(x=2, z=1\text{.}\) Then we can find corresponding values for \(y\) using the second equation, namely \(y=3\) and \(y=1\text{,}\) so \((1,3,0)\) and \((2,1,1)\) are two such points. They are both on the line of intersection since they are contained in both planes.

Now \(\langle 2-1,1-3,1-0\rangle=\langle 1,-2,1\rangle\) is parallel to the line. Finally, we may choose \(\langle a,b,c\rangle=\langle 1,1,-2\rangle\times \langle 1,-2,1\rangle=\langle -3,-3,-3\rangle\text{.}\) While this vector will do perfectly well, any vector parallel or anti-parallel to it will work as well. For example we might choose \(\langle 1,1,1\rangle\) which is anti-parallel to it, and easier to work with.

Now we know that \(\langle 1,1,1\rangle\) is normal to the desired plane and \((2,1,1)\) is a point on the plane. This gives an equation of \((1)x + (1)y + (1)z = d\text{.}\) Substituting the value of the point into the equation gives \(d = 4\text{,}\) and therefore an equation of the plane is \(x+y+z=4\text{.}\) As a quick check, since \((1,3,0)\) is also on the line, it should be on the plane; since \(1+3+0=4\text{,}\) we see that this is indeed the case.

Note that had we used \(\langle -3,-3,-3\rangle\) as the normal, we would have discovered the equation \(-3x-3y-3z=-12\text{.}\) Then we might well have noticed that we could divide both sides by \(-3\) to get the equivalent \(x+y+z=4\text{.}\)

We will now turn our attention to a study of lines. Unfortunately, it turns out to be quite inconvenient to represent a typical line with a single equation; we need to approach lines in a different way.

Unlike a plane, a line in three dimensions does have an obvious direction, namely, the direction of any vector parallel to it. In fact a line can be defined and uniquely identified by providing one point on the line and a vector parallel to the line (in one of two possible directions). That is, the line consists of exactly those points we can reach by starting at the point and going for some distance in the direction of the vector. Let's see how we can translate this into more mathematical language.

Suppose a line contains the point \((v_1,v_2,v_3)\) and is parallel to the vector \(\langle a,b,c\rangle\text{.}\) If we place the vector \(\langle v_1,v_2,v_3\rangle\) with its tail at the origin and its head at \((v_1,v_2,v_3)\text{,}\) and if we place the vector \(\langle a,b,c\rangle\) with its tail at \((v_1,v_2,v_3)\text{,}\) then the head of \(\langle a,b,c\rangle\) is at a point on the line. We can get to any point on the line by doing the same thing, except using \(t\langle a,b,c\rangle\) in place of \(\langle a,b,c\rangle\text{,}\) where \(t\) is some real number. Because of the way vector addition works, the point at the head of the vector \(t\langle a,b,c\rangle\) is the point at the head of the vector \(\langle v_1,v_2,v_3\rangle+t\langle a,b,c\rangle\text{,}\) namely \((v_1+ta,v_2+tb,v_3+tc)\text{;}\) see Figure 6.12.

Figure 6.12. Vector form of a line.

In other words, as \(t\) runs through all possible real values, the vector \(\langle v_1,v_2,v_3\rangle+t\langle a,b,c\rangle\) points to every point on the line when its tail is placed at the origin. It is occasionally useful to use this form of a line even in two dimensions; a vector form for a line in the \(x\)-\(y\)-plane is \(\langle v_1,v_2\rangle+t\langle a,b\rangle\text{,}\) which is the same as \(\langle v_1,v_2,0\rangle+t\langle a,b,0\rangle\text{.}\)

Definition 6.14.

{Vector Equation of a Line} An equation for a line passing through point \((v_1, v_2, v_3)\) and parallel to the vector\(\langle a, b, c\rangle\) is

\begin{equation*} \langle v_1,v_2,v_3\rangle+t\langle a,b,c\rangle \end{equation*}

where the vector \(\langle a, b, c\rangle\) is called the direction vector for the line.

Another common way to write this is as a set of parametric equations:

\begin{equation*} x= v_1+ta\qquad y=v_2+tb \qquad z=v_3+tc\text{.} \end{equation*}
Definition 6.15. Parametric Equations of a Line.

A line in space can be described as

\begin{gather*} x = v_1 + ta\\ y = v_2 + tb\\ z = v_3 + tc \end{gather*}

where \((v_1, v_2, v_3)\) is a point on the line and \(\langle a, b, c \rangle\) is parallel to the line.

Example 6.16. Vector Expression.

Find a vector expression for the line through \((6,1,-3)\) and \((2,4,5)\text{.}\)

Solution

To get a vector parallel to the line we subtract \(\langle 6,1,-3\rangle-\langle2,4,5\rangle=\langle 4,-3,-8\rangle\text{.}\) The line is then given by \(\langle 2,4,5\rangle+t\langle 4,-3,-8\rangle\text{;}\) there are of course many other possibilities, such as \(\langle 6,1,-3\rangle+t\langle 4,-3,-8\rangle\text{.}\)

Example 6.17. Intersecting Lines.

Determine whether the lines \(\langle 1,1,1\rangle+t\langle 1,2,-1\rangle\) and \(\langle 3,2,1\rangle+t\langle -1,-5,3\rangle\) are parallel, intersect, or neither.

Solution

In two dimensions, two lines either intersect or are parallel; in three dimensions, lines that do not intersect might not be parallel. In this case, since the direction vectors for the lines are not parallel or anti-parallel we know the lines are not parallel. If they intersect, there must be two values \(a\) and \(b\) so that \(\langle 1,1,1\rangle+a\langle 1,2,-1\rangle= \langle 3,2,1\rangle+b\langle -1,-5,3\rangle\text{.}\) That is, the following must have a solution:

\begin{align*} 1+a\amp =3-b\\ 1+2a\amp =2-5b\\ 1-a\amp =1+3b \end{align*}

This gives three equations in two unknowns, so there may or may not be a solution in general. In this case, it is easy to discover that \(a=3\) and \(b=-1\) satisfies all three equations. Substituting these values into \(\langle 1,1,1\rangle+a\langle 1,2,-1\rangle= \langle 3,2,1\rangle+b\langle -1,-5,3\rangle\text{,}\) the point of intersection is \((4,7,-2)\text{.}\)

Example 6.18. Distance from a Point to a Plane.

Find the distance from the point \((1,2,3)\) to the plane \(2x-y+3z=5\text{.}\)

Solution

The distance from a point \(P\) to a plane is the shortest distance from \(P\) to any point on the plane; this is the distance measured from \(P\) perpendicular to the plane; see Figure 6.13. This distance is the absolute value of the scalar projection of \(\overrightarrow{\strut QP}\) onto a normal vector \(\vect{n}\text{,}\) where \(Q\) is any point on the plane. It is easy to find a point on the plane, say \((1,0,1)\text{.}\) Thus the distance is

\begin{equation*} {\langle 0,2,2\rangle\cdot\langle 2,-1,3\rangle\over|\langle 2,-1,3\rangle|}= {4\over\sqrt{14}}\text{.} \end{equation*}
Figure 6.13. Distance from a point to a plane.
Example 6.19. Distance from a Point to a Line.

Find the distance from the point \((-1,2,1)\) to the line \(\langle 1,1,1\rangle + t\langle 2,3,-1\rangle\text{.}\)

Solution

Again we want the distance measured perpendicular to the line, as indicated in Figure 6.14. The desired distance is

\begin{equation*} |\overrightarrow{\strut QP}|\sin\theta= {|\overrightarrow{\strut QP}\times\vect{v}|\over|\vect{v}|}\text{,} \end{equation*}

where \(\vect{v}\) is any vector parallel to the line. From the equation of the line, we can use \(Q=(1,1,1)\) and \(\vect{v}=\langle 2,3,-1\rangle\) along with \(P = (-1,2,1)\text{,}\) so the distance is

\begin{equation*} {|\langle -2,1,0\rangle\times\langle2,3,-1\rangle|\over\sqrt{14}}= {|\langle-1,-2,-8\rangle|\over\sqrt{14}}={\sqrt{69}\over\sqrt{14}}\text{.} \end{equation*}
Figure 6.14. Distance from a point to a line.
Exercises for Section 6.5.

Find an equation of the plane which satisfies the given conditions.

  1. contains \((6,2,1)\text{,}\) perpendicular to \(\langle 1,1,1\rangle\)

    Answer
    \((x-6)+(y-2)+(z-1)=0\)
  2. contains \((-1,2,-3)\text{,}\) perpendicular to \(\langle 4,5,-1\rangle\)

    Answer
    \(4(x+1)+5(y-2)-(z+3)=0\)
  3. contains \((1,2,-3)\text{,}\) \((0,1,-2)\text{,}\) \((1,2,-2)\)

    Answer
    \((x-1)-(y-2)=0\)
  4. contains \((1,0,0)\text{,}\) \((4,2,0)\text{,}\) \((3,2,1)\)

    Answer
    \(-2(x-1)+3y-2z=0\)
  5. contains \((1,0,0)\text{,}\) \((4,2,0)\text{,}\) \((3,2,1)\)

    Answer
    \(4(x-1)-6y = 0\)
  6. contains \((1,0,0)\) and the line \(\langle 1,0,2\rangle + t\langle 3,2,1\rangle\)

    Answer
    \(x+3y=0\)
  7. contains the line of intersection of \(x+y+z=1\) and \(x-y+2z=2\text{,}\) perpendicular to the \(x\)-\(y\) plane

Find an equation of the line which satisfies the given conditions.

  1. passes through \((1,0,3)\text{,}\) \((1,2,4)\)

    Answer
    \(\langle 1,0,3\rangle+t\langle 0,2,1\rangle\)
  2. passes through \((1,0,3)\text{,}\) perpendicular to the plane \(x+2y-z=1\)

    Answer
    \(\langle 1,0,3\rangle+t\langle 1,2,-1\rangle\)
  3. passes through the origin, perpendicular to the plane \(x+y-z=2\)

    Answer
    \(t\langle 1,1,-1\rangle\)

Find \(a\) and \(c\) so that \((a,1,c)\) is on the line through \((0,2,3)\) and \((2,7,5)\text{.}\)

Answer

\(-2/5\text{,}\) \(13/5\)

Determine whether the given lines are parallel, intersect, or neither.

  1. \(\langle 1,3,-1\rangle+t\langle 1,1,0\rangle\) and \(\langle 0,0,0\rangle+t\langle 1,4,5\rangle\)

    Answer
    neither
  2. \(\langle 1,0,2\rangle+t\langle -1,-1,2\rangle\) and \(\langle 4,4,2\rangle+t\langle 2,2,-4\rangle\)

    Answer
    parallel
  3. \(\langle 1,2,-1\rangle+t\langle 1,2,3\rangle\) and \(\langle 1,0,1\rangle+t\langle 2/3,2,4/3\rangle\)

    Answer
    intersect at \((3,6,5)\)
  4. \(\langle 1,1,2\rangle+t\langle 1,2,-3\rangle\) and \(\langle 2,3,-1\rangle+t\langle 2,4,-6\rangle\)

    Answer
    same line

Find a unit normal vector to each of the coordinate planes.

Show that \(\langle 2,1,3 \rangle + t \langle 1,1,2 \rangle\) and \(\langle 3, 2, 5 \rangle + s \langle 2, 2, 4 \rangle\) are the same line.

Give a prose description for each of the following processes:

  1. Given two distinct points, find the line that goes through them.

  2. Given three points (not all on the same line), find the plane that goes through them. Why do we need the caveat that not all points be on the same line?

  3. Given a line and a point not on the line, find the plane that contains them both.

  4. Given a plane and a point not on the plane, find the line that is perpendicular to the plane through the given point.

Find the distance:

  1. from \((2,2,2)\) to \(x+y+z=-1\)

    Answer
    \(7/\sqrt3\)
  2. from \((2,-1,-1)\) to \(2x-3y+z=2\)

    Answer
    \(4/\sqrt{14}\)
  3. from \((2,-1,1)\) to \(\langle 2,2,0\rangle+t\langle 1,2,3\rangle\)

    Answer
    \(\sqrt{131}/\sqrt{14}\)
  4. from \((1,0,1)\) to \(\langle 3,2,1\rangle+t\langle 2,-1,-2\rangle\)

    Answer
    \(\sqrt{68}/3\)

Find the cosine of the angle between the following planes:

  1. \(x+y+z=2\) and \(x+2y+3z=8\)

    Answer
    \(\sqrt{42}/7\)
  2. \(x-y+2z=2\) and \(3x-2y+z=5\)

    Answer
    \(\sqrt{21}/6\)