Calculus › Section O · Multiple integrals › Topic O.1

Iterated integrals and area

A single integral adds a quantity along a line. To add it over a whole region of the plane, you integrate twice, and the order of the two integrations turns out not to matter at all.

Adding over a region

A definite integral along an interval adds up thin slices: lengths, areas, distances travelled. But many quantities live on regions, not lines, and adding those up takes a new tool. The mass of a rectangular plate, the total rainfall on a county, the volume under a tent-shaped roof: each is spread over a two-dimensional region. The strategy is to sweep the region one strip at a time. Each strip behaves like the familiar one-dimensional problem, and integrating the strip totals over the strips themselves. Two integrations, nested one inside the other: that is an iterated integral.

Anatomy of an iterated integral

Here is the notation for a function \(f(x, y)\) on a rectangle \(a \le x \le b\), \(c \le y \le d\):

\int_a^b \int_c^d f(x, y)\,dy\,dx

Read from the inside out. The inner integral is with respect to \(y\): hold \(x\) fixed, exactly as when computing a partial derivative, and integrate in \(y\) from \(c\) to \(d\). The result still contains \(x\), because each vertical strip total depends on where the strip sits. The outer integral then adds those strip totals as \(x\) runs from \(a\) to \(b\). Iterated integration is the reverse of partial differentiation: freeze one variable and undo, then the other.

Worked example: evaluating a nested integral

Evaluate

\int_1^2 \int_0^1 (x + 2y)\,dy\,dx

The inner integral holds \(x\) constant: \(\int_0^1 (x + 2y)\,dy = \big[xy + y^2\big]_0^1 = x + 1\). Each vertical strip at position \(x\) carries total \(x + 1\). Now the outer integral: \(\int_1^2 (x + 1)\,dx = \big[\tfrac{x^2}{2} + x\big]_1^2 = (2 + 2) - (0.5 + 1) = 2.5\). The two-step structure did all the work: a one-variable integral in \(y\), then a one-variable integral in \(x\), each no harder than anything from the early integration topics.

Worked example: the same integral, other order

Swap the order:

\int_0^1 \int_1^2 (x + 2y)\,dx\,dy

Now the inner integral holds \(y\) constant and runs in \(x\): \(\int_1^2 (x + 2y)\,dx = \big[\tfrac{x^2}{2} + 2xy\big]_1^2 = (2 + 4y) - (0.5 + 2y) = 1.5 + 2y\). The outer integral is \(\int_0^1 (1.5 + 2y)\,dy = 1.5 + 1 = 2.5\). The answer matches the previous card exactly, even though the strips changed direction: horizontal strips of total \(1.5 + 2y\) instead of vertical ones. That agreement is not luck for this one function; it is a theorem.

Fubini's theorem: order is free

For a function continuous on a rectangle, both iterated integrals exist and are equal:

\int_a^b \int_c^d f(x, y)\,dy\,dx = \int_c^d \int_a^b f(x, y)\,dx\,dy

This is Fubini's theorem, and it is the working licence to choose whichever order makes the algebra easier. It also supplies a free check on any iterated integral: evaluate the other order, and a mismatch exposes an error in one of them. The fine print matters on non-rectangular regions, where swapping order forces the limits to change shape; that skill arrives with general double integrals in the next topic. Over a rectangle the limits are constants, and swapping is trivial.

Area as a double integral

Integrate the constant function 1 over a region and you get the region's area:

A = \int_c^d \int_a^b 1\,dx\,dy

Picture it: the integrand 1 is the roof of a box of height 1 built over the region, and the integral is that box's volume, which numerically equals the floor area. For the rectangle \([a, b] \times [c, d]\), the inner integral is just \(b - a\), the outer multiplies by \(d - c\), and the result is the familiar product \((b - a)(d - c)\). For example, over \(0 \le x \le 3\), \(1 \le y \le 4\), the integral of 1 is \(3 \times 3 = 9\), exactly the area of the rectangle.

Average value over a region

The one-variable idea of an average value extends straight to regions: divide the total by the area. The average value of \(f\) over a rectangle \(R\) is

\bar{f} = \frac{1}{\text{area of } R} \iint_R f(x, y)\,dA

As a worked mini example, take \(f(x, y) = x + y\) on \(0 \le x \le 2\), \(0 \le y \le 4\), whose area is 8. The inner integral is \(\int_0^4 (x + y)\,dy = 4x + 8\), and the outer is \(\int_0^2 (4x + 8)\,dx = 8 + 16 = 24\). The average is \(24/8 = 3\). A sanity check confirms it: the average of \(x\) on its interval is 1, the average of \(y\) is 2, and \(1 + 2 = 3\).

Signed height, and a preview of volume

The integral adds the integrand's value against area, so a negative \(f\) contributes negatively: over a rectangle, the integral is a signed total, just as signed area can be negative in one variable. Where \(f\) stays positive, the integral has a clean geometric meaning: it is the volume of the solid standing on the rectangle with roof \(z = f(x, y)\), since each little patch of area contributes height times area. That volume interpretation is the subject of the next topic, where the region breaks free of rectangles. Keep one practical note in mind for applications: if \(f\) is measured in metres and \(dA\) in square metres, the integral carries units of cubic metres.

Common mistakes to avoid

The most common slip is integrating with respect to the wrong variable first: in \(\int_a^b \int_c^d f\,dy\,dx\), the inner integral and its limits belong to \(y\), matched left-to-right in the order dy then dx. Second, do not treat \(x\) as a variable during the inner integration; it is a constant there, and only reawakens afterwards. Third, when swapping the order, the limits must swap with their variables; writing \(\int_c^d \int_a^b f\,dy\,dx\) as the reversed form swaps nothing but breaks the problem. Finally, the average value divides by the area; forgetting the division reports a total instead of an average.

Key takeaways

An iterated integral over a rectangle is computed inside-out: hold one variable constant, integrate in the other, then integrate the result. Fubini's theorem lets you choose either order for a continuous function on a rectangle, and evaluating both orders is a strong self-check. Integrating the constant 1 gives the region's area, and dividing by that area gives a function's average value over the region. The integral is a signed quantity: positive height adds, negative subtracts, and for a positive function the total is the volume under the surface, the story the next topic takes up.

Flashcards

Flashcard

Iterated integral

∫ from a to b of (∫ from c to d of f(x, y) dy) dx

Two one-variable integrals, nested.

Test your understanding

Question 1 of 5

What is the value of the integral of (x + 2y), first with respect to x from 0 to 2, then with respect to y from 0 to 1?

Question 2 of 5

What is the value of the integral of (x + 2y), first with respect to y from 0 to 1, then with respect to x from 0 to 2?

Question 3 of 5

The double integral of the constant 1 over the rectangle 0 ≤ x ≤ 3, 1 ≤ y ≤ 4 gives the area. What is its value?

Question 4 of 5

What is the average value of f(x, y) = x + y over the rectangle 0 ≤ x ≤ 2, 0 ≤ y ≤ 4?

Question 5 of 5

For which functions may you swap the order of integration over a rectangle and expect the same value?

Standards: Beyond AP

← Previous topicNext topic →