Multiple Integrals over Rectangles
Consider a solid tent-shaped region sitting above a rectangular floor in the -plane. Its height at each point is given by some function . What number should we call its volume? For a single-variable function, we sliced the region under a curve into thin vertical strips. We then summed rectangular areas. The same idea works in higher dimensions. But now we must slice a rectangle in into a grid of tiny sub-rectangles, rather than an interval into sub-intervals. We must track how the resulting sums behave as the grid gets finer in every direction simultaneously. This construction matters because it is the rigorous foundation beneath every multivariable volume, mass, flux, and probability computation. Physicists, engineers, and statisticians all rely on it. Before one can legitimately swap the order of integration, change variables, or integrate over a disk or a sphere, one needs a precise notion. One must know what "the integral of over a rectangle " even means. One also needs a workable test for when that number exists. The big picture is a direct generalization of the one-variable Riemann integral. First, partition the rectangle into a grid of sub-rectangles. Then form upper and lower sums using the supremum and infimum of on each piece. Declare integrable when these sums can be forced arbitrarily close together by refining the grid. Continuity — building on Limits and Continuity in Several Variables — combined with compactness of closed rectangles, will guarantee this happens. This holds true for a large and useful class of functions. This article builds the definition of partitions and Riemann sums over a rectangle . It proves the fundamental integrability criterion (Riemann's criterion). It also shows continuous functions on compact rectangles are always integrable. It sets the stage for later results. These include Fubini's Theorem, which reduces multiple integrals to iterated single integrals. It also sets the stage for the extension of integration to non-rectangular regions.
- A rectangle is partitioned by partitioning each side, producing a grid of sub-rectangles.
- Upper and lower Riemann sums are built from suprema/infima of on each sub-rectangle, weighted by sub-rectangle volume.
- The upper integral is the infimum of upper sums; the lower integral is the supremum of lower sums; is integrable when they agree.
- Riemann's criterion: is integrable on iff for every there is a partition with upper sum minus lower sum less than .
- Every continuous function on a closed, bounded rectangle is integrable — this relies crucially on compactness giving uniform continuity.
- Key idea: integrability is a statement about how well suprema and infima on a grid can be squeezed together as the grid refines in every coordinate direction at once.
Where this lives today
The Riemann integral over rectangles is the direct ancestor of every volume, mass, moment-of-inertia, and probability computation done with multiple integrals in applied mathematics, physics, and engineering — for instance computing the total mass of a rectangular plate with variable density , or the flux of a field through a rectangular aperture. It is the base case from which Fubini's Theorem reduces double and triple integrals to iterated single-variable integrals, which is how such integrals are actually computed in practice, and it is the base case from which Integrals over General Regions extends integration to disks, balls, and arbitrary bounded domains by extending the integrand by zero outside the region and integrating over an enclosing rectangle. In probability and statistics, joint probability density functions over rectangular (or box-shaped, in higher dimensions) sample spaces are integrated exactly via this machinery to compute joint probabilities and expectations. In numerical analysis, the partition/Riemann-sum picture is the conceptual seed of numerical quadrature schemes in higher dimensions (e.g. tensor-product Simpson's rule, midpoint rule cubature), which approximate multiple integrals by refined finite sums exactly analogous to and . In computer graphics and finite-element methods, discretizing a domain into rectangular (or box) elements and summing local contributions is a direct computational descendant of upper/lower Riemann sums. The theoretical criterion also foreshadows Lebesgue's integrability criterion, which characterizes Riemann integrability precisely in terms of the set of discontinuities having Lebesgue measure zero — a refinement of the continuity-based sufficient condition proved here.
Ask the tutor: How does the proof that continuous functions are integrable change if the rectangle is replaced by a more general compact region?
Let be a closed rectangle (with for each ), and let be a bounded function.
Partitions. A partition of is a finite set of points
A partition of is an -tuple , one partition for each side. It divides into finitely many closed sub-rectangles
one for each choice of indices . Write for the collection of all such sub-rectangles; they have pairwise disjoint interiors and their union is . The volume of a sub-rectangle is .
Upper and lower sums. Since is bounded on , it is bounded on each . Define
The upper sum and lower sum of with respect to are
Refinement. A partition refines if for every side (each side-partition of contains all the division points of , plus possibly more). Given any two partitions of , their common refinement refines both.
Upper and lower integrals. Define
the infimum and supremum taken over all partitions of .
Integrability. The function is Riemann integrable on if , and in that case the common value is called the integral of over , denoted
Intuition
Picture : a rectangle in the plane, and a surface sitting above it. A partition slices into a checkerboard grid of small rectangles . Over each tiny rectangle, is approximately constant if is well-behaved, so the true volume under the surface over is trapped between (a flat box built to the lowest height reached on ) and (a flat box built to the highest height). Summing over all the tiles gives for every partition — this sandwiching is the entire content of the definition. Refining a partition (adding more grid lines in either direction) can only push down and up, because breaking a rectangle into smaller pieces can only shrink each local supremum and grow each local infimum (or leave them the same). The upper integral is the best (smallest) upper sum achievable; the lower integral is the best (largest) lower sum achievable. Integrability says these two "best bounds" meet exactly — the boxy over- and under-approximations of the volume converge to a single honest number as the grid becomes infinitely fine in every direction. The genuinely new phenomenon in , compared to , is that the grid must refine along all axes at once — one cannot simply refine in the -direction and declare victory while the -direction stays coarse. The criterion below packages exactly the condition needed to control this multi-directional refinement.
:::svg[A partition of into 6 sub-rectangles, with one tile's sup/inf sandwich indicated]
Let be a closed rectangle and bounded. Then is Riemann integrable on if and only if for every there exists a partition of such that
Let , bounded, and let be a refinement of the partition of . Then
(Proof of the Refinement Lemma; technique: comparing suprema/infima on nested sets.) The middle inequality is immediate: for each sub-rectangle of , since the infimum of a bounded set never exceeds its supremum, and , so summing preserves the inequality termwise. It remains to show ; the argument for is symmetric (replace by and reverse the inequality). Since refines , each sub-rectangle is exactly partitioned by finitely many sub-rectangles of ; write for those pieces of contained in , so that with pairwise disjoint interiors, and every lies in for exactly one (because 's grid lines include all of 's grid lines in each coordinate, so refining sub-rectangles cannot straddle a boundary of ). Because each , we have
since the supremum over a subset is bounded above by the supremum over the whole set. Also volumes are additive over this sub-partition of :
which is a standard fact for rectangles cut by a grid extending an existing grid (the volume of a box is the product of side lengths, and side lengths of an interval partitioned into consecutive sub-intervals sum to the whole length; applying this coordinate-by-coordinate and multiplying gives additivity of volume over the grid pieces of ). Hence
Summing this inequality over all and using that is the disjoint union of the gives
This proves .
∎For a bounded and any two partitions of (not necessarily related by refinement),
Consequently .
Let be the common refinement of and . By the Refinement Lemma applied twice,
This proves the displayed inequality. Taking the supremum over on the left gives for every ; then taking the infimum over on the right gives .
∎(Proof of Riemann's Criterion; technique: squeeze argument via infimum/supremum characterizations, using the preceding Corollary.) () Suppose is integrable, so . Let . Since , by the definition of infimum there is a partition with
Since , by the definition of supremum there is a partition with
Let be the common refinement of and . By the Refinement Lemma,
Subtracting,
This is the required partition. () Suppose that for every there is a partition with . Fix such and . By the Corollary above (applied with , or directly from the definitions),
where the middle inequality is the Corollary and the outer two hold because is a supremum of lower sums (hence ) and is an infimum of upper sums (hence ). Therefore
Since was arbitrary, , and combined with the Corollary's inequality , we conclude
i.e. is integrable.
∎Let be a closed, bounded rectangle and let be continuous. Then is Riemann integrable on .
(Technique: uniform continuity from compactness, then Riemann's Criterion.) Since is closed and bounded in , it is compact (this uses Compactness in R^n, specifically the Heine–Borel characterization). A continuous real-valued function on a compact set is bounded and, moreover, uniformly continuous on that set: for every there is such that for all ,
(This is the standard compactness fact that continuity upgrades to uniform continuity on compact domains, proved e.g. by a sequential compactness/contradiction argument using Compactness in R^n.) In particular is bounded on , so the upper/lower sums are well-defined finite numbers. Fix . Let (where is the volume of ; if one prefers to avoid dividing by one may equally use , but here so division is safe). By uniform continuity there is such that implies for all . Choose a partition of fine enough that every sub-rectangle has diameter . (This is possible: partition each side into equal sub-intervals of length less than ; then every sub-rectangle has diameter at most ; refine slightly, e.g. use length , to get strict inequality.) For each sub-rectangle , is itself closed and bounded, hence compact, and is continuous, so attains a maximum and a minimum on at some points (extreme value theorem on a compact set). Thus
Since and , we have , so by uniform continuity
Therefore
using that the sub-rectangle volumes sum exactly to (additivity of volume across a partition of , the same fact used in the Refinement Lemma, applied to the whole rectangle instead of a sub-piece ). We have produced, for arbitrary , a partition with . By Riemann's Criterion for Integrability, is integrable on .
∎Worked examples
Example 1: A genuinely two-dimensional continuous function, computed from the definition. Let and . This is continuous, hence integrable by the theorem above; we verify the value using Riemann sums directly (without invoking Fubini, which is not yet available). Partition into equal sub-intervals of length and into equal sub-intervals of length , giving sub-rectangles
each of volume . Since is increasing in both and , its maximum on occurs at the corner with largest and largest , namely , and its minimum at . So
Upper sum:
Compute the double sum:
So
Lower sum: replace , in the roles above; by the same computation shifted,
Let's redo cleanly: with ranging over ,
So
As , and , and , consistent with Riemann's Criterion. Both sequences squeeze to , so
(Sanity check by elementary geometry: . The average value of over is and area of is , contributing ; the average value of over is , contributing . Total , matching.)
Example 2: Riemann's Criterion applied to a discontinuous function. Let and define
independent of (a two-dimensional analogue of Dirichlet's function, discontinuous at every point). We show directly, via Riemann's Criterion, that is not integrable on — illustrating that the criterion is a genuine tool for disproving integrability, not just proving it. Let be any partition of , with dividing into sub-intervals and dividing into . Each sub-rectangle is . Every non-degenerate interval (having positive length) contains both rational and irrational points (density of and in ), so
for every . Hence
This holds for every partition , so while . Since , Riemann's Criterion fails for every : no partition can make once is impossible to beat, and indeed always. So is not Riemann integrable on .
The Riemann integral over a rectangle is defined only for bounded functions — this hypothesis is essential, not a technicality, because upper and lower sums require and to be finite real numbers. To see what breaks without it, let and define
This is unbounded on : as , for every fixed . Take any partition of . The sub-rectangles meeting the edge (i.e. those whose first-coordinate interval is for some ) contain points with arbitrarily close to , so on every such . Consequently is not a finite number (it is times a positive number), so the upper sum for every partition — the supremum-based construction simply does not produce a real number. One might try to patch this by declaring and salvaging a one-sided notion, but then the entire "squeeze and together" machinery of Riemann's Criterion collapses: is undefined (it is ), so the criterion cannot even be stated, let alone be used to establish integrability. This is exactly why boundedness is listed as a standing hypothesis on in the definition, before partitions are ever introduced. (Such functions can sometimes be handled by improper multiple integrals, a separate construction taking limits of integrals over shrinking sub-rectangles, but that is not the Riemann integral defined here.)
Scope, edge cases & common traps
| Situation | What holds | What can fail |
|---|---|---|
| continuous on closed rectangle | Always integrable (theorem above) | — |
| bounded with finitely many discontinuities on (n=1 case, or measure-zero discontinuity sets in general) | Still integrable (a stronger theorem, via Lebesgue's criterion, not proved here) | Requires the discontinuity set to be "small" (measure zero) |
| bounded but discontinuous on a "thick" set (e.g. Example 2's Dirichlet-type function) | — | Integrability can fail entirely |
| unbounded on | — | Riemann integral is not even defined; see counterexample |
| not closed or not bounded (e.g. open or infinite rectangle) | — | Compactness argument fails; extreme values may not be attained, uniform continuity may fail |
| Refining a partition | Upper sums decrease (weakly), lower sums increase (weakly) | Common refinement is essential to compare two different partitions meaningfully |
The mathematician behind it
Origins · 1 minBernhard Riemann and how this was discovered
Georg Friedrich Bernhard Riemann was a German mathematician whose 1854 habilitation lecture and related work laid the rigorous groundwork for what is now called the Riemann integral, generalizing Cauchy's earlier integral for continuous functions to a broader class defined via oscillation of a function on partition elements. Riemann's approach — controlling the difference between upper-type and lower-type approximating sums — is exactly the mechanism formalized in the upper/lower sum definitions used here, later sharpened into the modern Darboux formulation by Jean-Gaston Darboux. Riemann's short life produced foundational results across analysis, differential geometry (Riemannian manifolds), and number theory (the Riemann zeta function and hypothesis), and his integral remains the standard first rigorous notion of integration taught before measure-theoretic integration.
What exactly is a "sub-rectangle" and why must the sides be partitioned independently?
A sub-rectangle is one cell of the grid formed by choosing one sub-interval from each side's partition and taking their Cartesian product. Partitioning each side independently (rather than, say, choosing a single mesh size for the whole rectangle) is what allows the grid to be refined unevenly — finer in directions or regions where oscillates more, coarser elsewhere. This flexibility is essential for the "for every there exists a partition" structure of Riemann's Criterion: sometimes no uniform grid works efficiently, but a cleverly shaped one does. In dimensions the sub-rectangles tile exactly, with pairwise disjoint interiors, which is what makes volumes additive across the partition — a fact used repeatedly in the refinement lemma and the continuity theorem.
Is the upper integral always at least as large as the lower integral, even for non-integrable functions?
Yes. This is exactly the Corollary proved from the Refinement Lemma: for any bounded on a rectangle , one always has , regardless of whether the two sides are equal. The proof only uses that any two partitions have a common refinement, and refining pushes lower sums up and upper sums down. Equality of the two sides is the extra condition that defines integrability; the inequality itself is unconditional and holds even for wild functions like the Dirichlet-type example, where it becomes the strict inequality .
Does continuity everywhere except at a few points still guarantee integrability?
Yes, but this is a stronger and separate theorem not proved in this article: a bounded function on a closed rectangle is Riemann integrable if its set of discontinuities has Lebesgue measure zero (Lebesgue's criterion for Riemann integrability). Continuity everywhere, proved here, is the special case where the discontinuity set is empty. Finitely many discontinuities, or discontinuities along finitely many line segments in , still constitute a measure-zero set, so such functions remain integrable — but this requires measure-theoretic machinery beyond the compactness/uniform-continuity argument given here.
How does this definition connect to the later Fubini's Theorem?
This article defines as a single number obtained directly from -dimensional partitions and sums — it says nothing yet about computing that number via nested single-variable integrals. Fubini's Theorem is the separate (and computationally crucial) result that, under mild hypotheses, this -dimensional integral equals an iterated integral, e.g. for . Riemann's Criterion proved here is typically a key ingredient in proving Fubini's Theorem, because one needs to know the multiple integral exists before showing it matches the iterated one.
Why can't we just define the integral using only one partition, say the "obvious" uniform grid?
Using only uniform grids and taking a limit as the mesh size shrinks to does, in fact, give the same integral when is integrable — this is a standard equivalent formulation. But the definition via upper/lower sums over all partitions is more fundamental because it directly produces a genuine number (the upper integral, an infimum, and lower integral, a supremum) without needing to first prove a limit exists. It also makes the non-integrability proofs (like Example 2) airtight: showing some clever partition fails is not enough to prove non-integrability, but showing every partition gives the same fixed gap is exactly what the all-partitions definition demands and what Example 2 verifies.
Does the theorem require to be a "rectangle" in the strict sense, or does it work for other shapes?
The construction here is specific to rectangles (products of closed intervals) because partitioning each side independently is what produces the grid of sub-rectangles with cleanly additive volumes. For more general bounded regions , one typically extends the integrand by zero to a rectangle and integrates the extended function over — this is exactly the strategy used in Integrals over General Regions, and it relies on the rectangle theory developed here as its foundation.
What role does compactness play beyond just " is closed and bounded"?
Compactness (via Compactness in R^n) is used twice in the continuity theorem: first, to guarantee that continuous is uniformly continuous on (not merely continuous at each point), which is what lets a single work for the entire rectangle simultaneously; second, to guarantee that attains an actual maximum and minimum on each closed sub-rectangle (extreme value theorem), so that and are honest function values whose difference can be bounded using uniform continuity. Without compactness, both of these could fail, as illustrated by unbounded or open domains where suprema/infima are not attained or are infinite.