Upper and lower sums
The Riemann integral is defined by trapping a bounded function between lower and upper sums taken over partitions. The definitions and criteria that follow are the tools for every integrability argument in this unit.
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
(Why continuity suffices)
A continuous function on a compact interval is uniformly continuous. Given and , choose so that points less than apart have output difference less than . A partition with mesh below has oscillation on every subinterval at most that bound, hence . The Darboux criterion yields integrability. For the integral is zero by convention.
Worked example 4.1.1
(A bounded function that is not integrable)
Let for rational and for irrational . Both sets are dense, so every nondegenerate subinterval has supremum and infimum . Every upper sum is and every lower sum is . The criterion fails: this bounded function is not Riemann integrable.
Infinitely many discontinuities can still be integrable
The previous example is discontinuous everywhere and is not integrable. The finite-discontinuity theorem does not say what happens when there are infinitely many discontinuities. The following function shows why counting exceptional points alone is insufficient: the height of their contributions matters too.
Counterexample mode
An integrable function discontinuous at every rational point
Define by
For example, , while too: reduce the fraction before taking its denominator. In particular . This is sometimes called Thomae's function. It is bounded between zero and one, is discontinuous at every rational point, and is continuous at every irrational point. Yet its Riemann integral is zero.
Proof X-ray
Control the tall spikes with finitely many short intervals
Fix and choose a positive integer with . Only finitely many rationals in have reduced denominator at most : for each denominator there are finitely many possible numerators. Surround these exceptional points by finitely many intervals of total length less than . Use one-sided intervals at and , choose the other endpoints away from the exceptional points, and merge overlaps if necessary. Include the resulting endpoints in a partition .
On intervals inside this small union, . Every other partition interval contains no exceptional point, including at its endpoints, so its supremum is at most . Consequently
Every nondegenerate partition interval contains an irrational number, so its infimum is zero and . The Darboux criterion now proves integrability, and the common upper and lower integral is zero. In the rational-indicator example every interval has supremum one; here the values away from finitely many tall spikes can all be made uniformly small.
To check the continuity claims, take an irrational and any . Choose a positive integer with . The finite set of rationals with reduced denominator at most has positive distance from . In a sufficiently small neighbourhood of , all values of are at most , so they are within of . At a rational , irrational points of approach with function value zero, while ; hence is discontinuous there, including at the endpoints using one-sided limits.
Fundamental theorem of calculus
Theorem 4.1.2
(Integral and derivative)
If is continuous on , the accumulation function is differentiable on with . If is continuous on , differentiable on , and for , then .
Proof
(Average-value estimate)
For small nonzero with ,
Continuity makes the absolute value of the right-hand side arbitrarily small, including for negative with oriented-integral convention. Thus . Both and are continuous on , and has derivative zero on , so it is constant by the mean value theorem; evaluating endpoints gives the second conclusion.
Worked example 4.1.3
(Integrate a continuous function)
For on , is an antiderivative. The theorem gives . The antiderivative shortcut rests on the theorem, not the definition of an integral.
Worked example 4.1.4
(The accumulation function at a jump)
Let on and on . It is monotone and bounded, hence integrable on every subinterval. Put .
For , vanishes on except possibly at the single point , so . For , additivity gives . Hence
Since , , so is continuous everywhere. At the left difference quotients are and the right difference quotients are , so is not differentiable at , exactly where is discontinuous. At every other point of , is continuous and , as the first part of the theorem predicts. The theorem needs continuity of at the point where is computed; integrability alone gives only continuity of .
Method comparison
Use upper and lower sums to prove integrability or produce a counterexample. Use uniform continuity to control oscillation for continuous functions. Once integrability and an antiderivative are available, the fundamental theorem evaluates the integral efficiently. Boundedness alone does not imply Riemann integrability.
Quick checks
Quick check
(For on and , compute and .)
On each cell the infimum and supremum of an increasing function occur at the endpoints.
Solution · Answer
On the infimum is and the supremum is ; on they are and . Hence and . The gap is , and the integral lies between the two sums.
Quick check
(For , let . Find .)
Split the integral at a fixed point so that both limits become upper limits.
Solution · Answer
Let . The integrand is continuous, so the fundamental theorem gives . Since , the chain rule gives
Quick check
(Let at the points () and at every other point of . Is integrable? If so, find its integral.)
The finite-discontinuity theorem does not apply: is discontinuous at every and at . Use the Darboux criterion directly.
Solution · Answer
Every nondegenerate cell contains points where , so for every partition. Fix . Only finitely many points exceed ; say there are of them. Take the cell , which contains all the other points , and around each of the points a cell of length less than , choosing all new endpoints different from every . These cells have total length less than , and on them; on every remaining cell . Hence , so is integrable, and since for every , its integral is .
Practice
- Compute by the fundamental theorem.
- Why is every continuous function on Riemann integrable?
- For the rational-indicator function above, find the upper and lower sum of any partition.
- If , compute .
Full solutions
- An antiderivative is , giving .
- Continuity on a compact interval implies uniform continuity, hence partitions with arbitrarily small upper–lower gap exist.
- Every subinterval contains rational and irrational points, giving . Hence .
- Since cosine is continuous, the first fundamental theorem gives .
Synthesis
Darboux sums define an integral through controlled upper and lower approximations. Uniform continuity guarantees integrability of continuous functions, and the fundamental theorem connects accumulated area to differentiation.