Before this section. 2.1 Riemann integration the fundamental theorem and improper integrals, Finite-dimensional compactness and attained extrema. Read the rectangle definition and continuous theorem first. Before the zero-extension region examples, read the bounded slicing proof, then return to those examples. That proof uses the Darboux definition, not the region calculations it justifies.
An iterated integral is a sequence of one-variable integrals. A multiple integral is a limit of sums over small cells. Their equality requires a theorem. We establish it first for continuous functions on rectangles, where the hypotheses are transparent, and then use the result to compute and interpret region integrals.
1 Upper and lower sums on rectangles
Let with , . A rectangular grid partitions into cells . For bounded , let and be the supremum and infimum on each cell. Its upper and lower sums are
The upper integral is the infimum of upper sums, and the lower integral is the supremum of lower sums. Refinement increases lower sums and decreases upper sums; common refinements show every lower sum is at most every upper sum. If the two integrals coincide, is Riemann integrable and their common value is .
The equivalent criterion is: for every there is a partition with . To prove sufficiency, put the upper and lower integrals between these two sums. Necessity follows by choosing nearly optimal upper and lower partitions and taking a common refinement.
Theorem. A continuous function on is integrable.
Proof. Compactness makes it uniformly continuous. Choose a grid whose cells have diameter small enough that the oscillation of on each cell is below . Then .
Boundedness alone is not enough: the indicator of points whose two coordinates are rational has infimum 0 and supremum 1 in every positive-area cell, so every lower sum is 0 and every upper sum is .
Worked example 4.1.1
(Upper and lower sums of a product on a square grid)
Let on and let be the grid with equal divisions in each direction, so each cell has area . Since increases in each variable on , its supremum on is and its infimum is . The double sums factor:
Hence , which tends to zero, so the criterion of Section 1 proves integrability, and both sums tend to . For the integral is trapped in . A midpoint sum, which samples each cell at its center, is one particular Riemann sum lying between and of the same grid; for this it equals exactly for every grid.
The explorer below computes exact midpoint sums for three functions on any grid of , including the product above, and compares the error with a Lipschitz bound.
A valid Lipschitz bound versus the true midpoint error
On R = [0,1]², compare the midpoint sum S on an m × n grid with the exact integral. The Lipschitz bound (L/2)√(1/m² + 1/n²) holds for every grid, but each function's true error behaves very differently.
The square is cut into m columns and n rows. Dots mark the cell midpoints at which f is sampled. The table below lists the same data for m = n = 1, …, 10.
Grid: 1 × 1 = 1 cells
| k | Midpoint sum S | |∫f − S| | Bound (L/2)√(1/m² + 1/n²) | Error ÷ bound |
|---|---|---|---|---|
| 1 | 3/4 | 1/12 | √10/2 ≈ 1.5811 | 0.0527 |
| 2 | 13/16 | 1/48 | √10/4 ≈ 0.7906 | 0.0264 |
| 3 | 89/108 | 1/108 | √10/6 ≈ 0.5270 | 0.0176 |
| 4 | 53/64 | 1/192 | √10/8 ≈ 0.3953 | 0.0132 |
| 5 | 83/100 | 1/300 | √10/10 ≈ 0.3162 | 0.0105 |
| 6 | 359/432 | 1/432 | √10/12 ≈ 0.2635 | 0.0088 |
| 7 | 163/196 | 1/588 | √10/14 ≈ 0.2259 | 0.0075 |
| 8 | 213/256 | 1/768 | √10/16 ≈ 0.1976 | 0.0066 |
| 9 | 809/972 | 1/972 | √10/18 ≈ 0.1757 | 0.0059 |
| 10 | 333/400 | 1/1200 | √10/20 ≈ 0.1581 | 0.0053 |
- Midpoint sum S
- 3/4
- Exact integral ∫f
- 5/6
- Signed error ∫f − S
- 1/12
- Error by closed form
- 1/12 (Yes)
- Bound (exact)
- √10/2
- Bound (rounded)
- 1.5811
- |error| ≤ bound
- Yes
- Error ÷ bound
- 0.0527
1 × 1: S = 3/4, ∫f = 5/6. |∫f − S| = 1/12 ≤ √10/2 ≈ 1.5811. The error is within the Lipschitz bound. The true error is 5.27% of the bound.
Why the bound holds, and why it is not sharp
On a cell with midpoint z, every point is within half the cell diagonal, (1/2)√(h_x² + h_y²), of z, so |f(w) − f(z)| ≤ (L/2)√(h_x² + h_y²). Integrating over the cell and summing the cells gives the bound with total area (b − a)(d − c) = 1 here.
The bound uses only L, so it must allow the worst function with that Lipschitz constant. For f = x² + y the sum is 5/6 − 1/(12m²), so the true error 1/(12m²) is of order 1/m², much smaller than the bound of order 1/m. For f = xy the midpoint sum is exact. For the absolute-value function the error is [m odd]/(4m²) + [n odd]/(4n²), where [·] is 1 when the condition holds and 0 otherwise.
Does a midpoint sum integrate every nonlinear function exactly?
No. For x² + y on the 1 × 1 grid the only sample is at (1/2, 1/2), giving 3/4 while the integral is 5/6, an error of 1/12. The product xy is exact only because its midpoint average factors and each factor is linear.
This figure fixes R = [0,1]² and three functions with known Lipschitz constants in the Euclidean norm; the grid has 1 to 20 columns and rows. Sums, integrals and errors are exact fractions, and the bound is compared exactly after squaring; only the decimal bound and ratio are rounded. Other rectangles, other norms and other quadrature rules are not covered.
The compactness input behind the rectangle proof
For the nonempty compact rectangle above, a continuous scalar is bounded by the attained-extrema theorem. It is also uniformly continuous: for , at each choose such that for with . The balls have a finite subcover. Let for the finitely many chosen centers. For with , choose a covering ball containing . Both points lie within the original full radius of its center, so . This is the uniform estimate used below. The rectangle is compact by finite-dimensional Heine–Borel; no multiple-integration or Fubini theorem is used to obtain this estimate.
2 Fubini for continuous functions
Theorem. If is continuous on , then
Proof. Every slice is continuous and hence integrable. Let . Uniform continuity gives
so is continuous. For a fixed grid, on each interval the inner integral lies between the sum of and the sum of . Integrate these bounds over that interval and add: . Choose grids with to identify this value with the double integral. Interchange and for the second equality.
Continuity is a convenient sufficient hypothesis, not a necessary one. More general Riemann or Lebesgue Fubini theorems have different hypotheses; neither is being silently invoked for arbitrary unbounded or improper integrals here.
Proof X-ray
A sandwich that never computes the inner integral
Continuity is used twice. Continuity of each slice makes the inner integrals exist; uniform continuity, from the compactness section, makes continuous, so its outer integral exists. The real idea is a sandwich: on each column of the grid, the inner integral lies between the lower and upper sums over the cells of that column, and integrating over that column turns these into exactly that column's share of and . The iterated integral therefore lies between all lower and all upper sums, and only one number does.
Concept lensGeometric
Volume as accumulated cross-sections
For a continuous on , the double integral is the volume of the solid . Fixing cuts this solid in a plane section whose area is , and Fubini's theorem says that the volume is : volume accumulates section by section. The second iterated integral slices in the other direction, and the theorem asserts that both slicings give the same volume.
For on , the section at is a trapezoid of width with parallel sides and , so , and , the value computed in Section 3. The geometric reading explains why slice integrability is the natural hypothesis in the bounded extension: a section must have an area before the areas can be accumulated.
Worked example 4.1.2
(Choosing the order that makes the inner integral elementary)
Compute . The integrand is continuous on the square, so the continuous Fubini theorem permits either order. Integrating in first, with fixed,
In the other order, integration by parts gives for , and the value at . This is the derivative of , a fact that has to be noticed; once it is, of the inner integral is , in agreement. The theorem guaranteed the agreement in advance. Once its hypotheses are verified, the choice of order is a computational decision, not a mathematical one.
2.1 The bounded slicing extension
Theorem. Let bounded be Riemann integrable on . Suppose for every its slice is Riemann integrable. Then
is Riemann integrable and . If every horizontal slice is also integrable, the two iterated integrals agree.
The complete Darboux squeezing proof is in Riemann slices and noncontinuous Fubini.
The slice hypothesis is real. Define when and is rational, and zero otherwise on the unit square. Its double integral is zero because only cells touching the vertical edge can contribute. But the slice at is the rational indicator, not Riemann integrable. Therefore the displayed inner integral is not defined for every , despite existence of the double integral. In this particular example, assigning any finite value to and zero elsewhere still gives outer integral zero; that is a separately justified finite-point modification, not automatic slice existence.
3 Worked examples and nonrectangular regions
The zero extensions in the region examples below are not continuous on the rectangle, so the continuous theorem of Section 2 alone is insufficient. Use the bounded-Riemann slicing theorem proved in the noncontinuous-Fubini chapter: double Riemann integrability and integrability of every relevant one-variable slice are separate requirements. For these triangle and parabolic-region examples, boundary covers establish the double integral, while each fixed-coordinate slice is a continuous polynomial on a finite interval, extended by zero with at most endpoint jumps. Thus every slice is Riemann integrable, and that broader theorem applies.
On ,
For the triangle , integrate over a rectangle after extending by zero outside . For continuous integrands, the only new discontinuities lie on the triangle's boundary. This boundary can be covered by rectangles of arbitrarily small total area; away from that cover uniform continuity controls upper-minus-lower sums. Thus the extension is Riemann integrable and slicing gives
Reversing the order uses and , not the original bounds with symbols exchanged. It yields .
For a nonnegative density , mass is and the centroid is when . Unit density on the triangle gives mass and centroid , reflecting that most horizontal extent lies toward the right.
Reverse the region before reversing integration
Consider . The inequalities imply and, for a fixed , . These are equivalent descriptions, not a formal exchange of letters. The two boundary curves are on their compact parameter intervals, so a finite small-area boundary cover proves integrability of the zero extension of ; every slice is piecewise continuous. The bounded Riemann slicing theorem therefore applies.
In the original order, the inner integral is . Integrating from zero to one gives . In reverse order,
Practice and full solution. Why not use after reversing? That omits the original restriction , adding points with . Rewriting every inequality first prevents an incorrect domain from passing unnoticed merely because both integrals are easy to evaluate.
Worked example 4.1.3
(Reversing the order to integrate a function with no elementary antiderivative)
Evaluate . The inner integral has no elementary antiderivative, so rewrite the region first. The inequalities , describe the triangle , which is equivalently , . As for the triangle in Section 3, the zero extension of the continuous integrand is Riemann integrable and every slice is a continuous function on an interval extended by zero, so the bounded slicing theorem permits the exchange:
The factor produced by the inner integral is exactly what makes the outer integral elementary. The bounds came from the region, not from exchanging the letters in .
Quick check
(Compute in both orders.)
The integrand is continuous on the rectangle.
Solution · Answer
Integrating in first: , and . Integrating in first: , and . The two orders agree, as the continuous Fubini theorem guarantees.
Quick check
(Reverse the order of integration in , and check the new bounds with .)
Sketch the region: which line joins to ?
Solution · Answer
The region is , , the triangle with vertices , and . For fixed , the condition means . So the integral is . With both orders give the area: and .
Quick check
(For on and the equal grid, compute .)
Find the oscillation of on one cell.
Solution · Answer
On the cell , the maximum and the minimum differ by . There are cells of area , so . This confirms integrability directly, and the common limit is .
Exercises with complete solutions
E1 Foundation. Integrate over in both orders.
S1. Separation or direct integration gives . Integrating first or first gives the same product because the continuous-rectangle theorem applies.
E2 Region bounds. Reverse the order and evaluate .
S2. The region is , . The reversed integral is . Original order gives .
E3 Density. On the unit square, let . Find the mass and centroid.
S3. . The moment is , so . The moment is , so .
E4 Proof. Show that the function equal to 1 on the line in the unit square and 0 elsewhere is Riemann integrable with integral zero.
S4. Every cell has infimum zero, so lower sums vanish. A uniform grid has at most cells meeting the diagonal, including boundary-touching neighbors. Its upper sum is at most , tending to zero. The Darboux criterion proves integral zero despite discontinuity on the diagonal.
Summary
Multiple integration begins with cell sums, not iterated notation. Uniform continuity establishes integrability for continuous functions, and a squeezing proof establishes Fubini on rectangles. Region geometry determines the bounds, while improper and more general measurable settings require their own theorems.