Module 4 of 5 · Lesson 2 of 2

Double Integrals and Fubini's Theorem

Accumulating over a region, and the theorem that makes it two ordinary integrations.

What you will be able to do

Given a double integral over a rectangle, the learner can evaluate it as an iterated integral in either order, state the hypothesis that guarantees the two agree, and say what changes when the region is not a rectangle.

Orientation

Accumulating over a region rather than an interval

A single integral adds up contributions along an interval. Replace the interval with a region of the plane and the construction is unchanged: chop, multiply each piece by a height, add, take a limit. Area elements stand where widths stood.

∬ R f d A = lim ∑ f ( x i ∗ , y j ∗ ) Δ A

That definition is exact and almost useless for computing. A two-dimensional limit over shrinking rectangles is not something to evaluate by hand.

What makes it practical is a theorem. Fubini's theorem says the two-dimensional limit equals two ordinary one-dimensional integrals performed in sequence, and over a rectangle with a continuous integrand, in either order. So ∫ 0 2 ∫ 0 3 ( 2 x + y ) d y d x = 21 , and reversing the order gives 21 as well.

The freedom to choose is a property of the rectangle. Constant limits are what let the orders be exchanged as written. Over a region whose boundary bends, the inner limits depend on the outer variable, and the two orders sweep the region differently, in vertical strips or in horizontal ones. Exchanging the written limits there describes a different region and produces a different number.

So this unit has two things to get right: the mechanics of holding one variable fixed while integrating the other, and the question of when the order is actually free.

Definition

What Fubini claims, and what it requires

The canonical definition states the double integral as a limit and Fubini's theorem as its evaluation. What follows is why the theorem carries a hypothesis and what the hypothesis is doing.

The two sides are different objects. ∬ R f d A is a single limit over shrinking two-dimensional pieces, taken without reference to any order. An iterated integral ∫ c d ∫ a b f d x d y is two one-dimensional limits performed in sequence. That these coincide is a theorem, not a restatement, and it can fail.

Why continuity suffices. On a closed bounded rectangle a continuous function is uniformly continuous and bounded, so the Riemann sums converge and the order in which the two limits are taken cannot change the value. Absolute integrability, ∬ R | f | d A < ∞ , is the more general condition, and it is what the theorem actually needs; continuity is the convenient sufficient case.

What goes wrong without it. The standard counterexample takes f ( x , y ) = x 2 − y 2 ( x 2 + y 2 ) 2 on [ 0 , 1 ] × [ 0 , 1 ] , where the two iterated integrals are π / 4 and − π / 4 . Both exist, they differ in sign, and the double integral does not exist at all, because ∬ | f | d A diverges near the origin. Nothing in the arithmetic of either iterated integral signals the problem; only checking the hypothesis does.

Why the inner integration treats the outer variable as a constant. Fixing y reduces f ( x , y ) to a function of x alone, and ∫ a b f ( x , y ) d x is then an ordinary integral whose value depends on the y that was fixed. Carrying out that integration for every y produces a function of y , which the outer integral then integrates. The outer variable's symbols pass through untouched precisely because they are constants for the duration.

Why a non-rectangular region breaks the symmetry. Constant limits make the region a product of two intervals, so describing it by x then y or by y then x gives the same set. When the inner limits are functions of the outer variable the region is not a product, and the two descriptions are genuinely different decompositions. The order may then be forced: one may require splitting the region into pieces where the other does not.

Worked example

An iterated integral, evaluated both ways

A double integral, both orders: ∫ 0 2 ∫ 0 3 ( 2 x + y ) d y d x .

Inner first, over y with x held:

∫ 0 3 ( 2 x + y ) d y = [ 2 x y + y 2 2 ] 0 3 = 6 x + 4.5 .

Then over x :

∫ 0 2 ( 6 x + 4.5 ) d x = [ 3 x 2 + 4.5 x ] 0 2 = 12 + 9 = 21 .

Reversing the order: ∫ 0 2 ( 2 x + y ) d x = [ x 2 + x y ] 0 2 = 4 + 2 y , then ∫ 0 3 ( 4 + 2 y ) d y = [ 4 y + y 2 ] 0 3 = 12 + 9 = 21 .

