Double Integrals

Fix x and the solid under z = f(x, y) has a cross-section whose area A(x) is an ordinary integral in y. Integrate A(x) along x and you have the volume. Fix y instead and the region has to be read the other way round, with x between two curves; the two orders agree in every case on this page but one.

Slices at fixed x
The other order (Fubini), when ∬|f| dA is finite
Loading interactive simulation...

Lesson

The theory — Double Integrals

The double integral ∬D f(x, y) dA is the volume between a region D of the xy-plane and the surface z = f(x, y), with any part below the plane counted negative. It is computed as an iterated integral: integrate in one variable with the other held fixed, then integrate what comes out.

What each symbol means

A(x)
the area of the slice at a fixed x, itself an integral in y
g₁(x), g₂(x)
the lower and upper edge of D when D is read along x
h₁(y), h₂(y)
the left and right edge of D when D is read along y

Where the formula comes from

  1. Hold x fixed. The plane at that x cuts the solid in a slice whose top edge is the curve y ↦ f(x, y), from the region's lower edge to its upper edge. Its area is an integral in y with x treated as a constant, the same move as taking a partial derivative.
  2. Add up the slices. The volume is the integral of A(x) along x: volume by slicing, with a slice that needed an integral of its own.
  3. Or slice the other way. Read D along y, with x between a left and a right edge, and integrate in x first. Fubini's theorem says the two orders give the same number whenever ∬|f| dA is finite, which holds for every continuous f on a closed, bounded region.
Assumes
f is continuous on D, or at least ∬|f| dA is finite. Where an edge of D changes formula, as the triangle's top edge does at x = 1, the integral is split there.

Problems solved in full

  1. Over a rectangle, both orders 3 steps

    Evaluate ∬ xy² dA over the rectangle 0 ≤ x ≤ 2, 0 ≤ y ≤ 1, in both orders.

    Open this problem in the tool

    1. At fixed x, integrate in y with x held constant:

    2. Then along x:

    3. The other order, slices at fixed y:

    Answer

    2/3 ≈ 0.6667 either way. Over a rectangle the limits are numbers in both orders, and a product splits: (∫₀² x dx)(∫₀¹ y² dy) = 2 · 1/3.

  2. A region between two curves 2 steps

    Evaluate ∬ (x + y) dA over the region between y = x² and y = x.

    Open this problem in the tool

    Show solution
    1. The curves meet at x = 0 and x = 1, and between them x² ≤ x, so at fixed x the slice runs from y = x² up to y = x:

    2. Integrate from 0 to 1:

    Answer

    3/20 = 0.15.

  3. Reversing the order 3 steps

    Write the integral of problem 2 with the order of integration reversed, and evaluate it.

    Open this problem in the tool

    Show solution
    1. Read the region along y: it runs from y = 0 to y = 1, and at height y its left edge is the line, x = y, and its right edge is the parabola, x = √y:

    2. The inner integral, y held fixed:

    3. Then along y:

    Answer

    3/20 again. The parabola that was the lower edge read along x is the right edge read along y, written x = √y.

  4. Choosing the order that needs one integral 3 steps

    Evaluate ∬ xy dA over the triangle with corners (0, 0), (2, 0) and (1, 1).

    Open this problem in the tool

    Show solution
    1. Read along x, the top edge is y = x up to x = 1 and y = 2 − x after it, which means two integrals. Read along y, the triangle runs from the left edge x = y to the right edge x = 2 − y for every y, so slice at fixed y:

    2. The inner integral:

    3. Then along y:

    Answer

    1/3 ≈ 0.3333. The other order gives 1/8 + 5/24 from its two pieces, the same 1/3.

  5. Reversing the order to get a formula 3 steps

    Evaluate ∫₀¹ ∫ₓ¹ e^(y²) dy dx.

    Open this problem in the tool

    Show solution
    1. The inner integral has no elementary antiderivative, so reverse the order. The region is 0 ≤ x ≤ y ≤ 1; read along y it is 0 ≤ y ≤ 1 with 0 ≤ x ≤ y:

    2. The integrand does not depend on x:

    3. Substitute u = y²:

    Answer

    (e − 1)/2 ≈ 0.8591.

  6. A solid described by its faces 3 steps

    Find the volume of the tetrahedron bounded by the three coordinate planes and the plane x + y + z = 1.

    Show solution
    1. The solid lies under z = 1 − x − y and over the part of the xy-plane where that height is not negative: x ≥ 0, y ≥ 0, x + y ≤ 1. Read that triangle along x:

    2. The inner integral, x held fixed:

    3. Then along x:

    Answer

    1/6, which agrees with a third of the base times the height: (1/3)(1/2)(1).

  7. The average height over a region 3 steps

    Find the average value of f(x, y) = x + y over the region of problem 2.

    Show solution
    1. The average is the volume divided by the area |D| of the region, the height of a flat slab over D with the same volume:

    2. The area is the double integral of 1:

    3. With the volume 3/20 from problem 2:

    Answer

    9/10 = 0.9.

  8. When the two orders disagree 4 steps

    Show that the two iterated integrals of f(x, y) = (x² − y²)/(x² + y²)² over the unit square are different, and say which hypothesis of Fubini's theorem fails.

    Open this problem in the tool

    Show solution
    1. The derivative of y/(x² + y²) with respect to y is f, so at fixed x > 0:

    2. In this order, then:

    3. Swapping x and y changes the sign of f, so the other order is the same calculation with the sign reversed:

    4. In polar coordinates f = cos 2θ/r². Over the quarter disc of radius 1, which lies inside the square,

    Answer

    π/4 ≈ 0.7854 in one order and −π/4 in the other. ∬|f| dA is infinite, and finiteness is exactly what Fubini's theorem assumes.

