Abstract Integration
Lebesgue integration is sometimes referred to as abstract integration.
The reason is that the Lebesgue integral is developed in the very general setting of a
measure space \((\Omega, \mathcal{F}, \mu)\).
We want to define the integral
\[
\int_{\Omega} g(\omega) \, d\mu(\omega)
\]
of a measurable function \(g: \Omega \to \overline{\mathbb{R}}\) on a measure space \((\Omega, \mathcal{F}, \mu)\).
Note. The symbol \(\overline{\mathbb{R}}\) denotes the extended real line
\([-\infty, \infty]\), which adds \(\infty\) and \(-\infty\) to \(\mathbb{R}\).
Let us check two special cases.
If the measure space is a probability space \((\Omega, \mathcal{F}, \mathbb{P})\) and
\(X: \Omega \to \overline{\mathbb{R}}\) is measurable, then \(X\) is an extended-valued random variable. The
integral is its expectation:
\[
\int_{\Omega} X \, d\mathbb{P} = \mathbb{E}(X).
\]
If we define the measure space as \((\mathbb{R}, \mathcal{B}, \lambda)\), where \(\mathcal{B}\) is
the Borel \(\sigma\)-algebra of \(\mathbb{R}\)
and \(\lambda\) is the
Lebesgue measure, then the
integral is written as in calculus,
\[
\int_{\mathbb{R}} g \, d\lambda = \int g(x) \, dx.
\]
On a bounded interval, with \(\mathcal{B}\) enlarged to its completion (discussed on the
previous page), the Lebesgue integral agrees with the Riemann integral of every Riemann
integrable function, as we show below.
Notation. Throughout this page, \(\mu\) denotes a general measure on an abstract measure
space, and \(\lambda\) denotes the Lebesgue measure on \(\mathbb{R}\).
So, even if it is not always stated explicitly, many of the integrals we have encountered can be defined using
Lebesgue integration. This covers both expectations in probability theory and integrals on the real line. The
approach is the core of modern analysis and probability, and it provides a robust framework for handling
functions that may be too irregular or complex for Riemann integration.
One of the key advantages of this abstract approach is its insensitivity to what happens on sets of
measure zero. The Dirichlet function, which the Riemann integral fails to handle,
illustrates this, as the example below shows.
Before we proceed, we pin down the notion of "measurable function" that has been informally invoked above.
Only measurable functions admit a Lebesgue integral. This is the structural analogue of boundedness being
necessary for the Riemann integral.
Definition: Measurable Function
Let \((\Omega, \mathcal{F})\) be a measurable space. A function \(g: \Omega \to \overline{\mathbb{R}}\)
is said to be \(\mathcal{F}\)-measurable
(or simply measurable, when \(\mathcal{F}\) is understood) if for every \(a \in \mathbb{R}\),
\[
\{\omega \in \Omega : g(\omega) \leq a\} \in \mathcal{F}.
\]
Equivalently, by the
measurability criterion,
\(g^{-1}(B) \in \mathcal{F}\) for every
Borel set
\(B \subset \overline{\mathbb{R}}\). In the special case of a probability space
\((\Omega, \mathcal{F}, \mathbb{P})\), a real-valued measurable function is called a
random variable, and an \(\overline{\mathbb{R}}\)-valued one an
extended-valued random variable.
Characteristic Function
Before we define the Lebesgue integral in full generality, we need a fundamental tool that allows us to
"isolate" or "focus on" specific regions of our measure space. This is where the characteristic function
comes in.
The characteristic function is deceptively simple. It is essentially a mathematical "switch" that turns a
function "on" over a specific set and "off" everywhere else. Despite its simplicity, this concept is crucial
for building up the Lebesgue integral from basic building blocks to arbitrarily complex measurable functions.
Definition: Characteristic Function (Indicator Function)
The characteristic function (or indicator function) of a set \(B\),
denoted \(\chi_B\) or \(1_B\), is defined by
\[
\chi_B(\omega) = \begin{cases}
1 & \text{if \(\omega \in B\)}\\
0 & \text{if \(\omega \notin B\)}.
\end{cases}
\]
Once the integral of a measurable function is available (it is defined below), the integral of
such a function \(g\) over a measurable subset \(B\) is defined by
\[
\int_B g \, d\mu = \int (\chi_B \, g) \, d\mu
\]
where
\[
(\chi_B \, g) (\omega) = \begin{cases}
g(\omega) & \text{if \(\omega \in B\)}\\
0 & \text{if \(\omega \notin B\)}.
\end{cases}
\]
We will use the term "almost everywhere" (a.e.) to mean "for all \(\omega\) outside a
zero-measure subset of \(\Omega\)". So, we "ignore" a set of \(\omega\)'s that has measure zero. For the
special case of a probability measure, we also use "almost surely" (a.s.).
For example,
\[
g_n \uparrow g, \, \text{a.e.}
\]
means that \(g_n(\omega)\) increases to \(g(\omega)\) for every \(\omega \in \Omega\) outside a
zero-measure set.
The Integral of Simple Functions
Definition: Simple Function
A function \(g: \Omega \to \mathbb{R}\) is said to be simple if it
is measurable, finite, and takes only finitely many different values.
If \(g\) is a simple function of the form
\[
g(\omega) = \sum_{i=1}^k a_i \chi_{A_i}(\omega), \quad \forall \omega \in \Omega
\]
where \(k\) is a positive integer, \(a_i \in \mathbb{R}\), and the \(A_i\) are
pairwise disjoint measurable sets, then its integral is defined by
\[
\int g \, d\mu = \sum_{i=1}^k a_i \mu(A_i).
\]
The sum on the right is independent of the choice of such a disjoint-set representation (shown below),
so the integral is well-defined as a property of \(g\) alone.
Convention. We adopt the standard measure-theoretic convention that
\(0 \cdot \infty = 0\). This ensures that \(a_i \mu(A_i) = 0\) whenever \(a_i = 0\), even if
\(\mu(A_i) = \infty\). The sum \(\sum_i a_i \mu(A_i)\) then fails to be defined only when two of
the sets \(A_i\) with coefficients of opposite signs both have infinite measure. We regard the
integral as undefined in that case. This cannot happen on a finite measure space, nor for a
nonnegative simple function.
Well-definedness.
Suppose that
\(g = \sum_i a_i \chi_{A_i} = \sum_j b_j \chi_{B_j}\), where the two expressions are disjoint-set
representations of the same simple function. Enlarging each family by one further piece carrying the
value \(0\), namely \(\Omega \setminus \bigcup_i A_i\) and \(\Omega \setminus \bigcup_j B_j\), we
may assume that both exhaust \(\Omega\). By the convention above, this enlargement changes neither
\(g\) nor either sum.
On each non-empty piece \(A_i \cap B_j\) of the common refinement, the two expressions force the
common value \(a_i = b_j\). Using finite additivity of \(\mu\) on the disjoint families
\(\{A_i \cap B_j\}_j\) and \(\{A_i \cap B_j\}_i\), and interchanging the two finite sums, we obtain
\[
\begin{align*}
\sum_i a_i \, \mu(A_i)
&= \sum_i \sum_j a_i \, \mu(A_i \cap B_j) \\\\
&= \sum_j \sum_i b_j \, \mu(A_i \cap B_j) \\\\
&= \sum_j b_j \, \mu(B_j).
\end{align*}
\]
If infinite terms occur, the display needs one more check, since a sum in
\(\overline{\mathbb{R}}\) is defined only when its infinite terms all have one sign. A term
\(a_i \mu(A_i)\) is infinite exactly when \(a_i \neq 0\) and some piece \(A_i \cap B_j\) has
infinite measure, and on that piece \(b_j = a_i\). The same holds with the two representations
exchanged. So a sign occurs among the infinite terms of one of these sums exactly when it occurs
among the infinite terms of each of the others.
Consequently, either every one of the sums in the display is defined, with all infinite terms of one
sign, so that the rearrangement above is legitimate, or none is. Hence the value of
\(\int g \, d\mu\) does not depend on the chosen representation.
Example: Dirichlet function
We can now compute the integral of the
Dirichlet function
on the interval \([0, 1]\):
\[
f(x)=
\begin{cases}
1 &\text{if \(x \in \mathbb{Q}\)} \\
0 &\text{if \(x \in \mathbb{R} \setminus \mathbb{Q}\)}.
\end{cases}
\]
The Dirichlet function is simple on \([0, 1]\). It takes only the two values \(1\) and \(0\) on the
disjoint measurable sets \([0,1] \cap \mathbb{Q}\) and \([0,1] \setminus \mathbb{Q}\), so it fits the form
\(\sum_i a_i \chi_{A_i}\) of the definition above.
We first record the measures of the two pieces:
- \(\lambda([0,1] \cap \mathbb{Q}) = 0\), since \([0,1] \cap \mathbb{Q}\) is a countable set
and countable sets have Lebesgue measure zero (established on the previous page).
- \(\lambda([0,1] \setminus \mathbb{Q}) = 1\), by finite additivity on the disjoint decomposition
\([0,1] = ([0,1] \cap \mathbb{Q}) \cup ([0,1] \setminus \mathbb{Q})\), using
\(\lambda([0,1]) = \lambda(\{0\}) + \lambda((0,1]) = 1\).
The simple-function integral then gives
\[
\begin{align*}
\int_{[0,1]} f \, d\lambda &= 1 \cdot \lambda([0, 1] \cap \mathbb{Q}) + 0 \cdot \lambda([0, 1] \setminus \mathbb{Q}) \\\\
&= 1 \cdot 0 + 0 \cdot 1 \\\\
&= 0.
\end{align*}
\]
So, the Dirichlet function is \(0\) almost everywhere. Even though there are infinitely many
rational numbers where the function equals \(1\), their "weight" (measure) in the continuum of real
numbers is zero.
Note. The same formula defines a function on all of \(\mathbb{R}\). Since
\([a, b] \cap \mathbb{Q}\) is countable, the same computation, now with
\(\lambda([a, b] \setminus \mathbb{Q}) = b - a\), shows that its Lebesgue integral over every interval
\([a, b]\) is \(0\).
Insight: "Generally Speaking"
In the real world, strict logical implications like \(P \implies Q\) are incredibly rare. When we say
"Generally, A implies B," we are often mentally suppressing thousands of lines of "exception handling"
code.
In measure theory, we can formalize this "generally" using the concept of
"almost everywhere" (a.e.). Instead of demanding that a property
hold at every single point (which is often too brittle for complex systems),
we allow for a set of exceptions, provided that its measure is zero.
The Dirichlet function above illustrates exactly this situation. By
using a.e., we gain a powerful way to "compress" information without
losing logical rigor.
The Dirichlet function agrees with the zero function outside a set of measure zero, and its
integral is \(0\), the same as the integral of the zero function. More generally, if two
measurable functions agree almost everywhere and one of them has an
integral, the other has
the same integral. On the page devoted to properties of the Lebesgue integral, the
proposition that treats
modification on a null set
shows that the positive parts of the two functions have equal integrals. So do their negative
parts. The claim then follows from the definition of the integral given below.
When measure theory is applied to probability, "almost everywhere" is referred
to as "almost surely" (a.s.). This notion is vital for understanding how we
handle "impossible" events.
Consider flipping a fair coin infinitely many times. From a set-theoretic perspective, a
sequence of "all heads" (H, H, H, ...) is a "valid" element of the sample space \(\Omega\). It is
logically "possible" in the sense that the singleton set containing it is not empty. However, from a
measure-theoretic perspective, the probability measure assigned to this specific
singleton set is exactly zero.
The strong law of large numbers is stated in the same spirit. It asserts that the proportion of
heads among the first \(n\) flips converges to \(1/2\) almost surely. Sequences for which
this convergence fails (all heads, for instance, whose proportion tends to \(1\)) exist as
mathematical objects, but their total "weight" is zero.
The Integral of Nonnegative Measurable Functions
We approximate the integral of a nonnegative function \(g\) using simple functions.
For a nonnegative, possibly extended-valued, measurable function \(g: \Omega \to [0, \infty]\), let \(S(g)\)
denote the set of all nonnegative simple functions \(q\) that satisfy
\[
0 \leq q(\omega) \leq g(\omega) \quad \text{at every } \omega \in \Omega.
\]
Note that \(q\) itself is finite-valued, whereas \(g\) may attain the value \(+\infty\). At points where
\(g(\omega) = +\infty\), the condition \(q(\omega) \leq g(\omega)\) simply imposes no upper bound on
\(q(\omega)\).
We then define
\[
\int g \, d\mu = \sup_{q \in S(g)} \int q \, d\mu,
\]
interpreted as a value in \([0, \infty]\) (the supremum is allowed to be \(+\infty\)).
When \(g\) is itself a nonnegative simple function, we have \(g \in S(g)\). For every other \(q \in S(g)\),
the pointwise inequality \(q \leq g\) passes through the simple-function integral, by the same
common-refinement comparison used in the well-definedness argument, to give
\(\int q \, d\mu \leq \int g \, d\mu\). Hence the supremum is attained at \(q = g\), and this definition is
consistent with the one given earlier for simple functions.
Theorem: Zero Integral Implies Vanishing Almost Everywhere
Let \(g : \Omega \to [0, \infty]\) be nonnegative and measurable. Then
\[
\int_\Omega g \, d\mu = 0
\quad \Longleftrightarrow \quad
g = 0 \text{ almost everywhere.}
\]
Proof.
(\(\Leftarrow\)) Suppose \(g = 0\) a.e. The set
\(N = \{\omega : g(\omega) \gt 0\}\) is measurable, being the complement of
\(\{\omega : g(\omega) \leq 0\} \in \mathcal{F}\), and it is contained in a set of measure zero, so
\(\mu(N) = 0\) by monotonicity of \(\mu\). For any \(q \in S(g)\), pointwise \(0 \leq q \leq g\), so
\(q(\omega) = 0\) whenever \(g(\omega) = 0\). In particular, \(q = 0\) on \(\Omega \setminus N\).
Write
\(q = \sum_i a_i \chi_{A_i}\) in a disjoint-set representation. For each index \(i\) with \(a_i \gt 0\),
we claim \(A_i \subseteq N\). If \(\omega \in A_i\), disjointness of the representation forces
\(q(\omega) = a_i \gt 0\), hence \(\omega \in N\). Monotonicity of \(\mu\) then gives
\(\mu(A_i) \leq \mu(N) = 0\), so \(\mu(A_i) = 0\). The remaining terms vanish as well. A term with
\(a_i = 0\) is \(0\) by the convention \(0 \cdot \infty = 0\). A negative coefficient \(a_i\) can occur
only with \(A_i = \emptyset\), since \(q \geq 0\), and then \(a_i \mu(A_i) = a_i \mu(\emptyset) = 0\).
Therefore \(\int q \, d\mu = \sum_i a_i \mu(A_i) = 0\) for every \(q \in S(g)\), so
\(\int g \, d\mu = \sup_{q \in S(g)} \int q \, d\mu = 0\).
(\(\Rightarrow\)) Suppose \(\int g \, d\mu = 0\). For each \(n \in \mathbb{N}\), define
\(A_n = \{\omega : g(\omega) \geq 1/n\}\). Since \(g\) is
measurable and
\([1/n, \infty]\) is a
Borel subset of \(\overline{\mathbb{R}}\)
(its intersection with \(\mathbb{R}\) is the interval \([1/n, \infty)\), which is
Borel),
the preimage \(A_n = g^{-1}([1/n, \infty])\) lies in \(\mathcal{F}\).
The function \(\tfrac{1}{n}\chi_{A_n}\) is a nonnegative simple function
satisfying \(\tfrac{1}{n}\chi_{A_n}(\omega) \leq g(\omega)\) at every \(\omega\), so
\(\tfrac{1}{n}\chi_{A_n} \in S(g)\). By the definitions of the integral of
simple functions and of
\(\int g \, d\mu\) as a supremum over \(S(g)\),
\[
\begin{align*}
\tfrac{1}{n} \mu(A_n)
&= \int \tfrac{1}{n}\chi_{A_n} \, d\mu \\\\
&\leq \int g \, d\mu \\\\
&= 0.
\end{align*}
\]
Since \(\tfrac{1}{n} \mu(A_n) \in [0, \infty]\) and is bounded above by \(0\), we conclude
\(\mu(A_n) = 0\).
Finally, \(g(\omega) \gt 0\) holds if and only if \(g(\omega) \geq 1/n\) for some
\(n \in \mathbb{N}\) (by the Archimedean property for \(g(\omega) \in (0, \infty)\), and
trivially for \(g(\omega) = \infty\)), so
\(\{\omega : g(\omega) \gt 0\} = \bigcup_{n=1}^\infty A_n\). This is a countable union of
measurable sets, hence measurable. The inequality \(1/(n+1) \lt 1/n\) gives
\(A_n \subseteq A_{n+1}\), so the sets increase. By
continuity of \(\mu\) from below,
\[
\mu(\{g \gt 0\}) = \lim_{n \to \infty} \mu(A_n) = 0.
\]
Since \(g \geq 0\), we have \(\{g \neq 0\} = \{g \gt 0\}\), so \(\mu(\{g \neq 0\}) = 0\), that is,
\(g = 0\) almost everywhere.
The Integral of General Measurable Functions
Consider a measurable function \(g: \Omega \to \overline{\mathbb{R}}\). Let
\[
\begin{align*}
A_+ &= \{\omega : g(\omega) \gt 0\} \\\\
g_+ &= g \cdot \chi_{A_+}
\end{align*}
\]
and
\[
\begin{align*}
A_- &= \{\omega : g(\omega) \lt 0\} \\\\
g_- &= -g \cdot \chi_{A_-}.
\end{align*}
\]
Note that \(A_+\) and \(A_-\) are measurable sets, and \(g_+\), \(g_-\) are both nonnegative (possibly
extended-valued) measurable functions.
Definition: The Integral of a Measurable Function
Let \(g: \Omega \to \overline{\mathbb{R}}\) be measurable. Its positive and negative parts
\(g_+ = g \cdot \chi_{\{g \gt 0\}}\) and \(g_- = -g \cdot \chi_{\{g \lt 0\}}\) are nonnegative,
and \(g = g_+ - g_-\). Both are measurable by the proposition on
operations preserving measurability.
If at least one of \(\int g_+ \, d\mu\) and \(\int g_- \, d\mu\) is finite, the
integral of \(g\) is
\[
\int g \, d\mu = \int g_+ \, d\mu - \int g_- \, d\mu \in \overline{\mathbb{R}},
\]
with \(\infty - a = \infty\) and \(a - \infty = -\infty\) for \(a \in [0, \infty)\).
If both integrals are finite, \(g\) is called integrable (or
Lebesgue integrable), and its integral is a real number. If both are infinite,
the integral of \(g\) is not defined.
For \(B \in \mathcal{F}\), the
integral over \(B\)
\(\int_B g \, d\mu\) is defined when the integral of \(\chi_B \, g\) is. The function \(g\) is
called integrable over \(B\) when \(\chi_B \, g\) is integrable.
This definition agrees with the earlier ones. If \(g \geq 0\), then \(g_+ = g\) and \(g_- = 0\), so
we recover the integral of a nonnegative function.
If \(g = \sum_i a_i \chi_{A_i}\) is simple, with pairwise disjoint \(A_i\), then
\(g_+ = \sum_{a_i \gt 0} a_i \chi_{A_i}\) and \(g_- = \sum_{a_i \lt 0} (-a_i) \chi_{A_i}\) are
nonnegative simple functions. By the consistency of the supremum definition with the
simple-function integral for nonnegative simple functions, the integrals of \(g_+\) and \(g_-\)
are \(\sum_{a_i \gt 0} a_i \mu(A_i)\) and \(\sum_{a_i \lt 0} (-a_i) \mu(A_i)\). Their difference
is \(\sum_i a_i \mu(A_i)\). The simple-function integral and the definition above leave the
integral undefined in the same case, namely when a positive and a negative coefficient both sit on
sets of infinite measure.
Note. Integrability is a genuine restriction. An example below shows a function on
\([0, \infty)\) whose integral is not even defined. First, however, we record how the Lebesgue integral
relates to the ordinary Riemann integral on a bounded interval.
Proposition: Riemann Integrable Implies Lebesgue Integrable
Let \(f: [a, b] \to \mathbb{R}\) be Riemann integrable on \([a, b]\). Then \(f\) is Lebesgue integrable on
\([a, b]\) (with respect to Lebesgue measure \(\lambda\)), and the two integrals agree:
\[
\int_{[a,b]} f \, d\lambda = \int_a^b f(x) \, dx.
\]
The left side is the Lebesgue integral of the measurable function \(f\) against Lebesgue measure. The
right side is the classical Riemann integral.
Sketch of proof.
Since \(f\) is Riemann integrable, it is bounded on \([a, b]\). Let \(\mathcal{P}_n\) be a sequence of
partitions of \([a, b]\) whose norms \(\|\mathcal{P}_n\|\), the lengths of their longest subintervals,
tend to \(0\), and set
\(\mathcal{Q}_n = \mathcal{P}_1 \cup \cdots \cup \mathcal{P}_n\) so that \(\mathcal{Q}_{n+1}\) refines
\(\mathcal{Q}_n\) and \(\|\mathcal{Q}_n\| \to 0\) as well. Define the step functions
\[
\begin{align*}
u_n &= \sum_i M_i^{(n)} \chi_{I_i^{(n)}} \\\\
\ell_n &= \sum_i m_i^{(n)} \chi_{I_i^{(n)}}
\end{align*}
\]
on \([a, b]\). Here \(\mathcal{Q}_n = \{a = x_0 \lt \cdots \lt x_N = b\}\). The numbers \(M_i^{(n)}\)
and \(m_i^{(n)}\) are the sup and inf of \(f\) on the closed subinterval \([x_{i-1}, x_i]\), and the
indicators are those of the disjoint pieces \(I_i^{(n)} = [x_{i-1}, x_i)\) for \(i \lt N\) and
\(I_N^{(n)} = [x_{N-1}, b]\).
The step functions \(\ell_n\) and \(u_n\) are simple, and by the definition of the simple-function
integral they integrate to the
lower and upper sums of
\(f\):
\[
\begin{align*}
\int_{[a,b]} \ell_n \, d\lambda &= L(f, \mathcal{Q}_n) \\\\
\int_{[a,b]} u_n \, d\lambda &= U(f, \mathcal{Q}_n).
\end{align*}
\]
Refinement forces \(\ell_n \uparrow \ell^*\) and \(u_n \downarrow u^*\) pointwise on \([a, b]\), with
\(\ell^* \leq f \leq u^*\). Both \(\ell^*\) and \(u^*\) are Borel-measurable as pointwise limits of simple
functions, by the proposition on
operations preserving measurability.
The differences \(u_n - \ell_n\) decrease pointwise to \(u^* - \ell^*\) and are dominated by
the bounded simple function \(u_1 - \ell_1\), which is integrable because \([a, b]\) carries finite
measure. The
dominated convergence theorem
therefore gives
\[
\begin{align*}
\int_{[a,b]} (u^* - \ell^*) \, d\lambda
&= \lim_{n \to \infty} \bigl( U(f, \mathcal{Q}_n) - L(f, \mathcal{Q}_n) \bigr) \\\\
&= 0,
\end{align*}
\]
where the last equality holds by
Darboux's criterion in its partition-norm form,
since \(f\) is Riemann integrable and \(\|\mathcal{Q}_n\| \to 0\).
Since \(u^* - \ell^* \geq 0\) with vanishing integral, \(u^* = \ell^*\) almost everywhere, and
therefore \(f = \ell^*\) a.e. The function \(f\) is thus an a.e. limit of Borel-measurable
functions, and the completion of the Borel \(\sigma\)-algebra (introduced on the previous page)
absorbs the a.e. exception. Hence \(f\) is Lebesgue-measurable.
The function \(f\) is also integrable. Let \(M = \sup_{[a,b]} |f|\). Then
\(0 \leq f_+ \leq M \chi_{[a,b]}\) and \(0 \leq f_- \leq M \chi_{[a,b]}\), so every nonnegative
simple function below \(f_+\) or \(f_-\) lies below the simple function \(M \chi_{[a,b]}\). By
the comparison in the consistency remark for nonnegative simple functions, the integral of each
such function is at most \(M(b - a)\). Hence \(\int f_+ \, d\lambda\) and
\(\int f_- \, d\lambda\) are at most \(M(b - a)\), and both are finite.
Finally, \(\int_{[a,b]} \ell_n \, d\lambda = L(f, \mathcal{Q}_n) \to \int_a^b f(x)\, dx\) by the same
criterion.
On the other hand, every \(\ell_n\) is bounded by \(M\) and \(f = \ell^*\) almost everywhere, so
dominated convergence, applied once more, gives
\(\int_{[a,b]} \ell_n \, d\lambda \to \int_{[a,b]} \ell^* \, d\lambda = \int_{[a,b]} f \, d\lambda\).
Equating the two limits yields the stated equality.
Note that some improperly Riemann integrable functions are not Lebesgue integrable.
Example: Sinc function over \([0, \infty)\)
Consider the Dirichlet integral of the sinc function
\(x \mapsto \frac{\sin x}{x}\), with value \(1\) at \(x = 0\):
\[
\int_0^{\infty} \frac{\sin x}{x} \, dx.
\]
We use without proof the classical fact that this improper integral converges, with value
\(\frac{\pi}{2}\):
\[
\begin{align*}
\int_0^{\infty} \frac{\sin x}{x} \, dx &= \lim_{b \to \infty} \int_0^b \frac{\sin x}{x} \, dx \\\\
&= \frac{\pi}{2}.
\end{align*}
\]
So, the sinc function is improperly Riemann integrable on \([0, \infty)\).
On the other hand, the Lebesgue definition splits the integrand into its positive and negative
parts, and assigns a value only when at least one of the two parts has a finite integral. On
\([0, \infty)\) with Lebesgue measure, the integral would be
\[
\begin{align*}
\int_{[0,\infty)} \frac{\sin x}{x} \, d\lambda
&= \int_{[0,\infty)} \left(\frac{\sin x}{x}\right)_+ \, d\lambda \\\\
&\quad - \int_{[0,\infty)} \left(\frac{\sin x}{x}\right)_- \, d\lambda.
\end{align*}
\]
The positive part vanishes outside the pairwise disjoint intervals \([2\pi n, 2\pi n + \pi]\)
for \(n = 0, 1, 2, \ldots\), on which \(\sin x \geq 0\). By the
countable additivity of the integral over sets,
its integral is the sum of its integrals over these intervals. Each of these integrals equals
the corresponding Riemann integral, since
Riemann integrable functions are Lebesgue integrable
with the same integral.
Together, these two facts give
\[
\begin{align*}
\int_{[0,\infty)} \left(\frac{\sin x}{x}\right)_+ \, d\lambda &= \sum_{n=0}^{\infty} \int_{2\pi n}^{2\pi n + \pi} \frac{\sin x}{x} \, dx \\\\
&\geq \sum_{n=0}^{\infty} \int_{2\pi n}^{2\pi n + \pi} \frac{\sin x}{2 \pi n + \pi} \, dx \tag{**} \\\\
&= \sum_{n=0}^{\infty} \frac{2}{\pi(2n +1)} \\\\
&= \infty
\end{align*}
\]
and similarly, using the intervals \([2\pi n + \pi,\, 2\pi n + 2\pi]\) on which \(\sin x \leq 0\), we
obtain
\[
\int_{[0,\infty)} \left(\frac{\sin x}{x}\right)_- \, d\lambda = \infty.
\]
Both parts have infinite integrals, so the definition assigns no value to the integral, and in
particular the sinc function is not integrable in the Lebesgue sense.
(**) On each interval \([2\pi n, 2\pi n + \pi]\) we have \(\sin x \geq 0\) and
\(x \leq 2\pi n + \pi\). Hence \(\frac{\sin x}{x} \geq \frac{\sin x}{2\pi n + \pi}\) for every
\(x \gt 0\) in that interval. At \(x = 0\) the left side is \(1\) and the right side is \(0\),
so the inequality also holds there.
For functions that are Riemann integrable on every bounded subinterval of \([0, \infty)\), Lebesgue
integrability demands absolute convergence, and this example shows that an improper Riemann integral
can exist without it. The sinc function's integral converges in the Riemann sense because its
positive and negative contributions partly cancel. However, Lebesgue integrability requires both the
positive and the negative part to have a finite integral. There is no room for "conditional
convergence" based on cancellation.
Integrability is a hypothesis of several main theorems of the theory. The dominated convergence
theorem requires an integrable dominating function, and the theorem that permits interchanging the
order of integration for a function of both signs on a product space assumes its integrability.
Excluding conditionally convergent improper integrals is the price of building the integral
from the positive and negative parts separately. The improper Riemann integral of the sinc function
is still recovered as the limit of its Lebesgue integrals over \([0, b]\) as \(b \to \infty\).
The Foundation Layer for ML and Geometry
With the definition of Lebesgue integration complete, we have established a rigorous framework that:
- Handles functions that are "impossible" for Riemann integration (for example, the Dirichlet function).
- Formalizes the notion of "almost everywhere" to ignore sets of measure zero.
- Provides the foundation for the
\(L^p\) spaces, a central class of examples in
functional analysis.
- Enables powerful convergence theorems: the monotone convergence theorem,
Fatou's lemma, and the dominated convergence theorem. These are stated and proved in the
\(L^p\) completeness and convergence
page.
Modern machine learning rests on this framework indirectly. Expected losses
\(\mathbb{E}_{(\mathbf{x},y) \sim P}[\ell(f_{\boldsymbol{\theta}}(\mathbf{x}), y)] = \int \ell(f_{\boldsymbol{\theta}}(\mathbf{x}), y) \, dP(\mathbf{x}, y)\)
are Lebesgue integrals against an unknown data distribution \(P\). The empirical risk
\(\frac{1}{n} \sum_i \ell(f_{\boldsymbol{\theta}}(\mathbf{x}_i), y_i)\) used in practice converges almost surely to
the expected loss by the strong law of large numbers, provided \(\boldsymbol{\theta}\) is fixed, the samples
are i.i.d. from \(P\), and the loss is integrable. At a \(\boldsymbol{\theta}\) chosen by minimizing the
empirical risk, this convergence can no longer be taken for granted, and a uniform version of the law is
typically needed.
Similarly, the Fisher information matrix of information geometry is defined as an integral
against a parametric density, and the natural gradient is built from it, but both are estimated
in code from sampled data. Lebesgue measure assigns a size to every measurable set, not only to
intervals. This grid-free character lets the extension of the integral to manifolds, where integrals are computed
through local charts into \(\mathbb{R}^n\), handle general measurable integrands. That extension
covers integration on curved spaces, including
matrix Lie groups such as
\(SO(3)\) and \(SE(3)\), used in robotics and equivariant networks.
The recurring pattern is that the rigorous Lebesgue object is what makes the practical finite-sample
computation an approximation of something well-defined.