Multivariable Calculus · Undergraduate

Lines and Planes in Space

Quick answer

In space a line cannot be written as y = mx + b. It is described by a point and a direction vector: r(t) = r₀ + tv, or in components x = x₀ + at, y = y₀ + bt, z = z₀ + ct. A plane is described by a point and a normal vector n perpendicular to it, which gives the equation a(x − x₀) + b(y − y₀) + c(z − z₀) = 0. Cross products supply normals, dot products supply angles, and the formula |ax₀ + by₀ + cz₀ − d|/|n| gives the distance from a point to a plane.

What you'll learn

  • Write parametric equations of a line in space
  • Write the equation of a plane from a point and a normal vector
  • Find the plane through three points with a cross product
  • Find intersections, angles and distances involving planes

Lines: a point and a direction

In the plane a single equation y=mx+by = mx + b describes a line. In space one equation in xx, yy and zz describes a surface, so a line needs a different description. Start at a point r0=(x0,y0,z0)\mathbf{r}_0 = (x_0, y_0, z_0) and move along a direction vector v=(a,b,c)\mathbf{v} = (a, b, c).

r(t)=r0+tvorx=x0+at,y=y0+bt,z=z0+ct\mathbf{r}(t) = \mathbf{r}_0 + t\mathbf{v} \qquad\text{or}\qquad x = x_0 + at,\quad y = y_0 + bt,\quad z = z_0 + ct

As tt runs over the real numbers the point traces the whole line, the same way parametric equations trace curves in the plane.

Planes: a point and a normal

A plane is decided by one point P0P_0 on it and one vector n=(a,b,c)\mathbf{n} = (a, b, c) perpendicular to it, the normal vector. A point PP lies on the plane exactly when the arrow from P0P_0 to PP runs along the plane, which means it is perpendicular to n\mathbf{n}:

n⋅P0P→=0⟺a(x−x0)+b(y−y0)+c(z−z0)=0\mathbf{n} \cdot \overrightarrow{P_0P} = 0 \quad\Longleftrightarrow\quad a(x - x_0) + b(y - y_0) + c(z - z_0) = 0

Expanding gives the standard form ax+by+cz=dax + by + cz = d, and the coefficients of xx, yy and zz are the normal vector, which can be read off at a glance.

Why normals do all the work

Two planes are parallel when their normals are parallel, and the angle between two planes is the angle between their normals, found with a dot product. A normal also measures distance. From a point QQ off the plane, the shortest path to the plane runs along n\mathbf{n}, so the distance is the length of the projection of P0Q→\overrightarrow{P_0Q} onto n\mathbf{n}. Written out,

distance=∣ax0+by0+cz0−d∣a2+b2+c2\text{distance} = \frac{|ax_0 + by_0 + cz_0 - d|}{\sqrt{a^2 + b^2 + c^2}}

for Q=(x0,y0,z0)Q = (x_0, y_0, z_0) and the plane ax+by+cz=dax + by + cz = d. Everything about a plane’s orientation is carried by its normal vector, so questions about planes become questions about one vector.

Worked examples

Common mistakes

