Unit 1, lesson 5

Equations of Lines and Planes

How to write lines in vector, parametric and symmetric form and planes through a normal vector, and how to compute their intersections, angles and distances.

  • Theory part 9
  • Practice part 10
  • Linear Maps, Lines, and Planes

A drone flying in a straight line at constant velocity is at a known point at every moment. A flat roof has a tilt you can describe with a single arrow sticking straight out of it. Those two pictures, a point moving along a direction and a surface fixed by a perpendicular, give every equation for lines and planes in space. Once you have them, questions like where a line hits a wall or how far a point is from a floor become short dot and cross product calculations.

Key terms

Vector and parametric equations of a line

Definition Let P0P_0 be a point with position vector r0=⟨x0,y0,z0⟩\mathbf{r}_0 = \langle x_0, y_0, z_0 \rangle and let v=⟨a,b,c⟩\mathbf{v} = \langle a, b, c \rangle be a nonzero vector. The line through P0P_0 parallel to v\mathbf{v} is the set of points with position vector

r(t)=r0+tv,t∈R.\mathbf{r}(t) = \mathbf{r}_0 + t\mathbf{v}, \qquad t \in \mathbb{R}.

In components this is the parametric form

x=x0+at,y=y0+bt,z=z0+ct.\begin{aligned} x &= x_0 + at, \\ y &= y_0 + bt, \\ z &= z_0 + ct. \end{aligned}

The vector v\mathbf{v} is a direction vector. Any nonzero multiple of v\mathbf{v} and any other point of the line describe the same line, so a line has many equations.

In plain words Start at a point and walk in a fixed direction. The parameter tt says how many copies of v\mathbf{v} you have walked, forward or backward.

Example The line through P(1,−2,3)P(1, -2, 3) and Q(4,0,2)Q(4, 0, 2) has direction v=PQ→=⟨3,2,−1⟩\mathbf{v} = \overrightarrow{PQ} = \langle 3, 2, -1 \rangle, so

x=1+3t,y=−2+2t,z=3−t.\begin{aligned} x &= 1 + 3t, \\ y &= -2 + 2t, \\ z &= 3 - t. \end{aligned}

At t=0t = 0 you are at PP, at t=1t = 1 you reach QQ, and t=12t = \frac{1}{2} gives the midpoint (2.5,−1,2.5)(2.5, -1, 2.5).

Symmetric equations and zero components

Definition If aa, bb and cc are all nonzero, solving each parametric equation for tt gives the symmetric equations

x−x0a=y−y0b=z−z0c.\frac{x - x_0}{a} = \frac{y - y_0}{b} = \frac{z - z_0}{c}.

If one component is zero, that fraction is not allowed. For example, if b=0b = 0 while a,c≠0a, c \ne 0, the line is

y=y0,x−x0a=z−z0c.y = y_0, \qquad \frac{x - x_0}{a} = \frac{z - z_0}{c}.

If two components are zero, say a=b=0a = b = 0, the line is x=x0x = x_0, y=y0y = y_0 with zz arbitrary.

In plain words A zero component means that coordinate never changes along the line. Write it as a fixed value instead of dividing by zero.

Example The line through (1,4,3)(1, 4, 3) with direction ⟨2,0,−1⟩\langle 2, 0, -1 \rangle has parametric form x=1+2tx = 1 + 2t, y=4y = 4, z=3−tz = 3 - t. Its symmetric form is

y=4,x−12=z−3−1.y = 4, \qquad \frac{x - 1}{2} = \frac{z - 3}{-1}.

The whole line lies in the plane y=4y = 4, and that equation stays true for every tt.

Planes and their normal vectors

Definition Let P0P_0 have position vector r0\mathbf{r}_0 and let n=⟨a,b,c⟩\mathbf{n} = \langle a, b, c \rangle be a nonzero vector. The plane through P0P_0 with normal vector n\mathbf{n} is the set of points with position vector r\mathbf{r} such that n⋅(r−r0)=0\mathbf{n} \cdot (\mathbf{r} - \mathbf{r}_0) = 0, that is

a(x−x0)+b(y−y0)+c(z−z0)=0.\begin{gathered} a(x - x_0) + b(y - y_0) \\ {} + c(z - z_0) = 0. \end{gathered}

