Integrability of Monotone Functions

Consider the function that rounds a real number down to the nearest integer. It is restricted to [0,10][0,10]. 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.

Key takeaways
  • A function f:[a,b]→Rf:[a,b]\to\mathbb R is monotone if it is nondecreasing or nonincreasing throughout [a,b][a,b].
  • Every bounded monotone function on [a,b][a,b] is automatically bounded — monotonicity plus finite endpoint values force it.
  • The theorem: every monotone function on a compact interval [a,b][a,b] is Riemann integrable on [a,b][a,b].
  • 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 nn equal pieces shrinks the total oscillation of Riemann sums to a multiple of (b−a)/n(b-a)/n, which forces the upper and lower sums together as n→∞n\to\infty.

Where this lives today

Monotone functions and their integrability underpin probability theory, where every cumulative distribution function F(x)=P(X≤x)F(x) = P(X\le x) is nondecreasing, frequently has jump discontinuities (at atoms of the distribution), and yet integrals against FF (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 ff on [a,b][a,b], what is sup⁡[xi−1,xi]f\sup_{[x_{i-1},x_i]} f equal to, and why?]

  • f(xi−1+xi2)f\left(\frac{x_{i-1}+x_i}{2}\right), by the mean value theorem
  • f(xi−1)f(x_{i-1}), since nondecreasing functions attain their max at the left endpoint
  • f(xi)f(x_i), since ff is nondecreasing and xix_i is the rightmost point of the subinterval, and this value is actually attained ✓
  • It need not exist unless ff is continuous

:::quiz[Why is boundedness of ff on [a,b][a,b] guaranteed automatically once we know ff is monotone and [a,b][a,b] is compact?]

  • Because monotone functions are always continuous
  • Because f(a)≤f(x)≤f(b)f(a) \le f(x) \le f(b) (or the reverse) for all x∈[a,b]x\in[a,b], trapping ff between two finite numbers ✓
  • Because Riemann integrability was assumed in advance
  • Because [a,b][a,b] has measure zero

:::quiz[A monotone function on [a,b][a,b] 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 g(x)=1/xg(x)=1/x on (0,1](0,1]?]

  • Monotonicity of gg
  • The domain being a closed, bounded interval (compactness), which is needed to force boundedness ✓
  • The existence of the Cauchy Integrability Criterion
  • The countability of Q\mathbb{Q}

Ask the tutor: Can you show me why the same style of proof breaks down if ff is monotone but the interval is half-open, and how the notion of "measure zero" eventually repairs it?

DefinitionMonotone function and Riemann integrability

Let f:[a,b]→Rf:[a,b]\to\mathbb R with a<ba<b real numbers.

Monotone. ff is nondecreasing on [a,b][a,b] if x1<x2x_1 < x_2 in [a,b][a,b] implies f(x1)≤f(x2)f(x_1)\le f(x_2); it is nonincreasing if x1<x2x_1<x_2 implies f(x1)≥f(x2)f(x_1)\ge f(x_2). ff is monotone if it is nondecreasing or nonincreasing on [a,b][a,b].

Partition. A partition P={a=x0<x1<⋯<xn=b}P = \{a = x_0 < x_1 < \cdots < x_n = b\} of [a,b][a,b] divides it into subintervals [xi−1,xi][x_{i-1},x_i] of length Δxi=xi−xi−1\Delta x_i = x_i - x_{i-1}.

Upper and lower sums. For ff bounded on [a,b][a,b], with

Mi=sup⁡x∈[xi−1,xi]f(x),mi=inf⁡x∈[xi−1,xi]f(x),M_i = \sup_{x\in[x_{i-1},x_i]} f(x), \qquad m_i = \inf_{x\in[x_{i-1},x_i]} f(x),

define

U(f,P)=∑i=1nMi Δxi,L(f,P)=∑i=1nmi Δxi.U(f,P) = \sum_{i=1}^n M_i \,\Delta x_i, \qquad L(f,P) = \sum_{i=1}^n m_i \,\Delta x_i.

Riemann integrability. ff is Riemann integrable on [a,b][a,b] if ff is bounded and

∫ab‾f:=inf⁡PU(f,P)=sup⁡PL(f,P)=:∫ab‾f,\overline{\int_a^b} f := \inf_P U(f,P) = \sup_P L(f,P) =: \underline{\int_a^b} f,

