Integrability of Monotone Functions
Consider the function that rounds a real number down to the nearest integer. It is restricted to . It jumps ten times, and is discontinuous at every integer in its domain. Yet a natural picture of the area under its graph is unambiguous. This picture is a staircase of rectangles. This raises a basic question at the heart of integration theory. Does a function need to be continuous for the Riemann integral to make sense of it? The answer is no. Monotone functions are the cleanest possible witness to this fact. This matters because continuity is a strong and sometimes unavailable hypothesis. Many functions arising naturally are monotone but not continuous. Examples include cumulative distribution functions in probability, inverse functions of continuous strictly monotone maps, and sorted rearrangements of data. If integrability required continuity, huge swaths of applied and theoretical mathematics would lose access to the integral. Monotone functions give the first real test case. They show that Riemann integrability is a genuinely weaker demand than continuity. The big picture is this: Riemann integrability is governed by how "small," in a precise sense, the set of discontinuities of a function can be. This theme culminates later in Lebesgue's Criterion for Riemann Integrability. Monotone functions are the perfect warm-up. Their discontinuities are always jump discontinuities. There can only be countably many of them on a bounded interval, no matter how wild the function looks. This article proves, from the Cauchy Integrability Criterion alone, that every bounded monotone function on a compact interval is Riemann integrable. We give the precise definition of monotonicity relevant here. We build geometric intuition with a staircase picture. We prove the integrability theorem in full, using only Riemann sums and partitions. We work two asymmetric numerical examples. Finally, we exhibit exactly what fails if boundedness or the compactness of the interval is dropped.
- A function is monotone if it is nondecreasing or nonincreasing throughout .
- Every bounded monotone function on is automatically bounded — monotonicity plus finite endpoint values force it.
- The theorem: every monotone function on a compact interval is Riemann integrable on .
- The proof uses only equally spaced partitions and the Cauchy Integrability Criterion — no continuity is assumed anywhere.
- Monotone functions can have infinitely many discontinuities (e.g. one at every rational), yet remain integrable.
- Key idea: on a monotone function, refining a partition into equal pieces shrinks the total oscillation of Riemann sums to a multiple of , which forces the upper and lower sums together as .
Where this lives today
Monotone functions and their integrability underpin probability theory, where every cumulative distribution function is nondecreasing, frequently has jump discontinuities (at atoms of the distribution), and yet integrals against (Riemann–Stieltjes integrals) are exactly what define expectations of random variables — the integrability theorem here is the base case making that machinery well-posed. In real analysis and measure theory, the countability of the discontinuity set of a monotone function (proved above) is the prototypical example motivating Lebesgue's Criterion for Riemann Integrability, and monotone functions are a standard testing ground for the concept of functions of bounded variation, since every function of bounded variation is a difference of two monotone functions. In numerical analysis, sorting algorithms produce monotone (sorted) sequences, and quantile functions (generalized inverses of CDFs) used throughout statistics and machine learning are monotone by construction, with integrability of these often invoked implicitly when computing quantile-based risk measures. In economics and optimization, monotone utility and cost functions are integrated routinely (e.g. computing consumer surplus as an area under a monotone demand curve), relying silently on exactly this theorem to guarantee the area is well defined even when the demand curve has discrete jumps from market frictions.
:::quiz[For a nondecreasing function on , what is equal to, and why?]
- , by the mean value theorem
- , since nondecreasing functions attain their max at the left endpoint
- , since is nondecreasing and is the rightmost point of the subinterval, and this value is actually attained ✓
- It need not exist unless is continuous
:::quiz[Why is boundedness of on guaranteed automatically once we know is monotone and is compact?]
- Because monotone functions are always continuous
- Because (or the reverse) for all , trapping between two finite numbers ✓
- Because Riemann integrability was assumed in advance
- Because has measure zero
:::quiz[A monotone function on can have infinitely many points of discontinuity. What must nonetheless be true of that discontinuity set?]
- It must be finite
- It must be an interval
- It must be countable ✓
- It must have positive length
:::quiz[Which hypothesis, if dropped, breaks the theorem as shown by on ?]
- Monotonicity of
- The domain being a closed, bounded interval (compactness), which is needed to force boundedness ✓
- The existence of the Cauchy Integrability Criterion
- The countability of
Ask the tutor: Can you show me why the same style of proof breaks down if is monotone but the interval is half-open, and how the notion of "measure zero" eventually repairs it?
Let with real numbers.
Monotone. is nondecreasing on if in implies ; it is nonincreasing if implies . is monotone if it is nondecreasing or nonincreasing on .
Partition. A partition of divides it into subintervals of length .
Upper and lower sums. For bounded on , with
define
Riemann integrability. is Riemann integrable on if is bounded and
the infimum and supremum taken over all partitions of . The common value is .
Cauchy Integrability Criterion (assumed known). A bounded is Riemann integrable if and only if for every there exists a partition of with
Intuition
Picture a nondecreasing function whose graph climbs, possibly with sudden vertical jumps, from to . Split into equal subintervals of width . Because is nondecreasing, on each subinterval the supremum is attained at the right endpoint and the infimum at the left endpoint — no need to hunt for where the max or min occurs, monotonicity hands it to you for free. The upper sum is the total area of rectangles that slightly overshoot the graph on the right of each subinterval; the lower sum uses rectangles that undershoot on the left. The difference is then a sum of little rectangles of width sitting exactly on top of each jump or rise of the function. When you stack all those little error-rectangles on top of one another (this is the clever trick — they all have the same width, so you can slide them together), their combined height is at most the total rise of the function, . So the total error is at most , which visibly shrinks to as , regardless of how many discontinuities has or how erratically it jumps.
Central theorem
Let be real numbers and let be monotone (nondecreasing or nonincreasing) on . Then is Riemann integrable on .
If is monotone, then is bounded on .
Suppose is nondecreasing (the nonincreasing case is identical with inequalities reversed). For any we have , and by the nondecreasing property applied to and ,
Thus and are real numbers bounding below and above respectively on the entire interval, so is bounded.
∎Setup. By the Lemma, is bounded on , so upper and lower sums are well defined for every partition. We treat the nondecreasing case; the nonincreasing case follows by applying the nondecreasing case to and using that , (a direct computation from the definitions of sup/inf under negation), so the oscillation equals .
Trivial case. If , then since for all (shown in the Lemma), is constant, hence continuous, hence certainly satisfies the criterion below with any partition giving oscillation . So assume .
Strategy: use the Cauchy Integrability Criterion. We show that for every there is a partition with ; by the Cauchy Integrability Criterion this proves is Riemann integrable.
Construction of the partition. Fix . Choose a positive integer large enough that
This is possible because is a fixed positive real number, and as for any fixed constant (Archimedean property of : for any there is with ). Let be the partition into equal subintervals:
so that every subinterval has the same length .
Evaluating and using monotonicity. Fix a subinterval . Since is nondecreasing and for every in this subinterval, we get for all such . Hence is an upper bound for on and is a lower bound. Moreover these bounds are attained (at and respectively, both points lying in the closed subinterval), so they are exactly the supremum and infimum:
Computing the oscillation. Since all subintervals have the same length ,
The sum telescopes: writing out the terms,
since every intermediate term for appears once with a sign and once with a sign and cancels. (This uses only that and ; no continuity or differentiability is invoked, and no term needs to be individually estimated — the cancellation is exact and algebraic.) Therefore
by the choice of made above.
Conclusion. We have produced, for arbitrary , an explicit partition of with . By the Cauchy Integrability Criterion, is Riemann integrable on .
∎A monotone function has at most countably many points of discontinuity in , and each is a jump discontinuity (both one-sided limits exist).
Assume nondecreasing (nonincreasing follows by considering ). Fix . Since is bounded above by on and nondecreasing, the one-sided limit
exists (an infimum of a nonempty set bounded below by exists by the completeness of , and monotonicity forces convergence to it — standard -argument: given pick with ; for , ). Symmetrically exists. Since is monotone, , so is continuous at exactly when , and otherwise has a jump of size . For each discontinuity , pick a rational number strictly between and (possible since this open interval is nonempty and is dense in ). If are two discontinuities, then since is nondecreasing, (any value taken strictly to the right of but at or below is bounded by ), so the intervals and are disjoint, forcing . Thus is an injection from the set of discontinuities into , which is countable. Hence the set of discontinuities is countable.
∎This corollary is exactly the phenomenon that later generalizes: a bounded function is Riemann integrable if and only if its set of discontinuities has Lebesgue measure zero, per Lebesgue's Criterion for Riemann Integrability. A countable set always has measure zero, so this theorem is a special case of that later, sharper result — but it is provable directly, with elementary tools, well before measure theory is available.
Worked examples
Example 1 (a genuinely discontinuous monotone function, non-symmetric jumps). Let be defined by
This is nondecreasing (check each case boundary: , , ) with jumps of size , , and at respectively — three unevenly spaced, unevenly sized jumps. By the theorem, is Riemann integrable on . Apply the proof's construction with, say, equal subintervals of width , so for : . Evaluate at each node:
Upper sum uses (right endpoint value, by the proof):
Lower sum uses (left endpoint value):
Oscillation: . The theorem's bound predicts
matching exactly — confirming the telescoping computation. To get oscillation below, say, , the proof requires with , i.e. ; any such works regardless of where the three jumps sit. Direct computation of the integral (splitting at the jump points, since is piecewise constant):
Indeed already equals the true integral for this coarse partition (because happens to include every jump point exactly), while overshoots — illustrating how and squeeze the true value as predicted.
Example 2 (infinitely many discontinuities — one at every rational in the interval). Let enumerate (countable, since is countable). Define
i.e. sums over every index with (with if no such , and interpreting ). This is a standard construction (a "jump function"): is nondecreasing, since increasing can only enlarge the set of indices , hence can only add nonnegative terms to the sum. It is bounded, since
for every (geometric series). One can show is discontinuous at every single rational , with jump exactly there, and continuous at every irrational point — so its discontinuity set is exactly the countably infinite set , dense in . By the theorem, is nonetheless Riemann integrable on , despite being discontinuous at a dense set of points — discontinuous "almost everywhere you look" in the sense of density, though not in the sense of measure. Concretely, for any , choosing with , i.e. (since and ) any suffices, and the same equally-spaced partition from the proof forces — the argument never needed to know where the (infinitely many) jumps were, only that their total size is bounded by .
The theorem requires the domain to be a closed, bounded interval . Consider dropping compactness by allowing an unbounded domain, and consider
This is monotone (strictly increasing) on . But is not compact, and the Riemann integral , understood as , diverges to — there is no finite Riemann integral over the whole domain, and indeed the Riemann integral is not even defined (via partitions) on an unbounded interval, since a partition into finitely many subintervals of finite length cannot cover . More subtly, even on a bounded but not closed interval such as , monotonicity alone does not guarantee boundedness, which the proof's Lemma crucially used. Take
This is monotone (strictly decreasing) on , but is unbounded: as . Since Riemann integrability requires boundedness by definition (unbounded functions produce upper sums equal to on any partition whose leftmost subinterval touches , since for every ), is not Riemann integrable on in the ordinary sense — one needs the theory of improper integrals to assign it any value at all ( diverges). This shows precisely why the theorem is stated for a compact interval : compactness is what forces and to be finite bounds trapping every value of in between, and it is exactly this finiteness that made the telescoping bound meaningful.
Scope, edge cases & common traps
| Situation | What happens |
|---|---|
| monotone, domain compact | Riemann integrable (theorem) |
| monotone, domain unbounded, e.g. | Riemann integral (via partitions) undefined; must use improper integrals |
| monotone, domain bounded but not closed, e.g. , and unbounded | Not Riemann integrable; need improper integral |
| monotone with infinitely many jumps (dense discontinuity set) | Still Riemann integrable — theorem does not need continuity anywhere |
| merely "piecewise monotone" (finitely many monotone pieces) | Still integrable — apply the theorem on each piece and add (additivity over subintervals) |
| monotone but only assumed defined a.e. / not on all of | Theorem does not directly apply; must extend to all of first |
The mathematician behind it
Origins · 1 minBernhard Riemann and how this was discovered
Georg Friedrich Bernhard Riemann formalized the modern definition of the definite integral in his 1854 habilitation lecture "Über die Darstellbarkeit einer Function durch eine trigonometrische Reihe" ("On the representability of a function by a trigonometric series"), delivered to qualify as a lecturer at the University of Göttingen. His motivation was not integration for its own sake but Fourier series: he wanted to know exactly which functions could be represented by trigonometric series, and this forced him to ask precisely which functions could be integrated at all. Riemann's definition — via upper and lower sums over partitions, essentially as given above — replaced earlier, more restrictive treatments that implicitly assumed continuity, and it was Riemann himself who first exhibited integrable functions with infinitely many discontinuities, monotone functions with dense jump sets being a natural class of examples. His broader legacy spans Riemannian geometry, complex analysis (the Riemann mapping theorem, Riemann surfaces), and the Riemann Hypothesis on the zeta function, but the integral bearing his name remains the version of integration taught first to nearly every student of calculus.
Does every Riemann integrable function have to be monotone or continuous?
No. Monotone functions and continuous functions are each sufficient — but not necessary — conditions for Riemann integrability. There are functions that are neither continuous nor monotone (not even piecewise monotone) that are still Riemann integrable, such as functions with infinitely many oscillations but a discontinuity set of measure zero. The full, sharp characterization is Lebesgue's Criterion for Riemann Integrability: a bounded function on is Riemann integrable exactly when its set of discontinuities has Lebesgue measure zero. Monotone functions satisfy this because their discontinuity sets are always countable, and countable sets always have measure zero — but measure zero is a strictly weaker (larger) condition than countability, so many non-monotone functions qualify too.
Why does the proof work with equally spaced partitions instead of general partitions?
The proof does not need to search over all possible partitions to find one making the oscillation small — it only needs to exhibit one partition per that works, since the Cauchy Integrability Criterion only demands existence. Equally spaced partitions are the simplest choice because they make every subinterval length identical, which lets the telescoping sum factor into , collapsing an otherwise complicated sum into one clean product. Uneven partitions would still work in principle but would require extra bookkeeping to control the mixture of jump sizes and interval widths, with no added benefit to the conclusion.
Can a monotone function fail to be Riemann integrable for some other reason, like the domain being a single point or empty?
The theorem assumes , i.e., a nondegenerate closed interval with more than one point. If , the "interval" has length zero, every function on it trivially integrates to , and the discussion is vacuous. If the interval as usually defined is empty and the setup does not apply. These are not counterexamples to the theorem; they are simply outside its intended scope (which explicitly assumes ), and mathematicians handle them by convention (e.g., defining ) rather than by extending the theorem's content.
Is the converse true: if is Riemann integrable, must be monotone?
No, and this converse is false, easily. The function for (extended by any finite value at , say ) is bounded, has no monotone pieces near (it oscillates infinitely often), yet is Riemann integrable, because its only discontinuity is at the single point , a set of measure zero. Continuity almost everywhere, not monotonicity, is the truly necessary-and-sufficient condition (in the precise measure-zero sense of Lebesgue's Criterion for Riemann Integrability). Monotonicity is only ever presented as a sufficient condition for integrability, never claimed to be necessary, and this article never asserts a converse.
Does this theorem extend to monotone functions of several variables?
The Riemann integral in several variables is defined differently (via partitions of a box into subboxes and multivariable upper/lower sums), and "monotone" is not a single well-defined notion in more than one dimension without extra structure (e.g. coordinatewise monotonicity). There are analogous results for functions monotone in each variable separately, and for functions of bounded variation in the multivariable sense, but they require substantially more machinery (Jordan content, oscillation sums over boxes) and are not a direct restatement of this one-variable theorem. The core one-dimensional argument — telescoping a sum of increments — does not translate verbatim to higher dimensions.
What role does the Archimedean property play in this proof?
It is the single real-analytic fact, beyond algebra, used to guarantee that for any fixed positive constant and any target , there exists a natural number with . Without the Archimedean property of (which fails, for instance, in certain nonstandard ordered fields with infinitesimals), one could not guarantee such an exists, and the entire "shrink the oscillation to zero" argument would break down. This is a quiet but essential use of a foundational property of the real number system.