### Learning Objectives

- 2.5.1 Write the vector, parametric, and symmetric equations of a line through a given point in a given direction, and a line through two given points.
- 2.5.2 Find the distance from a point to a given line.
- 2.5.3 Write the vector and scalar equations of a plane through a given point with a given normal.
- 2.5.4 Find the distance from a point to a given plane.
- 2.5.5 Find the angle between two planes.

By now, we are familiar with writing equations that describe a line in two dimensions. To write an equation for a line, we must know two points on the line, or we must know the direction of the line and at least one point through which the line passes. In two dimensions, we use the concept of slope to describe the orientation, or direction, of a line. In three dimensions, we describe the direction of a line using a vector parallel to the line. In this section, we examine how to use equations to describe lines and planes in space.

### Equations for a Line in Space

Let’s first explore what it means for two vectors to be parallel. Recall that parallel vectors must have the same or opposite directions. If two nonzero vectors, $\text{u}$ and $\text{v},$ are parallel, we claim there must be a scalar, $k,$ such that $\text{u}=k\text{v}.$ If $\text{u}$ and $\text{v}$ have the same direction, simply choose $k=\frac{\Vert \text{u}\Vert}{\Vert \text{v}\Vert}.$ If $\text{u}$ and $\text{v}$ have opposite directions, choose $k=-\frac{\Vert \text{u}\Vert}{\Vert \text{v}\Vert}.$ Note that the converse holds as well. If $\text{u}=k\text{v}$ for some scalar $\text{k},$ then either $\text{u}$ and $\text{v}$ have the same direction $\left(k>0\right)$ or opposite directions $\left(k<0\right),$ so $\text{u}$ and $\text{v}$ are parallel. Therefore, two nonzero vectors $\text{u}$ and $\text{v}$ are parallel if and only if $\text{u}=k\text{v}$ for some scalar $\text{k}.$ By convention, the zero vector $0$ is considered to be parallel to all vectors.

As in two dimensions, we can describe a line in space using a point on the line and the direction of the line, or a parallel vector, which we call the direction vector (Figure 2.63). Let $L$ be a line in space passing through point $P\left({x}_{0},{y}_{0},{z}_{0}\right).$ Let $\text{v}=\langle a,b,c\rangle $ be a vector parallel to $L.$ Then, for any point on line $Q\left(x,y,z\right),$ we know that $\overrightarrow{PQ}$ is parallel to $\text{v}.$ Thus, as we just discussed, there is a scalar, $t,$ such that $\overrightarrow{PQ}=t\text{v},$ which gives

Using vector operations, we can rewrite Equation 2.11 as

Setting $\text{r}=\langle x,y,z\rangle $ and ${\text{r}}_{0}=\langle {x}_{0},{y}_{0},{z}_{0}\rangle ,$ we now have the vector equation of a line:

Equating components, Equation 2.11 shows that the following equations are simultaneously true: $x-{x}_{0}=ta,$ $y-{y}_{0}=tb,$ and $z-{z}_{0}=tc.$ If we solve each of these equations for the component variables $x,y,\phantom{\rule{0.2em}{0ex}}\text{and}\phantom{\rule{0.2em}{0ex}}z,$ we get a set of equations in which each variable is defined in terms of the parameter *t* and that, together, describe the line. This set of three equations forms a set of parametric equations of a line:

If we solve each of the equations for $t$ assuming $a,b,\phantom{\rule{0.2em}{0ex}}\text{and}\phantom{\rule{0.2em}{0ex}}c$ are nonzero, we get a different description of the same line:

Because each expression equals *t*, they all have the same value. We can set them equal to each other to create symmetric equations of a line:

We summarize the results in the following theorem.

### Theorem 2.11

#### Parametric and Symmetric Equations of a Line

A line $L$ parallel to vector $\text{v}=\langle a,b,c\rangle $ and passing through point $P\left({x}_{0},{y}_{0},{z}_{0}\right)$ can be described by the following parametric equations:

If the constants $a,b,\phantom{\rule{0.2em}{0ex}}\text{and}\phantom{\rule{0.2em}{0ex}}c$ are all nonzero, then $L$ can be described by the symmetric equation of the line:

The parametric equations of a line are not unique. Using a different parallel vector or a different point on the line leads to a different, equivalent representation. Each set of parametric equations leads to a related set of symmetric equations, so it follows that a symmetric equation of a line is not unique either.

### Example 2.45

#### Equations of a Line in Space

Find parametric and symmetric equations of the line passing through points $\left(1,4,\mathrm{-2}\right)$ and $(\mathrm{-3},5,0).$

#### Solution

First, identify a vector parallel to the line:

Use either of the given points on the line to complete the parametric equations:

Solve each equation for $t$ to create the symmetric equation of the line:

### Checkpoint 2.43

Find parametric and symmetric equations of the line passing through points $\left(1,\mathrm{-3},2\right)$ and $\left(5,\mathrm{-2},8\right).$

Sometimes we don’t want the equation of a whole line, just a line segment. In this case, we limit the values of our parameter $t.$ For example, let $P\left({x}_{0},{y}_{0},{z}_{0}\right)$ and $Q\left({x}_{1},{y}_{1},{z}_{1}\right)$ be points on a line, and let $\text{p}=\langle {x}_{0},{y}_{0},{z}_{0}\rangle $ and $\text{q}=\langle {x}_{1},{y}_{1},{z}_{1}\rangle $ be the associated position vectors. In addition, let $\text{r}=\langle x,y,z\rangle .$ We want to find a vector equation for the line segment between $P$ and $Q.$ Using $P$ as our known point on the line, and $\overrightarrow{PQ}=\langle {x}_{1}-{x}_{0},{y}_{1}-{y}_{0},{z}_{1}-{z}_{0}\rangle $ as the direction vector equation, Equation 2.12 gives