This can be written ax+by+cz=dax + by + cz = d with d=n⋅r0d = \mathbf{n} \cdot \mathbf{r}_0. Conversely, every equation ax+by+cz=dax + by + cz = d with a,b,ca, b, c not all zero is a plane with normal ⟨a,b,c⟩\langle a, b, c \rangle. Through three points P,Q,RP, Q, R that are not on one line there is exactly one plane, and n=PQ→×PR→\mathbf{n} = \overrightarrow{PQ} \times \overrightarrow{PR} is a normal to it.

In plain words A plane is everything you can reach from one point by moving at right angles to the normal. The coefficients of xx, yy and zz are that normal, read off directly.

Example Take P(1,0,0)P(1, 0, 0), Q(0,2,0)Q(0, 2, 0) and R(0,0,3)R(0, 0, 3). Then PQ→=⟨−1,2,0⟩\overrightarrow{PQ} = \langle -1, 2, 0 \rangle and PR→=⟨−1,0,3⟩\overrightarrow{PR} = \langle -1, 0, 3 \rangle, and

PQ→×PR→=⟨6,3,2⟩.\overrightarrow{PQ} \times \overrightarrow{PR} = \langle 6, 3, 2 \rangle.

The plane is 6(x−1)+3y+2z=06(x - 1) + 3y + 2z = 0, or 6x+3y+2z=66x + 3y + 2z = 6. As a check, QQ gives 66 and RR gives 66.

Angles between lines and planes

Definition The angle between two lines with direction vectors v1\mathbf{v}_1 and v2\mathbf{v}_2 is the angle θ\theta in [0,π2][0, \frac{\pi}{2}] with

cos⁡θ=∣v1⋅v2∣∣v1∣ ∣v2∣.\cos\theta = \frac{\lvert \mathbf{v}_1 \cdot \mathbf{v}_2 \rvert}{\lvert \mathbf{v}_1 \rvert \, \lvert \mathbf{v}_2 \rvert}.

The angle between two planes is the angle between their normals, given by the same formula with n1,n2\mathbf{n}_1, \mathbf{n}_2. The planes are parallel or equal exactly when their normals are parallel. The angle between a line with direction v\mathbf{v} and a plane with normal n\mathbf{n} is φ=π2−α\varphi = \frac{\pi}{2} - \alpha, where α\alpha in [0,π2][0, \frac{\pi}{2}] is the angle between the line and the normal line. So φ\varphi lies in [0,π2][0, \frac{\pi}{2}], it is 00 when the line is parallel to the plane and π2\frac{\pi}{2} when the line is perpendicular to it, and

sin⁡φ=∣v⋅n∣∣v∣ ∣n∣.\sin\varphi = \frac{\lvert \mathbf{v} \cdot \mathbf{n} \rvert}{\lvert \mathbf{v} \rvert \, \lvert \mathbf{n} \rvert}.

In plain words Every angle here comes from a dot product. The absolute value picks the acute angle, since flipping a direction vector or normal should not change the answer. For a line and a plane you get the sine, because the normal is at a right angle to the plane.

Example The planes x+y+z=1x + y + z = 1 and x−2y+3z=1x - 2y + 3z = 1 have normals with dot product 1−2+3=21 - 2 + 3 = 2 and lengths 3\sqrt{3} and 14\sqrt{14}, so

cos⁡θ=242,θ≈72.0∘.\cos\theta = \frac{2}{\sqrt{42}}, \qquad \theta \approx 72.0^\circ.

For a line and a plane, take the direction ⟨1,2,−1⟩\langle 1, 2, -1 \rangle and the plane 2x+y+z=102x + y + z = 10. The dot product is 2+2−1=32 + 2 - 1 = 3 and both lengths are 6\sqrt{6}, so sin⁡φ=36=12\sin\varphi = \frac{3}{6} = \frac{1}{2} and the line meets the plane at φ=π6\varphi = \frac{\pi}{6}, or 30∘30^\circ.

Intersections

