The Volume Under a Surface

Stack the slices twice.

From areas to volumes

The area under a curve y = f(x) is built from thin vertical strips: each is a height times a small width, and integrating adds them up. A surface z = f(x, y) standing over a region of the xy-plane encloses a solid, and the same idea, used twice, gives its volume.

Cut the solid with a vertical plane at a fixed y. The cut face is a flat region under a curve, so it has an area. Cut again a little further along, and the slab between the two cuts has a volume of about that area times the gap. Adding all the slabs gives the volume.

one slice

The dome z = 16(1 − x² − y²) over the disc x² + y² ≤ 1, with the slice at y = 0.45 picked out in gold. The face under that curve has area A(0.45) ≈ 15.19, and stacking every such face from y = −1 to y = 1 gives the dome’s volume, 8π ≈ 25.13.

The inner integral: one slice

Take f(x, y) = xy over the rectangle 0 ≤ x ≤ 2, 0 ≤ y ≤ 3. Hold y fixed. The slice is the curve z = xy, a function of x alone with y as a constant, and its area is A(y) = ∫₀² xy dx = [x²y/2]₀² = 2y. This is ordinary integration in x: y is carried along like any constant factor.

At y = 1.5 the slice is the line z = 1.5x from x = 0 to x = 2, and the area under it is A(1.5) = 3, the triangle with base 2 and height 3.

xz

The slice of z = xy at y = 1.5: the line z = 1.5x over 0 ≤ x ≤ 2. The shaded face has area A(1.5) = ∫₀² 1.5x dx = 3, which is 2y at y = 1.5.

The outer integral: stack the slices

A slab of thickness dy at position y has volume A(y) dy, so the volume is V = ∫₀³ A(y) dy = ∫₀³ 2y dy = [y²]₀³ = 9. Putting the inner integral inside the outer one gives the double integral V = ∫₀³ ∫₀² xy dx dy: an integral of integrals, read from the inside out, with dx belonging to the inner ∫ and dy to the outer.

So the volume is the area under the graph of A(y). The slice areas grow from 0 at y = 0 to 6 at y = 3, and the area under that straight line is 9.

yA

The slice area A(y) = 2y plotted against y from 0 to 3. The shaded area under it, ∫₀³ 2y dy = 9, is the volume under z = xy over the rectangle.

Either order, and a check by sums

Slice the other way, holding x fixed: ∫₀³ xy dy = [xy²/2]₀³ = 4.5x, and ∫₀² 4.5x dx = [2.25x²]₀² = 9. The same solid, sliced in the other direction, has the same volume. And because xy is x times y, the integral also splits into ∫₀² x dx × ∫₀³ y dy = 2 × 4.5 = 9.

A double integral is the limit of a double sum. Cut the rectangle into a 100 by 100 grid of small rectangles, each of area 0.02 × 0.03, and add up f times the area of each. Taking f at each lower-left corner gives 8.82; at each upper-right corner, 9.18; at each center, 9. The volume is squeezed between the first two.

When f is not a product

For f(x, y) = x² + y² over 0 ≤ x ≤ 1, 0 ≤ y ≤ 2, the inner integral is ∫₀¹ (x² + y²) dx = [x³/3 + xy²]₀¹ = 1/3 + y². The y² term is a constant in x, so it integrates to y² times the width, 1. The outer integral is ∫₀² (1/3 + y²) dy = 2/3 + 8/3 = 10/3.

The other order gives ∫₀² (x² + y²) dy = 2x² + 8/3, and ∫₀¹ (2x² + 8/3) dx = 2/3 + 8/3 = 10/3 again. A midpoint sum on a 100 by 100 grid gives 3.3332.

A region that is not a rectangle

Over the triangle 0 ≤ y ≤ x ≤ 2, below the line y = x, the slices have different lengths, so the inner limits depend on the outer variable. Holding x fixed, y runs from 0 up to x: ∫₀ˣ xy dy = x³/2. Then ∫₀² x³/2 dx = [x⁴/8]₀² = 2.

Holding y fixed instead, x runs from y to 2. The inner integral is x²y/2 at x = 2 minus its value at x = y, which is 2y − y³/2, and ∫₀² (2y − y³/2) dy = 4 − 2 = 2. The limits change with the order; the volume does not.

xyy = 0y = x

The triangle 0 ≤ y ≤ x ≤ 2, under the line y = x. For the x marked, 1.2, the inner integral runs in y from the point on the x-axis, y = 0, up to the point on the line, y = x = 1.2.

The usual mistakes

Multiplying the area of the region by the greatest height. For xy over the 2 by 3 rectangle that gives 6 × 6 = 36, the volume of the box around the solid; the surface is far lower than 6 over most of the rectangle, and the double integral gives 9.

Swapping the limits with the variables. In ∫₀³ ∫₀² xy dx dy the inner limits 0 and 2 belong to x, because dx is the inner differential.

Integrating the other variable in the inner integral. In ∫₀¹ (x² + y²) dx, y² is a constant: it integrates to y²x, not y³/3.

Keeping rectangle limits on a triangle. Over the triangle below y = x, the inner integral in y stops at y = x, not at 2.

A heap of gravel

In the application below, the depth of a heap of gravel is a function of position on a rectangular patch. Integrating the depth along the length gives the area of a cross-section, and integrating that across the width gives the volume, first of the whole heap and then of the part at one end.

