Processing math: 89%
Skip to main content
Library homepage
 

Text Color

Text Size

 

Margin Size

 

Font Type

Enable Dyslexic Font
Mathematics LibreTexts

1.5: Equations of Lines and Planes in Space

( \newcommand{\kernel}{\mathrm{null}\,}\)

Learning Objectives

  • 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.
  • Find the distance from a point to a given line.
  • Write the vector and scalar equations of a plane through a given point with a given normal.
  • Find the distance from a point to a given plane.
  • 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, u and v, are parallel, we claim there must be a scalar, k, such that u=kv. If u and v have the same direction, simply choose

k=uv.

If u and v have opposite directions, choose

k=uv.

Note that the converse holds as well. If u=kv for some scalar k, then either u and v have the same direction (k>0) or opposite directions (k<0), so u and v are parallel. Therefore, two nonzero vectors u and v are parallel if and only if u=kv for some scalar k. By convention, the zero vector 0 is considered to be parallel to all vectors.

Figure 1.5.1: Vector v is the direction vector for aPQ.

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 1.5.1). Let L be a line in space passing through point P(x0,y0,z0). Let v=a,b,c be a vector parallel to L. Then, for any point on line Q(x,y,z), we know that aPQ is parallel to v. Thus, as we just discussed, there is a scalar, t, such that aPQ=tv, which gives

aPQ=tvxx0,yy0,zz0=ta,b,cxx0,yy0,zz0=ta,tb,tc.

Using vector operations, we can rewrite Equation 1.5.3

xx0,yy0,zz0=ta,tb,tcx,y,zx0,y0,z0=ta,b,cx,y,zr=x0,y0,z0ro+ta,b,cv.

Setting r=x,y,z and r0=x0,y0,z0, we now have the vector equation of a line:

r=r0+tv.

Equating components, Equation ??? shows that the following equations are simultaneously true: xx0=ta,yy0=tb, and zz0=tc. If we solve each of these equations for the component variables x,y, and 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:

x=x0+ta

y=y0+tb

z=z0+tc.

If we solve each of the equations for t assuming a,b, and c are nonzero, we get a different description of the same line:

xx0a=tyy0b=tzz0c=t.

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:

xx0a=yy0b=zz0c.

We summarize the results in the following theorem.

Theorem: Parametric and Symmetric Equations of a Line

A line L parallel to vector v=a,b,c and passing through point P(x0,y0,z0) can be described by the following parametric equations:

x=x0+ta,y=y0+tb,

and

z=z0+tc.

If the constants a,b, and c are all nonzero, then L can be described by the symmetric equation of the line:

xx0a=yy0b=zz0c.

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 1.5.1: Equations of a Line in Space

Find parametric and symmetric equations of the line passing through points (1,4,2) and (3,5,0).

Solution

First, identify a vector parallel to the line:

v=31,54,0(2)=4,1,2.

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

x=14ty=4+t,

and

z=2+2t.

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

x14=y4=z+22.

Exercise 1.5.1

Find parametric and symmetric equations of the line passing through points (1,3,2) and (5,2,8).

Hint:

Start by finding a vector parallel to the line.

Answer

Possible set of parametric equations: x=1+4t,y=3+t,z=2+6t; related set of symmetric equations: x14=y+3=z26

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(x0,y0,z0) and Q(x1,y1,z1) be points on a line, and let p=x0,y0,z0 and q=x1,y1,z1 be the associated position vectors. In addition, let r=x,y,z. 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 aPQ=x1x0,y1y0,z1z0 as the direction vector equation, Equation ??? gives

r=p+t(aPQ).

Equation ??? can be expanded using properties of vectors:

r=p+t(aPQ)=x0,y0,z0+tx1x0,y1y0,z1z0=x0,y0,z0+t(x1,y1,z1x0,y0,z0)=x0,y0,z0+tx1,y1,z1tx0,y0,z0=(1t)x0,y0,z0+tx1,y1,z1=(1t)p+tq.

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

r=(1t)p+tq.

Remember that we did not 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

r=(1t)p+tq,0t1.

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

r=p+t(aPQ)x,y,z=x0,y0,z0+tx1x0,y1y0,z1z0=x0+t(x1x0),y0+t(y1y0),z0+t(z1z0).

Then, the parametric equations are

x=x0+t(x1x0)y=y0+t(y1y0)z=z0+t(z1z0),0t1.

