Surfaces in Three Dimensions

A two-variable function graphs as a surface.

A third axis

The x- and y-axes lie in a flat plane, the xy-plane, which holds the inputs of a function of two variables. A third axis, the z-axis, stands up out of that plane at right angles to both, and z measures height above it. A point now has three coordinates: (1, 2, 5) is the point 5 units above (1, 2), and (1, 2, −5) is 5 units below it.

The graph of z = f(x, y) is every point (x, y, f(x, y)): above each input, the point at the height the function gives. For z = x² + y² the input (1, 2) gives 1 + 4 = 5, so (1, 2, 5) is on the surface.

Read a surface by its slices

A surface is hard to draw from its equation directly, but its slices are easy. Fix one variable and the equation becomes a curve in the other two. These curves are called traces.

For z = x² + y², fix x = 0 and the trace is z = y², a parabola opening upward. Fix y = 0 and it is z = x², the same parabola along the other axis. Fix y = 1 and it is z = x² + 1, the same parabola raised by 1. Fix the height instead, z = 4, and the trace is x² + y² = 4, a circle of radius 2.

Upward parabolas in every vertical slice and circles in every level slice: the surface is a bowl, lowest at the origin, where z = 0, and rising in every direction. It is called a paraboloid.

xyzy = 1

The bowl z = x² + y² over the disc x² + y² ≤ 16, up to height 16. The gold curve is its trace above the line y = 1, the parabola z = x² + 1; the other wires are traces above lines x = constant and y = constant.

A slice through a different bowl

The instrument below uses f(x, y) = x² + 2y², a bowl that rises twice as steeply along y as along x. On the left are its level curves, ellipses; the dashed line is the slice the held variable cuts. On the right is that slice drawn as a curve of its own. Holding y = 1 leaves z = x² + 2, an upward parabola, and at x = 1.5 its height is 2.25 + 2 = 4.25.

xy(1.5, 1)xzhold y constanthold y constanthold x constant

hold y constant — the slice is an ordinary curve, and the partial derivative is its gradient: 3

Find a point where the x-slope is zero

f = x² + 2y² at the point (1.5, 1), held at y = 1: the slice is z = x² + 2, and its gradient at x = 1.5 is 2 × 1.5 = 3. Switch to holding x and the slice through the same point is z = 2.25 + 2y², with gradient 4 × 1 = 4 at y = 1. Drag the point onto the y-axis, where x = 0, and the slice held at y is flat there.

Change one sign: a saddle

Now take z = x² − y². Along y = 0 the trace is z = x², an upward parabola, so the origin is the lowest point of that slice. Along x = 0 it is z = −y², a downward parabola, so the origin is the highest point of that one. The surface rises along x and falls along y.

The level traces are no longer circles. At z = 0, x² = y², which is the pair of lines y = x and y = −x. At z = 1 the trace x² − y² = 1 is a hyperbola crossing the x-axis at ±1; at z = −1, y² − x² = 1 is a hyperbola crossing the y-axis instead.

A point that is a minimum along one slice and a maximum along another is a saddle point, and the surface is a saddle.

y = 0

z = x² − y² over the square with |x| ≤ 2 and |y| ≤ 2. The gold trace above y = 0 is z = x², rising to 4 at each end; the wires the other way are downward parabolas such as z = −y² above x = 0.

Every vertical cut through the saddle

Cut the saddle with a vertical plane through the origin at angle θ to the x-axis. A point at distance ρ along that cut is x = ρ cos θ, y = ρ sin θ, so z = ρ²(cos² θ − sin² θ) = (cos 2θ)ρ². At θ = 0 the cut is z = ρ², a bowl; at θ = 90° it is z = −ρ², a dome; at θ = 45° it is z = 0, flat, along the line y = x.

xyρzθ = 20°

the slice at 20° is z = (cos 2θ) ρ² = 0.77 ρ²: a bowl while cos 2θ > 0, a dome while cos 2θ < 0, and the change of sign happens at 45°

Turn the cut until the slice is flat