Using properties of vectors, then

Thus, the vector equation of the line passing through $P$ and $Q$ is

Remember that we didn’t want the equation of the whole line, just the line segment between $P$ and $Q.$ Notice that when $t=0,$ we have $r=p,$ and when $t=1,$ we have $r=q.$ Therefore, the vector equation of the line segment between $P$ and $Q$ is

Going back to Equation 2.12, we can also find parametric equations for this line segment. We have

Then, the parametric equations are

### Example 2.46

#### Parametric Equations of a Line Segment

Find parametric equations of the line segment between the points $P(2,1,4)$ and $Q\left(3,\mathrm{-1},3\right).$

#### Solution

By Equation 2.16, we have

Working with each component separately, we get

and

Therefore, the parametric equations for the line segment are

### Checkpoint 2.44

Find parametric equations of the line segment between points $P(\mathrm{-1},3,6)$ and $Q\left(\mathrm{-8},2,4\right).$

### Distance between a Point and a Line

We already know how to calculate the distance between two points in space. We now expand this definition to describe the distance between a point and a line in space. Several real-world contexts exist when it is important to be able to calculate these distances. When building a home, for example, builders must consider “setback” requirements, when structures or fixtures have to be a certain distance from the property line. Air travel offers another example. Airlines are concerned about the distances between populated areas and proposed flight paths.

Let $L$ be a line in the plane and let $M$ be any point not on the line. Then, we define distance $d$ from $M$ to $L$ as the length of line segment $\stackrel{\u2014}{MP},$ where $P$ is a point on $L$ such that $\stackrel{\u2014}{MP}$ is perpendicular to $L$ (Figure 2.64).

When we’re looking for the distance between a line and a point in space, Figure 2.64 still applies. We still define the distance as the length of the perpendicular line segment connecting the point to the line. In space, however, there is no clear way to know which point on the line creates such a perpendicular line segment, so we select an arbitrary point on the line and use properties of vectors to calculate the distance. Therefore, let $P$ be an arbitrary point on line $L$ and let $\text{v}$ be a direction vector for $L$ (Figure 2.65).

By Area of a Parallelogram, vectors $\overrightarrow{PM}$ and $\text{v}$ form two sides of a parallelogram with area $\Vert \overrightarrow{PM}\phantom{\rule{0.2em}{0ex}}\times \phantom{\rule{0.2em}{0ex}}\text{v}\Vert .$ Using a formula from geometry, the area of this parallelogram can also be calculated as the product of its base and height:

We can use this formula to find a general formula for the distance between a line in space and any point not on the line.

### Theorem 2.12

#### Distance from a Point to a Line

Let $L$ be a line in space passing through point $P$ with direction vector $\text{v}.$ If $M$ is any point not on $L,$ then the distance from $M$ to $L$ is

### Example 2.47

#### Calculating the Distance from a Point to a Line

Find the distance between t point $M=\left(1,1,3\right)$ and line $\frac{x-3}{4}=\frac{y+1}{2}=z-3.$

#### Solution

From the symmetric equations of the line, we know that vector $\text{v}=\langle 4,2,1\rangle $ is a direction vector for the line. Setting the symmetric equations of the line equal to zero, we see that point $P\left(3,\mathrm{-1},3\right)$ lies on the line. Then,

To calculate the distance, we need to find $\overrightarrow{PM}\phantom{\rule{0.2em}{0ex}}\times \phantom{\rule{0.2em}{0ex}}\text{v}\text{:}$

Therefore, the distance between the point and the line is (Figure 2.66)

### Checkpoint 2.45

Find the distance between point $\left(0,3,6\right)$ and the line with parametric equations $x=1-t,y=1+2t,z=5+3t.$

### Relationships between Lines

Given two lines in the two-dimensional plane, the lines are equal, they are parallel but not equal, or they intersect in a single point. In three dimensions, a fourth case is possible. If two lines in space are not parallel, but do not intersect, then the lines are said to be skew lines (Figure 2.67).

To classify lines as parallel but not equal, equal, intersecting, or skew, we need to know two things: whether the direction vectors are parallel and whether the lines share a point (Figure 2.68).

### Example 2.48

#### Classifying Lines in Space

For each pair of lines, determine whether the lines are equal, parallel but not equal, skew, or intersecting.

- ${L}_{1}:x=2s-1,y=s-1,z=s-4$

${L}_{2}:x=t-3,y=3t+8,z=5-2t$ - ${L}_{1}\text{:}$ $x=\text{\u2212}y=z$

${L}_{2}:\frac{x-3}{2}=y=z-2$ - ${L}_{1}:x=6s-1,y=\mathrm{-2}s,z=3s+1$

${L}_{2}:\frac{x-4}{6}=\frac{y+3}{\mathrm{-2}}=\frac{z-1}{3}$

#### Solution

- Line ${L}_{1}$ has direction vector ${\text{v}}_{1}=\langle 2,1,1\rangle ;$ line ${L}_{2}$ has direction vector ${\text{v}}_{2}=\langle 1,3,\mathrm{-2}\rangle .$ Because the direction vectors are not parallel vectors, the lines are either intersecting or skew. To determine whether the lines intersect, we see if there is a point, $\left(x,y,z\right),$ that lies on both lines. To find this point, we use the parametric equations to create a system of equalities:

$$2s-1=t-3;\phantom{\rule{1em}{0ex}}s-1=3t+8;\phantom{\rule{1em}{0ex}}s-4=5-2t.$$

By the first equation, $t=2s+2.$ Substituting into the second equation yields

$$\begin{array}{ccc}\hfill s-1& =\hfill & 3\left(2s+2\right)+8\hfill \\ \hfill s-1& =\hfill & 6s+6+8\hfill \\ \hfill 5s& =\hfill & \mathrm{-15}\hfill \\ \hfill s& =\hfill & \mathrm{-3.}\hfill \end{array}$$

Substitution into the third equation, however, yields a contradiction:

$$\begin{array}{ccc}\hfill s-4& =\hfill & 5-2\left(2s+2\right)\hfill \\ \hfill s-4& =\hfill & 5-4s-4\hfill \\ \hfill 5s& =\hfill & 5\hfill \\ \hfill s& =\hfill & 1.\hfill \end{array}$$

There is no single point that satisfies the parametric equations for ${L}_{1}\phantom{\rule{0.2em}{0ex}}\text{and}\phantom{\rule{0.2em}{0ex}}{L}_{2}$ simultaneously. These lines do not intersect, so they are skew (see the following figure).

- Line
*L*has direction vector ${\text{v}}_{1}=\langle 1,\mathrm{-1},1\rangle $ and passes through the origin, $\left(0,0,0\right).$ Line ${L}_{2}$ has a different direction vector, ${\text{v}}_{2}=\langle 2,1,1\rangle ,$ so these lines are not parallel or equal. Let $r$ represent the parameter for line ${L}_{1}$ and let $s$ represent the parameter for ${L}_{2}\text{:}$_{1}

$$\begin{array}{cccc}\begin{array}{cc}x\hfill & =r\hfill \\ y\hfill & =\text{\u2212}r\hfill \\ z\hfill & =r\hfill \end{array}\hfill & & & \begin{array}{cc}x\hfill & =2s+3\hfill \\ y\hfill & =s\hfill \\ z\hfill & =s+2.\hfill \end{array}\hfill \end{array}$$

Solve the system of equations to find $r=1$ and $s=-1.$ If we need to find the point of intersection, we can substitute these parameters into the original equations to get $\left(1,\mathrm{-1},1\right)$ (see the following figure).

- Lines ${L}_{1}$ and ${L}_{2}$ have equivalent direction vectors: $\text{v}=\langle 6,\mathrm{-2},3\rangle .$ These two lines are parallel (see the following figure).

### Checkpoint 2.46

Describe the relationship between the lines with the following parametric equations:

### Equations for a Plane

We know that a line is determined by two points. In other words, for any two distinct points, there is exactly one line that passes through those points, whether in two dimensions or three. Similarly, given any three points that do not all lie on the same line, there is a unique plane that passes through these points. Just as a line is determined by two points, a plane is determined by three.

This may be the simplest way to characterize a plane, but we can use other descriptions as well. For example, given two distinct, intersecting lines, there is exactly one plane containing both lines. A plane is also determined by a line and any point that does not lie on the line. These characterizations arise naturally from the idea that a plane is determined by three points. Perhaps the most surprising characterization of a plane is actually the most useful.

Imagine a pair of orthogonal vectors that share an initial point. Visualize grabbing one of the vectors and twisting it. As you twist, the other vector spins around and sweeps out a plane. Here, we describe that concept mathematically. Let $\text{n}=\langle a,b,c\rangle $ be a vector and $P=\left({x}_{0},{y}_{0},{z}_{0}\right)$ be a point. Then the set of all points $Q=\left(x,y,z\right)$ such that $\overrightarrow{PQ}$ is orthogonal to $\text{n}$ forms a plane (Figure 2.69). We say that $\text{n}$ is a normal vector, or perpendicular to the plane. Remember, the dot product of orthogonal vectors is zero. This fact generates the vector equation of a plane: $\text{n}\xb7\overrightarrow{PQ}=0.$ Rewriting this equation provides additional ways to describe the plane:

### Definition

Given a point $P$ and vector $\text{n},$ the set of all points $Q$ satisfying the equation $\text{n}\xb7\overrightarrow{PQ}=0$ forms a plane. The equation

is known as the vector equation of a plane.

The scalar equation of a plane containing point $P=\left({x}_{0},{y}_{0},{z}_{0}\right)$ with normal vector $\text{n}=\langle a,b,c\rangle $ is

This equation can be expressed as $ax+by+cz+d=0,$ where $d=\text{\u2212}a{x}_{0}-b{y}_{0}-c{z}_{0}.$ This form of the equation is sometimes called the general form of the equation of a plane.

As described earlier in this section, any three points that do not all lie on the same line determine a plane. Given three such points, we can find an equation for the plane containing these points.

### Example 2.49

#### Writing an Equation of a Plane Given Three Points in the Plane

Write an equation for the plane containing points $P=\left(1,1,\mathrm{-2}\right),$ $Q=\left(0,2,1\right),$ and $R=\left(\mathrm{-1},\mathrm{-1},0\right)$ in both standard and general forms.

#### Solution

To write an equation for a plane, we must find a normal vector for the plane. We start by identifying two vectors in the plane:

The cross product $\overrightarrow{PQ}\phantom{\rule{0.2em}{0ex}}\times \phantom{\rule{0.2em}{0ex}}\overrightarrow{QR}$ is orthogonal to both $\overrightarrow{PQ}$ and $\overrightarrow{QR},$ so it is normal to the plane that contains these two vectors:

Thus, $\text{n}=\langle 8,\mathrm{-4},4\rangle ,$ and we can choose any of the three given points to write an equation of the plane:

The scalar equations of a plane vary depending on the normal vector and point chosen.

### Example 2.50

#### Writing an Equation for a Plane Given a Point and a Line

Find an equation of the plane that passes through point $\left(1,4,3\right)$ and contains the line given by $x=\frac{y-1}{2}=z+1.$

#### Solution

Symmetric equations describe the line that passes through point $\left(0,1,\text{\u2212}1\right)$ parallel to vector ${\text{v}}_{1}=\langle 1,2,1\rangle $ (see the following figure). Use this point and the given point, $\left(1,4,3\right),$ to identify a second vector parallel to the plane:

Use the cross product of these vectors to identify a normal vector for the plane:

The scalar equations for the plane are $5x-3\left(y-1\right)+\left(z+1\right)=0$ and $5x-3y+z+4=0.$

### Checkpoint 2.47

Find an equation of the plane containing the lines ${L}_{1}$ and ${L}_{2}\text{:}$

Now that we can write an equation for a plane, we can use the equation to find the distance $d$ between a point $P$ and the plane. It is defined as the shortest possible distance from $P$ to a point on the plane.

Just as we find the two-dimensional distance between a point and a line by calculating the length of a line segment perpendicular to the line, we find the three-dimensional distance between a point and a plane by calculating the length of a line segment perpendicular to the plane. Let $R$ be the point in the plane such that $\overrightarrow{RP}$ is orthogonal to the plane, and let $Q$ be an arbitrary point in the plane. Then the projection of vector $\overrightarrow{QP}$ onto the normal vector describes vector $\overrightarrow{RP},$ as shown in Figure 2.70.

### Theorem 2.13

#### The Distance between a Plane and a Point

Suppose a plane with normal vector $\text{n}$ passes through point $Q.$ The distance $d$ from the plane to a point $P$ not in the plane is given by

### Example 2.51

#### Distance between a Point and a Plane

Find the distance between point $P=\left(3,1,2\right)$ and the plane given by $x-2y+z=5$ (see the following figure).

#### Solution

The coefficients of the plane’s equation provide a normal vector for the plane: $\text{n}=\langle 1,\mathrm{-2},1\rangle .$ To find vector $\overrightarrow{QP},$ we need a point in the plane. Any point will work, so set $y=z=0$ to see that point $Q=\left(5,0,0\right)$ lies in the plane. Find the component form of the vector from $Q\phantom{\rule{0.2em}{0ex}}\text{to}\phantom{\rule{0.2em}{0ex}}P\text{:}$

Apply the distance formula from Equation 2.19:

### Checkpoint 2.48

Find the distance between point $P=\left(5,\mathrm{-1},0\right)$ and the plane given by $4x+2y-z=3.$

### Parallel and Intersecting Planes

We have discussed the various possible relationships between two lines in two dimensions and three dimensions. When we describe the relationship between two planes in space, we have only two possibilities: the two distinct planes are parallel or they intersect. When two planes are parallel, their normal vectors are parallel. When two planes intersect, the intersection is a line (Figure 2.71).

We can use the equations of the two planes to find parametric equations for the line of intersection.

### Example 2.52

#### Finding the Line of Intersection for Two Planes

Find parametric and symmetric equations for the line formed by the intersection of the planes given by $x+y+z=0$ and $2x-y+z=0$ (see the following figure).

#### Solution

Note that the two planes have nonparallel normals, so the planes intersect. Further, the origin satisfies each equation, so we know the line of intersection passes through the origin. Add the plane equations so we can eliminate the one of the variables, in this case, $y\text{:}$

This gives us $x=-\frac{2}{3}z.$ We substitute this value into the first equation to express $y$ in terms of $z\text{:}$

We now have the first two variables, $x$ and $y,$ in terms of the third variable, $z.$ Now we define $z$ in terms of $t.$ To eliminate the need for fractions, we choose to define the parameter $t$ as $t=-\frac{1}{3}z.$ Then, $z=\mathrm{-3}t.$ Substituting the parametric representation of $z$ back into the other two equations, we see that the parametric equations for the line of intersection are $x=2t,y=t,z=\mathrm{-3}t.$ The symmetric equations for the line are $\frac{x}{2}=y=\frac{z}{\mathrm{-3}}.$

### Checkpoint 2.49

Find parametric equations for the line formed by the intersection of planes $x+y-z=3$ and $3x-y+3z=5.$

In addition to finding the equation of the line of intersection between two planes, we may need to find the angle formed by the intersection of two planes. For example, builders constructing a house need to know the angle where different sections of the roof meet to know whether the roof will look good and drain properly. We can use normal vectors to calculate the angle between the two planes. We can do this because the angle between the normal vectors is the same as the angle between the planes. Figure 2.72 shows why this is true.

We can find the measure of the angle *θ* between two intersecting planes by first finding the cosine of the angle, using the following equation:

We can then use the angle to determine whether two planes are parallel or orthogonal or if they intersect at some other angle.

### Example 2.53

#### Finding the Angle between Two Planes

Determine whether each pair of planes is parallel, orthogonal, or neither. If the planes are intersecting, but not orthogonal, find the measure of the angle between them. Give the answer in radians and round to two decimal places.

