← Back to Math 005C

12.5 Equations of Lines and Planes: Class Notes

12.5a

Equations of a line in space parallel to the vector 𝐯=⟨a, b, c⟩ and containing the point (x0,y0,z0)

Types of equations of lines:

Vector equation of a line

Line L through the head of r sub 0, parallel to v; vectors r from the origin end on L

Line L in space. The vector r→0=⟨x0,y0,z0⟩ points from the origin to a fixed point on L. The direction vector v→=⟨a,b,c⟩ is parallel to L, and tv→ runs along L starting at that point. Several vectors r→ from the origin end at points on L.

The line L is formed by the heads of the vectors r→ as t increases. The vector v→ is parallel to L.

r→=r→0+tv→

Here r→0 corresponds to a fixed point on L, and v→ gives the direction. The variable t is the parameter: different values of t yield different vectors, the heads of which are points on L.

Vector equation: 𝐫(t)=⟨x0,y0,z0⟩+t⟨a, b, c⟩

We can consider the components separately.

Parametric equations: x=x0+at, y=y0+bt, z=z0+ct

Solving each equation for t and equating the resulting expressions yields

Symmetric equations: x−x0a=y−y0b=z−z0c

Exercise

Find a vector equation and parametric equations for the line through the point (6, −5, 2) and parallel to the vector ⟨1, 3, −23⟩.

Solution

Multiply the direction vector by 3 to clear the fraction, and use ⟨3,9,−2⟩ instead: it points in the same direction.

r→(t)=⟨6,−5,2⟩+t⟨3,9,−2⟩r→(t)=⟨6+3t,−5+9t,2−2t⟩

Answer: r→(t)=⟨6+3t,−5+9t,2−2t⟩

Parametric equations

