Fubini's theorem and swapping the order
7 min read
Short answer
Fubini's theorem says that for a nicely behaved (for example continuous on a rectangle), the double integral equals the iterated integral in either order. Both slice the same solid, one way by and the other by , and add up the slice areas. It can fail only for functions that are not absolutely integrable.
Slicing a solid
The double integral over a region is the volume under the surface above . Cavalieri's principle says you may compute a volume by adding up the areas of parallel slices. Cutting by planes gives ; cutting by planes gives . 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 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 :
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 is not absolutely integrable, the iterated integrals can disagree. The classic example is on the unit square: integrating over first gives and over first gives , because the function blows up near the origin so strongly that is infinite. Fubini's hypothesis (finite integral of ) rules this out. For continuous functions on a bounded region, you are safe.
Worked example
Compute over in both orders.
Inner first: .
Inner first: . ✓
Both orders give , as Fubini guarantees.
Try it yourself
Rewrite with the order of integration reversed.
Show the answer
The region is . Fix between and ; then runs from to . So the integral is .
Keep going with practice
Vidi's double-integral lessons practice sketching a region and rewriting the limits.