- $x+2y-z=8\phantom{\rule{0.2em}{0ex}}\text{and}\phantom{\rule{0.2em}{0ex}}2x+4y-2z=10$
- $2x-3y+2z=3\phantom{\rule{0.2em}{0ex}}\text{and}\phantom{\rule{0.2em}{0ex}}6x+2y-3z=1$
- $x+y+z=4\phantom{\rule{0.2em}{0ex}}\text{and}\phantom{\rule{0.2em}{0ex}}x-3y+5z=1$

#### Solution

- The normal vectors for these planes are ${\text{n}}_{1}=\langle 1,2,\mathrm{-1}\rangle $ and ${\text{n}}_{2}=\langle 2,4,\mathrm{-2}\rangle .$ These two vectors are scalar multiples of each other. The normal vectors are parallel, so the planes are parallel.
- The normal vectors for these planes are ${\text{n}}_{1}=\langle 2,\mathrm{-3},2\rangle $ and ${\text{n}}_{2}=\langle 6,2,\mathrm{-3}\rangle .$ Taking the dot product of these vectors, we have

$${\text{n}}_{1}\xb7{\text{n}}_{2}=\langle 2,\mathrm{-3},2\rangle \xb7\langle 6,2,\mathrm{-3}\rangle =2(6)-3(2)+2(\mathrm{-3})=0.$$

The normal vectors are orthogonal, so the corresponding planes are orthogonal as well. - The normal vectors for these planes are ${\text{n}}_{1}=\langle 1,1,1\rangle $ and ${\text{n}}_{2}=\langle 1,\mathrm{-3},5\rangle \text{:}$

$$\begin{array}{cc}\hfill \text{cos}\phantom{\rule{0.2em}{0ex}}\theta & =\frac{\left|{\text{n}}_{1}\xb7{\text{n}}_{2}\right|}{\Vert {\text{n}}_{1}\Vert \Vert {\text{n}}_{2}\Vert}\hfill \\ & =\frac{\left|\langle 1,1,1\rangle \xb7\langle 1,\mathrm{-3},5\rangle \right|}{\sqrt{{1}^{2}+{1}^{2}+{1}^{2}}\phantom{\rule{0.2em}{0ex}}\sqrt{{1}^{2}+{(\mathrm{-3})}^{2}+{5}^{2}}}\hfill \\ & =\frac{3}{\sqrt{105}}.\hfill \end{array}$$

The angle between the two planes is $1.27$ rad, or approximately $73\text{\xb0}.$

### Checkpoint 2.50

Find the measure of the angle between planes $x+y-z=3$ and $3x-y+3z=5.$ Give the answer in radians and round to two decimal places.

When we find that two planes are parallel, we may need to find the distance between them. To find this distance, we simply select a point in one of the planes. The distance from this point to the other plane is the distance between the planes.

Previously, we introduced the formula for calculating this distance in Equation 2.19:

where $Q$ is a point on the plane, $P$ is a point not on the plane, and $\text{n}$ is the normal vector that passes through point $Q.$ Consider the distance from point $\left({x}_{0},{y}_{0},{z}_{0}\right)$ to plane $ax+by+cz+k=0.$ Let $\left({x}_{1},{y}_{1},{z}_{1}\right)$ be any point in the plane. Substituting into the formula yields

We state this result formally in the following theorem.

### Theorem 2.14

#### Distance from a Point to a Plane

Let $P\left({x}_{0},{y}_{0},{z}_{0}\right)$ be a point. The distance from $P$ to plane $ax+by+cz+k=0$ is given by

### Example 2.54

#### Finding the Distance between Parallel Planes

Find the distance between the two parallel planes given by $2x+y-z=2$ and $2x+y-z=8.$

#### Solution

Point $\left(1,0,0\right)$ lies in the first plane. The desired distance, then, is

### Checkpoint 2.51

Find the distance between parallel planes $5x-2y+z=6$ and $5x-2y+z=\mathrm{-3}.$

### Student Project

#### Distance between Two Skew Lines

Finding the distance from a point to a line or from a line to a plane seems like a pretty abstract procedure. But, if the lines represent pipes in a chemical plant or tubes in an oil refinery or roads at an intersection of highways, confirming that the distance between them meets specifications can be both important and awkward to measure. One way is to model the two pipes as lines, using the techniques in this chapter, and then calculate the distance between them. The calculation involves forming vectors along the directions of the lines and using both the cross product and the dot product.

The symmetric forms of two lines, ${L}_{1}$ and ${L}_{2},$ are

You are to develop a formula for the distance $d$ between these two lines, in terms of the values ${a}_{1},{b}_{1},{c}_{1};{a}_{2},{b}_{2},{c}_{2};{x}_{1},{y}_{1},{z}_{1};\phantom{\rule{0.2em}{0ex}}\text{and}\phantom{\rule{0.2em}{0ex}}{x}_{2},{y}_{2},{z}_{2}.$ The distance between two lines is usually taken to mean the minimum distance, so this is the length of a line segment or the length of a vector that is perpendicular to both lines and intersects both lines.

