Skip to content

How to compute a double integral

6 min read

Short answer

A double integral ∬Rf dA\iint_R f\,dA is computed as an iterated integral: integrate with respect to one variable (treating the other as constant), then integrate the result with respect to the other. Sketch the region first; the sketch gives you the limits.

Triangular region with a vertical slice from y equals 0 to y equals xslice1y = x(1, 1)∫₀¹ ∫₀ˣ f dy dxfor each x, y runsfrom 0 up to x
The triangle 0 ≤ y ≤ x ≤ 1. Slicing vertically, y runs from 0 to x for each x, and x runs from 0 to 1.

Rectangles are easy, other regions need a sketch

Over a rectangle [a,b]×[c,d][a,b]\times[c,d] all four limits are constants and the order does not matter. Over any other region, one set of limits depends on the other variable. Draw the region, draw one thin slice, and read off where the slice starts and ends.

Inside out

The inner integral's limits may depend on the outer variable; the outer limits must be constants. After the inner integration the inner variable is gone, and what remains is an ordinary single integral. If the integrand or region makes one order painful, switch the order and recompute the limits from the sketch.

Worked example

Evaluate ∬R(x+y) dA\displaystyle\iint_R (x+y)\,dA over the triangle 0≤y≤x≤10\le y\le x\le1.

Slice vertically: for each x∈[0,1]x\in[0,1], yy runs from 00 to xx. ∫01 ⁣ ⁣∫0x(x+y) dy dx=∫01[xy+y22]y=0y=xdx=∫0132x2 dx=12.\int_0^1\!\!\int_0^x (x+y)\,dy\,dx=\int_0^1\Big[xy+\tfrac{y^2}2\Big]_{y=0}^{y=x}dx=\int_0^1\tfrac32x^2\,dx=\tfrac12. Check by reversing the order. For each y∈[0,1]y\in[0,1], xx runs from yy to 11: ∫01 ⁣ ⁣∫y1(x+y) dx dy=∫01(12+y−32y2)dy=12+12−12=12 ✓.\int_0^1\!\!\int_y^1 (x+y)\,dx\,dy=\int_0^1\Big(\tfrac12+y-\tfrac32y^2\Big)dy=\tfrac12+\tfrac12-\tfrac12=\tfrac12\ ✓.

Try it yourself

Evaluate ∬Rxy2 dA\iint_R xy^2\,dA over the rectangle [0,1]×[0,2][0,1]\times[0,2].

Show the answer

The integrand factors: ∫01x dx⋅∫02y2 dy=12⋅83=43\int_0^1x\,dx\cdot\int_0^2y^2\,dy=\tfrac12\cdot\tfrac83=\tfrac43.

Keep going with practice

Vidi's Multivariable & Vector Calculus course includes a double-integral explorer where you change the region and the order and see the slices.