Worked example: A Heap of Gravel on a Rectangular Patch: Its Volume, and the Volume at One End

Question A heap of gravel stands on a rectangular patch of ground 12 meters long and 8 meters wide. With the origin at the center of the patch, x meters along its length and y meters across it, the gravel is h(x, y) = 1.5(1 − x236)(1 − y216) meters deep, for −6 ≤ x ≤ 6 and −4 ≤ y ≤ 4. (a) Find the volume of the heap as a double integral over the rectangle. (b) A loader first clears the part of the heap beyond the line x = 3, the last 3 meters at one end. Find the volume it clears, and compare it with a quarter of the heap.

  1. 1.(a) The volume is ∫−44∫−66 h(x, y) dx dy. Integrate first in x, holding y constant, so that 1.5(1 − y216) is a constant factor: ∫−66(1 − x236)dx = [x − x3108]−66 = (6 − 2) − (−6 + 2) = 8.

    0.51.01.5 m(a) along the length: 1 − x2/36 integrates to 8
    0.51.01.5 m(a) along the length: 1 − x2/36 integrates to 8
    (a) Seen from above, the curves join points where the gravel is 0.5 and 1.0 meters deep. The straight line is a slice across the heap at one value of y; integrating the depth along it gives the area of that cross-section.
  2. 2.So the cross-section of the heap at y has area 1.5 × 8 × (1 − y216) = 12(1 − y216) square meters. Integrate it across the width: ∫−4412(1 − y216)dy = 12[y − y348]−44 = 12 × 163 = 64 cubic meters.

    0.51.01.5 m(a) along the length: 1 − x2/36 integrates to 8slice area 12(1 − y2/16), which integrates to 64 m3
    0.51.01.5 m(a) along the length: 1 − x2/36 integrates to 8slice area 12(1 − y2/16), which integrates to 64 m3
    The cross-section at y has an area of 12(1 − y216) square meters, and integrating it from y = −4 to y = 4 gives 64 cubic meters.
  3. 3.Check: over its interval, 1 − x236 has an average of 812 = 23, and 1 − y216 has an average of 163 ÷ 8 = 23. So the heap fills 23 × 23 = 49 of the box around it, 12 by 8 by 1.5 meters: 49 × 144 = 64 cubic meters.

    0.51.01.5 m(a) along the length: 1 − x2/36 integrates to 8slice area 12(1 − y2/16), which integrates to 64 m3check: 2/3 × 2/3 × 144 = 64
    0.51.01.5 m(a) along the length: 1 − x2/36 integrates to 8slice area 12(1 − y2/16), which integrates to 64 m3check: 2/3 × 2/3 × 144 = 64
    The heap fills 49 of the box, 12 by 8 by 1.5 meters, that stands around it.
  4. 4.(b) The part beyond x = 3 lies over the rectangle 3 ≤ x ≤ 6, −4 ≤ y ≤ 4. The integral across the width is unchanged, 163, and ∫36(1 − x236)dx = [x − x3108]36 = (6 − 2) − (3 − 0.25) = 1.25.

    0.51.01.5 m(a) along the length: 1 − x2/36 integrates to 8slice area 12(1 − y2/16), which integrates to 64 m3check: 2/3 × 2/3 × 144 = 64(b) from x = 3 to 6: 1 − x2/36 integrates to 1.25
    0.51.01.5 m(a) along the length: 1 − x2/36 integrates to 8slice area 12(1 − y2/16), which integrates to 64 m3check: 2/3 × 2/3 × 144 = 64(b) from x = 3 to 6: 1 − x2/36 integrates to 1.25
    (b) The end beyond x = 3 covers a quarter of the patch, but only the shallow edge of the heap.
  5. 5.So the loader clears 1.5 × 1.25 × 163 = 10 cubic meters. A quarter of the heap is 16 cubic meters, and the end holds only 1064 ≈ 15.6 percent of the heap, because the gravel is shallowest near the end.

    0.51.01.5 m(a) along the length: 1 − x2/36 integrates to 8slice area 12(1 − y2/16), which integrates to 64 m3check: 2/3 × 2/3 × 144 = 64(b) from x = 3 to 6: 1 − x2/36 integrates to 1.251.5 × 1.25 × 16/3 = 10 m3, not 16
    0.51.01.5 m(a) along the length: 1 − x2/36 integrates to 8slice area 12(1 − y2/16), which integrates to 64 m3check: 2/3 × 2/3 × 144 = 64(b) from x = 3 to 6: 1 − x2/36 integrates to 1.251.5 × 1.25 × 16/3 = 10 m3, not 16
    It holds 10 cubic meters, less than a quarter of the 64, because the gravel there is shallow.

Answer: (a) 64 cubic meters; (b) 10 cubic meters, less than a quarter of the heap, 16 cubic meters, because the gravel is shallow near the end

Common mistakes

  • Multiplying the area of the patch by the greatest depth, 96 × 1.5 = 144 cubic meters. That is the volume of the box around the heap; the depth falls to 0 at every edge, and the double integral adds up the actual depth over each small piece of ground.
  • Taking the end beyond x = 3 to hold a quarter of the gravel because it is a quarter of the length. The gravel there is shallow, so the end holds 10 cubic meters, not 16.

More partial derivatives problems, worked step by step →

Practice The Volume Under a Surface in the app