Proof
Complete rectangle and slicing proofs
Fix an integer and the Euclidean norm on . A set is bounded if it lies in some finite-radius ball, closed if its complement is open, and compact if every cover by open subsets of has a finite subcover. We use real completeness, including the nested closed interval property.
Heine–Borel in finite-dimensional Euclidean space
Theorem. A set is compact if and only if it is closed and bounded. The empty set satisfies all three properties.
Compact implies bounded. The open balls , an integer, cover . A finite subcover puts inside the largest of these balls.
Compact implies closed. Suppose and . The balls , , cover . Choose a finite subcover with centers and set . If lies in the ball centered at , the triangle inequality gives . Hence misses , so the complement is open.
Closed and bounded implies compact. Let nonempty be closed and bounded. Enclose it in a closed cube with . Suppose an open cover of has no finite subcover. Divide each coordinate interval into two closed halves. The resulting closed subcubes cover . At least one subcube has intersection with that is not finitely coverable by the given family; otherwise the finite union of the finite subcovers would cover . Select such a subcube and repeat. This produces nested closed cubes with side length and not finitely coverable, hence nonempty.
For each coordinate, the nested interval property gives a common coordinate value. Together these give . Every pair of points in has distance at most , so the intersection contains only . Choose . Then . A closed set contains such a limit: if were in its open complement, a ball around would eventually contain outside , a contradiction. Thus .
One member of the cover contains , and openness gives for some . For sufficiently large , every point of is within of , so alone covers . This contradicts the selection of . Therefore every open cover has a finite subcover. The number is finite; replacing it by infinitely many subpieces would invalidate this argument.
Continuous images and extreme values
Theorem. If is compact and is continuous relative to , then is compact. In particular, a continuous on nonempty compact is bounded and attains its maximum and minimum.
Proof. An open cover of pulls back to relatively open sets , with open in . These cover , so finitely many suffice. Their corresponding cover , proving compactness. For scalar , the image is nonempty, closed and bounded by the theorem already proved in dimension one. Let . For each , the definition of supremum supplies with . Then , and closedness places in the image. Thus the maximum is attained. Applying the same argument to gives the minimum. This proves existence, not a formula for the maximizing input.
Compactness gives boundedness and uniform continuity
Let , , be compact, and let be continuous relative to . Compactness means the finite-subcover property. The empty set is harmless. At each , continuity supplies such that for . A finite selection of these balls covers ; the largest of the finitely many numbers bounds .
For , instead choose such that whenever . Finitely many balls cover . Put . If and , choose with . Then both belong to , so . This proves uniform continuity using the relative topology; no extension off was used. Closed bounded subsets of finite-dimensional Euclidean space are compact by the separately included Heine–Borel proof. This argument neither uses integration nor assumes a Fubini theorem.
Product-grid Darboux criterion and arbitrary rectangular tags
Let , with finite , , and let satisfy . A product grid consists of partitions , . Its cells have areas . Define , , and
Each tagged sum lies between these two numbers. Refinement increases and decreases , because the subcell areas sum to the parent area. Two grids have a common refinement obtained by taking both sets of coordinate cuts. Consequently for all grids. Real completeness defines . These are finite. They coincide with a number if and only if, for every , some grid has . Indeed that gap bounds ; conversely choose an upper sum within of , a lower sum within of , and refine both.
Here is the bridge to arbitrary subrectangles in the original definition. A rectangular tiling is a finite cover of by closed axis-parallel positive-area rectangles with disjoint interiors; common edges may overlap. Its mesh is the largest cell diameter. Its lower and upper sums are defined in the same way. Taking every cell-edge coordinate gives a product-grid refinement, so its lower sum is at most , and its upper sum is at least .
Fix a product grid with gap less than . Let it have internal vertical lines and internal horizontal lines. In any tiling of mesh less than , call a cell bad if it meets one of these lines. A bad cell lies in a strip of width about a line. Thus the sum of the bad-cell areas is at most
This is an elementary finite-area estimate: refining all rectangle and strip edges reduces it to addition of disjoint cell areas, without using an integral. Every other cell is contained in one cell of . Its contribution to the oscillation sum is bounded by that parent-cell oscillation times its area; summing the good cells gives at most . On bad cells the oscillation is at most . Hence
Choose so the last term is less than ; when its coefficient is zero there is no restriction from that term. Every tag choice then gives a sum within of . This proves convergence for every sufficiently fine rectangular tiling, not only for grid refinements.
Conversely, if all tagged sums on sufficiently fine rectangular tilings approach , this holds for product grids. On a fixed fine grid choose each tag within of its cell supremum in function value; the resulting sum differs from by at most . Such tags exist by the definition of supremum; use infima for . The assumed uniform control of every tag choice, followed by , makes arbitrarily small. Thus the bounded-function Darboux criterion and the original arbitrary-diameter tagged definition agree.
The one-dimensional version is proved by the same construction with intervals and lengths. Explicitly, refine at the union of cuts; a fine interval that meets one of fixed interior cuts contributes to bad total length at most . The same -oscillation estimate proves equivalence with all fine interval tags, and near-supremum/infimum tags give the converse. We use this proper one-dimensional Riemann integral below. Sums of tagged sums prove linearity; pointwise comparison proves monotonicity; refinement at a fixed cut proves interval additivity. In detail, if a function is integrable on the whole interval, refine a small-gap partition at the cut: each subinterval gap is at most the total gap, proving integrability of both restrictions. Conversely, join small-gap partitions of the two restrictions; lower and upper sums add, so the integral of the whole is the sum of the two limits. Constants have integral equal to value times length. These statements also follow directly by taking the just-proved tagged limits. A bounded change supported on finitely many points has integral zero: isolate those points in finitely many intervals of arbitrarily small total length, and bound the upper sum of its absolute value by its bound times that length. Therefore endpoint values do not change a proper integral.
If either side length of is zero, define every area sum and the double integral to be zero. An integral over a zero-length interval is also zero. The positive-area argument above is not applied after dividing by a zero area.
Fubini with an integrable function and all integrable sections
Assume , , that bounded is Riemann integrable, and that for every the section is properly Riemann integrable on . Put . Then . We prove that is properly Riemann integrable and
For any product grid use its above and set , . For every , one-dimensional additivity and comparison give . Taking infima and suprema in that entire closed -interval yields
Given , integrability of supplies a grid with . The displayed inequality makes the outer Darboux gap less than , proving outer integrability rather than assuming it. Both and lie in ; their difference is at most , so they are equal. If instead all horizontal sections are properly integrable, the identical argument with the coordinate names exchanged gives the horizontal formula. Both orders are asserted only when both sets of sections exist. For a zero-width rectangle, the same equality holds whenever the displayed section integrals exist, since an outer or inner interval has zero length.
Continuous rectangle and interval integrability
Let be continuous relative to the closed rectangle . If , compactness and the finite-cover proof give boundedness and uniform continuity. For any , choose such that points less than apart have function values differing by less than . A grid whose cell diameters are less than has
The Darboux criterion proves integrability, and its tiling bridge proves the original arbitrary-rectangle tagged definition. On a compact interval the identical proof uses length instead of area, with zero-length intervals handled separately. Each fixed-coordinate section of continuous is therefore properly integrable. The proved section theorem gives both iterated formulas. Moreover is continuous: its difference at is bounded by
which tends to zero by uniform continuity. If a side of has zero length, continuous sections still have their one-dimensional proper integrals, and all relevant double/iterated integrals are zero. No nonsingular-change-of-variables or measure-theoretic theorem is involved.
Continuous graphs have arbitrarily small rectangle covers
For continuous , , its graph can be covered by finitely many open axis-parallel rectangles with total area less than any prescribed . To prove this, write . Choose positive with . Uniform continuity permits a partition on each interval of which the oscillation is at most . Let be the infimum and supremum on that interval. The open rectangles
cover the graph, including the cut points. Their total area is at most , which is less than when is sufficiently small. A finite vertical or horizontal line segment has such covers as well, by putting it in a thin open rectangle; a single point is covered by a small square. Finite unions of these graphs and vertical or horizontal segments inherit the property by splitting the allowed total area among their finitely many members.
We will also need control of cells that touch such a compact set , not just of the points in . Choose a finite open-rectangle cover of with total area below . For each , choose a ball contained in one rectangle. Finitely many cover . For , every cell of diameter less than meeting is contained in one of the chosen rectangles: use a meeting point and the triangle inequality. Disjoint-interior cell areas therefore sum to less than , by finite rectangle-area addition. This is the precise zero-area property used below; no assertion about arbitrary irregular boundaries is made.
Continuous Type-I regions without an ambient extension
Let be finite, let continuous satisfy everywhere, and let
Assume only that is continuous relative to . The set is bounded, because are bounded. It is closed: limits of points in retain and both inequalities by continuity. Equivalently, a point outside the interval or strictly violating an inequality has a small open ball missing . Hence is compact. Thus and is uniformly continuous on , even though it need not extend to any surrounding rectangle.
First suppose , and choose strictly below all -values and above all -values, respectively. On define on and off . Boundary points of lie on the two graphs or on the two vertical edge segments. Indeed a point with and is interior by continuity, and a point outside the closed set is not a boundary point unless it is a limit of . The finite graph/segment union is compact and has the small-cover property just proved.
For a fine product grid, call cells meeting bad. Their total area is below any chosen . Every other cell lies entirely in or entirely outside it: otherwise the straight segment joining an inside to an outside point has a first exit from the closed set , hence a boundary point in the cell, a contradiction. Uniform continuity bounds the oscillation on each good inside cell by any chosen ; on a good outside cell it is zero. The oscillation on every bad cell is at most . Taking a mesh small enough for both requirements gives
For a requested error , choose and . This proves that the bounded zero extension is properly Riemann integrable. Only differences of values of at two points of were used; continuity of an ambient extension was never assumed.
For fixed , the restriction of to the closed interval is continuous. Splitting at its endpoints, and ignoring the finitely many endpoint values, proves that every section of is properly integrable and
When the two endpoints coincide, the section of is supported at one point and both integrals are zero. The bounded-function section theorem now proves existence of the outer proper integral and the Type-I formula
The same good/bad-cell proof works on any positive-area axis-parallel bounding rectangle containing : its boundary-control set is unchanged, and outside the extension is still zero. Every vertical section with outside is zero. At every , including , the preceding proper-section splitting applies. Thus the proved section theorem on that bounding rectangle, followed by one-dimensional interval additivity and endpoint invariance, gives the same displayed right side. The definition is therefore independent of the bounding rectangle; this assertion does not assume a continuous ambient extension. Bounded changes confined to also leave the double integral unchanged, since their absolute upper sums are bounded by their bound times the bad-cell area.
In fact the inner integral is continuous. For , compare the two integration intervals on their overlap; there the values , are both defined in . Uniform continuity bounds their difference by when is small. The remaining pieces have total length at most . Hence
This tends to zero; it also covers empty overlaps and collapsed intervals. If everywhere, the whole region is a graph: both sides of the Type-I formula are zero. If , is a vertical segment, its double integral is zero by a thin-rectangle cover, its one section is properly integrable by continuity, and its outer zero-length integral is zero. Interchanging the coordinate names proves the horizontal Type-II assertion under continuous ordered horizontal bounds and relative continuity on that same region. Nothing here asserts Fubini for arbitrary Jordan regions, nonintegrable sections, unbounded functions, or improper integrals.
From area sums to accumulated quantity
If is a density per unit area, multiplying a sampled density by a small area estimates the quantity in that cell. Add over cells and refine. The result is signed if can be negative: it is not automatically a physical mass or an unsigned volume.
Definition
Double integral on a rectangle
Let . Partition into subrectangles of areas and choose . If the sums approach the same limit as the maximum subrectangle diameter tends to zero, regardless of the choices, that limit is . Every continuous function on a closed rectangle is integrable.
For a bounded region with suitable boundary, define the integral over as the integral of over . This accommodates regions described by inequalities; sufficiently regular boundaries have area zero, so changing values only on the boundary does not alter the integral. The integral of over gives its area. For , is the volume under the graph above .
Theorem
Fubini and slicing
For finite endpoints , , if is continuous relative to the rectangle , then
Let finite and continuous satisfy everywhere. If is continuous relative to , with no ambient extension assumed, the first formula becomes
The horizontal-slice formula applies for finite and continuous with everywhere, when and is continuous relative to .
The inner differential is integrated first. Its bounds may depend on variables held fixed, while the outer bounds are constants in this two-variable setup. A region may need splitting into pieces before one description is valid. These convenient sufficient assumptions do not cover every possible integrable function or irregular region.
Proof
Why slicing is natural
For a rectangle, group the two-dimensional Riemann sums by vertical columns. Within each column, the inner sum approximates the integral in for a fixed , and the remaining sum approximates the outer integral. Continuity on the compact rectangle supplies the uniform control needed for the limiting argument. For a simple region, integrate the indicator-extended function over a rectangle; slices outside the lower and upper boundaries contribute zero. This explains the formulas; the theorem supplies the full convergence justification.
Worked example
Draw the region before computing
Let be between and for . For ,
Horizontal slices have and , so the same integral is . The inequalities reverse roles; simply exchanging the differentials without changing the bounds changes the region.
Worked example
Switch order to make an integral elementary
Consider . The inner antiderivative is not elementary. The region is , so
The order change follows from continuity and the correct region description, not a formal interchange of symbols.
Properties and method selection
Linearity and additivity over nonoverlapping pieces reduce complicated expressions or regions. If throughout , then ; in particular . For a continuous density , mass is . When , the centroid is .
Use vertical slices when their limits are simpler; use horizontal slices when they simplify the region or inner antiderivative. Split the region only when a single pair of bounds cannot describe all slices. Polar or other changes of variables can simplify circular or transformed regions, but require a Jacobian and a separate change-of-variables theorem; they are not automatic replacements for .
Practice
- Evaluate .
- Reverse the order in and state the region.
- Compute the area between and for .
- A lamina occupies with density . Find its mass and centroid.
Full solutions
- .
- The region is . Horizontal slices give .
- The area is .
- . The first moment in is , and the first moment in is . Therefore .
Synthesis
The integral accumulates a quantity per unit area, while an iterated integral computes the same accumulation slice by slice under suitable hypotheses. Region geometry determines bounds; a reversed order must describe exactly the same set. Later coordinate changes and vector integral theorems build on this accounting of geometry and orientation.