---
title: "Convergence theorems: monotone and dominated convergence"
heading: The conditions under which the limit of the integrals is the integral of the limit
eyebrow: "A14 · Lesson 47 · Convergence theorems"
xp: 40
---

::: hook
Lesson 26 swapped limits and integrals when the convergence was uniform. That's often too strong a demand: an expected value over infinitely many outcomes, a Laplace transform as a parameter tends to a limit, a probability density sharpening toward a spike. Lebesgue's two convergence theorems cover these cases with conditions that are easy to check. If the functions increase, the swap is always allowed (**monotone convergence**). If they're all kept under one integrable ceiling, it's allowed too (**dominated convergence**). The moving spike of lesson 26 fails exactly because no integrable ceiling fits over all of it.
:::

::: play
- The curves are $f_n(x) = (1 - \frac xn)^n$ on [0, n] (and 0 beyond), which increase with n toward $e^{-x}$ at every x.
- Their integrals, $\frac{n}{n + 1}$ (readout), increase toward 1, which is $\int_0^\infty e^{-x}dx$. Lesson 26's theorem needs a bounded interval, which [0, ∞) isn't; monotone convergence guarantees the swap anyway.
- They're also all under the integrable ceiling $e^{-x}$, so dominated convergence applies too.
:::
:::

```sim plot
view: graph
x: x = 0..6
y: y = 0..1.05
slider: n = 1..40 step 1 = 3
plot: exp(-x) | label: e⁻ˣ
plot: step(n - x)*(1 - x/n)^n | samples: 800 | dashed | label: (1 − x/n)ⁿ
readout: ∫ fₙ = n/(n + 1)
readout: ∫ e⁻ˣ = 1
```

::: predict
## The densities $\frac{n}{\sqrt\pi}e^{-n^2x^2}$ each integrate to 1 over ℝ and converge to 0 at every x ≠ 0. What's the limit of their integrals, and does dominated convergence say it's 0?

- [ ] 0, by dominated convergence
- [x] 1; dominated convergence doesn't apply, because no integrable function lies above all of them
- [ ] It doesn't exist
- [ ] ½

::: reveal
The integrals are all 1, so the limit is 1, while the integral of the pointwise limit is 0. Any function above all the spikes must be at least $\frac{1}{\sqrt{2\pi e}\,\lvert x\rvert}$ near 0 (the tallest spike at each x), which isn't integrable. Without an integrable ceiling the swap fails; this sequence is the "delta function" engineers use, and it's a limit that integrals feel but pointwise values don't.
:::
:::

::: nameit
## Monotone convergence

If $0 \le f_1 \le f_2 \le \cdots$ and $f_n \to f$ almost everywhere, then

$$\int f_n \to \int f$$

(possibly infinite). For series of nonnegative functions this means $\int\sum f_k = \sum\int f_k$ always.

## Dominated convergence

If $f_n \to f$ almost everywhere and there's one integrable g with $\lvert f_n\rvert \le g$ for every n, then $\int f_n \to \int f$.

## Fatou's lemma

For nonnegative $f_n$: $\int\liminf f_n \le \liminf\int f_n$. Mass can escape in the limit (the spikes), but it can't appear from nowhere.

## Using them

- **Differentiating under the integral:** $\frac{d}{da}\int f(x, a)\,dx = \int\frac{\partial f}{\partial a}\,dx$ when $\lvert\partial f/\partial a\rvert$ is bounded by an integrable function independent of a (dominated convergence applied to difference quotients).
- **Limits of transforms:** $\lim_{a\to 0}\int_0^\infty e^{-x}\cos(ax)\,dx = \int_0^\infty e^{-x}dx$, dominated by $e^{-x}$.
- **Expected values:** $E[\lim X_n] = \lim E[X_n]$ when the $X_n$ are bounded by one random variable with finite mean.
:::

::: example
## Compute $\lim_{n\to\infty}\int_0^\infty e^{-x}\cos(x/n)\,dx$ two ways.

