Let on and let have interior division points. At most cells of the equal-length partition have one of those points in their interior. Their total length is at most , and their oscillation is at most . Every other cell lies in a single cell of . Therefore
This comparison of Darboux sums avoids the incorrect assumption that refines for all large .
If is Riemann integrable and is Lipschitz on an interval containing the range of , then is Riemann integrable. With Lipschitz constant , the oscillation on each partition cell satisfies , and hence the gap between Darboux sums is multiplied by at most . A continuously differentiable is Lipschitz on each closed bounded interval by the mean value theorem and the extreme value theorem applied to .
For a nondecreasing function, the endpoint bounds show it is bounded. On the uniform partition into intervals, its Darboux sums satisfy
For a nonincreasing function apply the same calculation to , or use . Thus every monotone function on is Riemann integrable.
For the unheaded rational-weight example, each summand is nonnegative, and increasing only adds indices. Hence its sum is nondecreasing and lies between zero and one, including the separately specified value at zero. It is a left-continuous cumulative function of an atomic measure.
If and , the index appears in the sum at but not at . All other changes are nonnegative, so . This remains true for arbitrarily small positive , proving discontinuity at , including a right discontinuity at zero when that rational is encountered. Every interval of positive length contains such a rational in its interior. The discontinuities are therefore dense, although the function is Riemann integrable by the monotone-function result just proved.
More concretely, truncate after the first weights. The resulting finite sum of step functions is integrable, and the uniform tail is at most . This also proves integrability and gives, if its value is desired,
The integral formula follows by integrating the finite sums and using the uniform tail bound. Here “every interval” has the usual nondegenerate-interval meaning; a singleton is not being asserted to contain a discontinuity.
Assume . The function is bounded, and every interval has lower Darboux sum zero because it contains an irrational. Given , choose so that for . Put small intervals around the finitely many points whose total length makes their contribution to the upper sum less than , and refine their endpoints to a partition. On every remaining subinterval the function is at most , so the upper sum is less than . The Riemann integrability criterion proves that is Riemann integrable with integral zero.
The condition is sufficient but not necessary. Assign when for some positive integer , and otherwise. Then does not tend to zero. Outside a short interval near zero only finitely many unit spikes occur and can be enclosed in intervals of arbitrarily small total length; all remaining values can be made uniformly small except for finitely many further points. The same Darboux-sum argument proves that this is Riemann integrable with integral zero.
It is enough to treat an increasing function; replacing by handles a decreasing one. Let be the common refinement of dissections and . Refinement raises lower Darboux sums and lowers upper ones, so
For the uniform dissection , monotonicity gives the telescoping difference
This can be made smaller than any , so the Riemann integrability criterion proves that is integrable.
The integral lies between the lower and upper sums, and the displayed sum in the question is the right-endpoint upper sum. Hence the generally valid sharp estimate is
The strict inequality printed in the question is false for arbitrary monotone functions: if for and , the two sides of (1) are both .
For the final claim, write
Since is continuous on a compact interval, it is uniformly continuous. Uniformly for ,
After the substitution , summing the uniform errors gives
The right-hand sum is a Riemann integral, so the fundamental theorem of calculus yields