Example 1.5.2: Parametric Equations of a Line Segment

Find parametric equations of the line segment between the points P(2,1,4) and Q(3,1,3).

Solution

Start with the parametric equations for a line (Equations ???) and work with each component separately:

x=x0+t(x1x0)=2+t(32)=2+t,

y=y0+t(y1y0)=1+t(11)=12t,

and

z=z0+t(z1z0)=4+t(34)=4t.

Therefore, the parametric equations for the line segment are

x=2+ty=12tz=4t,0t1.

Exercise 1.5.2

Find parametric equations of the line segment between points P(1,3,6) and Q(8,2,4).

Answer

x=17t,y=3t,z=62t,0t1

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 ¯MP, where P is a point on L such that ¯MP is perpendicular to L (Figure 1.5.2).

CNX_Calc_Figure_12_05_002.jfif
Figure 1.5.2: The distance from point M to line L is the length of ¯MP.

When we’re looking for the distance between a line and a point in space, Figure 1.5.2 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 v be a direction vector for L (Figure 1.5.3).

CNX_Calc_Figure_12_05_003.jfif
Figure 1.5.3: Vectors aPM and v form two sides of a parallelogram with base v and height d, which is the distance between a line and a point in space.

Vectors aPM and v form two sides of a parallelogram with area aPM×v. Using a formula from geometry, the area of this parallelogram can also be calculated as the product of its base and height:

aPM×v=vd.

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.

Distance from a Point to a Line

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

d=aPM×vv.

Example 1.5.3: Calculating the Distance from a Point to a Line

Find the distance between the point M=(1,1,3) and line x34=y+12=z3.

Solution:

From the symmetric equations of the line, we know that vector v=4,2,1 is a direction vector for the line. Setting the symmetric equations of the line equal to zero, we see that point P(3,1,3) lies on the line. Then,

aPM=13,1(1),33=2,2,0.

To calculate the distance, we need to find aPM×v:

aPM×v=|ˆiˆjˆk220421|=(20)ˆi(20)ˆj+(48)ˆk=2ˆi+2ˆj12ˆk.

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

d=aPM×vv=22+22+12242+22+12=23821=279821units

CNX_Calc_Figure_12_05_004.jfif
Figure 1.5.4: Point (1,1,3) is approximately 2.7 units from the line with symmetric equations x34=y+12=z3.

Exercise 1.5.3

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

Hint

Find a vector with initial point (0,3,6) and a terminal point on the line, and then find a direction vector for the line.

Answer

107=707units

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 1.5.5).

Figure 1.5.5: In three dimensions, it is possible that two lines do not cross, even when they have different directions.

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 1.5.6).

CNX_Calc_Figure_12_05_006.jfif
Figure 1.5.6: Determine the relationship between two lines based on whether their direction vectors are parallel and whether they share a point.

Example 1.5.4: Classifying Lines in Space

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

a.

  • L1:x=2s1,y=s1,z=s4
  • L2:x=t3,y=3t+8,z=52t

b.

  • L1:x=y=z
  • L2:x32=y=z2

c.

  • L1:x=6s1,y=2s,z=3s+1
  • L2:x46=y+32=z13

Solution

a. Line L1 has direction vector v1=2,1,1; line L2 has direction vector v2=1,3,2. 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, (x,y,z), that lies on both lines. To find this point, we use the parametric equations to create a system of equalities:

2s1=t3;

s1=3t+8;

s4=52t.

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

s1=3(2s+2)+8

s1=6s+6+8

5s=15

s=3.

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

s4=52(2s+2)

s4=54s4

5s=5

s=1.

There is no single point that satisfies the parametric equations for L1 and L2 simultaneously. These lines do not intersect, so they are skew (see the following figure).

CNX_Calc_Figure_12_05_011.jfif

b. Line L1 has direction vector v1=1,1,1 and passes through the origin, (0,0,0). Line L2 has a different direction vector, v2=2,1,1, so these lines are not parallel or equal. Let r represent the parameter for line L1 and let s represent the parameter for L2:

Line L1:Line L2:x=rx=2s+3y=ry=sz=rz=s+2

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 (1,1,1) (see the following figure).

CNX_Calc_Figure_12_05_012.jfif

c. Lines L1 and L2 have equivalent direction vectors: v=6,2,3. These two lines are parallel (see the following figure).

CNX_Calc_Figure_12_05_013.jfif