::: solution
1. **Directly.**
   $$\int_0^\infty e^{-x}\cos(ax)\,dx = \frac{1}{1 + a^2}$$
   so with $a = \frac1n$ the integral is
   $$\frac{n^2}{n^2 + 1} \to 1$$
2. **By dominated convergence.** $\lvert e^{-x}\cos(x/n)\rvert \le e^{-x}$, which is integrable, and the integrand tends to $e^{-x}$, so the limit is
   $$\int_0^\infty e^{-x}\,dx = 1$$
   without computing anything.

**Answer:** both ways, the limit is 1.
:::
:::

::: example
## Find $\frac{d}{da}\int_0^1e^{ax}dx$ at a = 1 by differentiating under the integral.

::: solution
1. **Find a dominating bound.** For a near 1 and x in [0, 1],
   $$\left\lvert\frac{\partial}{\partial a}e^{ax}\right\rvert = xe^{ax} \le e^2$$
   an integrable bound.
2. **Differentiate under the integral.** The derivative is
   $$\begin{aligned} \int_0^1xe^{x}dx &= [xe^x - e^x]_0^1 \\ &= 1 \end{aligned}$$
3. **Check directly.**
   $$\frac{d}{da}\frac{e^a - 1}{a} = \frac{ae^a - e^a + 1}{a^2}$$
   which is 1 at a = 1.

**Answer:** the derivative at a = 1 is 1.
:::
:::

::: example
## Why doesn't the dominated convergence theorem apply to $f_n = n\cdot\mathbf 1_{(0, 1/n)}$ on [0, 1]?

::: solution
1. **The limits disagree.** $f_n \to 0$ at every point, yet $\int f_n = 1$ for every n, so the integrals don't converge to the integral of the limit.
2. **What a dominating g would need.** $g \ge f_n$ for all n, so $g(x) \ge n$ for $x < \frac1n$, which means roughly
   $$g(x) \ge \frac1x - 1$$
3. **That isn't integrable.**
   $$\int_\varepsilon^1\frac{dx}{x} = \ln\frac1\varepsilon$$
   grows without limit, so no integrable g exists.
4. **Where it fails.** The theorem's hypothesis fails exactly where the mass escapes: into a spike that gets taller and thinner.

**Answer:** any function above every $f_n$ is at least about $\frac1x - 1$, which isn't integrable, so no dominating function exists.
:::
:::

::: check
given: n = 1 | 4 | 25
answer: n/(n + 1)
tolerance: 0.01%

## What's $\int_0^n\left(1 - \frac xn\right)^ndx$ for n = {n}?

::: right
Right. Substitute $u = 1 - \frac xn$: $n\int_0^1u^n\,du = \frac{n}{n + 1}$ = {answer}.
:::

::: misses
- [1] That's the limit; for finite n it's $\frac{n}{n + 1}$.
- [any] Not yet. Substitute $u = 1 - x/n$.
:::
:::

::: check
given: n = 2 | 5 | 10
answer: n^2/(n^2 + 1)
tolerance: 0.01%

## What's $\int_0^\infty e^{-x}\cos(x/\given{n})\,dx$?

::: right
Right. $\frac{1}{1 + 1/n^2} = \frac{n^2}{n^2 + 1}$ = {answer}, tending to 1 as dominated convergence promises.
:::

::: misses
- [1] That's the limit as n grows.
- [any] Not yet. $\int_0^\infty e^{-x}\cos(ax)\,dx = \frac{1}{1 + a^2}$.
:::
:::

::: check
given: a = 0.5 | 2 | 3
answer: (a*exp(a) - exp(a) + 1)/a^2
tolerance: 0.01%

## What's $\frac{d}{da}\int_0^1e^{ax}dx$ at a = {a}?

::: right
Right. $\int_0^1xe^{ax}dx = \frac{ae^a - e^a + 1}{a^2}$ = {answer}.
:::

::: misses
- [(exp(a) - 1)/a] That's the integral itself, not its derivative.
- [any] Not yet. Differentiate under the integral: $\int_0^1xe^{ax}dx$.
:::
:::

::: check
given: n = 2 | 3 | 5
answer: 1 - exp(-n^2)
tolerance: 0.01%

