Skip to content

Fubini's theorem and swapping the order

7 min read

Short answer

Fubini's theorem says that for a nicely behaved ff (for example continuous on a rectangle), the double integral equals the iterated integral in either order. Both slice the same solid, one way by xx and the other by yy, and add up the slice areas. It can fail only for functions that are not absolutely integrable.

Slice by x compared with Slice by ySlice by xFix x, integrate overyGives the area of asliceThen add slices over x∫ ( ∫ f dy ) dxSlice by yFix y, integrate overxGives the area of asliceThen add slices over y∫ ( ∫ f dx ) dy
Cutting the same solid into slices in two different ways gives the same total volume.

Slicing a solid

The double integral ∬Rf dA\iint_Rf\,dA over a region RR is the volume under the surface z=f(x,y)z=f(x,y) above RR. Cavalieri's principle says you may compute a volume by adding up the areas of parallel slices. Cutting by planes x=constx=\text{const} gives ∫ ⁣(∫f dy)dx\int\!\left(\int f\,dy\right)dx; cutting by planes y=consty=\text{const} gives ∫ ⁣(∫f dx)dy\int\!\left(\int f\,dx\right)dy. The solid is the same, so the totals agree.

Formally, both iterated integrals are limits of the same double Riemann sums, only grouped by rows versus by columns. For continuous ff on a closed rectangle, regrouping a finite sum cannot change it, and the limit follows.

Swapping the order for non-rectangular regions

The theorem is most useful when one order is hard and the other is easy. For a non-rectangular region the limits must be rewritten. Sketch the region and re-read it the other way.

For the triangle 0≤y≤x≤10\le y\le x\le1:

∫01 ⁣ ⁣∫0xf dy dx=∫01 ⁣ ⁣∫y1f dx dy.\int_0^1\!\!\int_0^x f\,dy\,dx=\int_0^1\!\!\int_y^1f\,dx\,dy.

Outer limits become constants (the full range of the new outer variable), and inner limits become the boundaries expressed in the other variable.

When it fails

If ff is not absolutely integrable, the iterated integrals can disagree. The classic example is f(x,y)=x−y(x+y)3f(x,y)=\dfrac{x-y}{(x+y)^3} on the unit square: integrating over yy first gives 12\tfrac12 and over xx first gives −12-\tfrac12, because the function blows up near the origin so strongly that ∬∣f∣\iint|f| is infinite. Fubini's hypothesis (finite integral of ∣f∣|f|) rules this out. For continuous functions on a bounded region, you are safe.

Worked example

Compute ∬R2xy dA\iint_R2xy\,dA over R=[0,1]×[0,2]R=[0,1]\times[0,2] in both orders.

Inner yy first: ∫012x(∫02y dy)dx=∫012x⋅2 dx=2\int_0^1 2x\left(\int_0^2y\,dy\right)dx=\int_0^1 2x\cdot2\,dx=2.

Inner xx first: ∫02y(∫012x dx)dy=∫02y⋅1 dy=2\int_0^2y\left(\int_0^12x\,dx\right)dy=\int_0^2y\cdot1\,dy=2. ✓

Both orders give 22, as Fubini guarantees.

Try it yourself

Rewrite ∫01∫0xf(x,y) dy dx\int_0^1\int_0^x f(x,y)\,dy\,dx with the order of integration reversed.

Show the answer

The region is 0≤y≤x≤10\le y\le x\le1. Fix yy between 00 and 11; then xx runs from yy to 11. So the integral is ∫01∫y1f(x,y) dx dy\int_0^1\int_y^1f(x,y)\,dx\,dy.

Keep going with practice

Vidi's double-integral lessons practice sketching a region and rewriting the limits.