The level curves of z = x² − y², and a cut through the origin at θ = 20°: the slice is z = (cos 40°)ρ² ≈ 0.77ρ², an upward parabola. Turn the cut to 45° and the slice is flat; past 45° it opens downward, down to z = −ρ² at 90°.

Planes and cones

With no squares at all the surface is a plane. z = 3 is flat, at height 3 above every point. z = x + y tilts: its traces x = 0 and y = 0 are the straight lines z = y and z = x, and its level traces x + y = k are parallel straight lines.

Straight traces do not always mean a plane. z = √(x² + y²) is a cone: its level traces are circles, of radius k at height k, but its traces x = 0 and y = 0 are z = |y| and z = |x|, each a V of two straight half-lines meeting at the origin, where a bowl would be rounded.

So the formula shows the shape. Both squares with a plus sign: a bowl. One square of each sign: a saddle. Both with a minus sign, as in z = 9 − x² − y²: a dome, highest at the origin. No squares: a plane.

The plane z = x + y over the square with |x| ≤ 2 and |y| ≤ 2: every wire is a straight line, and the plane climbs from −4 at one corner to 4 at the opposite one.

The usual mistakes

Mistaking z = x² − y² for a bowl. A bowl rises in every direction; this surface falls along y.

Calling the saddle point a maximum or a minimum. It is the lowest point of one trace and the highest point of another.

Losing the sign in a value. At (1, 2), x² − y² is 1 − 4 = −3, below the xy-plane, not 5.

Taking z = 3 to be a point or a line. It is the whole plane at height 3.

A roof, and a guitar string

In the applications below, a roof over a square hall is a saddle, and its traces along the two center lines are parabolas that open opposite ways. Then the displacement of a guitar string depends on the position along it and on the time: holding the time gives the shape of the string, and holding the position gives the motion of one point.

Worked example: A Curved Roof Over a Square Hall: Its Height Above the Walls and Corners, and a Truss That Follows It

Question A sports hall stands on a square 20 meters by 20 meters. With the origin at the center of the floor, x meters east and y meters north, the roof is at a height of z = 12 + x2 − y250 meters above the point (x, y), for −10 ≤ x ≤ 10 and −10 ≤ y ≤ 10. (a) Find the height of the roof above the middle of each wall and above each corner, and describe the shape of the roof along the two center lines y = 0 and x = 0. (b) A steel truss runs just under the roof along the line x = 5, from the south wall to the north wall. Find the height of the truss at its highest point and at its two ends.

  1. 1.(a) The middle of the east wall is (10, 0), where z = 12 + 100 − 050 = 14 meters; the middle of the west wall, (−10, 0), gives the same. The middle of the north wall is (0, 10), where z = 12 + 0 − 10050 = 10 meters, and the south wall gives the same.

    101214−10010position along the slice, mheight, m(a) walls: 14 m east and west, 10 m north and south
    101214−10010position along the slice, mheight, m(a) walls: 14 m east and west, 10 m north and south
    (a) Above the middles of the east and west walls the roof is 14 meters high; above the north and south walls, 10 meters.
  2. 2.At each corner, such as (10, 10), x2 = y2 = 100, so z = 12 + 0 = 12 meters, the same height as above the center (0, 0).

    101214−10010position along the slice, mheight, m12(a) walls: 14 m east and west, 10 m north and southcorners and center: 12 m
    101214−10010position along the slice, mheight, m12(a) walls: 14 m east and west, 10 m north and southcorners and center: 12 m
    Above each corner x2 = y2, so the roof is 12 meters high there, the same as above the center.
  3. 3.Along the east–west center line y = 0, the roof is z = 12 + x250, a parabola that opens upward, so the center is its lowest point. Along the north–south line x = 0, the roof is z = 12 − y250, a parabola that opens downward, so the center is its highest point. A surface that is lowest in one direction and highest in the other at the same point has a saddle point there.

    101214−10010position along the slice, mheight, m12y = 0x = 0(a) walls: 14 m east and west, 10 m north and southcorners and center: 12 my = 0: 12 + x2/50, x = 0: 12 − y2/50
    101214−10010position along the slice, mheight, m12y = 0x = 0(a) walls: 14 m east and west, 10 m north and southcorners and center: 12 my = 0: 12 + x2/50, x = 0: 12 − y2/50
    The east–west cross-section opens upward and the north–south one opens downward: the center is a saddle point.
  4. 4.(b) Hold x = 5 for the cross-section under the truss: z = 12 + 25 − y250 = 12.5 − y250. This is a parabola that opens downward, the same shape as the cross-section x = 0 raised by 0.5 meters.

    101214−10010position along the slice, mheight, m12y = 0x = 0x = 5(a) walls: 14 m east and west, 10 m north and southcorners and center: 12 my = 0: 12 + x2/50, x = 0: 12 − y2/50(b) x = 5: z = 12.5 − y2/50
    101214−10010position along the slice, mheight, m12y = 0x = 0x = 5(a) walls: 14 m east and west, 10 m north and southcorners and center: 12 my = 0: 12 + x2/50, x = 0: 12 − y2/50(b) x = 5: z = 12.5 − y2/50
    (b) The truss follows the cross-section x = 5, the north–south shape raised by 0.5 meters.
  5. 5.The truss is highest where y = 0, at 12.5 meters. Its ends are at the south and north walls, y = ± 10, where z = 12.5 − 10050 = 10.5 meters. Check: at the north end, (5, 10), the formula gives 12 + 25 − 10050 = 12 − 1.5 = 10.5 meters.

    101214−10010position along the slice, mheight, m12y = 0x = 0x = 512.5(a) walls: 14 m east and west, 10 m north and southcorners and center: 12 my = 0: 12 + x2/50, x = 0: 12 − y2/50(b) x = 5: z = 12.5 − y2/50highest 12.5 m, ends 10.5 m
    101214−10010position along the slice, mheight, m12y = 0x = 0x = 512.5(a) walls: 14 m east and west, 10 m north and southcorners and center: 12 my = 0: 12 + x2/50, x = 0: 12 − y2/50(b) x = 5: z = 12.5 − y2/50highest 12.5 m, ends 10.5 m
    The truss is 12.5 meters high above y = 0 and 10.5 meters high at each wall.