Check: a 1500 × 1500 midpoint sum. Fubini's theorem is what guarantees the two orders agree, and the integrand is continuous on the rectangle, so its hypothesis holds.

Example

Integrands and regions worth recognising

Four cases, chosen because each one settles a different question about what the order and the region cost.

---

1. A separable integrand, where the double integral is a product. Over R = [ 0 , 2 ] × [ 0 , 3 ] with f ( x , y ) = x y 2 , the inner integration carries the x through as a constant:

∫ 0 3 x y 2 d y = x [ y 3 3 ] 0 3 = 9 x , ∫ 0 2 9 x d x = [ 9 x 2 2 ] 0 2 = 18 .

But because the integrand factors as g ( x ) h ( y ) and the limits are constants, the whole thing factors too:

∬ R x y 2 d A = ( ∫ 0 2 x d x ) ( ∫ 0 3 y 2 d y ) = ( 2 ) ( 9 ) = 18   ✓

The factorisation needs both conditions. ∫ 0 2 ∫ 0 3 ( x + y 2 ) d y d x = 24 , and the corresponding product of separate integrals is ( 2 ) ( 9 ) = 18 , which is not it: a sum does not factor. And over a non-rectangular region the limits carry the outer variable, so even a product integrand does not separate.

---

2. A region where the order decides how much work it is. Consider ∫ 0 1 ∫ y 1 e x 2 d x d y .

As written, the inner integral ∫ e x 2 d x has no elementary antiderivative, and the calculation stops. Reversing the order rescues it. The region is { ( x , y ) : 0 ≤ y ≤ 1 ,   y ≤ x ≤ 1 } , which is the triangle below the line y = x ; described the other way, x runs over [ 0 , 1 ] and for each x , y runs from 0 to x :

∫ 0 1 ∫ 0 x e x 2 d y d x = ∫ 0 1 x e x 2 d x = [ e x 2 2 ] 0 1 = e − 1 2 ≈ 0.859141 .

The inner integration produced the factor x that the substitution needed. Both orders are valid and give the same number; only one is computable in closed form. Check: a 3000 × 3000 midpoint sum over the triangle returns 0.85914 … .

---

3. A region needing two pieces in one order and one in the other. Let S be bounded by y = x , y = 2 − x and y = 0 : a triangle with vertices ( 0 , 0 ) , ( 1 , 1 ) , ( 2 , 0 ) .

Sweeping in vertical strips, the upper boundary changes at x = 1 , so d y d x needs two integrals:

∫ 0 1 ∫ 0 x 1 d y d x + ∫ 1 2 ∫ 0 2 − x 1 d y d x = 1 2 + 1 2 = 1 .

Sweeping in horizontal strips, each strip at height y runs from x = y to x = 2 − y throughout, so d x d y needs one:

∫ 0 1 ∫ y 2 − y 1 d x d y = ∫ 0 1 ( 2 − 2 y ) d y = [ 2 y − y 2 ] 0 1 = 1   ✓

Both give the triangle's area of 1. The choice of order is not about correctness; it is about how many pieces the region breaks into.

---

4. Where Fubini has nothing to say. Over [ 0 , 1 ] × [ 0 , 1 ] take

f ( x , y ) = x 2 − y 2 ( x 2 + y 2 ) 2 .

The two iterated integrals both exist and come to π / 4 and − π / 4 . They disagree, and the double integral does not exist at all, because ∬ | f | d A diverges near the origin where f is unbounded.

Nothing in the arithmetic of either iterated integral signals this. Each is a perfectly ordinary calculation returning a finite number. Only checking the hypothesis does, and the hypothesis fails because f is not continuous on the closed rectangle and not absolutely integrable over it. This is the case that makes Fubini a theorem rather than a convention.

---

What the four have in common. The region and the integrand together decide what is possible: whether the integral factors, whether either order is computable, how many pieces are needed, and whether the orders agree at all. None of that is visible from the notation ∬ R f d A , which is why the first step is always to describe the region and check the integrand rather than to start integrating.

Figure

Vertical and horizontal slicing of one region

either order covers the same region, so the integrals agree

