Proof
(Prerequisite proofs used below)
This block proves the Heine–Borel theorem and the extreme value theorem, and then shows that a continuous function on a closed bounded interval is uniformly continuous. Boundedness of continuous functions and uniform continuity are what the Darboux-sum arguments below require.
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.
Continuous real functions on a closed interval are uniformly continuous
Let be finite real numbers and let be continuous relative to this interval. Uniform continuity means that for every there is such that all with satisfy . Fix . For each , relative continuity gives such that for interval points with . The intervals cover the compact interval. Choose a finite subcover with centres , and set . The cover is nonempty since is nonempty. Given as above, choose with . Then , so the triangle inequality gives . The same works for all points. This includes a singleton interval and uses the actual finite-cover compactness theorem, rather than citing an unproved scalar Heine–Cantor assertion.
Darboux sums and integrability
Develop the proof behind integrability statements and distinguish boundedness from integrability. Let and be bounded on . For a partition , put , , and define , . The lower integral is the supremum of all lower sums; the upper integral is the infimum of all upper sums. Refining a partition makes lower sums nondecreasing and upper sums nonincreasing.
For any two partitions , their common refinement gives , so . Boundedness ensures these quantities are finite. The function is Riemann integrable when they agree.
Theorem: Darboux criterion
The bounded function is integrable if and only if for every there is a partition with .
Proof. If the two integrals equal , choose a lower sum above and an upper sum below , using supremum and infimum approximation. Their common refinement has gap less than . Conversely the inequalities force the integral gap to be zero when such partitions exist for every positive .
Theorem: bounded monotone functions are integrable
For nondecreasing , take a uniform partition with intervals of width . On interval , the infimum and supremum are the endpoint values. Hence
The criterion proves integrability even if has jump discontinuities. For a nonincreasing function apply the result to .
Theorem: finitely many discontinuities are permitted
If is bounded and continuous except possibly at finitely many points, it is integrable.
Proof. Let , taking . Surround the exceptional points by finitely many small intervals, with endpoints included in the partition, having total length less than . At endpoints of use one-sided intervals. Their contribution to the upper-lower gap is at most times their total length, hence less than . On the remaining finitely many closed intervals, is continuous and therefore uniformly continuous. Subdivide each sufficiently finely that its oscillation on every resulting subinterval is less than . Their total gap is less than . Combining all partition points gives gap below . If an exceptional interval endpoint would itself be exceptional, move it slightly so all actual exceptional points lie inside the selected intervals or at the domain endpoints. This keeps the remaining closed intervals continuous.
Proof X-ray
Splitting the error budget between bad and good points
The proof spends half of on each of two different kinds of control. Near the exceptional points nothing is known except the bound , so the gap is made small by making the intervals short: their contribution is at most times their length. Away from those points the length cannot be made small, so the oscillation is made small instead, and uniform continuity on each closed piece supplies one mesh that works throughout that piece. Boundedness is what controls the bad points; finiteness of their number keeps the covering intervals, and hence the partition, finite.
Worked examples and stability
A single jump. On , let for and for . It is monotone and integrable, with integral . A partition isolating in an interval of arbitrarily small length makes the only nonzero oscillation contribution arbitrarily small. The value at the jump does not alter the integral.
A bounded nonintegrable function. The rational indicator is one on rational inputs and zero on irrational inputs. Both are dense, so every nondegenerate interval has oscillation one. Every partition on has , violating the criterion.
If is integrable, so is , because makes its interval oscillation no larger. If are bounded integrable, their product is integrable: with bounds , the oscillation of is at most times that of plus times that of . Choose partitions controlling both gaps and take their common refinement.
Worked example 3.1.1
(The integral of x² from the Darboux sums alone)
Let on and let be the uniform partition . Since is increasing on , the infimum and supremum on are and . With and ,
Their difference is , in agreement with the monotone formula; for the sums are and . Every lower sum is at most every upper sum, so for every . Both outer expressions tend to , hence
This computation uses only the definition and the comparison of lower and upper sums; no antiderivative was needed.
Worked example 3.1.2
(Computing both integrals of a function that is not integrable)
On let for rational and for irrational . Take any partition .
Every nondegenerate cell contains irrational points, where , and everywhere. Hence , for every , and .
On the same cell , and rational points of the cell approach , so even when itself is irrational. Then
For the uniform partition, , which tends to . Thus . The two integrals differ, so is not Riemann integrable, and every partition has : no refinement can bring the gap below one half.
Worked example 3.1.3
(An explicit partition for sin(1/x))
Let for and . It is bounded by and continuous except at , so the finite-discontinuity theorem applies. The proof can be carried out with explicit numbers. Fix and put .
The cell has oscillation at most , so it contributes at most to .
On , is differentiable with . The mean value theorem gives there, so a cell of length at most has oscillation at most . Divide into cells of length at most , where . Their total length is , so their contribution is at most .
Together, for this partition . The two halves of the budget are spent exactly as in the proof: length near the bad point, oscillation away from it. The mesh shows how much finer the partition must be where the function oscillates rapidly.
History of an idea
From Riemann's question about trigonometric series to Darboux's sums
The integral studied in this unit was shaped by a problem about series. MacTutor's biography of Bernhard Riemann reports that his Göttingen Habilitation dissertation was on the representability of functions by trigonometric series, and that in it he gave the conditions for a function to have an integral, what is now called the condition of Riemann integrability; he needed to know which functions can be integrated before he could ask what a trigonometric series says about the function it represents. MacTutor's biography of Gaston Darboux reports that in 1875 Darboux published his way of looking at the Riemann integral: he defined upper and lower sums and called a function integrable when the difference between them tends to zero as the mesh of the partition becomes small.
This unit uses Darboux's organization. Upper and lower sums replace the choice of sample points, the criterion replaces a limit over all Riemann sums, and the proofs above become estimates of total oscillation.
Quick checks
Quick check
(For on and the uniform partition into pieces, find . Which make the gap less than ?)
The function is nondecreasing, so the monotone formula applies.
Solution · Answer
The monotone formula gives . The condition holds exactly when , that is, for every .
Quick check
(Let on and on . Compute and for , then find a partition with and the value of the integral.)
The value belongs to both closed cells that meet at .
Solution · Answer
On the infimum is and the supremum is , because ; on both are . Hence and . For take . Only has positive oscillation, equal to , so , which is below when . Since and , the integral is .
Quick check
(Suppose is bounded on and for one partition . What can you conclude about ?)
Write as a sum of nonnegative terms.
Solution · Answer
is a sum of nonnegative terms with , so it vanishes only if on every cell. Then is constant on each closed cell . Adjacent closed cells share an endpoint, so these constants agree, and is constant on all of .
Graded practice
- Foundation. Estimate for on with equal subintervals.
- Core. Compute the integral of on and justify integrability.
- Core. Prove that changing finitely many values of an integrable bounded function preserves its integral.
- Proof. Does integrability of imply integrability of ? Supply a bounded counterexample.
Full solutions
- The monotone formula gives . Thus guarantees gap below .
- The function is monotone and bounded. It equals zero, one and two on the interiors of the three unit intervals, so the integral is . Endpoint values at integers do not contribute a positive-length interval.
- The difference is zero except at finitely many points and bounded by some . Cover those points by intervals of total length as small as desired and include endpoints in a partition. Upper and lower sums of then have absolute magnitudes at most times that total length; their common integral is zero. Thus adding preserves both integrability and the integral value.
- Let at rational points of and at irrational points. Then is integrable. But every upper sum for is one and every lower sum is minus one, so is not integrable. The one-way implication cannot be reversed.
Summary and term definitions
The oscillation on an interval is supremum minus infimum. Refinement adds partition points and improves the upper-lower estimates. Riemann integrability requires boundedness and arbitrarily small total weighted oscillation, not continuity at every point. The criterion supplies direct proofs for jumps and stability operations, while dense oscillation can defeat every possible partition.