- First, write down two vectors, ${\text{v}}_{1}$ and ${\text{v}}_{2},$ that lie along ${L}_{1}$ and ${L}_{2},$ respectively.
- Find the cross product of these two vectors and call it $\text{N}.$ This vector is perpendicular to ${\text{v}}_{1}\phantom{\rule{0.2em}{0ex}}\text{and}\phantom{\rule{0.2em}{0ex}}{\text{v}}_{2},$ and hence is perpendicular to both lines.
- From vector $\text{N},$ form a unit vector $\text{n}$ in the same direction.
- Use symmetric equations to find a convenient vector ${\text{v}}_{12}$ that lies between any two points, one on each line. Again, this can be done directly from the symmetric equations.
- The dot product of two vectors is the magnitude of the projection of one vector onto the other—that is, $\text{A}\xb7\text{B}=\Vert \text{A}\Vert \Vert \text{B}\Vert \text{cos}\phantom{\rule{0.2em}{0ex}}\theta ,$ where $\theta $ is the angle between the vectors. Using the dot product, find the projection of vector ${\text{v}}_{12}$ found in step $4$ onto unit vector $\text{n}$ found in step 3. This projection is perpendicular to both lines, and hence its length must be the perpendicular distance $d$ between them. Note that the value of $d$ may be negative, depending on your choice of vector ${\text{v}}_{12}$ or the order of the cross product, so use absolute value signs around the numerator.
- Check that your formula gives the correct distance of $\left|\mathrm{-25}\right|\text{/}\sqrt{198}\approx 1.78$ between the following two lines:

$$\begin{array}{}\\ \\ {L}_{1}:\frac{x-5}{2}=\frac{y-3}{4}=\frac{z-1}{3}\hfill \\ {L}_{2}:\frac{x-6}{3}=\frac{y-1}{5}=\frac{z}{7}.\hfill \end{array}$$ - Is your general expression valid when the lines are parallel? If not, why not? (
*Hint:*What do you know about the value of the cross product of two parallel vectors? Where would that result show up in your expression for $d?)$ - Demonstrate that your expression for the distance is zero when the lines intersect. Recall that two lines intersect if they are not parallel and they are in the same plane. Hence, consider the direction of $\text{n}$ and ${\text{v}}_{12}.$ What is the result of their dot product?
- Consider the following application. Engineers at a refinery have determined they need to install support struts between many of the gas pipes to reduce damaging vibrations. To minimize cost, they plan to install these struts at the closest points between adjacent skewed pipes. Because they have detailed schematics of the structure, they are able to determine the correct lengths of the struts needed, and hence manufacture and distribute them to the installation crews without spending valuable time making measurements.

The rectangular frame structure has the dimensions $4.0\phantom{\rule{0.2em}{0ex}}\times \phantom{\rule{0.2em}{0ex}}15.0\phantom{\rule{0.2em}{0ex}}\times \phantom{\rule{0.2em}{0ex}}10.0\phantom{\rule{0.2em}{0ex}}\text{m}$ (height, width, and depth). One sector has a pipe entering the lower corner of the standard frame unit and exiting at the diametrically opposed corner (the one farthest away at the top); call this ${L}_{1}.$ A second pipe enters and exits at the two different opposite lower corners; call this ${L}_{2}$ (Figure 2.74).

Write down the vectors along the lines representing those pipes, find the cross product between them from which to create the unit vector $\text{n},$ define a vector that spans two points on each line, and finally determine the minimum distance between the lines. (Take the origin to be at the lower corner of the first pipe.) Similarly, you may also develop the symmetric equations for each line and substitute directly into your formula.

### Section 2.5 Exercises

In the following exercises, points $P$ and $Q$ are given. Let $L$ be the line passing through points $P$ and $Q.$

- Find the vector equation of line $L.$
- Find parametric equations of line $L.$
- Find symmetric equations of line $L.$
- Find parametric equations of the line segment determined by $P$ and $Q.$

$P\left(4,0,5\right),Q\left(2,3,1\right)$

$P\left(7,\mathrm{-2},6\right),$ $Q\left(\mathrm{-3},0,6\right)$

For the following exercises, point $P$ and vector $\text{v}$ are given. Let $L$ be the line passing through point $P$ with direction $\text{v}.$

- Find parametric equations of line $L.$
- Find symmetric equations of line $L.$
- Find the intersection of the line with the
*xy*-plane.

$P(3,1,5),$ $\text{v}=\langle 1,1,1\rangle $

$P(2,3,0),$ $\text{v}=\overrightarrow{QR},$ where $Q(0,4,5)$ and $R(0,4,6)$

For the following exercises, line $L$ is given.

- Find point $P$ that belongs to the line and direction vector $\text{v}$ of the line. Express $\text{v}$ in component form.
- Find the distance from the origin to line $L.$

$\text{\u2212}x=y+1,z=2$

Find the distance between point $A\left(\mathrm{-3},1,1\right)$ and the line of symmetric equations

$x=\text{\u2212}y=\text{\u2212}z.$

Find the distance between point $A\left(4,2,5\right)$ and the line of parametric equations

$x=\mathrm{-1}-t,y=\text{\u2212}t,z=2,$ $t\in \mathbb{R}.$

For the following exercises, lines ${L}_{1}$ and ${L}_{2}$ are given.

- Verify whether lines ${L}_{1}$ and ${L}_{2}$ are parallel.
- If the lines ${L}_{1}$ and ${L}_{2}$ are parallel, then find the distance between them.

${L}_{1}:x=2,y=1,z=t,$ ${L}_{2}:x=1,y=1,z=2-3t,$ $t\in \mathbb{R}$

Show that the line passing through points $P\left(3,1,0\right)$ and $Q\left(1,4,\mathrm{-3}\right)$ is perpendicular to the line with equation $x=3t,y=3+8t,z=\mathrm{-7}+6t,$ $t\in \mathbb{R}.$