## What's $\int_0^12n^2xe^{-n^2x^2}dx$ for n = {n}, a sequence with pointwise limit 0?

::: right
Right. {answer}, tending to 1, not 0: no integrable function dominates the spikes.
:::

::: misses
- [0] That's the integral of the pointwise limit; the swap fails here.
- [any] Not yet. Antiderivative $-e^{-n^2x^2}$.
:::
:::

::: check
given: n = 2 | 5 | 50
answer: n/(n + 1)
tolerance: 0.01%

## $x^{1/n}$ increases to 1 on (0, 1]. What's $\int_0^1x^{1/n}dx$ for n = {n}?

::: right
Right. $\frac{1}{1/n + 1} = \frac{n}{n + 1}$ = {answer}, increasing to 1 by monotone convergence.
:::

::: misses
- [1] That's the limit.
- [any] Not yet. $\int_0^1x^p\,dx = \frac{1}{p + 1}$ with $p = 1/n$.
:::
:::

::: check
kind: choice

## Which hypothesis does dominated convergence need that pointwise convergence alone doesn't give?

- [ ] The functions are continuous
- [x] One integrable function bounds every $\lvert f_n\rvert$
- [ ] The convergence is uniform
- [ ] The functions are increasing

::: misses
- [1] Continuity isn't needed at all.
- [3] That's lesson 26's stronger condition on a bounded interval.
- [4] That's monotone convergence, a different theorem.
:::
:::

::: check
kind: parts
given: n = 2 | 9 | 99

## $f_n(x) = x^n$ on [0, 1].

::: part
answer: 1/(n + 1)
tolerance: 0.5%

### What is $\int_0^1f_n$?

::: misses
- [any] $\frac{1}{n + 1}$, which tends to 0 = the integral of the pointwise limit.
:::
:::

::: part
answer: n/(n + 1)
tolerance: 0.5%

### What is $\int_0^1(1 - x^n)\,dx$, which increases to 1 by monotone convergence?

::: misses
- [any] $1 - \frac{1}{n + 1}$.
:::
:::
:::

::: check
kind: derivation
vars: a = 0..5

## $I(a) = \int_0^1x^a\,dx = \frac{1}{a + 1}$.

::: step
answer: -1/(a + 1)^2

### Differentiate under the integral: what is $\int_0^1x^a\ln x\,dx$?
:::

::: right
Right. Dominated convergence justifies it, with the integrable bound $\lvert\ln x\rvert$ for a ≥ 0.
:::
:::

::: explain
## Why does an integrable ceiling prevent the integrals from misbehaving in the limit?

::: model
The way integrals fail to converge, when the functions converge pointwise, is by mass escaping: a spike that narrows toward a point, or a bump that slides off to infinity, keeps its area while vanishing at every fixed point. A single integrable function g lying above all the $f_n$ rules both out. A narrowing spike of fixed area would have to fit under g near one point, but g's area there shrinks to zero as the region does; a sliding bump would have to fit under g far away, where g's remaining area is also tiny. With nowhere for the mass to hide, the integrals must follow the pointwise limit.
:::
:::

::: practice

::: check
given: n = 2 | 5 | 7 | 10 | 20 | 100
answer: n/(n + 1)
tolerance: 0.01%

## $\int_0^n(1 - x/n)^ndx$ for n = {n}?

::: misses
- [any] $\frac{n}{n + 1}$.
:::
:::

::: check
given: n = 1..20 int
answer: n^2/(n^2 + 1)
tolerance: 0.01%

## $\int_0^\infty e^{-x}\cos(x/\given{n})\,dx$?

::: misses
- [any] $\frac{n^2}{n^2 + 1}$.
:::
:::

::: check
given: a = 0.5 | 1 | 1.5 | 2 | 3 | 4
answer: (a*exp(a) - exp(a) + 1)/a^2
tolerance: 0.01%

## $\frac{d}{da}\int_0^1e^{ax}dx$ at {a}?

::: misses
- [any] $\int_0^1xe^{ax}dx$.
:::
:::
:::