Exercise 1.5.4

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

x=14t,y=3+t,z=86t

x=2+3s,y=2s,z=13s.

Hint

Start by identifying direction vectors for each line. Is one a multiple of the other?

Answer

These lines are skew because their direction vectors are not parallel and there is no point (x,y,z) that lies on both lines.

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 n=a,b,c be a vector and P=(x0,y0,z0) be a point. Then the set of all points Q=(x,y,z) such that aPQ is orthogonal to n forms a plane (Figure 1.5.7). We say that 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:

naPQ=0.

Rewriting this equation provides additional ways to describe the plane:

naPQ=0a,b,cxx0,yy0,zz0=0a(xx0)+b(yy0)+c(zz0)=0.

CNX_Calc_Figure_12_05_007.jfif
Figure 1.5.7: Given a point P and vector n, the set of all points Q with aPQ orthogonal to n forms a plane.

Definition: Standard Form of the Equation of a Plane

Given a point P and vector n, the set of all points Q satisfying the equation naPQ=0 forms a plane. The equation

naPQ=0

is known as the vector equation of a plane.

The standard form of the equation of a plane containing point P=(x0,y0,z0) with normal vector n=a,b,c is

a(xx0)+b(yy0)+c(zz0)=0.

This equation can be expressed as ax+by+cz+d=0, where d=ax0by0cz0. This form of the equation is sometimes called the general form of the equation of a plane.

As the standard and general forms of the equation of a plane no longer contain an explicit vector, they are sometimes called scalar equations 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 1.5.5: Writing an Equation of a Plane Given Three Points in the Plane

Write an equation for the plane containing points P=(1,1,2),Q=(0,2,1), and R=(1,1,0) 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:

aPQ=01,21,1(2)=1,1,3aQR=10,12,01=1,3,1.

The cross product aPQ×aQR is orthogonal to both aPQ and aQR, so it is normal to the plane that contains these two vectors:

n=aPQ×aQR=|ˆiˆjˆk113131|=(1+9)ˆi(1+3)ˆj+(3+1)ˆk=8ˆi4ˆj+4ˆk.

Thus, n=8,4,4, and we can choose any of the three given points to write an equation of the plane:

8(x1)4(y1)+4(z+2)=0(Standard form)8x4y+4z+4=0.(General form)

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

Example 1.5.6: Writing an Equation for a Plane Given a Point and a Line

Find an equation of the plane that passes through point (1,4,3) and contains the line given by x=y12=z+1.

Solution

Symmetric equations describe the line that passes through point (0,1,1) parallel to vector v1=1,2,1 (see the following figure). Use this point and the given point, (1,4,3), to identify a second vector parallel to the plane:

v2=10,41,3(1)=1,3,4.

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

n=v1×v2=|ˆiˆjˆk121134|=(83)ˆi(41)ˆj+(32)ˆk=5ˆi3ˆj+ˆk.

The scalar equations for the plane are 5x3(y1)+(z+1)=0 and 5x3y+z+4=0.

CNX_Calc_Figure_12_05_014.jfif

Exercise 1.5.6

Find an equation of the plane containing the lines L1 and L2:

L1:x=y=z

L2:x32=y=z2.

 

Hint

Hint: The cross product of the lines’ direction vectors gives a normal vector for the plane.

Answer:

2(x1)+(y+1)+3(z1)=0(Standard form)

2x+y+3z=0(General form)

Distance Between a Plane and a Point

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.

CNX_Calc_Figure_12_05_008.jfif
Figure 1.5.8: We want to find the shortest distance from point P to the plane. Let point R be the point in the plane such that, for any other point in the plane Q,aRP<aQP.

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 aRP is orthogonal to the plane, and let Q be an arbitrary point in the plane. Then the projection of vector aQP onto the normal vector describes vector aRP, as shown in Figure 1.5.8.

The Distance between a Plane and a Point

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

d=projnaQP=∣compnaQP∣=aQPnn.

Example 1.5.7: Distance between a Point and a Plane

Find the distance between point P=(3,1,2) and the plane given by x2y+z=5 (see the following figure).

CNX_Calc_Figure_12_05_015.jfif

Solution

The coefficients of the plane’s equation provide a normal vector for the plane: n=1,2,1. To find vector aQP, we need a point in the plane. Any point will work, so set y=z=0 to see that point Q=(5,0,0) lies in the plane. Find the component form of the vector from Q to P:

aQP=35,10,20=2,1,2.

Apply the distance formula from Equation ???:

d=|aQPn|n=|2,1,21,2,1|12+(2)2+12=|22+2|6=26=63units.

Exercise 1.5.7

Find the distance between point P=(5,1,0) and the plane given by 4x+2yz=3.

Hint

Point (0,0,3) lies on the plane.

Answer:

1521=5217units

Intersection of a Line and a Plane

A given line and a given plane may or may not intersect. If the line does intersect with the plane, it's possible that the line is completely contained in the plane as well. How can we differentiate between these three possibilities?

Example 1.5.8: Finding the intersection of a Line and a plane

Determine whether the following line intersects with the given plane. If they do intersect, determine whether the line is contained in the plane or intersects it in a single point. Finally, if the line intersects the plane in a single point, determine this point of intersection.

Line:x=2tPlane:3x2y+z=10y=1+tz=3t

Solution

Notice that we can substitute the expressions of t given in the parametric equations of the line into the plane equation for x, y, and z.

3(2t)2(1+t)+3t=10

Solving this equation for t:

63t22t+3t=10

42t=10

2t=6

t=3

Since we found a single value of t from this process, we know that the line should intersect the plane in a single point, here where t=3. So the point of intersection can be determined by plugging this value in for t in the parametric equations of the line.

Here: x=2(3)=5,y=1+(3)=2,andz=3(3)=9.

So the point of intersection of this line with this plane is (5,2,9). We can verify this by putting the coordinates of this point into the plane equation and checking to see that it is satisfied.

Check: 3(5)2(2)+(9)=15+49=10

Now that we have examined what happens when there is a single point of intersection between a line and a point, let's consider how we know if the line either does not intersect the plane at all or if it lies on the plane (i.e., every point on the line is also on the plane).

Example 1.5.9: Other relationships between a line and a plane

Determine whether the following line intersects with the given plane. If they do intersect, determine whether the line is contained in the plane or intersects it in a single point. Finally, if the line intersects the plane in a single point, determine this point of intersection.

Line:x=1+2tPlane:x+2y2z=5y=2+3tz=1+4t

Solution

Substituting the expressions of t given in the parametric equations of the line into the plane equation gives us:

(1+2t)+2(2+3t)2(1+4t)=5

Simplifying the left side gives us:

1+2t4+6t+28t=5

Collecting like terms on the left side causes the variable t to cancel out and leaves us with a contradiction:

1=5

Since this is not true, we know that there is no value of t that makes this equation true, and thus there is no value of t that will give us a point on the line that is also on the plane. This means that this line does not intersect with this plane and there will be no point of intersection.

 

How can we tell if a line is contained in the plane?

What if we keep the same line, but modify the plane equation to be x+2y2z=1? In this case, repeating the steps above would again cause the variable t to be eliminated from the equation, but it would leave us with an identity, 1=1, rather than a contradiction. This means that every value of t will produce a point on the line that is also on the plane, telling us that the line is contained in the plane whose equation is x+2y2z=1.

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 1.5.9).

CNX_Calc_Figure_12_05_009.jfif
Figure 1.5.9: The intersection of two nonparallel planes is always a line.

We can use the equations of the two planes to find parametric equations for the line of intersection as shown below in Example 1.5.10.

Example 1.5.10: Finding the Line of Intersection for Two Planes

Determine the parametric equations for the line of intersection of the planes given by x+y+z=0 and 2xy+z=0. See the following figure.

Solution

Finding the line of intersection:

We will use two steps to solve for the line of intersection.

1. Find a point on the line of intersection (i.e., a point that lies on both planes).
2. Find a direction vector for the line of intersection.

1. To find a point that lies on both planes, we first use the elimination method for solving a system of equations to eliminate one of the variables, in this case, y. For this pair of plane equations, we just have to add the equations to eliminate a variable, but sometimes we may need to multiply one or both equations by a factor to make it easier to eliminate a variable when we add the equations.

Adding these equations gives us:

x+y+z=0

2xy+z=0

________________

3x+2z=0.

Solve for one of the variables. If we solve for x, we find x=23z. Now choose any value for z, say z=3. Then x=2.

Now plugging these two values into one of the plane equations, we can solve for the corresponding value of y that will give us a point that should satisfy both planes (i.e., it will lie on the line of intersection).