Answer: (a) 14 meters above the middles of the east and west walls, 10 meters above the middles of the north and south walls, and 12 meters above each corner; along y = 0 the roof is a parabola that opens upward and along x = 0 one that opens downward, so the center is a saddle point; (b) 12.5 meters at its highest point, above y = 0, and 10.5 meters at each end

Common mistakes

  • Taking the center, where the roof is 12 meters high, as the highest or the lowest point of the roof. It is the lowest point of the east–west cross-section and the highest point of the north–south one, which is what makes it a saddle point.
  • Working out x2 − y250 at (5, 10) as 25 + 10050. The y2 is subtracted, so the roof there is 1.5 meters below 12 meters, not 2.5 meters above it.

More functions of several variables problems, worked step by step →

Worked example: A Vibrating Guitar String: Its Shape at One Instant, and the Motion of One Point on It

Question A guitar string 60 centimeters long is fixed at both ends. When it vibrates, the point x centimeters from the bridge is displaced u(x, s) = 2sin(π x60)cos(200π s) millimeters from its rest position, s seconds after it is released. (a) Find the shape of the string at the instant s = 1600: the displacement along it, and its greatest value. (b) Find the amplitude and the period of the motion of the point 10 centimeters from the bridge, and the total distance that point travels in one second, treating the vibration as keeping its size for that whole second.

  1. 1.(a) Hold the time fixed at s = 1600. Then cos(200π s) = cosπ3 = 0.5, so the displacement along the string is u = 2 × 0.5 × sinπ x60 = sinπ x60 millimeters, for 0 ≤ x ≤ 60.

    12−23060x, cm from the bridgeu, mmat release(a) cos(200 pi / 600) = 0.5, so u = sin(pi x / 60)
    12−23060x, cm from the bridgeu, mmat release(a) cos(200 pi / 600) = 0.5, so u = sin(pi x / 60)
    (a) Holding the time at s = 1600 gives the shape of the whole string at that instant, half its shape at release.
  2. 2.This is one arch of a sine curve. It is 0 at both fixed ends, x = 0 and x = 60, and greatest where π x60 = π2, that is at the middle, x = 30, where the displacement is 1 millimeter.

    12−23060x, cm from the bridgeu, mmat release1 mm(a) cos(200 pi / 600) = 0.5, so u = sin(pi x / 60)greatest at x = 30: 1 mm
    12−23060x, cm from the bridgeu, mmat release1 mm(a) cos(200 pi / 600) = 0.5, so u = sin(pi x / 60)greatest at x = 30: 1 mm
    The shape is one arch of a sine curve, fixed at both ends, with its greatest displacement, 1 millimeter, at the middle.
  3. 3.(b) Now hold the position fixed at x = 10. There sinπ6 = 0.5, so u = 2 × 0.5 × cos(200π s) = cos(200π s) millimeters. The point moves up and down in simple harmonic motion with an amplitude of 1 millimeter.

    1−15101520time, msu, mm(a) cos(200 pi / 600) = 0.5, so u = sin(pi x / 60)greatest at x = 30: 1 mm(b) x = 10: u = cos(200 pi s), amplitude 1 mm
    1−15101520time, msu, mm(a) cos(200 pi / 600) = 0.5, so u = sin(pi x / 60)greatest at x = 30: 1 mm(b) x = 10: u = cos(200 pi s), amplitude 1 mm
    (b) Holding the position at x = 10 gives that point's displacement over time: simple harmonic motion with amplitude 1 millimeter.
  4. 4.One full oscillation takes the time for 200π s to grow by 2π, which is 2π200π = 0.01 seconds. So the period is 0.01 seconds, and there are 100 oscillations in one second.

    1−15101520time, msu, mmone cycle(a) cos(200 pi / 600) = 0.5, so u = sin(pi x / 60)greatest at x = 30: 1 mm(b) x = 10: u = cos(200 pi s), amplitude 1 mmperiod 2 pi / 200 pi = 0.01 s: 100 a second
    1−15101520time, msu, mmone cycle(a) cos(200 pi / 600) = 0.5, so u = sin(pi x / 60)greatest at x = 30: 1 mm(b) x = 10: u = cos(200 pi s), amplitude 1 mmperiod 2 pi / 200 pi = 0.01 s: 100 a second
    One cycle takes 0.01 seconds, so the point makes 100 cycles each second.
  5. 5.In each oscillation the point goes from 1 millimeter above its rest position to 1 millimeter below and back again, a distance of 4 × 1 = 4 millimeters. In one second it travels 100 × 4 = 400 millimeters, which is 40 centimeters. Check: the middle of the string, with an amplitude of 2 millimeters, travels twice as far, 800 millimeters.

    1−15101520time, msu, mmone cycle(a) cos(200 pi / 600) = 0.5, so u = sin(pi x / 60)greatest at x = 30: 1 mm(b) x = 10: u = cos(200 pi s), amplitude 1 mmperiod 2 pi / 200 pi = 0.01 s: 100 a second4 × 1 mm × 100 = 400 mm in one second
    1−15101520time, msu, mmone cycle(a) cos(200 pi / 600) = 0.5, so u = sin(pi x / 60)greatest at x = 30: 1 mm(b) x = 10: u = cos(200 pi s), amplitude 1 mmperiod 2 pi / 200 pi = 0.01 s: 100 a second4 × 1 mm × 100 = 400 mm in one second
    Each cycle covers 4 millimeters, top to bottom and back, so the point travels 400 millimeters in one second.

Answer: (a) u = sinπ x60 millimeters, one arch of a sine curve, greatest at the middle of the string, where it is 1 millimeter; (b) an amplitude of 1 millimeter and a period of 0.01 seconds, so the point travels 400 millimeters in one second

Common mistakes

  • Taking the amplitude of every point to be 2 millimeters. Only the middle of the string moves that far; the point at x = 10 has an amplitude of 2sinπ6 = 1 millimeter.
  • Counting the distance in one oscillation as 2 millimeters, from the top to the bottom. The point also comes back up, so one oscillation covers four times the amplitude.

More functions of several variables problems, worked step by step →

Practice Surfaces in Three Dimensions in the app