On this page
A double integral is two ordinary integrals stacked together: integrate one variable while the other stays fixed, then integrate the result. Most of the skill is in the limits.
What does a double integral measure?
If f(x, y) ≥ 0 over a region R, the double integral of f over R is the volume of the solid above R and below the surface z = f(x, y), as OpenStax Calculus Volume 3, section 5.1 defines it. If f is negative in places, the same section calls the result a signed volume: the part below the plane counts as negative.
Put f = 1 and the double integral gives the area of R. For the single-variable version, see our explainer on why integration gives the area under a curve.
How do you evaluate a double integral over a rectangle?
On a rectangle, both sets of limits are plain numbers. Fubini's theorem, as stated in OpenStax section 5.1, says that for a function continuous on a rectangle, integrating dy first and then dx gives the same value as dx first and then dy.
Worked example (OpenStax Example 5.9): find the volume under z = 27 − 2x² − y² over the square 0 ≤ x ≤ 3, 0 ≤ y ≤ 3.
Inner integral, in y with x held fixed: ∫ from 0 to 3 of (27 − 2x² − y²) dy = 81 − 6x² − 9 = 72 − 6x².
Outer integral, in x: ∫ from 0 to 3 of (72 − 6x²) dx = 216 − 54 = 162.
The volume is 162 cubic units. Do it in the other order and you get 162 again.
How do you set the limits for a triangle?
OpenStax section 5.2 names the two descriptions you need. A Type I region lies between two vertical lines and two curves y = g₁(x) and y = g₂(x). A Type II region lies between two horizontal lines and two curves x = h₁(y) and x = h₂(y).
Take the triangle with corners (0, 0), (1, 0) and (1, 1), bounded by y = 0, x = 1 and y = x.
As Type I (vertical strips): x runs from 0 to 1, and on each strip y runs from 0 up to x.
As Type II (horizontal strips): y runs from 0 to 1, and on each strip x runs from y across to 1.
Check with f = xy. Type I gives ∫₀¹ x · (x²/2) dx = 1/8. Type II gives ∫₀¹ y · (1 − y²)/2 dy = 1/8, so the limits agree. Centres of mass work the same way; see how to find the centroid of a region using integration.
When should you change the order of integration?
Section 5.2 of OpenStax notes that "sometimes one order of integration leads to a computation that is significantly simpler than the other." The classic case is an inner integral you cannot do at all.
Try ∫ from y = 0 to 1 of ∫ from x = y to 1 of e^(x²) dx dy. The inner integral is stuck, because e^(x²) has no elementary antiderivative. But the region is our triangle again, so describe it as Type I:
New limits: x from 0 to 1, y from 0 to x.
Inner integral: ∫ from 0 to x of e^(x²) dy = x e^(x²), because e^(x²) is a constant when y is the variable.
Outer integral: ∫ from 0 to 1 of x e^(x²) dx = (e − 1)/2, about 0.859.
How does the polar trick give ∫e^(−x²) dx = √π?
The Wikipedia article on the Gaussian integral states that e^(−x²) has no elementary indefinite integral, yet its integral over the whole real line can still be evaluated. The same page says the idea behind the polar method goes back to Poisson, and notes that Gauss published the exact integral in 1809.
Call the answer I. Then:
I² = (∫ e^(−x²) dx)(∫ e^(−y²) dy) = the double integral of e^(−(x² + y²)) over the whole plane.
Switch to polar: x² + y² = r², and dA = r dr dθ, as OpenStax section 5.3 shows.
I² = ∫ from 0 to 2π of ∫ from 0 to ∞ of e^(−r²) r dr dθ = 2π × 1/2 = π.
I is positive, so I = √π.
The extra r is exactly the factor needed to integrate e^(−r²).
How do you practise double integrals?
Set up one region a day both ways before integrating. For more worked problems, the Fermi Problem Library has a step-by-step solver that explains the reasoning rather than printing an answer. If polar coordinates are the weak spot, Fermi's Concept Library gives each concept its own lesson.



