Search Knowledge

© 2026 LIBREUNI PROJECT

Geometry & Topology / Overview

Measure Theory & Lebesgue Integration

Measure Theory & Lebesgue Integration

The Riemann integral, while foundational for introductory calculus, fails for functions that are “too discontinuous.” Measure theory provides a more robust framework by partitioning the range of a function rather than its domain.

1. The Failure of Riemann Integration

Consider the Dirichlet function, which is 11 for rationals and 00 for irrationals: 1Q(x)={1xQ0xQ\mathbf{1}_{\mathbb{Q}}(x) = \begin{cases} 1 & x \in \mathbb{Q} \\ 0 & x \notin \mathbb{Q} \end{cases}

In Riemann integration, any sub-interval contains both a rational and an irrational number. Thus, the lower rectangles always have height 00 and the upper rectangles height 11. They never meet.

The Lebesgue approach asks: “How ‘big’ is the set of rationals vs the set of irrationals?“. Since the rationals are countable, they have measure zero. The integral is effectively 0(size of irrationals)+1(size of rationals)=00 \cdot (\text{size of irrationals}) + 1 \cdot (\text{size of rationals}) = 0.

2. Measurable Spaces and σ\sigma-Algebras

To measure a set, we must first decide which sets are “legal” to measure.

Definition: σ\sigma-Algebra

A collection F\mathcal{F} of subsets of XX is a σ\sigma-algebra if:

  1. XFX \in \mathcal{F}
  2. AF    AcFA \in \mathcal{F} \implies A^c \in \mathcal{F} (Closed under complements)
  3. AnF    n=1AnFA_n \in \mathcal{F} \implies \bigcup_{n=1}^\infty A_n \in \mathcal{F} (Closed under countable unions)

Definition: Measure

A measure μ\mu is a function μ:F[0,]\mu: \mathcal{F} \to [0, \infty] such that:

  1. μ()=0\mu(\emptyset) = 0
  2. Countable Additivity: For disjoint sets AiA_i, μ(i=1Ai)=i=1μ(Ai)\mu(\bigcup_{i=1}^\infty A_i) = \sum_{i=1}^\infty \mu(A_i).

3. Measurable Functions

A function f:XRf: X \to \mathbb{R} is measurable if for every Borel set BB(R)B \in \mathcal{B}(\mathbb{R}), the preimage f1(B)f^{-1}(B) is in F\mathcal{F}. Equivalently: {xX:f(x)>a}FaR\{x \in X : f(x) > a \} \in \mathcal{F} \quad \forall a \in \mathbb{R}

python
1import numpy as np
2import matplotlib.pyplot as plt
3 
4# A "discontinuous" function: 1 if sin(x) > 0, else 0
5x = np.linspace(0, 10, 1000)
6y = (np.sin(x) > 0).astype(float)
7 
8# In Lebesgue terms, we are measuring the set {x : f(x) = 1}
9# This set is a collection of intervals [0, pi], [2pi, 3pi], etc.
10# These intervals are easy to measure!
11 
12plt.figure(figsize=(10, 4))
13plt.plot(x, y, label="f(x)")
14plt.fill_between(x, y, alpha=0.3)
15plt.title("Step Function (Easily Lebesgue Integrable)")
16plt.legend()
17plt.show()
18 

4. The Lebesgue Integral Construction

The Lebesgue integral is built in three stages:

  1. Simple Function: s(x)=i=1nai1Ei(x)s(x) = \sum_{i=1}^n a_i \mathbf{1}_{E_i}(x), where EiE_i are measurable disjoint sets.
  2. Integral of Simple Function: Xsdμ=i=1naiμ(Ei)\int_X s \, d\mu = \sum_{i=1}^n a_i \mu(E_i).
  3. General Integrable Function: For a non-negative measurable function ff: Xfdμ=sup{Xsdμ:0sf,s is simple}\int_X f \, d\mu = \sup \left\{ \int_X s \, d\mu : 0 \le s \le f, s \text{ is simple} \right\}

For general ff, we split it into f+=max(f,0)f^+ = \max(f, 0) and f=max(f,0)f^- = \max(-f, 0) and compute f+dμfdμ\int f^+ d\mu - \int f^- d\mu.

If we integrate a function that is 5 on a set with measure 2, and 0 everywhere else, what is the Lebesgue integral?

5. Almost Everywhere (a.e.)

In measure theory, we don’t care about what happens on “tiny” sets of measure zero. We say a property holds almost everywhere if the set of points where it fails has measure zero.

Example: If f(x)=g(x)f(x) = g(x) for all xx except at x=0x=0, their Lebesgue integrals are identical. This is why we can integrate functions with “holes” or infinite spikes (as long as the spikes aren’t too “fat”).

6. Convergence Theorems

The true power of Lebesgue theory is how well it handles limits.

  • Monotone Convergence: If fnf_n grows towards ff, the integrals grow towards the integral of ff.
  • Dominated Convergence: If fnff_n \to f and all fnf_n stay under some “umbrella” function gg that is integrable, then the limit of the integrals is the integral of the limit.

Can we Lebesgue-integrate a function that is 1 at every rational number in [0,1] and 0 at every irrational number?

Previous Module Differential Geometry