Plugging into the equation x+y+z=0 gives us 2+y+3=0y=1. So a point on the line of intersection is (2,1,3).

Verify that this point satisfies both plane equations: 2+(1)+3=0 and 2(2)(1)+3=4+1+3=0

2. Now we are ready to find a direction vector for the line of intersection. Since this line must lie in both planes, the direction vector must be orthogonal to the normal vector s of both planes. Since we need a vector that is orthogonal to both normal vectors, we use the cross product of the normal vectors to obtain one. Thus:

Direction vector of the line of intersection: v=n1×n2=|ˆiˆjˆk111211|=(1(1))ˆi(12)ˆj+(12)ˆk=2ˆi+ˆj3ˆk.

Now the line of intersection will contain the point (2,1,3) and have direction vector v=2ˆi+ˆj3ˆk.

So a possible set of parametric equations of the line of intersection are: x=2+2t,y=1+t,z=33t.

To check, we could either find another point on this line (for t0 and verify that it satisfies both plane equations, or we could substitute these expressions of t into both plane equations and show that we obtain an identity in both cases (such as 5=5 or 0=0).

For example, if we let t=1, the line's equations give us the origin (0,0,0) as a second point on the intersection line. It's easy to see that this point satisfies both plane equations.

Exercise 1.5.8

Find parametric equations for the line formed by the intersection of planes x+yz=3 and 3xy+3z=5.

Hint

Add the two equations, to eliminate the variable y. Then use the resulting equation to determine a point on the line of intersection. Then find the direction vector, remembering it will be orthogonal to the normal vectors of both planes.

Answer:

x=t,y=73t,z=42t

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.

When two planes intersect, note that there are two supplementary angles formed between the planes (See Figure 1.5.9). Typically the acute angle between two planes is the one desired. We can determine the acute angle between the two planes by finding the angle between their normal vectors and forcing it to be acute (by taking its supplement, if necessary). Figure 1.5.10 shows why this is true.

CNX_Calc_Figure_12_05_010.jfif
Figure 1.5.10: The acute angle between two planes has the same measure as the angle between the normal vectors for the planes or its supplement.

To be sure we obtain the acute angle between the two planes, we take the absolute value of the dot product of the two normal vectors, thus forcing the resulting angle θ to be acute.

So, to find the acute angle θ between two planes with normal vectors n1 and n2, we use the definition of the dot product and add the absolute values mentioned above to first find the cosine of the angle:

cosθ=|n1n2|n1n2.

Example 1.5.11: Finding the Angle between Two Planes

Find the angle between the planes given by x+y+z=0 and 2xy+z=0 for which we found the line of intersection in Example 1.5.10.

Solution

Finding the angle between the planes:

Note that the two planes have nonparallel normals, so the planes intersect. They intersect forming two angles, one obtuse and one acute. We choose to find the acute angle, so we use the modified version of the definition of the dot product that we stated above.

We can read the components of a normal vector from the coefficients of the variables in each plane equation.

Thus: n1=<1,1,1> and n2=<2,1,1>.

Now

n1n2=2+(1)+1=2.

Their magnitudes are:

n1=12+12+12=3
n2=22+(1)2+12=6

Then

cosθ=|n1n2|n1n2=|2|36=218.

So the acute angle between these two planes is given by θ=arccos(218)61.9°1.08 radians.

Once we find the angle between two planes we can use it to determine whether the two planes are parallel or orthogonal or if they intersect at some other angle.

Example 1.5.12: determine if planes are Parallel, Orthogonal, or neither

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.

  1. x+2yz=8 and 2x+4y2z=10
  2. 2x3y+2z=3 and 6x+2y3z=1
  3. x+y+z=4 and x3y+5z=1

Solution:

  1. The normal vectors for these planes are n1=1,2,1 and n2=2,4,2. These two vectors are scalar multiples of each other. The normal vectors are parallel, so the planes are parallel.
  2. The normal vectors for these planes are n1=2,3,2 and n2=6,2,3. Taking the dot product of these vectors, we have n1n2=2,3,26,2,3=2(6)3(2)+2(3)=0. The normal vectors are orthogonal, so the corresponding planes are orthogonal as well.
  3. The normal vectors for these planes are n1=1,1,1 and n2=1,3,5: cosθ=|n1n2|n1n2=|1,1,11,3,5|12+12+1212+(3)2+52=3105
    Then θ=arccos31051.27 rad.
    Thus the angle between the two planes is about 1.27 rad, or approximately 73°.

Exercise 1.5.9

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

Hint

Use the coefficients of the variables in each equation to find a normal vector for each plane.

Answer:

1.44rad

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 ???:

d=aQPnn,

where Q is a point on the plane, P is a point not on the plane, and n is the normal vector that passes through point Q. Consider the distance from point (x0,y0,z0) to plane ax+by+cz+k=0. Let (x1,y1,z1) be any point in the plane. Substituting into the formula yields

d=|a(x0x1)+b(y0y1)+c(z0z1)|a2+b2+c2=|ax0+by0+cz0+k|a2+b2+c2.

We state this result formally in the following theorem.

Distance from a Point to a Plane

Let P(x0,y0,z0) be a point. The distance from P to plane ax+by+cz+k=0 is given by

d=|ax0+by0+cz0+k|a2+b2+c2.

Example 1.5.13: Finding the Distance between Parallel Planes

Find the distance between the two parallel planes given by 2x+yz=2 and 2x+yz=8.

Solution

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

d=|ax0+by0+cz0+k|a2+b2+c2=|2(1)+1(0)+(1)(0)+(8)|22+12+(1)2=66=6units

Exercise 1.5.10:

Find the distance between parallel planes 5x2y+z=6 and 5x2y+z=3.

Hint

Set x=y=0 to find a point on the first plane.

Answer

930=33010units

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.

imageedit_6_5255379438.png
Figure 1.5.11: Industrial pipe installations often feature pipes running in different directions. How can we find the distance between two skew pipes?

The symmetric forms of two lines, L1 and L2, are

L1:xx1a1=yy1b1=zz1c1

L2:xx2a2=yy2b2=zz2c2.

You are to develop a formula for the distance d between these two lines, in terms of the values a1,b1,c1;a2,b2,c2;x1,y1,z1; and x2,y2,z2. 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.

1. First, write down two vectors, v1 and v2, that lie along L1 and L2, respectively.

2. Find the cross product of these two vectors and call it n. This vector is perpendicular to v1 and v2, and hence is perpendicular to both lines.

3. Use symmetric equations to find a convenient vector v12 that lies between any two points, one on each line. Again, this can be done directly from the symmetric equations.

4. Find the projection of vector v12 found in step 3 onto unit vector n found in step 2. This projection is perpendicular to both lines, and hence its length must be the perpendicular distance d between them.

5. Check that your formula gives the correct distance of d=25198=252266units1.78units between the following two lines:

L1:x52=y34=z13

L2:x63=y15=z7.

6. 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?)

