For a bounded real function, inserting partition points increases its lower Darboux sum and decreases its upper Darboux sum. This follows interval by interval because infima increase on smaller sets while suprema decrease, and the new widths sum to the original width. A common partition refinement consequently proves for arbitrary two partitions.
For a partition , put and
Boundedness makes these finite. The lower Darboux sum and upper Darboux sum are
Since and the widths are positive, .
Splitting a partition interval into smaller intervals can only increase each infimum and decrease each supremum. The smaller widths sum to the original width. Its new lower contribution is therefore at least its old lower contribution, and its new upper contribution at most its old upper contribution. Repeating this for every inserted point proves Darboux sum refinement monotonicity:
For arbitrary partitions, take their common partition refinement . Then
No compatibility of the original partitions is required.
Finally suppose is Riemann integrable. Then , so every product factor is nonnegative and the exponential inequality can be multiplied safely:
A lower Darboux sum is no greater than the Riemann integral, since the integral equals the supremum of all lower sums. Monotonicity of the exponential therefore gives the exponential bound for a lower-sum product
For a degenerate interval , the empty product and the exponential are both one.
For a bounded real function on , take a partition with nodes . Its lower Darboux sum and upper Darboux sum are
The function is Riemann integrable when ; their common value is its Riemann integral. Equivalently, for every some partition has . Indeed a common refinement of nearly extremizing upper and lower partitions proves necessity, while arbitrarily small gaps force equality of the two integrals. This is the Riemann integrability criterion.
A continuous function on a compact interval is bounded and uniformly continuous. Choose a mesh small enough that its oscillation on each subinterval is less than . Then ; using first makes the desired inequality strict. Thus every continuous function on is Riemann integrable.
For a partition , write and for the upper Darboux sum and lower Darboux sum. The Riemann integrability criterion for bounded is that for every some partition satisfies . Thus if the gaps for tend to zero, the Riemann integrability criterion immediately proves that is Riemann integrable.
Conversely, suppose is Riemann integrable, and choose a fixed partition with . Let be the number of its interior division points and choose with . Call a cell of bad when its interior contains a division point of . There are at most bad cells, and their total length is at most .
Every other cell lies in a single cell of , so its oscillation is no larger than that of the containing cell. Summing the contributions of these good cells gives at most , while each bad cell has oscillation at most . Therefore the finite bad-cell estimate for Darboux sums gives
For large enough , the right-hand side is less than . This proves the uniform-mesh Darboux criterion
This argument does not assume that the partitions are nested; in general they are not.
For the composition, takes values in . Since is continuously differentiable, the extreme value theorem bounds both and on that interval. In particular, let . The mean value theorem states that a function continuous on the interval between and differentiable in its interior satisfies for some intermediate . Hence
On each partition cell, this bounds the oscillation of by times the oscillation of , whether or not the local extrema are attained. It follows that
The composition is bounded, so the proved uniform-mesh Darboux criterion applies. Thus is Riemann integrable. The reusable fact is Lipschitz composition preserves Riemann integrability; continuous differentiability supplies the required bound on the range of .
Let be the supremum of all lower Darboux sums and the infimum of all upper Darboux sums. The assumed comparison of arbitrary lower and upper sums gives . For the partition supplied for a given ,
Since this holds for every positive , . Thus the Riemann integrability criterion gives
If is continuous on , the Heine-Cantor theorem makes it uniformly continuous. Given , choose so that intervals of length below have oscillation below . A partition of mesh below then satisfies
proving that Continuous functions are Riemann integrable.
For the function defined using , choose with . Given , choose so small that . On , the function is continuous and therefore has a partition whose upper-minus-lower sum is below . Adding the interval contributes at most , regardless of the value . Hence the full Darboux-sum difference is below , and
Finally, for any partition , the mean value theorem supplies such that
Summing telescopes to
a Riemann sum for the Riemann-integrable function . Equivalently, every lower derivative sum is at most this telescoping value and every upper derivative sum is at least it. Taking the common upper and lower Darboux integrals proves the fundamental theorem of calculus conclusion
For a partition of an interval , put
The upper Darboux sum and lower Darboux sum are
The upper and lower integrals are
The bounded function is Riemann integrable when these values agree, and their common value is its Riemann integral.
For the indicator of the rational numbers, every nondegenerate interval contains both a rational number and an irrational number. Hence every upper sum is one and every lower sum is zero. The function is not Riemann integrable.
A bounded function on is Riemann integrable if and only if its upper Darboux sum minus its lower Darboux sum on the equal-length partition tends to zero. Sufficiency follows directly from the Riemann integrability criterion. Necessity follows by comparing with a fixed partition whose gap is small and using the finite bad-cell estimate for Darboux sums. The equal-length partitions need not be nested.