In single-variable calculus, ∫abf(x)dx adds up thin strips to find the area under a curve. Now the function is z=f(x,y), its graph is a surface, and the natural question is the volume under that surface. The double integral answers it, and the same machinery will later give mass, probability, averages and much more.
Riemann sums in two dimensions
Start with a rectangle R=[a,b]×[c,d], meaning a≤x≤b and c≤y≤d. Cut [a,b] into m pieces of width Δx and [c,d] into n pieces of width Δy. This slices R into mn small rectangles Rij, each of area ΔA=ΔxΔy.
Pick a sample point (xij∗,yij∗) in each small rectangle. Over Rij, the solid under the surface is roughly a thin box with base ΔA and height f(xij∗,yij∗). Adding the boxes gives the double Riemann sum
when this limit exists. It always exists when f is continuous on R. If f≥0, it equals the volume of the solid above R and below the surface z=f(x,y).
When f takes negative values, the integral counts volume below the xy-plane as negative, exactly like signed area in one variable.
A common choice of sample point is the center of each small rectangle. That gives the midpoint rule, which is usually a good estimate even with a coarse grid.
The square R = [0, 2] × [0, 2] cut into four unit squares. The dots are the midpoints used by the midpoint rule.Open in grapher →
Worked example: The midpoint rule
Estimate ∬R(x2+y)dA over R=[0,2]×[0,2] using the midpoint rule with four equal squares.
Solution. Each square has area ΔA=1, and the midpoints are (0.5,0.5), (1.5,0.5), (0.5,1.5) and (1.5,1.5). The function values there are 0.75, 2.75, 1.75 and 3.75. So
∬R(x2+y)dA≈(0.75+2.75+1.75+3.75)(1)=9.
Below you will find the exact value is 328≈9.33, so the estimate is already close.
Iterated integrals
Computing a limit of double sums directly is painful. Instead, you integrate one variable at a time. In the iterated integral
∫ab∫cdf(x,y)dydx,
you first compute the inner integral ∫cdf(x,y)dy, treating x as a constant (partial integration, the reverse of partial differentiation). The result is a function of x alone, which you then integrate from a to b.
Geometrically, the inner integral is the area A(x) of the cross-section of the solid at a fixed x. Integrating cross-sectional area gives volume, which is exactly the slicing method from Calculus I.
On a rectangle, the order of integration does not change the answer, and every limit is a constant.
Read the differentials from the inside out: in ∫ab∫cd⋯dydx, the inner dy goes with the inner limits c to d.
Worked example: Computing an iterated integral
Evaluate ∬R(x2+3y)dA where R=[0,3]×[1,2].
Solution. Integrate with respect to x first, holding y fixed:
∫03(x2+3y)dx=[3x3+3xy]x=0x=3=9+9y.
Now integrate that in y:
∫12(9+9y)dy=[9y+29y2]12=(18+18)−(9+29)=245.
As a check, integrating in y first gives ∫03(x2+29)dx=9+227=245, as Fubini promises.
Separable integrands
If the integrand factors as g(x)h(y) and the region is a rectangle, the double integral splits into a product of two single integrals:
∬[a,b]×[c,d]g(x)h(y)dA=(∫abg(x)dx)(∫cdh(y)dy).
This works because h(y) is a constant during the x-integration, so it pulls out.
Worked example: A product of one-variable functions
Evaluate ∬RysinxdA over R=[0,2π]×[0,1].
Solution. The integrand is sinx times y, so
∬RysinxdA=(∫0π/2sinxdx)(∫01ydy)=(1)(21)=21.
Choosing the order
Fubini says both orders give the same number, but one order is often much easier to carry out.
Worked example: Let the easy order do the work
Evaluate ∬RxexydA over R=[0,1]×[0,1].
Solution. Integrating in x first would need integration by parts with y floating around. Integrating in y first is clean, because x is exactly the factor that the chain rule produces:
∫01xexydy=[exy]y=0y=1=ex−1.
Then ∫01(ex−1)dx=(e−1)−1=e−2.
Common mistake
During the inner integration, only the inner variable changes. Treat the other variable as a constant, and do not substitute numbers for it until the outer integration. Also keep the limits paired with the right differential: the inner limits belong to the inner variable.
Average value
Dividing a double integral by the area of the region gives the average height of the surface:
favg=A(R)1∬Rf(x,y)dA.
The volume under the surface equals the volume of a box with base R and height favg.
Tip
A quick sanity check: if m≤f(x,y)≤M on R, then mA(R)≤∬RfdA≤MA(R). For x2+y on [0,2]×[0,2] the values run from 0 to 6, so the integral must lie between 0 and 24.
Practice
Practice 1
Evaluate ∫02∫03(x+y)dydx.
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Practice 2
Evaluate ∫12∫016x2ydxdy.
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Practice 3
Use the midpoint rule with four equal squares to estimate ∬Rxy2dA over R=[0,4]×[0,4].
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Practice 4
Evaluate ∬RysinxdA where R=[0,π]×[0,2].
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Practice 5
Find the average value of f(x,y)=x2y over the rectangle R=[0,3]×[0,2].
Enter a number. Fractions like 3/4 and sqrt(2) are OK.
Practice 6
Which iterated integral equals ∬Rf(x,y)dA for R=[1,4]×[0,2]?
Practice 7
Evaluate ∬RyexydA where R=[0,1]×[0,ln2] (so 0≤x≤1 and 0≤y≤ln2). Give an exact answer.
Enter a number. Fractions like 3/4 and sqrt(2) are OK.