MathLabs

Analysis

Measure theory

A rigorous notion of size for sets, underlying the Lebesgue integral and modern probability.

IntuitionWhy 'length' needs a rigorous definition

The length of an interval [a,b][a,b] is obviously b−ab-a, but what is the 'length' (or area, or volume) of a wild set like the rationals in [0,1][0,1], or a fractal? Measure theory answers this by first choosing a family of 'well-behaved' subsets — called a σ\sigma-algebra — on which a consistent notion of size, a measure μ\mu, can be defined; famously, no measure can be defined consistently on the family of all subsets of R\mathbb{R} (as the Vitali set construction shows), so restricting to a suitable σ\sigma-algebra is unavoidable, not a technicality.

Interactive Riemann sum widget with an adjustable number of subintervals, used to motivate the limits of domain-partition integration.
Refining a Riemann sum's partition of the xx-axis to n=55n=55 subintervals: for smooth functions the sum converges nicely, but for wildly discontinuous functions (like the indicator of the rationals) no amount of refinement helps — Lebesgue's fix is to partition the yy-axis (the range) into level sets instead, and measure those.

UndergraduateFormal definitions: σ\sigma-algebras, measures, and the Lebesgue integral

Definition: σ\sigma-algebra and measure space

A σ\sigma-algebra F\mathcal{F} on a set XX is a family of subsets containing XX itself, closed under complements, and closed under countable unions. A measure μ:F→[0,∞]\mu : \mathcal{F} \to [0,\infty] assigns μ(∅)=0\mu(\emptyset)=0 and is countably additive: the measure of a countable disjoint union equals the sum of the individual measures. The triple (X,F,μ)(X, \mathcal{F}, \mu) is called a measure space; when X=RnX=\mathbb{R}^n, F\mathcal{F} is the family of Lebesgue-measurable sets, and μ\mu assigns [a,b][a,b] the value b−ab-a, we call μ\mu Lebesgue measure.

μ(⋃n=1∞An)=∑n=1∞μ(An)for pairwise disjoint A1,A2,…∈F\mu\left(\bigcup_{n=1}^{\infty} A_n\right) = \sum_{n=1}^{\infty} \mu(A_n) \quad \text{for pairwise disjoint } A_1, A_2, \ldots \in \mathcal{F}

A function f:X→Rf : X \to \mathbb{R} is measurable if f−1((a,∞))∈Ff^{-1}((a,\infty)) \in \mathcal{F} for every real aa. The Lebesgue integral is built up in stages: first for simple functions s=∑kck1Eks = \sum_{k} c_k \mathbf{1}_{E_k} (finite linear combinations of indicators of measurable sets), where ∫s dμ:=∑kckμ(Ek)\int s\,d\mu := \sum_k c_k \mu(E_k); then for general nonnegative measurable ff, by approximating from below with simple functions.

∫f dμ=sup⁡{∫s dμ:0≤s≤f, s simple and measurable}\int f\,d\mu = \sup\left\{ \int s\,d\mu : 0 \le s \le f,\ s \text{ simple and measurable} \right\}
Riemann integral versus Lebesgue integral
AspectRiemann integralLebesgue integral
Partition strategyPartitions the domain (the xx-axis) into subintervalsPartitions the range (the yy-axis) into level sets
Class of integrable functionsBounded functions continuous almost everywhereAny measurable function (e.g. the Dirichlet function)
Limit-interchange theoremsRequires uniform convergence in generalMonotone and Dominated Convergence Theorems suffice

UndergraduateCore theorems: Monotone Convergence and Dominated Convergence

Let (fn)(f_n) be measurable functions with 0≤f1≤f2≤⋯0 \le f_1 \le f_2 \le \cdots pointwise almost everywhere, and let f=lim⁡n→∞fnf = \lim_{n\to\infty} f_n pointwise almost everywhere. Then lim⁡n→∞∫fn dμ=∫f dμ\lim_{n\to\infty} \int f_n\,d\mu = \int f\,d\mu.

Why is it true?

Since the fnf_n only grow, no 'area' is ever lost or double-counted as nn increases; stacking their simple-function approximations, the total accumulated area converges exactly to the area under the limit ff.

Proof

Since ∫fn dμ\int f_n\,d\mu is a nondecreasing sequence of extended reals (as fnf_n increases), the limit L:=lim⁡n→∞∫fn dμL := \lim_{n\to\infty}\int f_n\,d\mu exists in [0,∞][0,\infty]. Since fn≤ff_n \le f for every nn, monotonicity of the integral gives ∫fn dμ≤∫f dμ\int f_n\,d\mu \le \int f\,d\mu for every nn, hence L≤∫f dμL \le \int f\,d\mu.

