Home › Calculus › Lesson 7

The Riemann Integral via Darboux Sums

Lesson 7 of 14

Key idea of this section

L(f, P) = ∑ mᵢ Δxᵢ  ≤  ∫ₐᵇ f  ≤  U(f, P) = ∑ Mᵢ Δxᵢ
f is integrable  ⇔  ∀ε > 0 ∃ partition P : U(f, P) − L(f, P) < ε

Upper and lower sums

Riemann defined his integral in his 1854 Habilitationsschrift on trigonometric series; the cleaner formulation with upper and lower sums is due to Darboux (1875). Let f be bounded on [a, b]. A partition P is a finite set a = x₀ < x₁ < ... < xₙ = b, with Δxᵢ = xᵢ − xᵢ₋₁. On the i-th subinterval put mᵢ = inf f and Mᵢ = sup f. The lower and upper sums are

L(f, P) = ∑ᵢ₌₁ⁿ mᵢ Δxᵢ,     U(f, P) = ∑ᵢ₌₁ⁿ Mᵢ Δxᵢ.

Lemma 7.1. If Q ⊇ P (Q refines P) then L(f, P) ≤ L(f, Q) ≤ U(f, Q) ≤ U(f, P). Consequently L(f, P₁) ≤ U(f, P₂) for any two partitions.

Proof. It suffices to add one point x* to the subinterval [xᵢ₋₁, xᵢ]. The infimum over each half is at least mᵢ, so the lower sum can only increase; similarly the upper sum can only decrease. For two partitions, compare both with their common refinement P₁ ∪ P₂. ∎

Define the lower integral as sup over P of L(f, P) and the upper integral as inf over P of U(f, P). By the lemma, lower integral ≤ upper integral. f is Riemann integrable if they are equal, and the common value is ∫ₐᵇ f.

Theorem 7.2 (Riemann's criterion). A bounded f is integrable on [a, b] iff for every ε > 0 there is a partition P with U(f, P) − L(f, P) < ε.

Proof. If the condition holds, upper integral − lower integral ≤ U(f, P) − L(f, P) < ε for every ε. Conversely, if f is integrable, choose P₁ with L(f, P₁) > ∫f − ε/2 and P₂ with U(f, P₂) < ∫f + ε/2, and take P = P₁ ∪ P₂. ∎

Worked example: f(x) = x² on [0, 1]

With the uniform partition into n pieces, f is increasing, so mᵢ = ((i − 1)/n)² and Mᵢ = (i/n)². Using ∑ i² = n(n + 1)(2n + 1)/6,

U(f, Pₙ) = (1/n³) ∑ᵢ₌₁ⁿ i² = (n + 1)(2n + 1)/(6n²),
L(f, Pₙ) = (1/n³) ∑ᵢ₌₀ⁿ⁻¹ i² = (n − 1)(2n − 1)/(6n²),
U − L = [(2n² + 3n + 1) − (2n² − 3n + 1)]/(6n²) = 1/n.

Both sums tend to 1/3, and U − L → 0, so ∫₀¹ x² dx = 1/3.

Which functions are integrable

Theorem 7.3. Every continuous function on [a, b] is integrable.

Proof. By Heine–Cantor, f is uniformly continuous: given ε > 0 there is δ with |f(x) − f(y)| < ε/(b − a) when |x − y| < δ. For any partition with all Δxᵢ < δ, the extreme value theorem gives Mᵢ − mᵢ < ε/(b − a), so U − L < ε. ∎

Theorem 7.4. Every monotone function on [a, b] is integrable.

Proof. For increasing f and the uniform partition into n parts, Mᵢ = f(xᵢ) and mᵢ = f(xᵢ₋₁), so U − L telescopes to (f(b) − f(a))(b − a)/n. ∎

A monotone function can have infinitely many discontinuities (at most countably many), so Theorem 7.4 already goes beyond continuity. Dirichlet's function is not integrable on [0, 1]: every subinterval contains rationals and irrationals, so L(f, P) = 0 and U(f, P) = 1 for every P. Thomae's function, on the other hand, is integrable with integral 0, although it is discontinuous at every rational: for ε > 0, only finitely many points have t(x) ≥ ε/2, and they can be enclosed in subintervals of total length less than ε/2.

The complete answer was found by Lebesgue in 1902. A set Z ⊆ ℝ has measure zero if for every ε > 0 it can be covered by countably many intervals of total length less than ε. Every countable set has measure zero (cover the n-th point by an interval of length ε/2ⁿ⁺¹), and so does the Cantor set, which is uncountable.

Theorem 7.5 (Lebesgue's criterion). A bounded function on [a, b] is Riemann integrable iff its set of discontinuities has measure zero.

This criterion explains all the examples at once: continuous and monotone functions have countably many discontinuities, Thomae's function has countably many, and Dirichlet's function is discontinuous everywhere.

Properties

The integral is linear and monotone; if f is integrable, so is |f|, and |∫f| ≤ ∫|f|; products of integrable functions are integrable; if f is integrable and φ is continuous, then φ ∘ f is integrable. Finally, Riemann's original definition with tagged sums agrees with Darboux's: f is integrable with integral I iff for every ε > 0 there is δ > 0 such that |∑ f(tᵢ)Δxᵢ − I| < ε for every partition with mesh max Δxᵢ < δ and every choice of tags tᵢ ∈ [xᵢ₋₁, xᵢ].

Exercise

  • (a)
    For f(x) = x³ on [0, 2] with the uniform partition into n parts, compute U − L exactly, and find the least n for which U − L < 0.01.
  • (b)
    Let f(x) = 1 if x = 1/n for some n ∈ ℕ, and f(x) = 0 otherwise, on [0, 1]. Is f integrable? If so, find ∫₀¹ f.
  • (c)
    Show directly from the definition that a function which is 0 except at one point is integrable with integral 0.
Show solution

Answers: (a) U − L = (f(2) − f(0))(2/n) = 16/n; we need n > 1600, so n = 1601. (b) Yes: the discontinuities are the points 1/n and 0, a countable set. Every lower sum is 0 (every subinterval contains points where f = 0), so the integral is 0. (c) If f = c at x* and 0 elsewhere, take a partition in which x* lies in subintervals of total length less than ε/|c|; then U − L < ε and every lower or upper sum lies within ε of 0.

V.3.1