Fubini’s Theorem


Fubini’s Theorem

Hope
Today we’re unpacking Fubini’s theorem, the result that lets us turn many double integrals into ordinary, one-variable integrals done one after another. Let’s start with the picture: imagine a continuous function sitting over a rectangle in the xy-plane. Its double integral represents the function’s accumulated, or signed, volume over that rectangle.

Anna
Signed volume is worth emphasizing. If the function stays above the xy-plane, we can picture ordinary positive volume between the graph and the plane. If part of the graph dips below the plane, that contribution counts negatively.

Hope
The definition of a Riemann integral starts by partitioning the domain into smaller pieces. For a rectangle in two dimensions, we divide along both the x- and y-directions, making a grid of small subrectangles. We estimate the volume over each one with a prism, then add those prism volumes together.

Anna
That sum is the two-dimensional version of a Riemann sum: choose a representative point in each little rectangle, use the function’s value there as the prism’s height, and multiply by the rectangle’s area. As the pieces get finer, those sums approach the double integral.

Hope
It’s a good definition, but doing all those little prisms by hand would be tedious. Fubini gives us another way to calculate the same quantity when the function is continuous on a rectangle: slice the solid in one direction and add up the volumes of the slices.

Anna
Like slicing a loaf of bread. Suppose we make thin slices by dividing the x-direction, each with thickness Δx. At a representative x-value, the slice’s face lies in the yz-plane, and its area is the one-variable integral of f at that fixed x, as y runs from c to d.

Hope
So we can describe that face area as g of x, where g of x equals the integral from c to d of f of x comma y, with respect to y. The approximate volume of one slice is its face area times its thickness: g of x times Δx.

Anna
Then adding the slice volumes gives a one-dimensional Riemann sum in x. In the limit, that becomes the integral from a to b of g of x, with respect to x. Substituting the definition of g gives an iterated integral: first integrate f with respect to y, then integrate the result with respect to x.

Hope
There’s an important conceptual distinction here. An iterated integral is two one-variable integrations performed in sequence; it is not, by its definition, the same process as the original two-dimensional Riemann integral. Fubini’s theorem is what tells us that, under its conditions, this practical slicing calculation gives the double integral.

Anna
For a continuous function on the rectangle from a to b in x and c to d in y, Fubini says we can calculate the double integral either by integrating y first and then x, or by integrating x first and then y. The notation dA indicates integration over a two-dimensional area; dx and dy specify the order used in the iterated calculation.

Hope
Let’s work through an example. Integrate three x squared plus cosine of pi y over x from zero to two and y from zero to one. We’ll integrate with respect to x first, treating y as a constant.

Anna
An antiderivative with respect to x is x cubed plus x cosine of pi y. Evaluating from zero to two leaves eight plus two cosine of pi y. Now integrate that from y equals zero to one.

Hope
The antiderivative is eight y plus two over pi times sine of pi y. Evaluating at one and subtracting the value at zero gives eight, since both sine terms vanish.

Anna
Here’s another example: integrate x plus y over the rectangle where x runs from zero to one and y runs from one to three. Integrate with respect to y first. Since x is constant in that inner integral, an antiderivative is xy plus one-half y squared.

Hope
Evaluating that from y equals one to three gives two x plus four. Then integrate from x equals zero to one: an antiderivative is x squared plus four x, and the final value is five.

Anna
The next example shows how familiar single-variable techniques still apply inside an iterated integral. Consider the integrand x times e to the x squared, plus y, with x from one to two on the inside and y from one to three on the outside.

Hope
For the first term, use the substitution u equals x squared, so du equals two x dx. The x-bounds one and two become u-bounds one and four, and the integral becomes one-half the integral of e to the u from one to four. The other term is easy: with respect to x, y is constant, so its integral from one to two is y.

Anna
Together, the inner integral is one-half times e to the fourth minus e, plus y. Integrating that from y equals one to three gives e to the fourth minus e plus four. That’s a nice reminder that substitution and linearity work just as they do in ordinary calculus.

Hope
Fubini’s theorem also lets us choose the order that makes a problem easier. In one example, the original order asks us to integrate with respect to y first, but the terms are difficult to antidifferentiate that way. We can reverse the order because the function is continuous on the rectangle.

Anna
In the reversed order, look at the x-dependence: x cubed times a function of y is odd in x; sine of x is odd; and x times the square root of the tangent of y squared is odd in x as well. The whole integrand is therefore odd in x.

Hope
And an odd function integrated over the symmetric interval from negative one to one has integral zero. So integrating in x first makes the entire double integral zero without needing to find complicated antiderivatives.

Anna
One final example demonstrates a more direct calculation. After integrating its integrand with respect to x from negative one to two, the expression left for the outer integral is nine-halves y plus three e to the y, with y running from negative one to two.

Hope
An antiderivative in y is nine-fourths y squared plus three e to the y. Evaluating at two and subtracting the value at negative one gives nine plus three e squared, minus nine-fourths, minus three over e.

Anna
So the big takeaway is that a double integral over a rectangle can often be calculated as two ordinary integrals in sequence. Fubini’s theorem justifies that shortcut for continuous functions on the rectangle, and it lets us try either slicing direction when one order is much easier than the other.

Ask anything
We've read this whole study set, so questions about it get the best answers.