the infimum and supremum taken over all partitions PP of [a,b][a,b]. The common value is ∫abf\int_a^b f.

Cauchy Integrability Criterion (assumed known). A bounded f:[a,b]→Rf:[a,b]\to\mathbb R is Riemann integrable if and only if for every ε>0\varepsilon>0 there exists a partition PP of [a,b][a,b] with

U(f,P)−L(f,P)<ε.U(f,P) - L(f,P) < \varepsilon.

Intuition

Picture a nondecreasing function whose graph climbs, possibly with sudden vertical jumps, from f(a)f(a) to f(b)f(b). Split [a,b][a,b] into nn equal subintervals of width (b−a)/n(b-a)/n. Because ff 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 U(f,P)−L(f,P)U(f,P)-L(f,P) is then a sum of little rectangles of width (b−a)/n(b-a)/n 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, f(b)−f(a)f(b)-f(a). So the total error is at most (b−a)n(f(b)−f(a))\frac{(b-a)}{n}\bigl(f(b)-f(a)\bigr), which visibly shrinks to 00 as n→∞n\to\infty, regardless of how many discontinuities ff has or how erratically it jumps.

Figure
Staircase function with jumps: upper sum overshoots, lower sum undershoots, error rectangles have total width (b−a)/n(b-a)/n but combined height f(b)−f(a)f(b)-f(a)
x f(x) a b x₀ x₁ x₂ x₃ x₄ U(f,P): red overshoot L(f,P): green undershoot

Central theorem

TheoremIntegrability of monotone functions

Let a<ba<b be real numbers and let f:[a,b]→Rf:[a,b]\to\mathbb R be monotone (nondecreasing or nonincreasing) on [a,b][a,b]. Then ff is Riemann integrable on [a,b][a,b].

LemmaMonotone functions on a compact interval are bounded

If f:[a,b]→Rf:[a,b]\to\mathbb R is monotone, then ff is bounded on [a,b][a,b].

Proof

Suppose ff is nondecreasing (the nonincreasing case is identical with inequalities reversed). For any x∈[a,b]x\in[a,b] we have a≤x≤ba\le x\le b, and by the nondecreasing property applied to a≤xa\le x and x≤bx\le b,

f(a)≤f(x)≤f(b).f(a) \le f(x) \le f(b).

Thus f(a)f(a) and f(b)f(b) are real numbers bounding ff below and above respectively on the entire interval, so ff is bounded. ■\blacksquare

∎
Proof

Setup. By the Lemma, ff is bounded on [a,b][a,b], 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 −f-f and using that U(−f,P)=−L(f,P)U(-f,P) = -L(f,P), L(−f,P)=−U(f,P)L(-f,P) = -U(f,P) (a direct computation from the definitions of sup/inf under negation), so the oscillation U(−f,P)−L(−f,P)U(-f,P)-L(-f,P) equals U(f,P)−L(f,P)U(f,P)-L(f,P).

Trivial case. If f(a)=f(b)f(a) = f(b), then since f(a)≤f(x)≤f(b)f(a)\le f(x)\le f(b) for all xx (shown in the Lemma), ff is constant, hence continuous, hence certainly satisfies the criterion below with any partition giving oscillation 00. So assume f(b)>f(a)f(b) > f(a).

Strategy: use the Cauchy Integrability Criterion. We show that for every ε>0\varepsilon > 0 there is a partition PP with U(f,P)−L(f,P)<εU(f,P) - L(f,P) < \varepsilon; by the Cauchy Integrability Criterion this proves ff is Riemann integrable.

Construction of the partition. Fix ε>0\varepsilon > 0. Choose a positive integer nn large enough that

(b−a)(f(b)−f(a))n<ε.\frac{(b-a)\bigl(f(b)-f(a)\bigr)}{n} < \varepsilon.

This is possible because (b−a)(f(b)−f(a))(b-a)(f(b)-f(a)) is a fixed positive real number, and Cn→0\frac{C}{n}\to 0 as n→∞n\to\infty for any fixed constant C>0C>0 (Archimedean property of R\mathbb R: for any C,ε>0C,\varepsilon>0 there is n∈Nn\in\mathbb N with nε>Cn\varepsilon > C). Let Pn={x0,x1,…,xn}P_n = \{x_0, x_1,\dots,x_n\} be the partition into nn equal subintervals:

xi=a+i⋅b−an,i=0,1,…,n,x_i = a + i\cdot\frac{b-a}{n}, \qquad i=0,1,\dots,n,

so that every subinterval has the same length Δx=b−an\Delta x = \dfrac{b-a}{n}.

Evaluating MiM_i and mim_i using monotonicity. Fix a subinterval [xi−1,xi][x_{i-1},x_i]. Since ff is nondecreasing and xi−1≤x≤xix_{i-1}\le x \le x_i for every xx in this subinterval, we get f(xi−1)≤f(x)≤f(xi)f(x_{i-1}) \le f(x) \le f(x_i) for all such xx. Hence f(xi)f(x_i) is an upper bound for ff on [xi−1,xi][x_{i-1},x_i] and f(xi−1)f(x_{i-1}) is a lower bound. Moreover these bounds are attained (at x=xix=x_i and x=xi−1x=x_{i-1} respectively, both points lying in the closed subinterval), so they are exactly the supremum and infimum:

Mi=sup⁡[xi−1,xi]f=f(xi),mi=inf⁡[xi−1,xi]f=f(xi−1).M_i = \sup_{[x_{i-1},x_i]} f = f(x_i), \qquad m_i = \inf_{[x_{i-1},x_i]} f = f(x_{i-1}).

Computing the oscillation. Since all subintervals have the same length Δx=(b−a)/n\Delta x = (b-a)/n,

U(f,Pn)−L(f,Pn)=∑i=1n(Mi−mi) Δxi=Δx∑i=1n(f(xi)−f(xi−1)).U(f,P_n) - L(f,P_n) = \sum_{i=1}^n (M_i - m_i)\,\Delta x_i = \Delta x \sum_{i=1}^n \bigl(f(x_i) - f(x_{i-1})\bigr).

The sum ∑i=1n(f(xi)−f(xi−1))\sum_{i=1}^n \bigl(f(x_i)-f(x_{i-1})\bigr) telescopes: writing out the terms,

(f(x1)−f(x0))+(f(x2)−f(x1))+⋯+(f(xn)−f(xn−1))=f(xn)−f(x0)=f(b)−f(a),\bigl(f(x_1)-f(x_0)\bigr) + \bigl(f(x_2)-f(x_1)\bigr) + \cdots + \bigl(f(x_n)-f(x_{n-1})\bigr) = f(x_n) - f(x_0) = f(b) - f(a),

since every intermediate term f(xi)f(x_i) for 1≤i≤n−11\le i\le n-1 appears once with a ++ sign and once with a −- sign and cancels. (This uses only that x0=ax_0=a and xn=bx_n=b; no continuity or differentiability is invoked, and no term needs to be individually estimated — the cancellation is exact and algebraic.) Therefore

U(f,Pn)−L(f,Pn)=b−an(f(b)−f(a))<εU(f,P_n) - L(f,P_n) = \frac{b-a}{n}\bigl(f(b)-f(a)\bigr) < \varepsilon

by the choice of nn made above.

Conclusion. We have produced, for arbitrary ε>0\varepsilon>0, an explicit partition PnP_n of [a,b][a,b] with U(f,Pn)−L(f,Pn)<εU(f,P_n) - L(f,P_n) < \varepsilon. By the Cauchy Integrability Criterion, ff is Riemann integrable on [a,b][a,b]. ■\blacksquare

∎
CorollaryDiscontinuities of a monotone function are countable

A monotone function f:[a,b]→Rf:[a,b]\to\mathbb R has at most countably many points of discontinuity in [a,b][a,b], and each is a jump discontinuity (both one-sided limits exist).

Proof

Assume ff nondecreasing (nonincreasing follows by considering −f-f). Fix x∈(a,b)x\in(a,b). Since ff is bounded above by f(b)f(b) on (x,b](x,b] and nondecreasing, the one-sided limit

f(x+):=lim⁡t→x+f(t)=inf⁡t>xf(t)f(x^+) := \lim_{t\to x^+} f(t) = \inf_{t>x} f(t)