Are the lines of equations $x=\mathrm{-2}+2t,y=\mathrm{-6},z=2+6t$ and $x=\mathrm{-1}+t,y=1+t,z=t,$ $t\in \mathbb{R},$ perpendicular to each other?

Find the point of intersection of the lines of equations $x=\mathrm{-2}y=3z$ and $x=\mathrm{-5}-t,y=\mathrm{-1}+t,z=t-11,$ $t\in \mathbb{R}.$

Find the intersection point of the *x*-axis with the line of parametric equations

$x=10+t,y=2-2t,z=\mathrm{-3}+3t,$ $t\in \mathbb{R}.$

For the following exercises, lines ${L}_{1}$ and ${L}_{2}$ are given. Determine whether the lines are equal, parallel but not equal, skew, or intersecting.

${L}_{1}:x=2t,y=0,z=3,$ $t\in \mathbb{R}$ and ${L}_{2}:x=0,y=8+s,z=7+s,$ $s\in \mathbb{R}$

${L}_{1}:x=\mathrm{-1}+2t,y=1+3t,z=7t,$ $t\in \mathbb{R}$ and ${L}_{2}:x-1=\frac{2}{3}\left(y-4\right)=\frac{2}{7}z-2$

${L}_{1}:3x=y+1=2z$ and ${L}_{2}:x=6+2t,y=17+6t,z=9+3t,$ $t\in \mathbb{R}$

Consider line $L$ of symmetric equations $x-2=\text{\u2212}y=\frac{z}{2}$ and point $A(1,1,1).$

- Find parametric equations for a line parallel to $L$ that passes through point $A.$
- Find symmetric equations of a line skew to $L$ and that passes through point $A.$
- Find symmetric equations of a line that intersects $L$ and passes through point $A.$

Consider line $L$ of parametric equations $x=t,y=2t,z=3,$ $t\in \mathbb{R}.$

- Find parametric equations for a line parallel to $L$ that passes through the origin.
- Find parametric equations of a line skew to $L$ that passes through the origin.
- Find symmetric equations of a line that intersects $L$ and passes through the origin.

For the following exercises, point $P$ and vector $\text{n}$ are given.

- Find the scalar equation of the plane that passes through $P$ and has normal vector $\text{n}.$
- Find the general form of the equation of the plane that passes through $P$ and has normal vector $\text{n}.$

$P\left(3,2,2\right),$ $\text{n}=2\text{i}+3\text{j}-\text{k}$

$P(0,0,0),$ $\text{n}=\langle \mathrm{-3},2,\mathrm{-1}\rangle $

For the following exercises, the equation of a plane is given.

- Find normal vector $\text{n}$ to the plane. Express $\text{n}$ using standard unit vectors.
- Find the intersections of the plane with the coordinate axes.
- Sketch the plane.

$3x+4y-12=0$

$x+z=0$

Given point $P\left(1,2,3\right)$ and vector $\text{n}=\text{i}+\text{j},$ find point $Q$ on the *x*-axis such that $\overrightarrow{PQ}$ and $\text{n}$ are orthogonal.

Show there is no plane perpendicular to $\text{n}=\text{i}+\text{j}$ that passes through points $P\left(1,2,3\right)$ and $Q\left(2,3,4\right).$

Find parametric equations of the line passing through point $P(\mathrm{-2},1,3)$ that is perpendicular to the plane of equation $2x-3y+z=7.$

Find symmetric equations of the line passing through point $P(2,5,4)$ that is perpendicular to the plane of equation $2x+3y-5z=0.$

Show that line $\frac{x-1}{2}=\frac{y+1}{3}=\frac{z-2}{4}$ is parallel to plane $x-2y+z=6.$

Find the real number $\alpha $ such that the line of parametric equations $x=t,y=2-t,z=3+t,$ $t\in \mathbb{R}$ is parallel to the plane of equation $\alpha x+5y+z-10=0.$

For the following exercises, points $P,Q,\phantom{\rule{0.2em}{0ex}}\text{and}\phantom{\rule{0.2em}{0ex}}R$ are given.

- Find the general equation of the plane passing through $P,Q,\phantom{\rule{0.2em}{0ex}}\text{and}\phantom{\rule{0.2em}{0ex}}R.$
- Write the vector equation $\text{n}\xb7\overrightarrow{PS}=0$ of the plane at a., where $S\left(x,y,z\right)$ is an arbitrary point of the plane.
- Find parametric equations of the line passing through the origin that is perpendicular to the plane passing through $P,Q,\phantom{\rule{0.2em}{0ex}}\text{and}\phantom{\rule{0.2em}{0ex}}R.$

$P\left(\mathrm{-2},1,4\right),Q\left(3,1,3\right),$ and $R\left(\mathrm{-2},1,0\right)$

Consider the planes of equations $x+y+z=1$ and $x+z=0.$

- Show that the planes intersect.
- Find symmetric equations of the line passing through point $P(1,4,6)$ that is parallel to the line of intersection of the planes.

Consider the planes of equations $\text{\u2212}y+z-2=0$ and $x-y=0.$

- Show that the planes intersect.
- Find parametric equations of the line passing through point $P(\mathrm{-8},0,2)$ that is parallel to the line of intersection of the planes.

Find the scalar equation of the plane that passes through point $P(\mathrm{-1},2,1)$ and is perpendicular to the line of intersection of planes $x+y-z-2=0$ and $2x-y+3z-1=0.$