Practice problems

  1. Write the line through (2,−1,0)(2, -1, 0) with direction (1,3,−2)(1, 3, -2), and find its point at t=2t = 2.

    Answer

    x=2+tx = 2 + t, y=−1+3ty = -1 + 3t, z=−2tz = -2t; the point (4,5,−4)(4, 5, -4)

    Full solution

    Add tt times the direction to the starting point, then substitute t=2t = 2.

  2. Write the plane through (0,0,0)(0, 0, 0) with normal (3,−2,5)(3, -2, 5).

    Answer

    3x−2y+5z=03x - 2y + 5z = 0

    Full solution

    The coefficients are the normal, and the origin makes d=0d = 0.

  3. Find a normal vector to the plane 4x−y+7z=24x - y + 7z = 2.

    Answer

    (4,−1,7)(4, -1, 7)

    Full solution

    Read the coefficients of xx, yy and zz.

  4. Find the plane through (0,0,0)(0, 0, 0), (1,2,0)(1, 2, 0) and (0,1,1)(0, 1, 1).

    Answer

    2x−y+z=02x - y + z = 0

    Full solution

    (1,2,0)×(0,1,1)=(2,−1,1)(1, 2, 0) \times (0, 1, 1) = (2, -1, 1) is a normal, and the plane passes through the origin. Check (1,2,0)(1, 2, 0): 2−2+0=02 - 2 + 0 = 0 ✓.

  5. Find the distance from the origin to the plane x+2y+2z=9x + 2y + 2z = 9.

    Answer

    33

    Full solution

    ∣0−9∣1+4+4=93\tfrac{|0 - 9|}{\sqrt{1 + 4 + 4}} = \tfrac{9}{3}.

  6. Are the planes 2x−4y+6z=12x - 4y + 6z = 1 and x−2y+3z=5x - 2y + 3z = 5 parallel?

    Answer

    Yes

    Full solution

    The first normal (2,−4,6)(2, -4, 6) is twice the second, (1,−2,3)(1, -2, 3). The planes are parallel and different, since x−2y+3zx - 2y + 3z equals 12\tfrac{1}{2} on one and 55 on the other.

  7. Are the planes x+y+z=1x + y + z = 1 and x−y=0x - y = 0 perpendicular?

    Answer

    Yes

    Full solution

    Their normals (1,1,1)(1, 1, 1) and (1,−1,0)(1, -1, 0) have dot product 00.

  8. Find the direction of the line where x+y+z=6x + y + z = 6 and x−y+z=2x - y + z = 2 meet, and a point on it.

    Answer

    Direction (2,0,−2)(2, 0, -2); the point (2,2,2)(2, 2, 2)

    Full solution

    The line lies in both planes, so it is perpendicular to both normals: (1,1,1)×(1,−1,1)=(2,0,−2)(1, 1, 1) \times (1, -1, 1) = (2, 0, -2). Subtracting the equations gives y=2y = 2, and then x+z=4x + z = 4 is satisfied by (2,2,2)(2, 2, 2).

  9. Does the line x=tx = t, y=1+ty = 1 + t, z=2tz = 2t meet the plane x+y−z=5x + y - z = 5?

    Answer

    No; it runs parallel to the plane.

    Full solution

    Substituting gives t+1+t−2t=1t + 1 + t - 2t = 1, so the equation becomes 1=51 = 5, false for every tt. The direction (1,1,2)(1, 1, 2) is perpendicular to the normal (1,1,−1)(1, 1, -1), so the line never reaches the plane.

  10. A student writes the plane through (1,2,3)(1, 2, 3) with normal (2,−1,1)(2, -1, 1) as x=1+2tx = 1 + 2t, y=2−ty = 2 - t, z=3+tz = 3 + t. What went wrong?

    Hint

    How many parameters does a plane need?

    Answer

    That is the line through the point along the normal, perpendicular to the plane. The plane is 2x−y+z=32x - y + z = 3.

    Full solution

    One parameter traces a line. A plane can be written with one equation, 2(x−1)−(y−2)+(z−3)=02(x - 1) - (y - 2) + (z - 3) = 0, and the student’s line crosses it at a right angle at (1,2,3)(1, 2, 3).

Frequently asked questions

How do you write the equation of a line in space?

Use a point (x₀, y₀, z₀) on it and a direction vector (a, b, c): x = x₀ + at, y = y₀ + bt, z = z₀ + ct.

How do you write the equation of a plane?

Use a point (x₀, y₀, z₀) on it and a normal vector (a, b, c): a(x − x₀) + b(y − y₀) + c(z − z₀) = 0, which expands to ax + by + cz = d.

How do you find the plane through three points?

Form two edge vectors from one point to the other two. Their cross product is a normal vector, and any of the points completes the equation.

How do you find the distance from a point to a plane?

For the plane ax + by + cz = d and the point (x₀, y₀, z₀), the distance is |ax₀ + by₀ + cz₀ − d| divided by √(a² + b² + c²).

When are two planes parallel?

When their normal vectors are parallel, that is, one is a multiple of the other.

What to learn next