exists (an infimum of a nonempty set bounded below by f(x)f(x) exists by the completeness of R\mathbb R, and monotonicity forces convergence to it — standard ε\varepsilon-argument: given ε>0\varepsilon>0 pick t0>xt_0>x with f(t0)<f(x+)+εf(t_0) < f(x^+)+\varepsilon; for x<t<t0x<t<t_0, f(x+)≤f(t)≤f(t0)<f(x+)+εf(x^+)\le f(t)\le f(t_0)<f(x^+)+\varepsilon). Symmetrically f(x−):=lim⁡t→x−f(t)=sup⁡t<xf(t)f(x^-) := \lim_{t\to x^-}f(t) = \sup_{t<x} f(t) exists. Since ff is monotone, f(x−)≤f(x)≤f(x+)f(x^-)\le f(x)\le f(x^+), so ff is continuous at xx exactly when f(x−)=f(x+)f(x^-) = f(x^+), and otherwise has a jump of size j(x):=f(x+)−f(x−)>0j(x) := f(x^+)-f(x^-) > 0. For each discontinuity xx, pick a rational number q(x)q(x) strictly between f(x−)f(x^-) and f(x+)f(x^+) (possible since this open interval is nonempty and Q\mathbb{Q} is dense in R\mathbb R). If x1<x2x_1 < x_2 are two discontinuities, then since ff is nondecreasing, f(x1+)≤f(x2−)f(x_1^+) \le f(x_2^-) (any value taken strictly to the right of x1x_1 but at or below x2x_2 is bounded by f(x2−)f(x_2^-)), so the intervals (f(x1−),f(x1+))(f(x_1^-),f(x_1^+)) and (f(x2−),f(x2+))(f(x_2^-),f(x_2^+)) are disjoint, forcing q(x1)≠q(x2)q(x_1)\ne q(x_2). Thus x↦q(x)x\mapsto q(x) is an injection from the set of discontinuities into Q\mathbb Q, which is countable. Hence the set of discontinuities is countable. ■\blacksquare

∎

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 f:[0,4]→Rf:[0,4]\to\mathbb R be defined by