For the reverse inequality, fix any simple measurable function ss with 0≤s≤f0 \le s \le f and fix a constant c∈(0,1)c \in (0,1). Define En={x:fn(x)≥c s(x)}E_n = \{x : f_n(x) \ge c\,s(x)\}. Because fnf_n increases to f≥sf \ge s pointwise, the sets EnE_n increase and their union is (almost) all of XX: for a.e. xx with s(x)=0s(x)=0 this is automatic, and for a.e. xx with s(x)>0s(x)>0, eventually fn(x)>c s(x)f_n(x) > c\,s(x) since fn(x)→f(x)≥s(x)>c s(x)f_n(x)\to f(x) \ge s(x) > c\,s(x).

Writing s=∑kck1Eks = \sum_k c_k \mathbf{1}_{E_k}, we get ∫fn dμ≥∫Enfn dμ≥c∫Ens dμ=c∑kck μ(Ek∩En)\int f_n\,d\mu \ge \int_{E_n} f_n\,d\mu \ge c\int_{E_n} s\,d\mu = c\sum_k c_k\,\mu(E_k \cap E_n). By countable additivity (continuity of measure from below, since EnE_n increases to XX), μ(Ek∩En)→μ(Ek)\mu(E_k \cap E_n) \to \mu(E_k) as n→∞n\to\infty, so letting n→∞n\to\infty gives L≥c∑kck μ(Ek)=c∫s dμL \ge c\sum_k c_k\,\mu(E_k) = c\int s\,d\mu.

Letting c→1c \to 1 gives L≥∫s dμL \ge \int s\,d\mu for every simple s≤fs \le f, and taking the supremum over all such ss (the very definition of ∫f dμ\int f\,d\mu) gives L≥∫f dμL \ge \int f\,d\mu. Combined with L≤∫f dμL \le \int f\,d\mu from above, we conclude L=∫f dμL = \int f\,d\mu.

Let (fn)(f_n) be measurable functions with fn→ff_n \to f pointwise almost everywhere, and suppose there is an integrable function gg (i.e. ∫g dμ<∞\int g\,d\mu < \infty) with ∣fn∣≤g|f_n| \le g almost everywhere for every nn. Then ff is integrable and lim⁡n→∞∫fn dμ=∫f dμ\lim_{n\to\infty} \int f_n\,d\mu = \int f\,d\mu.

Why is it true?

The dominating function gg acts as a fixed 'ceiling' of finite total mass that no fnf_n can exceed, ruling out mass silently escaping to infinity — the exact failure mode that defeats naive limit-interchange arguments when there is no monotonicity to rely on.

Proof

Since g−fn≥0g - f_n \ge 0 almost everywhere, Fatou's lemma applies: ∫lim inf⁡n→∞(g−fn) dμ≤lim inf⁡n→∞∫(g−fn) dμ\int \liminf_{n\to\infty}(g-f_n)\,d\mu \le \liminf_{n\to\infty} \int (g-f_n)\,d\mu. Because fn→ff_n \to f, the left side equals ∫(g−f) dμ=∫g dμ−∫f dμ\int (g-f)\,d\mu = \int g\,d\mu - \int f\,d\mu (valid since ∫g dμ\int g\,d\mu is finite), and the right side equals ∫g dμ−lim sup⁡n→∞∫fn dμ\int g\,d\mu - \limsup_{n\to\infty}\int f_n\,d\mu.

Cancelling the finite quantity ∫g dμ\int g\,d\mu from both sides gives −∫f dμ≤−lim sup⁡n→∞∫fn dμ-\int f\,d\mu \le -\limsup_{n\to\infty}\int f_n\,d\mu, i.e. lim sup⁡n→∞∫fn dμ≤∫f dμ\limsup_{n\to\infty}\int f_n\,d\mu \le \int f\,d\mu.

Next, since g+fn≥0g+f_n \ge 0 almost everywhere, Fatou's lemma applied to (g+fn)(g+f_n) gives ∫(g+f) dμ≤lim inf⁡n→∞∫(g+fn) dμ\int (g+f)\,d\mu \le \liminf_{n\to\infty}\int (g+f_n)\,d\mu, and cancelling ∫g dμ\int g\,d\mu again gives ∫f dμ≤lim inf⁡n→∞∫fn dμ\int f\,d\mu \le \liminf_{n\to\infty}\int f_n\,d\mu.

Combining the two inequalities, lim sup⁡n→∞∫fn dμ≤∫f dμ≤lim inf⁡n→∞∫fn dμ\limsup_{n\to\infty}\int f_n\,d\mu \le \int f\,d\mu \le \liminf_{n\to\infty}\int f_n\,d\mu. Since lim inf⁡≤lim sup⁡\liminf \le \limsup always holds, all three quantities must coincide, so lim⁡n→∞∫fn dμ\lim_{n\to\infty}\int f_n\,d\mu exists and equals ∫f dμ\int f\,d\mu.

UndergraduateReal-World Applications and Worked Examples