{x=6+3ty=−5+9tz=2−2t

Answer: x=6+3t,y=−5+9t,z=2−2t

12.5b

Vector equation of a line segment from P(x0,y0,z0) to Q(x1,y1,z1)

Let 𝐫0=⟨x0,y0,z0⟩ and 𝐫1=⟨x1,y1,z1⟩.

Direction vector from P to Q: let

v→=⟨x1−x0,y1−y0,z1−z0⟩

Line through P and Q with direction v→:

r→(t)=r→0+tv→,0≤t≤1

(This agrees with the parametric equations of a line; restricting t to 0≤t≤1 makes it a segment that starts at P when t=0 and ends at Q when t=1.)

r→(t)=⟨x0,y0,z0⟩+t⟨x1−x0,y1−y0,z1−z0⟩r→(t)=⟨(1−t)x0+tx1,(1−t)y0+ty1,(1−t)z0+tz1⟩r→(t)=(1−t)⟨x0,y0,z0⟩+t⟨x1,y1,z1⟩

𝐫(t)=(1−t)𝐫0+t𝐫1, 0≤t≤1

This is the book’s formula, but I prefer the simpler form r→(t)=r→0+tv→, 0≤t≤1, above.

12.5c

Equation of a plane with normal vector 𝐧=⟨a, b, c⟩ and containing the point (x0,y0,z0)

Plane with fixed point r sub 0, point r, the vector r minus r sub 0 in the plane, and normal vector n

A plane containing the fixed point with position vector r→0=⟨x0,y0,z0⟩ and any other point with position vector r→=⟨x,y,z⟩. The vector r→−r→0 lies in the plane, and the normal vector n→=⟨a,b,c⟩ is perpendicular to the plane at the fixed point.

n→=⟨a,b,c⟩ is the normal vector to the plane; it indicates a direction for the plane. The point r→0 is fixed, and r→ is any point of the plane, so r→−r→0 lies in the plane and is orthogonal to n→:

(r→−r→0)⋅n→=0(orthogonal vectors)

⟨x−x0,y−y0,z−z0⟩⋅⟨a,b,c⟩=0

a(x−x0)+b(y−y0)+c(z−z0)=0

In this equation, a,b,c come from the direction (normal) vector for the plane, and x0,y0,z0 come from a point on the plane.

By distributing and collecting like terms, we get

ax+by+cz+d=0(standard form for the equation of a plane)

a(x−x0)+b(y−y0)+c(z−z0)=0

Exercises

Visually represent the portion of the plane 3x+4y+6z=12 that is in the first octant.

Solution

Use the intercepts. Setting two of the variables equal to 0 at a time gives 3x=12, so x=4; 4y=12, so y=3; and 6z=12, so z=2. Connecting the three intercepts gives a triangle. A normal vector is ⟨3,4,6⟩.

Triangle with vertices (4,0,0), (0,3,0), (0,0,2): the plane 3x + 4y + 6z = 12 in the first octant

The part of the plane 3x+4y+6z=12 in the first octant is the triangle with vertices on the axes at (4,0,0), (0,3,0), and (0,0,2). The normal vector ⟨3,4,6⟩ points away from the triangle.

Answer: the triangle with vertices (4,0,0), (0,3,0), and (0,0,2).

12.5d

Find an equation of the plane through the points (3, 0, −1), (−2, −2, 3), and (7, 1, −4).

Solution

Label the points P1(3,0,−1), P2(−2,−2,3), and P3(7,1,−4). The vectors from P1 to the other two points lie in the plane, so their cross product is a normal vector.

Plane through P sub 1, P sub 2, P sub 3 with vectors u and v from P sub 1 and normal n

A plane through P1, P2, and P3. The vectors u→ (from P1 to P2) and v→ (from P1 to P3) lie in the plane, and the normal vector n→ is perpendicular to both.

u→=⟨−2−3,−2−0,3+1⟩u→=⟨−5,−2,4⟩v→=⟨7−3,1−0,−4+1⟩v→=⟨4,1,−3⟩

v→×u→=|ı^ȷ^k^41−3−5−24|=(4−6)ı^−(16−15)ȷ^+(−8+5)k^v→×u→=⟨−2,−1,−3⟩

Use n→=⟨2,1,3⟩ (the negative of the cross product, which is also normal to the plane), with the point P1(3,0,−1):

2(x−3)+1(y−0)+3(z−(−1))=0

Answer: 2x+y+3z=3

12.5e

Find an equation of the plane that passes through the point (6, −1, 3) and contains the line with symmetric equations x3=y+4=z2.

Solution

Compare with x−x0a=y−y0b=z−z0c. The denominators give the direction of the line L:

v→=⟨3,1,2⟩

Plane containing line L through (0, -4, 0) with direction v, the point (6, -1, 3), vector u, and normal n

A plane containing the line L and the point (6,−1,3). The line passes through (0,−4,0) with direction vector v→. The vector u→ runs from (0,−4,0) to (6,−1,3), and the normal vector n→ is perpendicular to both u→ and v→.

Working backwards: we need n→. For that we need u→×v→ for two vectors in the plane, and for u→ we need a second point on the plane.

The numerators show that (0,−4,0) is on the line, so it is on the plane. Then

u→=⟨6,3,3⟩ ⇒ use ⟨2,1,1⟩

u→×v→=|ı^ȷ^k^211312|=⟨1,−1,−1⟩

Use this normal vector with the point (6,−1,3):

1(x−6)−1(y−(−1))−1(z−3)=0

Answer: x−y−z=4

Where does the line through (−3, 1, 0) and (−1, 5, 6) intersect the plane 2x+y−z=−2?

Solution

Parametric equations of the line. A direction vector is

v→=⟨−1+3,5−1,6−0⟩v→=⟨2,4,6⟩

Use ⟨1,2,3⟩ with the point (−3,1,0):

L: {x=−3+ty=1+2tz=3t

(Symmetric equations: x+3=y−12=z3.)

Substitute x, y, and z into the equation of the plane and solve for t:

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

The line meets the plane when t=3: x=−3+3, y=1+6, z=9.

Answer: (x,y,z)=(0,7,9)

12.5f

(a) Find parametric equations for the line of intersection of the planes and (b) find the angle between the planes.
x+y+z=1, x+2y+2z=1

Solution

(a) The normal vectors are n→1=⟨1,1,1⟩ and n→2=⟨1,2,2⟩. The line of intersection lies in both planes, so it is perpendicular to both normals, and their cross product gives its direction.

Two intersecting planes with normals n sub 1 and n sub 2; v points along their line of intersection

Two planes meeting in a line: the plane x+y+z=1 with normal n→1 and the plane x+2y+2z=1 with normal n→2. The vector v→ points along the line of intersection, so it is perpendicular to both normals.

v→=n→1×n→2=|ı^ȷ^k^111122|v→=⟨0,−1,1⟩

Now find a point on both planes. Subtract the second equation from the first:

x+y+z=1−x−2y−2z=−1−y−z=0 ⇒ y=−z

Let y=0, so z=0 (an arbitrary choice). To find x, double the first equation and subtract the second:

2x+2y+2z=2−x−2y−2z=−1x=1

Use (1,0,0) with v→=⟨0,−1,1⟩.

Answer: x=1,y=−t,z=t

(b) The angle between the planes is the angle between their normal vectors:

cos⁡θ=n→1⋅n→2|n→1||n→2|

n→1⋅n→2=⟨1,1,1⟩⋅⟨1,2,2⟩=5

|n→1|=3,|n→2|=3

⇒ cos⁡θ=533

Answer: θ≈16∘

12.5g

Distances

Distance from a point (x1,y1,z1) to a plane with equation ax+by+cz+d=0

Point P sub 1 above a plane; vector b from P sub 0 in the plane to P sub 1; normal n; distance D

A plane ax+by+cz+d=0 containing the point P0(x0,y0,z0), and a point P1(x1,y1,z1) not on the plane. The vector b→ runs from P0 to P1. The normal vector n→ is perpendicular to the plane, and the distance D is measured straight from the plane to P1, parallel to n→.

Let P0(x0,y0,z0) be a point on the plane, with b→=⟨x1−x0,y1−y0,z1−z0⟩ and n→=⟨a,b,c⟩.

D = scalar projection of b→ onto n→ (in absolute value, since a distance is not negative):

D=compn→b→=|b→⋅n→||n→|D=|a(x1−x0)+b(y1−y0)+c(z1−z0)|a2+b2+c2D=|ax1+by1+cz1−(ax0+by0+cz0)|a2+b2+c2

But (x0,y0,z0) is on the plane ax+by+cz+d=0, so

⇒ −(ax0+by0+cz0)=d

D=|ax1+by1+cz1+d|a2+b2+c2

where the plane is given by ax+by+cz+d=0 and P1(x1,y1,z1) is a point not on the plane.

Exercises

Find the distance from the point (−6, 3, 5) to the plane x−2y−4z=8.

Solution

Write the plane in the form ax+by+cz+d=0:

x−2y−4z−8=0 ⇒ d=−8

D=|1(−6)−2(3)−4(5)−8|12+(−2)2+(−4)2D=|−40|21

Answer: D=4021

12.5h

Find the distance between the skew lines with the given parametric equations.

x=1+ty=1+6tz=2tandx=1+2sy=5+15sz=−2+6s

Solution

Skew: neither intersecting nor parallel. Skew lines lie in parallel planes, P1 containing L1 and P2 containing L2, so the distance between the lines is the distance from a point of L1 to the plane P2.

Skew lines L sub 1 and L sub 2 in parallel planes P sub 1 and P sub 2 with shared normal n

Two parallel planes, P1 above P2. Line L1 lies in P1 and passes through (1,1,0) (where t=0); line L2 lies in P2 and passes through (1,5,−2) (where s=0). The lines are not parallel and do not meet. The vector n→ is a normal vector shared by both planes.

D=|ax1+by1+cz1+d|a2+b2+c2

A normal vector shared by both planes is perpendicular to both direction vectors, ⟨1,6,2⟩ and ⟨2,15,6⟩:

n→=|ı^ȷ^k^1622156|=6ı^−2ȷ^+3k^

The plane P2 contains L2, so it passes through (1,5,−2) (where s=0):

P2: 6(x−1)−2(y−5)+3(z+2)=06x−2y+3z+10=0(d=10)

A point not on P2: (1,1,0), the point of L1 where t=0.

D=|6(1)−2(1)+3(0)+10|62+(−2)2+32=147

Answer: D=2