f(x)={00≤x<121≤x<2.52.52.5≤x<373≤x≤4.f(x) = \begin{cases} 0 & 0\le x < 1\\ 2 & 1\le x < 2.5\\ 2.5 & 2.5 \le x < 3\\ 7 & 3 \le x \le 4. \end{cases}

This ff is nondecreasing (check each case boundary: 0≤20\le 2, 2≤2.52 \le 2.5, 2.5≤72.5 \le 7) with jumps of size 22, 0.50.5, and 4.54.5 at x=1,2.5,3x=1, 2.5, 3 respectively — three unevenly spaced, unevenly sized jumps. By the theorem, ff is Riemann integrable on [0,4][0,4]. Apply the proof's construction with, say, n=8n=8 equal subintervals of width Δx=4/8=0.5\Delta x = 4/8 = 0.5, so xi=0.5ix_i = 0.5i for i=0,…,8i=0,\dots,8: 0,0.5,1,1.5,2,2.5,3,3.5,40, 0.5, 1, 1.5, 2, 2.5, 3, 3.5, 4. Evaluate ff at each node:

f(0)=0, f(0.5)=0, f(1)=2, f(1.5)=2, f(2)=2, f(2.5)=2.5, f(3)=7, f(3.5)=7, f(4)=7.f(0)=0,\ f(0.5)=0,\ f(1)=2,\ f(1.5)=2,\ f(2)=2,\ f(2.5)=2.5,\ f(3)=7,\ f(3.5)=7,\ f(4)=7.

Upper sum uses Mi=f(xi)M_i = f(x_i) (right endpoint value, by the proof):

U(f,P8)=0.5(0+2+2+2+2.5+7+7+7)=0.5×29.5=14.75.U(f,P_8) = 0.5\bigl(0+2+2+2+2.5+7+7+7\bigr) = 0.5 \times 29.5 = 14.75.

Lower sum uses mi=f(xi−1)m_i = f(x_{i-1}) (left endpoint value):

L(f,P8)=0.5(0+0+2+2+2+2.5+7+7)=0.5×22.5=11.25.L(f,P_8) = 0.5\bigl(0+0+2+2+2+2.5+7+7\bigr) = 0.5\times 22.5 = 11.25.

Oscillation: U−L=14.75−11.25=3.5U-L = 14.75-11.25 = 3.5. The theorem's bound predicts

U(f,Pn)−L(f,Pn)=b−an(f(b)−f(a))=48(7−0)=3.5,U(f,P_n)-L(f,P_n) = \frac{b-a}{n}(f(b)-f(a)) = \frac{4}{8}(7-0) = 3.5,

matching exactly — confirming the telescoping computation. To get oscillation below, say, ε=0.1\varepsilon = 0.1, the proof requires nn with 4⋅7n<0.1\frac{4\cdot 7}{n} < 0.1, i.e. n>280n > 280; any such nn works regardless of where the three jumps sit. Direct computation of the integral (splitting at the jump points, since ff is piecewise constant):

∫04f=0⋅1+2⋅1.5+2.5⋅0.5+7⋅1=0+3+1.25+7=11.25.\int_0^4 f = 0\cdot 1 + 2\cdot 1.5 + 2.5\cdot 0.5 + 7\cdot 1 = 0 + 3 + 1.25 + 7 = 11.25.

Indeed L(f,P8)=11.25L(f,P_8) = 11.25 already equals the true integral for this coarse partition (because P8P_8 happens to include every jump point exactly), while U(f,P8)=14.75U(f,P_8)=14.75 overshoots — illustrating how UU and LL squeeze the true value as predicted.

Example 2 (infinitely many discontinuities — one at every rational in the interval). Let {q1,q2,q3,… }\{q_1, q_2, q_3, \dots\} enumerate Q∩(0,3)\mathbb{Q}\cap(0,3) (countable, since Q\mathbb Q is countable). Define

f(x)=∑n:qn<x12n,x∈[0,3],f(x) = \sum_{n : q_n < x} \frac{1}{2^n}, \qquad x\in[0,3],

i.e. f(x)f(x) sums 2−n2^{-n} over every index nn with qn<xq_n<x (with f(x)=0f(x)=0 if no such nn, and interpreting f(0)=0f(0)=0). This is a standard construction (a "jump function"): ff is nondecreasing, since increasing xx can only enlarge the set of indices {n:qn<x}\{n : q_n < x\}, hence can only add nonnegative terms to the sum. It is bounded, since

f(x)≤∑n=1∞12n=1f(x) \le \sum_{n=1}^\infty \frac{1}{2^n} = 1

for every xx (geometric series). One can show ff is discontinuous at every single rational qn∈(0,3)q_n\in(0,3), with jump exactly 2−n2^{-n} there, and continuous at every irrational point — so its discontinuity set is exactly the countably infinite set Q∩(0,3)\mathbb Q\cap(0,3), dense in [0,3][0,3]. By the theorem, ff is nonetheless Riemann integrable on [0,3][0,3], 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 ε>0\varepsilon>0, choosing nn with 3(f(3)−f(0))n<ε\frac{3(f(3)-f(0))}{n}<\varepsilon, i.e. (since f(0)=0f(0)=0 and f(3)≤1f(3)\le 1) any n>3/εn > 3/\varepsilon suffices, and the same equally-spaced partition PnP_n from the proof forces U(f,Pn)−L(f,Pn)<εU(f,P_n)-L(f,P_n)<\varepsilon — the argument never needed to know where the (infinitely many) jumps were, only that their total size is bounded by f(3)−f(0)≤1f(3)-f(0)\le 1.

CounterexampleWhy compactness of the interval cannot be dropped

The theorem requires the domain to be a closed, bounded interval [a,b][a,b]. Consider dropping compactness by allowing an unbounded domain, and consider

f(x)=x,x∈[0,∞).f(x) = x, \qquad x\in[0,\infty).

This ff is monotone (strictly increasing) on [0,∞)[0,\infty). But [0,∞)[0,\infty) is not compact, and the Riemann integral ∫0∞x dx\int_0^\infty x\,dx, understood as lim⁡b→∞∫0bx dx=lim⁡b→∞b2/2\lim_{b\to\infty}\int_0^b x\,dx = \lim_{b\to\infty} b^2/2, diverges to +∞+\infty — 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 [0,∞)[0,\infty). More subtly, even on a bounded but not closed interval such as (0,1](0,1], monotonicity alone does not guarantee boundedness, which the proof's Lemma crucially used. Take

g(x)=1x,x∈(0,1].g(x) = \frac{1}{x}, \qquad x \in (0,1].

This gg is monotone (strictly decreasing) on (0,1](0,1], but gg is unbounded: g(x)→∞g(x)\to\infty as x→0+x\to 0^+. Since Riemann integrability requires boundedness by definition (unbounded functions produce upper sums equal to +∞+\infty on any partition whose leftmost subinterval touches 00, since sup⁡(0,δ)g=∞\sup_{(0,\delta)} g = \infty for every δ>0\delta>0), gg is not Riemann integrable on (0,1](0,1] in the ordinary sense — one needs the theory of improper integrals to assign it any value at all (∫01dxx\int_0^1 \frac{dx}{x} diverges). This shows precisely why the theorem is stated for a compact interval [a,b][a,b]: compactness is what forces f(a)f(a) and f(b)f(b) to be finite bounds trapping every value of ff in between, and it is exactly this finiteness that made the telescoping bound b−an(f(b)−f(a))\frac{b-a}{n}(f(b)-f(a)) meaningful.

Scope, edge cases & common traps

SituationWhat happens
ff monotone, domain [a,b][a,b] compactRiemann integrable (theorem)
ff monotone, domain unbounded, e.g. [0,∞)[0,\infty)Riemann integral (via partitions) undefined; must use improper integrals
ff monotone, domain bounded but not closed, e.g. (0,1](0,1], and ff unboundedNot Riemann integrable; need improper integral
ff monotone with infinitely many jumps (dense discontinuity set)Still Riemann integrable — theorem does not need continuity anywhere
ff merely "piecewise monotone" (finitely many monotone pieces)Still integrable — apply the theorem on each piece and add (additivity over subintervals)
ff monotone but only assumed defined a.e. / not on all of [a,b][a,b]Theorem does not directly apply; must extend ff to all of [a,b][a,b] first

The mathematician behind it

Origins · 1 minBernhard Riemann and how this was discovered
BR
Bernhard Riemann
1826–1866 · Göttingen, mid-19th century mathematical analysis

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.

History
- 1826 — Bernhard Riemann born in Breselenz, Kingdom of Hanover.
- 1854 — Riemann's habilitation lecture at Göttingen introduces the rigorous partition-based definition of the definite integral, in service of studying Fourier series.
- 1860s — Mathematicians including Riemann and later Darboux develop upper/lower sum formulations; monotone functions become a standard first example of integrable-but-discontinuous functions.
- 1875 — Gaston Darboux reformulates Riemann's integral via upper and lower integrals (the version used throughout this article), clarifying the criterion now called the Cauchy or Riemann integrability criterion.
- 1902 — Henri Lebesgue's thesis introduces measure-theoretic integration, eventually yielding the sharp criterion (countable, in fact measure-zero, discontinuity sets characterize Riemann integrability) that fully explains why monotone functions integrate.
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 [a,b][a,b] 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 ε\varepsilon 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 ∑(f(xi)−f(xi−1))Δx\sum (f(x_i)-f(x_{i-1}))\Delta x factor into Δx⋅(f(b)−f(a))\Delta x\cdot(f(b)-f(a)), 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 a<ba<b, i.e., a nondegenerate closed interval with more than one point. If a=ba=b, the "interval" [a,a]={a}[a,a]=\{a\} has length zero, every function on it trivially integrates to 00, and the discussion is vacuous. If a>ba>b 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 a<ba<b), and mathematicians handle them by convention (e.g., defining ∫aaf=0\int_a^a f=0) rather than by extending the theorem's content.

Is the converse true: if ff is Riemann integrable, must ff be monotone?

No, and this converse is false, easily. The function f(x)=sin⁡(1/x)f(x)=\sin(1/x) for x∈(0,1]x\in(0,1] (extended by any finite value at 00, say f(0)=0f(0)=0) is bounded, has no monotone pieces near 00 (it oscillates infinitely often), yet is Riemann integrable, because its only discontinuity is at the single point x=0x=0, 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 C=(b−a)(f(b)−f(a))C = (b-a)(f(b)-f(a)) and any target ε>0\varepsilon>0, there exists a natural number nn with C/n<εC/n<\varepsilon. Without the Archimedean property of R\mathbb{R} (which fails, for instance, in certain nonstandard ordered fields with infinitesimals), one could not guarantee such an nn 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.

Before this

Where this leads