Swap the order and an integral with no formula gets one 🖖

Press A slice with no formula. At fixed x the slice is the integral of e^(y²) from y = x to 1, and e^(y²) has no antiderivative built from elementary functions, the same wall e^(−t²) runs into in the integration chapter. The page can only compute each slice numerically. Now press The same, the other way. At fixed y the slice runs from x = 0 to x = y, and the height e^(y²) does not depend on x, so the slice is a rectangle of area y·e^(y²). That is the derivative of e^(y²)/2, and the volume is (e − 1)/2 exactly. Nothing about the solid changed. The order in which you integrate decided whether the slices have a formula at all.

One function where the order changes the answer 🖖

Press Order changes the answer. The surface (x² − y²)/(x² + y²)² is positive below the diagonal of the unit square and negative above it. Slice at fixed x and every slice nets out positive, 1/(1 + x²), so the iterated integral is π/4 ≈ 0.7854. Switch to dx dy and every slice nets out negative, −1/(1 + y²), and it comes to −0.7854. Neither calculation has a mistake in it. Near the origin the surface behaves like cos 2θ/r², so the volume above the square and the volume below it are each infinite, and the two orders cancel one against the other differently. There is no double integral for them to agree on. Fubini's theorem, published in 1907, promises that the orders agree when ∬|f| dA is finite. Here it is infinite, and the theorem promises nothing.

The solid under an infinite spike has volume π²/6 🖖

Press A volume of π²/6. The surface 1/(1 − xy) rises without bound at the corner (1, 1), and the solid under it over the unit square still has volume 1.6449. Expand the integrand as a geometric series, 1 + xy + x²y² + …, and integrate term by term: xⁿyⁿ over the square gives 1/(n + 1)², so the volume is 1 + 1/4 + 1/9 + …, the sum Euler showed in 1735 to be π²/6. Read backwards, the double integral is a way of summing the series. Frits Beukers used integrals over the same square with 1 − xy in the denominator for his short proof, in 1979, that 1 + 1/8 + 1/27 + … is irrational.

Learning path

Applications of integration

References (4)