The triangle { ( x , y ) : 0 ≤ y ≤ x ≤ 1 } , the region of the block's second case, sliced both ways.

Vertically, on the left: for each x in [ 0 , 1 ] , y runs from 0 up to x . That gives ∫ 0 1 ∫ 0 x e x 2 d y d x , and the inner integration hands back the factor x that makes the substitution work.

Horizontally, on the right: for each y , x runs from y across to 1 . That gives ∫ 0 1 ∫ y 1 e x 2 d x d y , whose inner integral has no elementary antiderivative and stops the calculation dead.

Both describe the same set of points and both are correct; only one is computable in closed form. The limits differ because the slices differ, and seeing the two families of slices is what makes the change of limits obvious rather than a rule to memorise.

Procedure

Evaluating an iterated integral

To evaluate a double integral over a rectangle.

  1. Choose an order. Over a rectangle either works, by Fubini.
  2. Integrate the inner variable, holding the outer one fixed as a constant, its symbols pass through untouched.
  3. Substitute the inner limits, leaving an expression in the outer variable alone.
  4. Integrate that over the outer limits.

Check: redo it in the opposite order. Agreement is a strong check on both, and disagreement over a rectangle with a continuous integrand means an arithmetic slip rather than a failure of Fubini.

Over a non-rectangular region the inner limits are functions of the outer variable, and swapping the order means redescribing the region, not exchanging the limits as written.

Non-example

Errors an iterated integral invites

Swapping the limits of a non-rectangular double integral. Over a rectangle the limits are constants and either order works. Over a region where the inner limits depend on the outer variable, exchanging the order requires describing the region the other way round, reversing the written limits produces a different region and a different number.

Treating Fubini as unconditional. Over a rectangle with a continuous integrand the two orders agree, and disagreement means an arithmetic slip. That is a consequence of the hypothesis, not a general fact about integration: without continuity or absolute integrability the two iterated integrals can genuinely differ, and the two-dimensional integral may not exist at all. Quoting "either order works" without the rectangle and the continuity is quoting a conclusion without its premise.

Reading the inner limits as fixed when they are not. Over a region bounded by y = x 2 and y = x , the inner limits in ∫ ∫ d y d x run from x 2 to x , both functions of the outer variable. Substituting them leaves an expression in x alone, which is the point. Writing constant inner limits there integrates over a rectangle the region does not fill.

Application

Totals over a region

Mass, probability and marginalisation. Mass is ∬ R ρ d A for a density ρ ; probability for a joint distribution is ∬ R f ( x , y ) d A ; and the requirement that a joint density integrate to 1 over the plane is a double improper integral. Marginalising one variable out is the inner integration of an iterated integral, so Fubini is what licenses computing a marginal distribution by integrating the joint one.

Why the order matters in practice. Marginalising a joint density integrates out one variable, and which one is integrated first is the difference between obtaining f X and f Y . Over a rectangle either is available; over a region whose boundary bends, one order may need the region split into pieces while the other does not, which is the usual reason for choosing.

The through-line. A single integral accumulates along an interval. A double integral accumulates over a region, and Fubini is what makes that accumulation computable by two ordinary integrations rather than a limit nobody could evaluate directly.

Next step

Practice Double Integrals and Fubini's Theorem

Practice records what support you used, so the evidence reflects how you actually performed.

Practice this lessonSkip to Line Integrals and Path Parametrisation

Results update as you type. Use the up and down arrow keys to move between results, Enter to open one, and Escape to close.

Type to search.

Settings

Appearance

Interface density

Your record

Your progress is stored in this browser and nowhere else: an identifier, the answers you have given, the mastery states and review schedule derived from them, and the lesson you last opened. Clearing it makes you a new learner on this device. It cannot be undone, and it will not affect your appearance or density settings.

Focus timer

Focus--minutes remaining

Phase

Kept in this browser only, and used to label the session in your own history.

Today

Nothing recorded yet. Finish a focus session and it will appear here.

Settings

Focus sessions between long breaks.

Sessions you are aiming for in a day.

Notifications

Your history

Sessions are stored in this browser and nowhere else. They are not evidence and never reach your mastery record.