7. 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 n and v12. What is the result of their dot product?

8. 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×15.0×10.0m (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 L1. A second pipe enters and exits at the two different opposite lower corners; call this L2 (Figure 1.5.12).

imageedit_6_7085917562.png
Figure 1.5.12: Two pipes cross through a standard frame unit.

Write down the vectors along the lines representing those pipes, find the cross product between them from which to create the mutually orthogonal vector 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.

Key Concepts

  • In three dimensions, the direction of a line is described by a direction vector. The vector equation of a line with direction vector v=a,b,c passing through point P=(x0,y0,z0) is r=r0+tv, where \vecs r_0=⟨x_0,y_0,z_0⟩ is the position vector of point P. This equation can be rewritten to form the parametric equations of the line: x=x_0+ta,y=y_0+tb, and z=z_0+tc. The line can also be described with the symmetric equations \dfrac{x−x_0}{a}=\dfrac{y−y_0}{b}=\dfrac{z−z_0}{c}.
  • Let L be a line in space passing through point P with direction vector \vecs v. If Q is any point not on L, then the distance from Q to L is d=\dfrac{‖\vecd{PQ}×\vecs v‖}{‖\vecs v‖}. \nonumber
  • In three dimensions, two lines may be parallel but not equal, equal, intersecting, or skew.
  • Given a point P and vector \vecs n, the set of all points Q satisfying equation \vecs n⋅\vecd{PQ}=0 forms a plane. This equation is known as the vector equation of a plane.
  • The scalar equation of a plane containing point P=(x_0,y_0,z_0) with normal vector \vecs n=⟨a,b,c⟩ is a(x−x_0)+b(y−y_0)+c(z−z_0)=0 \nonumber. This equation can be expressed as ax+by+cz+d=0, \nonumber  where d=−ax_0−by_0−cz_0. This form of the equation is sometimes called the general form of the equation of a plane.
  • Suppose a plane with normal vector n passes through point Q. The distance D from the plane to point P not in the plane is given by D=‖\text{proj}_\vecs{n}\vecd{QP}‖=∣\text{comp}_\vecs{n}\vec{QP}∣=\dfrac{∣\vec{QP}⋅\vecs n∣}{‖\vecs n‖.} \nonumber
  • The normal vectors of parallel planes are parallel. When two planes intersect, they form a line.
  • The measure of the angle θ between two intersecting planes can be found using the equation: \cos θ=\dfrac{|\vecs{n}_1⋅\vecs n_2|}{‖\vecs n_1‖‖\vecs n_2‖} \nonumber where \vecs n_1 and \vecs n_2 are normal vectors to the planes.
  • The distance D from point (x_0,y_0,z_0) to plane ax+by+cz+d=0 is given by

D=\dfrac{|a(x_0−x_1)+b(y_0−y_1)+c(z_0−z_1)|} {\sqrt{a^2+b^2+c^2}}=\dfrac{|ax_0+by_0+cz_0+d|}{\sqrt{a^2+b^2+c^2}} \nonumber.

Key Equations

  • Vector Equation of a Line \vecs r=\vecs r_0+t\vecs v \nonumber
  • Parametric Equations of a Line x=x_0+ta,y=y_0+tb, \nonumber  and z=z_0+tc\nonumber
  • Symmetric Equations of a Line \dfrac{x−x_0}{a}=\dfrac{y−y_0}{b}=\dfrac{z−z_0}{c}\nonumber
  • Vector Equation of a Plane \vecs n⋅\vecd{PQ}=0\nonumber
  • Scalar Equation of a Plane \nonumber a(x−x_0)+b(y−y_0)+c(z−z_0)=0
  • Distance between a Plane and a Point d=‖\text{proj}_\vecs{n}\vecd{QP}‖=∣\text{comp}_\vecs{n}\vecd{QP}∣=\dfrac{∣\vecd{QP}⋅\vecs n∣}{‖\vecs n‖}\nonumber

Glossary

direction vector
a vector parallel to a line that is used to describe the direction, or orientation, of the line in space
general form of the equation of a plane
an equation in the form ax+by+cz+d=0, where \vecs n=⟨a,b,c⟩ is a normal vector of the plane, P=(x_0,y_0,z_0) is a point on the plane, and d=−ax_0−by_0−cz_0
normal vector
a vector perpendicular to a plane
parametric equations of a line
the set of equations x=x_0+ta, y=y_0+tb, and z=z_0+tc describing the line with direction vector v=⟨a,b,c⟩ passing through point (x_0,y_0,z_0)
scalar equation of a plane
the equation a(x−x_0)+b(y−y_0)+c(z−z_0)=0 used to describe a plane containing point P=(x_0,y_0,z_0) with normal vector n=⟨a,b,c⟩ or its alternate form ax+by+cz+d=0, where d=−ax_0−by_0−cz_0
skew lines
two lines that are not parallel but do not intersect
symmetric equations of a line
the equations \dfrac{x−x_0}{a}=\dfrac{y−y_0}{b}=\dfrac{z−z_0}{c} describing the line with direction vector v=⟨a,b,c⟩ passing through point (x_0,y_0,z_0)
vector equation of a line
the equation \vecs r=\vecs r_0+t\vecs v used to describe a line with direction vector \vecs v=⟨a,b,c⟩ passing through point P=(x_0,y_0,z_0), where \vecs r_0=⟨x_0,y_0,z_0⟩, is the position vector of point P
vector equation of a plane
the equation \vecs n⋅\vecd{PQ}=0, where P is a given point in the plane, Q is any point in the plane, and \vecs n is a normal vector of the plane

Contributors

  • Gilbert Strang (MIT) and Edwin “Jed” Herman (Harvey Mudd) with many contributing authors. This content by OpenStax is licensed with a CC-BY-SA-NC 4.0 license. Download for free at http://cnx.org.

  • Edited by Paul Seeburger (Monroe Community College)

This page titled 1.5: Equations of Lines and Planes in Space is shared under a CC BY-NC-SA 4.0 license and was authored, remixed, and/or curated by OpenStax.

Support Center

How can we help?