Definition To intersect the line r(t)=r0+tv\mathbf{r}(t) = \mathbf{r}_0 + t\mathbf{v} with the plane n⋅r=d\mathbf{n} \cdot \mathbf{r} = d, substitute to get n⋅r0+t (n⋅v)=d\mathbf{n} \cdot \mathbf{r}_0 + t\,(\mathbf{n} \cdot \mathbf{v}) = d. If n⋅v≠0\mathbf{n} \cdot \mathbf{v} \ne 0 there is exactly one intersection point, at

t=d−n⋅r0n⋅v.t = \frac{d - \mathbf{n} \cdot \mathbf{r}_0}{\mathbf{n} \cdot \mathbf{v}}.

If n⋅v=0\mathbf{n} \cdot \mathbf{v} = 0 the line is parallel to the plane. It lies in the plane when n⋅r0=d\mathbf{n} \cdot \mathbf{r}_0 = d and misses it otherwise. Two planes with nonparallel normals meet in a line with direction n1×n2\mathbf{n}_1 \times \mathbf{n}_2. Two planes with parallel normals are either the same plane or do not meet.

In plain words Plug the line into the plane and solve for tt. For two planes, the line they share runs at right angles to both normals, which is what the cross product gives.

Example The line x=1+tx = 1 + t, y=2ty = 2t, z=3−tz = 3 - t meets 2x+y+z=102x + y + z = 10 where 2+2t+2t+3−t=102 + 2t + 2t + 3 - t = 10, so t=53t = \frac{5}{3} and the point is (83,103,43)(\frac{8}{3}, \frac{10}{3}, \frac{4}{3}). Check that 163+103+43=10\frac{16}{3} + \frac{10}{3} + \frac{4}{3} = 10. For the two planes of the previous example,

n1×n2=⟨1,1,1⟩×⟨1,−2,3⟩=⟨5,−2,−3⟩.\begin{aligned} \mathbf{n}_1 \times \mathbf{n}_2 &= \langle 1, 1, 1 \rangle \times \langle 1, -2, 3 \rangle \\[0.4em] &= \langle 5, -2, -3 \rangle. \end{aligned}

Setting z=0z = 0 gives x+y=1x + y = 1 and x−2y=1x - 2y = 1, so (1,0,0)(1, 0, 0) lies on both. The line of intersection is r(t)=⟨1+5t,−2t,−3t⟩\mathbf{r}(t) = \langle 1 + 5t, -2t, -3t \rangle, and substituting shows it satisfies both equations for every tt.

Skew lines

Definition Two lines in space are skew if they are not parallel and do not intersect. For the lines r1+sv1\mathbf{r}_1 + s\mathbf{v}_1 and r2+tv2\mathbf{r}_2 + t\mathbf{v}_2 this happens exactly when

v1×v2≠0and(r2−r1)⋅(v1×v2)≠0.\begin{gathered} \mathbf{v}_1 \times \mathbf{v}_2 \ne \mathbf{0} \quad \text{and} \\[0.4em] (\mathbf{r}_2 - \mathbf{r}_1) \cdot (\mathbf{v}_1 \times \mathbf{v}_2) \ne 0. \end{gathered}

Their distance, the length of the shortest segment joining them, is

D=∣(r2−r1)⋅(v1×v2)∣∣v1×v2∣.D = \frac{\lvert (\mathbf{r}_2 - \mathbf{r}_1) \cdot (\mathbf{v}_1 \times \mathbf{v}_2) \rvert}{\lvert \mathbf{v}_1 \times \mathbf{v}_2 \rvert}.

When the cross product is nonzero but the triple product is zero, the lines lie in one plane and intersect. Skew lines do not exist in the plane, where nonparallel lines always meet.

In plain words Think of a road on a bridge and a road passing underneath at an angle. They point different ways and never touch.

Example Take r1=⟨1,2,0⟩\mathbf{r}_1 = \langle 1, 2, 0 \rangle, v1=⟨1,−1,2⟩\mathbf{v}_1 = \langle 1, -1, 2 \rangle and r2=⟨0,1,3⟩\mathbf{r}_2 = \langle 0, 1, 3 \rangle, v2=⟨2,1,1⟩\mathbf{v}_2 = \langle 2, 1, 1 \rangle. Matching xx and yy forces s=13s = \frac{1}{3} and t=23t = \frac{2}{3}, but then the zz values are 23\frac{2}{3} and 113\frac{11}{3}, so the lines do not meet. The cross product v1×v2=⟨−3,3,3⟩\mathbf{v}_1 \times \mathbf{v}_2 = \langle -3, 3, 3 \rangle is nonzero, so they are skew, and

