Nonnegative (Tonelli) or integrable (Fubini) functions give the same iterated integrals in either order — rows-first or columns-first. Without integrability it breaks.
∬f=∫(∫fdx)dy=∫(∫fdy)dx
Examples & Exercises
For f(x,y)=xy (on [0,1]2), compute both iterated integrals ∫01∫01xydxdy and ∫01∫01xydydx directly and show each equals 41.
∫01∫01xydxdy=∫012ydy=41=∫01∫01xydydx
Separable f=xy, N=32: ∫R=∫C=41 (the midpoint rule is exact here).Show proof
Inner integral first: for fixed y, ∫01xydx=y∫01xdx=y⋅21. The outer integral is ∫012ydy=21⋅21=41.
Reversing the order: for fixed x, ∫01xydy=x⋅21, and ∫012xdx=41. Both orders give 41 — because the product splits: ∬xy=(∫01xdx)(∫01ydy).
Since f≥0, Tonelli's theorem guarantees the value is order-independent — the direct computation above verifies the theorem on this concrete function. Every step is complete.
Consider f(x,y)=(x2+y2)2x2−y2 (on (0,1)2). Using that swapping x and y flips the sign of f, prove rigorously that the two iterated integrals are negatives of each other, and show by direct computation that they are 4π and −4π — so Fubini's theorem fails.
f(y,x)=−f(x,y)⇒∫01∫01fdydx=−∫01∫01fdxdy
∫01∫01fdydx=4π=−4π=∫01∫01fdxdy
The scene only covers f≥0 (where the two orders always agree); this problem is the signed contrast case.Show proof
Symmetry (the rigorous part): f(y,x)=(y2+x2)2y2−x2=−(x2+y2)2x2−y2=−f(x,y). Write the iterated integrals as I1=∫01∫01f(x,y)dydx and I2=∫01∫01f(x,y)dxdy. Renaming the dummy variables x↔y in I2 gives I2=∫01∫01f(y,x)dydx=−∫01∫01f(x,y)dydx=−I1. So the two iterated integrals are exact negatives of each other — proved with no computation.
Computational step (recorded at idea level): for x>0, ∂y∂[x2+y2y]=(x2+y2)2x2−y2=f(x,y), so the inner integral is ∫01f(x,y)dy=[x2+y2y]01=1+x21. The outer integral is ∫011+x2dx=arctan1=4π — hence I1=4π and I2=−4π. (At x=0 the inner integral is improper since f(0,y)=−1/y2; rather than justifying the singularity at the origin line by line, we record the whole evaluation as the computational step.)
Since 4π=−4π, Fubini's conclusion fails. By contrapositive, f is not integrable over (0,1)2 (∫∣f∣=∞) — without the integrability hypothesis, signed mass cancels differently depending on the order. The sign-flip symmetry is proved rigorously; the π/4 evaluation is recorded as the computational step.
For a simple function f≥0, prove both iterated integrals equal the double sum ∑akm(Ek) (with no integrability hypothesis), and extend to general f≥0 by monotone approximation.
∫∫k∑ak1Ek=k∑akm(Ek)(either order)
Tent f, N=32: ∫R≈∫C≈278≈0.2963 — both orders converge to the exact value.Show proof
First, the indicator of a rectangle R=A×B (measurable sets, possibly of infinite measure): the inner integral ∫1R(x,y)dx=m(A)1B(y), and the outer gives ∫m(A)1B(y)dy=m(A)m(B). Reversing the order, ∫1R(x,y)dy=m(B)1A(x) followed by m(B)m(A) — the same.
For a simple function f=∑k=1mak1Ek (ak≥0, the Ek disjoint measurable), linearity of the integral in each variable makes both iterated integrals equal ∑k=1makm(Ek) — a single double sum, independent of order. No integrability hypothesis is needed: every term is ≥0, so nothing can cancel.
For general f≥0, take simple sj↑f (the standard construction). For each fixed y, MCT in x gives ∫sj(x,y)dx↑∫f(x,y)dx; these are an increasing sequence of simple functions of y, so one more MCT in y makes both iterated integrals equal limj∑ak(j)m(Ek(j))=∬f. This is why Tonelli's theorem needs no integrability hypothesis for f≥0 — every step is complete.