Skip to content
Tutorials Center
My learning

Topics

Lesson 27 of 37 · The Riemann Integral

Darboux Sums and Integrability

Define the Riemann integral with upper and lower Darboux sums, prove the epsilon criterion for integrability, and compute sums for x squared and the Dirichlet function.

The integral ∫ₐᵇ f should measure the area under the graph of f. To make that precise, we trap the area between two approximations: one from above, built from the largest values of f, and one from below, built from the smallest. If the two approximations can be squeezed together, f is integrable and the common value is the integral. This is the Darboux formulation, which is equivalent to Riemann's original definition but easier to work with.

Partitions and sums

Let f : [a, b] → ℝ be bounded. A partition P of [a, b] is a finite list a = x₀ < x₁ < ... < xₙ = b. On each subinterval [x_{i-1}, x_i], let

Text
Mᵢ = sup { f(x) : x ∈ [x_{i-1}, x_i] },   mᵢ = inf { f(x) : x ∈ [x_{i-1}, x_i] },   Δxᵢ = x_i - x_{i-1}.

The upper sum and lower sum are

Text
U(f, P) = Σ Mᵢ Δxᵢ,     L(f, P) = Σ mᵢ Δxᵢ.

Since mᵢ ≤ Mᵢ, we always have L(f, P) ≤ U(f, P).

Refinement

A partition P* is a refinement of P if it contains all points of P (and possibly more).

Lemma. If P* refines P, then L(f, P) ≤ L(f, P*) and U(f, P*) ≤ U(f, P).

Why. Adding one point splits [x_{i-1}, x_i] into two pieces. The infimum over each piece is at least mᵢ, so the lower sum cannot decrease; the supremum over each piece is at most Mᵢ, so the upper sum cannot increase. Induct on the number of added points.

Corollary. For any two partitions P, Q, L(f, P) ≤ L(f, P ∪ Q) ≤ U(f, P ∪ Q) ≤ U(f, Q). So every lower sum is at most every upper sum.

Upper and lower integrals

Because lower sums are bounded above by any upper sum, the following exist:

Text
L(f) = sup_P L(f, P)   (lower integral),     U(f) = inf_P U(f, P)   (upper integral),

and L(f) ≤ U(f). We say f is Riemann integrable on [a, b] if L(f) = U(f), and the common value is ∫ₐᵇ f.

Theorem (Riemann's criterion). A bounded f is integrable if and only if for every ε > 0 there is a partition P with U(f, P) - L(f, P) < ε.

Proof. (⇐) For any P, L(f, P) ≤ L(f) ≤ U(f) ≤ U(f, P), so 0 ≤ U(f) - L(f) < ε for every ε, hence equality. (⇒) If L(f) = U(f) = I, choose P₁ with L(f, P₁) > I - ε/2 and P₂ with U(f, P₂) < I + ε/2. The common refinement P = P₁ ∪ P₂ has U(f, P) - L(f, P) < ε. ∎

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

Use the uniform partition into n equal pieces. f is increasing, so Mᵢ is the right endpoint value and mᵢ the left endpoint value:

Text
U_n = Σ_{i=1}^{n} (i/n)² (1/n) = (n+1)(2n+1) / (6n²),
L_n = Σ_{i=1}^{n} ((i-1)/n)² (1/n) = (n-1)(2n-1) / (6n²).

Their difference is U_n - L_n = 1/n → 0, so x² is integrable, and since both sums tend to 1/3, ∫₀¹ x² dx = 1/3.

Python Darboux sums of x squared

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

A function that is not integrable

The Dirichlet function on [0, 1] is d(x) = 1 if x is rational and d(x) = 0 if x is irrational. In every interval, both rationals and irrationals appear (see the density of ℚ in ℝ), so Mᵢ = 1 and mᵢ = 0 for every subinterval of every partition. Therefore U(d, P) = 1 and L(d, P) = 0 for every P, and U(d) = 1 ≠ 0 = L(d). The Dirichlet function is not Riemann integrable. (It is integrable in Lebesgue's more general theory, with integral 0.)

Python Why Riemann sums of the Dirichlet function disagree

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The gap never shrinks, so Riemann's criterion fails.

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. A refinement of a partition makes the upper sum:

    On each smaller piece the supremum can only decrease, so U does not increase.
  2. 2. Riemann's criterion says a bounded f is integrable iff for each epsilon there is a partition with:

    The gap between the upper and lower sums can be made as small as we like.
  3. 3. For f(x) = x^2 on [0, 1] with n equal pieces, U_n - L_n equals:

    For an increasing function the gap is (f(b) - f(a)) times the width, i.e. 1 * (1/n).
  4. 4. Why is the Dirichlet function not Riemann integrable?

    Rationals and irrationals are both dense in every interval.

Summary

  • For bounded f, upper and lower sums U(f, P) and L(f, P) trap the area; refinement tightens them.
  • f is integrable if the upper integral (inf of upper sums) equals the lower integral (sup of lower sums).
  • Riemann's criterion: integrable iff U - L < ε for some partition, for each ε > 0.
  • x² is integrable on [0, 1] with integral 1/3; the Dirichlet function is not integrable.

Next: Integrable Functions and Their Properties