D=∣⟨−1,−1,3⟩⋅⟨−3,3,3⟩∣27=933=3.\begin{aligned} D &= \frac{\lvert \langle -1, -1, 3 \rangle \cdot \langle -3, 3, 3 \rangle \rvert}{\sqrt{27}} \\[0.4em] &= \frac{9}{3\sqrt{3}} = \sqrt{3}. \end{aligned}

Distance from a point to a plane

Definition The distance from the point P1(x1,y1,z1)P_1(x_1, y_1, z_1) to the plane ax+by+cz=dax + by + cz = d, where a,b,ca, b, c are not all zero, is

D=∣ax1+by1+cz1−d∣a2+b2+c2.D = \frac{\lvert a x_1 + b y_1 + c z_1 - d \rvert}{\sqrt{a^2 + b^2 + c^2}}.

It is the length of the projection of P0P1→\overrightarrow{P_0 P_1} onto the normal, for any point P0P_0 of the plane. The distance between parallel planes ax+by+cz=d1ax + by + cz = d_1 and ax+by+cz=d2ax + by + cz = d_2 is ∣d1−d2∣/a2+b2+c2\lvert d_1 - d_2 \rvert / \sqrt{a^2 + b^2 + c^2}.

In plain words Plug the point into the plane’s equation and see how far it misses. Dividing by the length of the normal turns that miss into an actual distance.

Example From (1,2,3)(1, 2, 3) to the plane 6x+3y+2z=66x + 3y + 2z = 6,

D=∣6+6+6−6∣36+9+4=127.D = \frac{\lvert 6 + 6 + 6 - 6 \rvert}{\sqrt{36 + 9 + 4}} = \frac{12}{7}.

Check yourself

  1. Find the line through (2,−1,0)(2, -1, 0) perpendicular to the plane x−y+2z=4x - y + 2z = 4, the point where it meets the plane, and the distance from (2,−1,0)(2, -1, 0) to the plane.
Show the answer

The normal ⟨1,−1,2⟩\langle 1, -1, 2 \rangle is a direction, so the line is x=2+tx = 2 + t, y=−1−ty = -1 - t, z=2tz = 2t. Substituting gives 3+6t=43 + 6t = 4, so t=16t = \frac{1}{6} and the point is (136,−76,13)(\frac{13}{6}, -\frac{7}{6}, \frac{1}{3}). The distance formula gives

D=∣2+1−4∣6=16,D = \frac{\lvert 2 + 1 - 4 \rvert}{\sqrt{6}} = \frac{1}{\sqrt{6}},

which matches the length 166\frac{1}{6}\sqrt{6} of the step along the normal.

  1. Write symmetric equations for the line through (3,0,−2)(3, 0, -2) and (3,4,1)(3, 4, 1).
Show the answer

The direction is ⟨0,4,3⟩\langle 0, 4, 3 \rangle. The first component is zero, so xx stays fixed and the equations are x=3x = 3 and y4=z+23\frac{y}{4} = \frac{z + 2}{3}.

  1. Do the lines ⟨1,1,0⟩+s⟨1,0,1⟩\langle 1, 1, 0 \rangle + s\langle 1, 0, 1 \rangle and ⟨0,1,1⟩+t⟨1,1,0⟩\langle 0, 1, 1 \rangle + t\langle 1, 1, 0 \rangle intersect? If not, find their distance.
Show the answer

Matching yy gives t=0t = 0, then xx gives s=−1s = -1, but zz gives s=1s = 1. They do not meet, and the directions are not parallel, so the lines are skew. With v1×v2=⟨−1,1,1⟩\mathbf{v}_1 \times \mathbf{v}_2 = \langle -1, 1, 1 \rangle and r2−r1=⟨−1,0,1⟩\mathbf{r}_2 - \mathbf{r}_1 = \langle -1, 0, 1 \rangle, the distance is 23\frac{2}{\sqrt{3}}.

How this lesson connects

It also uses Vector arithmetic, dot and cross products, linear equations and elementary trigonometry.