Find the general equation of the plane that passes through the origin and is perpendicular to the line of intersection of planes $\text{\u2212}x+y+2=0$ and $z-3=0.$

Determine whether the line of parametric equations $x=1+2t,y=\mathrm{-2}t,z=2+t,$ $t\in \mathbb{R}$ intersects the plane with equation $3x+4y+6z-7=0.$ If it does intersect, find the point of intersection.

Determine whether the line of parametric equations $x=5,y=4-t,z=2t,$ $t\in \mathbb{R}$ intersects the plane with equation $2x-y+z=5.$ If it does intersect, find the point of intersection.

Find the distance from point $P\left(1,5,\mathrm{-4}\right)$ to the plane of equation $3x-y+2z-6=0.$

Find the distance from point $P\left(1,\mathrm{-2},3\right)$ to the plane of equation $\left(x-3\right)+2\left(y+1\right)-4z=0.$

For the following exercises, the equations of two planes are given.

- Determine whether the planes are parallel, orthogonal, or neither.
- If the planes are neither parallel nor orthogonal, then find the measure of the angle between the planes. Express the answer in degrees rounded to the nearest integer.

$5x-3y+z=4,$ $x+4y+7z=1$

**[T]** $x-3y+6z=4,$ $5x+y-z=4$

Show that the lines of equations $x=t,y=1+t,z=2+t,$ $t\in \mathbb{R}\text{,}$ and $\frac{x}{2}=\frac{y-1}{3}=z-3$ are skew, and find the distance between them.

Show that the lines of equations $x=\mathrm{-1}+t,y=\mathrm{-2}+t,z=3t,$ $t\in \mathbb{R},$ and $x=5+s,y=\mathrm{-8}+2s,z=7s,$ $s\in \mathbb{R}$ are skew, and find the distance between them.

Consider point $C\left(\mathrm{-3},2,4\right)$ and the plane of equation $2x+4y-3z=8.$

- Find the radius of the sphere with center $C$ tangent to the given plane.
- Find point
*P*of tangency.

Consider the plane of equation $x-y-z-8=0.$

- Find the equation of the sphere with center $C$ at the origin that is tangent to the given plane.
- Find parametric equations of the line passing through the origin and the point of tangency.

Two children are playing with a ball. The girl throws the ball to the boy. The ball travels in

the air, curves $3$ ft to the right, and falls $5$ ft away from the girl (see the following figure). If the plane that contains the trajectory of the ball is perpendicular to the ground, find its equation.

**[T]** John allocates $d$ dollars to consume monthly three goods of prices $a,b,\phantom{\rule{0.2em}{0ex}}\text{and}\phantom{\rule{0.2em}{0ex}}c.$ In this context, the budget equation is defined as $ax+by+cz=d,$ where $x\ge 0,y\ge 0,$ and $z\ge 0$ represent the number of items bought from each of the goods. The budget set is given by $\left\{\left(x,y,z\right)|ax+by+cz\le d,x\ge 0,y\ge 0,z\ge 0\right\},$ and the budget plane is the part of the plane of equation $ax+by+cz=d$ for which $x\ge 0,y\ge 0,$ and $z\ge 0.$ Consider $a=\text{\$}8,$ $b=\text{\$}5,$ $c=\text{\$}10,$ and $d=\text{\$}500.$

- Use a CAS to graph the budget set and budget plane.
- For $z=25,$ find the new budget equation and graph the budget set in the same system of coordinates.

**[T]** Consider $\text{r}(t)=\langle \text{sin}\phantom{\rule{0.2em}{0ex}}t,\text{cos}\phantom{\rule{0.2em}{0ex}}t,2t\rangle $ the position vector of a particle at time $t\in [0,3],$ where the components of **r** are expressed in centimeters and time is measured in seconds. Let $\overrightarrow{OP}$ be the position vector of the particle after $1$ sec.

- Determine the velocity vector $\text{v}(1)$ of the particle after $1$ sec.
- Find the scalar equation of the plane that is perpendicular to $\text{v}(1)$ and passes through point $P.$ This plane is called the
*normal plane*to the path of the particle at point $P.$ - Use a CAS to visualize the path of the particle along with the velocity vector and normal plane at point $P.$

**[T]** A solar panel is mounted on the roof of a house. The panel may be regarded as positioned at the points of coordinates (in meters) $A(8,0,0),$ $B(8,18,0),$ $C(0,18,8),$ and $D(0,0,8)$ (see the following figure).

- Find the general form of the equation of the plane that contains the solar panel by using points $A,B,\phantom{\rule{0.2em}{0ex}}\text{and}\phantom{\rule{0.2em}{0ex}}C,$ and show that its normal vector is equivalent to $\overrightarrow{AB}\phantom{\rule{0.2em}{0ex}}\times \phantom{\rule{0.2em}{0ex}}\overrightarrow{AD}.$
- Find parametric equations of line ${L}_{1}$ that passes through the center of the solar panel and has direction vector $\text{s}=\frac{1}{\sqrt{3}}\text{i}+\frac{1}{\sqrt{3}}\text{j}+\frac{1}{\sqrt{3}}\text{k},$ which points toward the position of the Sun at a particular time of day.
- Find symmetric equations of line ${L}_{2}$ that passes through the center of the solar panel and is perpendicular to it.
- Determine the angle of elevation of the Sun above the solar panel by using the angle between lines ${L}_{1}$ and ${L}_{2}.$