Measure theory is the invisible foundation of modern probability: Kolmogorov's axioms (1933) define a random experiment as a measure space of total mass 11, so that expectation is literally a Lebesgue integral; in signal processing and Fourier analysis, the LpL^p spaces of measurable functions (built from the Lebesgue integral) are the natural setting for Parseval's identity and Fourier series convergence; in mathematical finance, stochastic integration and option pricing rely on measure-theoretic probability; and fractal geometry and image compression use generalizations of Lebesgue measure (Hausdorff measure) to assign a meaningful 'size' to sets with non-integer dimension.

Example: The Dirichlet function: Lebesgue integrable, not Riemann integrable

Let f=1Q∩[0,1]f = \mathbf{1}_{\mathbb{Q} \cap [0,1]} be the indicator of the rationals in [0,1][0,1] (the Dirichlet function). Show ff is not Riemann integrable, but is Lebesgue integrable with ∫01f dμ=0\int_0^1 f\,d\mu = 0.

Solution

For Riemann integrability: on any subinterval of any partition of [0,1][0,1], both rationals and irrationals are dense, so the supremum of ff on that subinterval is 11 and the infimum is 00. Hence every upper Riemann sum equals 11 and every lower Riemann sum equals 00, regardless of how fine the partition is; since these never converge to a common value, ff is not Riemann integrable.

For Lebesgue integrability: the set Q∩[0,1]\mathbb{Q}\cap[0,1] is countable, so enumerate it as {q1,q2,…}\{q_1,q_2,\ldots\}. By countable subadditivity of Lebesgue measure, μ(Q∩[0,1])≤∑i=1∞μ({qi})=∑i=1∞0=0\mu(\mathbb{Q}\cap[0,1]) \le \sum_{i=1}^\infty \mu(\{q_i\}) = \sum_{i=1}^\infty 0 = 0, so Q∩[0,1]\mathbb{Q}\cap[0,1] has Lebesgue measure zero.

Since ff equals the zero function everywhere except on this measure-zero set, and the Lebesgue integral is unaffected by modifying a function on a set of measure zero, ∫01f dμ=∫010 dμ=0\int_0^1 f\,d\mu = \int_0^1 0\,d\mu = 0.

Example: Evaluating a limit of integrals with the Monotone Convergence Theorem

Let fn(x)=(1−xn)nf_n(x) = \left(1-\frac{x}{n}\right)^n for 0≤x≤n0 \le x \le n and fn(x)=0f_n(x) = 0 for x>nx > n. Using the Monotone Convergence Theorem, evaluate lim⁡n→∞∫0∞fn dμ\lim_{n\to\infty} \int_0^\infty f_n\,d\mu.

Solution

For each fixed x≥0x \ge 0, it is a standard calculus fact that (1−xn)n→e−x\left(1-\frac{x}{n}\right)^n \to e^{-x} as n→∞n\to\infty (take logarithms and use nln⁡(1−x/n)→−xn\ln(1-x/n) \to -x), and that fn(x)f_n(x) is nondecreasing in nn for fixed xx (a consequence of the concavity of ln⁡\ln). Thus 0≤f1≤f2≤⋯0 \le f_1 \le f_2 \le \cdots and fn→e−x1[0,∞)(x)f_n \to e^{-x}\mathbf{1}_{[0,\infty)}(x) pointwise.

By the Monotone Convergence Theorem, lim⁡n→∞∫0∞fn dμ=∫0∞e−x dx\lim_{n\to\infty} \int_0^\infty f_n\,d\mu = \int_0^\infty e^{-x}\,dx.

This is a standard improper Riemann integral (which agrees with the Lebesgue integral here, since e−x≥0e^{-x} \ge 0): ∫0∞e−x dx=[−e−x]0∞=0−(−1)=1\int_0^\infty e^{-x}\,dx = \left[-e^{-x}\right]_0^\infty = 0 - (-1) = 1. So lim⁡n→∞∫0∞fn dμ=1\lim_{n\to\infty} \int_0^\infty f_n\,d\mu = 1.

What is the Lebesgue integral ∫01f dμ\int_0^1 f\,d\mu of the Dirichlet function f=1Q∩[0,1]f = \mathbf{1}_{\mathbb{Q}\cap[0,1]}?

By countable additivity, what is the Lebesgue measure of (0,1)∪(2,3)(0,1) \cup (2,3)?

In Kolmogorov's measure-theoretic axioms for probability, what does a random experiment correspond to?

Which theorem justifies lim⁡n→∞∫fn dμ=∫f dμ\lim_{n\to\infty}\int f_n\,d\mu = \int f\,d\mu when fn→ff_n \to f pointwise and ∣fn∣≤g|f_n| \le g for a single fixed integrable gg, without requiring the fnf_n to be monotone?

References

  1. Gerald B. Folland (1999). Real Analysis: Modern Techniques and Their Applications
  2. Donald L. Cohn (2013). Measure Theory
  3. Hong Wang, Joshua Zahl (2025). Volume estimates for unions of convex sets, and the Kakeya set conjecture in three dimensions · arXiv:2502.17655 [preprint, not peer-reviewed]