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 for rationals and for irrationals:
In Riemann integration, any sub-interval contains both a rational and an irrational number. Thus, the lower rectangles always have height and the upper rectangles height . 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 .
2. Measurable Spaces and -Algebras
To measure a set, we must first decide which sets are “legal” to measure.
Definition: -Algebra
A collection of subsets of is a -algebra if:
(Closed under complements)
(Closed under countable unions)
Definition: Measure
A measure is a function such that:
Countable Additivity: For disjoint sets , .
3. Measurable Functions
A function is measurable if for every Borel set , the preimage is in . Equivalently:
Interactive Lab
import numpy as np
import matplotlib.pyplot as plt
# A "discontinuous" function: 1 if sin(x) > 0, else 0
x = np.linspace(0, 10, 1000)
y = (np.sin(x) > 0).astype(float)
# In Lebesgue terms, we are measuring the set {x : f(x) = 1}
# This set is a collection of intervals [0, pi], [2pi, 3pi], etc.
# These intervals are easy to measure!
plt.figure(figsize=(10, 4))
plt.plot(x, y, label="f(x)")
plt.fill_between(x, y, alpha=0.3)
plt.title("Step Function (Easily Lebesgue Integrable)")
plt.legend()
plt.show()
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:
Simple Function: , where are measurable disjoint sets.
Integral of Simple Function: .
General Integrable Function: For a non-negative measurable function :
For general , we split it into and and compute .
Knowledge Check
If we integrate a function that is 5 on a set with measure 2, and 0 everywhere else, what is the Lebesgue integral?
Answer: 10
The integral of a simple function is simply the value multiplied by the measure of the set where that value is taken: 5 * 2 = 10.
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 for all except at , 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 grows towards , the integrals grow towards the integral of .
Dominated Convergence: If and all stay under some “umbrella” function that is integrable, then the limit of the integrals is the integral of the limit.
Knowledge Check
Can we Lebesgue-integrate a function that is 1 at every rational number in [0,1] and 0 at every irrational number?
Answer: Yes, and the integral is 0
Since the set of rationals has measure zero in the real line, the value of the function on the rationals is ignored by the integral. The integral is 0.
Can we Lebesgue-integrate a function that is 1 at every rational number in [0,1] and 0 at every irrational number?