Pointwise convergence
The first idea: \(f_n \to f\) if, at every single point \(x\), the numbers \(f_n(x)\) converge to \(f(x)\). This is pointwise convergence.
Cauchy claimed in 1821 that a convergent sum of continuous functions is always continuous. Abel pointed out a counterexample in 1826 (a Fourier series). What went wrong? Look at the picture: near \(x = 1\), the convergence gets slower and slower. To make \(x^n < 0.01\) you need \(n \ge 44\) at \(x = 0.9\), but \(n \ge 459\) at \(x = 0.99\). No single \(n\) works for every \(x\).
Uniform convergence
Definition
\(f_n \to f\) uniformly on a set \(S\) if for every \(\varepsilon > 0\) there is an \(N\) such that
\[ |f_n(x) - f(x)| < \varepsilon \quad\text{for all } n \ge N \text{ and all } x \in S. \]Equivalently, \(\sup_{x\in S}|f_n(x) - f(x)| \to 0\).
The difference from pointwise convergence is only the order of words: in the pointwise version \(N\) may depend on \(x\); here one \(N\) must serve every \(x\) at once. It's the same shift as from continuity to uniform continuity in Unit 6.
Examples
\(\frac{\sin(nx)}{n} \to 0\) uniformly on \(\mathbb R\): the gap is at most \(\frac1n\), wherever \(x\) is.
\(x^n \to 0\) uniformly on \([0, 0.9]\): the gap is at most \(0.9^n \to 0\). But not on \([0, 1)\), where \(\sup x^n = 1\) for every \(n\).
Uniform limits are continuous
Theorem
If each \(f_n\) is continuous and \(f_n \to f\) uniformly, then \(f\) is continuous.
Proof: the ε/3 argument
Fix \(a\) and \(\varepsilon\). Choose \(n\) with \(|f_n - f| < \frac\varepsilon3\) everywhere. Since \(f_n\) is continuous at \(a\), choose \(\delta\) so that \(|x - a| < \delta\) gives \(|f_n(x) - f_n(a)| < \frac\varepsilon3\). Then
\[ |f(x) - f(a)| \le |f(x) - f_n(x)| + |f_n(x) - f_n(a)| + |f_n(a) - f(a)| < \tfrac\varepsilon3 + \tfrac\varepsilon3 + \tfrac\varepsilon3. \]The first and last terms needed uniformity: the same \(n\) had to work at \(x\) and at \(a\), for every \(x\) near \(a\). ∎
So \(x^n\) can't converge uniformly on \([0, 1]\): its limit isn't continuous. The theorem doubles as a test for non-uniformity.
Swapping limits and integrals
Is the integral of the limit the limit of the integrals? Not always:
Theorem
If \(f_n \to f\) uniformly on \([a, b]\) and each \(f_n\) is integrable, then \(f\) is integrable and \(\displaystyle\int_a^b f_n \to \int_a^b f\).
The proof is one line: \(\left|\int f_n - \int f\right| \le \int|f_n - f| \le (b - a)\sup|f_n - f| \to 0\). The spikes fail because \(\sup|f_n - 0| = n\), which grows.
Derivatives are more delicate still. \(f_n(x) = \frac{\sin(n^2x)}{n}\) converges uniformly to 0, but \(f_n'(x) = n\cos(n^2x)\) doesn't converge at all. Wiggles can be small in height and huge in slope. The right theorem asks for the derivatives to converge uniformly: then the limit is differentiable and \(f' = \lim f_n'\).
Power series
How do you prove uniform convergence of a series \(\sum g_k(x)\) in practice? Usually with this:
Weierstrass M-test
If \(|g_k(x)| \le M_k\) for all \(x\) in \(S\), and \(\sum M_k\) converges, then \(\sum g_k\) converges uniformly on \(S\).
Apply it to a power series \(\sum c_k x^k\). There is a radius of convergence \(R\) (possibly 0 or \(\infty\)): the series converges for \(|x| < R\) and diverges for \(|x| > R\). On any smaller interval \([-r, r]\) with \(r < R\), the M-test applies, so convergence is uniform there. Consequences:
- A power series is continuous inside its interval of convergence.
- It can be integrated and differentiated term by term, and the new series have the same radius. So it's infinitely differentiable, and it's the Taylor series of its own sum.
Example
Integrate \(\frac1{1 + t^2} = 1 - t^2 + t^4 - \cdots\) term by term from 0 to \(x\), for \(|x| < 1\):
\[ \arctan x = x - \frac{x^3}3 + \frac{x^5}5 - \cdots \]With more care (Abel's theorem) this holds at \(x = 1\) too, giving \(\frac\pi4 = 1 - \frac13 + \frac15 - \cdots\), the series found by Madhava around 1400 and by Leibniz in 1674.
Continuous, nowhere differentiable
Using the M-test, Weierstrass built a function in 1872 that shocked his contemporaries:
\[ W(x) = \sum_{k=0}^\infty \frac{1}{2^k}\cos(3^k\pi x). \]Before this, mathematicians assumed a continuous function must be differentiable "most of the time", and published proofs of it. Hermite called such functions a "lamentable plague". Today we know that, in a precise sense, most continuous functions are nowhere differentiable: the smooth ones are the rare exceptions. The graph of a Brownian motion, the path of a pollen grain jostled by molecules, looks just like this.
Every continuous function is nearly a polynomial
Weierstrass also proved a remarkable positive result, in 1885:
Weierstrass approximation theorem
If \(f\) is continuous on \([a, b]\), then for every \(\varepsilon > 0\) there is a polynomial \(p\) with \(|f(x) - p(x)| < \varepsilon\) for all \(x\) in \([a, b]\).
Even the monster above can be approximated, as closely as you like, uniformly, by polynomials. This is not Taylor's theorem: \(W\) has no derivatives at all. Bernstein gave a beautiful proof in 1912 using probability, with the explicit polynomials
\[ B_n(x) = \sum_{k=0}^n f\!\left(\tfrac kn\right)\binom nk x^k(1 - x)^{n-k} \quad\text{on } [0, 1]: \]the expected value of \(f(\frac kn)\) when \(k\) counts heads in \(n\) tosses of a coin that lands heads with probability \(x\). By the law of large numbers, \(\frac kn\) concentrates near \(x\), and \(B_n(x) \to f(x)\).
Practice set
Mixed questions covering the whole unit. Try each one before opening the answer.
1. Find the pointwise limit of \(f_n(x) = \frac{nx}{1 + nx}\) on \([0, 1]\). Is the convergence uniform?
Show answer
\(f_n(0) = 0\), and for \(x > 0\), \(f_n(x) \to 1\). The limit is discontinuous at 0 while each \(f_n\) is continuous, so the convergence can't be uniform.
2. Show that \(f_n(x) = \frac{x}{n}\) converges uniformly on \([0, 5]\) but not on \(\mathbb R\).
Show answer
On \([0, 5]\), \(\sup\frac{|x|}n = \frac5n \to 0\). On \(\mathbb R\), \(\sup\frac{|x|}{n} = \infty\) for every \(n\).
3. Use the M-test to show \(\sum_{k=1}^\infty \frac{\sin(kx)}{k^2}\) is continuous on \(\mathbb R\).
Show answer
\(\left|\frac{\sin(kx)}{k^2}\right| \le \frac1{k^2}\) and \(\sum\frac1{k^2}\) converges. So the series converges uniformly, and a uniform limit of continuous partial sums is continuous.
4. Find \(\displaystyle\lim_{n\to\infty}\int_0^1 \frac{\cos(nx)}{n}\,dx\).
Show answer
The integrands converge uniformly to 0 (bounded by \(\frac1n\)), so the limit is \(\int_0^1 0 = 0\).
5. Differentiate \(\frac1{1 - x} = \sum x^k\) term by term to find \(\sum_{k=1}^\infty \frac{k}{2^k}\).
Show answer
\(\frac1{(1 - x)^2} = \sum kx^{k-1}\) for \(|x| < 1\). Multiply by \(x\): \(\sum kx^k = \frac x{(1 - x)^2}\). At \(x = \frac12\): \(\frac{1/2}{1/4} = 2\).
6. Why can't the Weierstrass approximation theorem hold on all of \(\mathbb R\), for example for \(f = \sin\)?
Show answer
A non-constant polynomial is unbounded on \(\mathbb R\), so its distance from the bounded function \(\sin\) is unbounded. A constant polynomial stays at distance at least 1 from \(\sin\) somewhere. No polynomial is uniformly within \(\varepsilon < 1\).
Summary and glossary
- Pointwise convergence can destroy continuity: \(x^n\) on \([0, 1]\).
- Uniform convergence means \(\sup|f_n - f| \to 0\): eventually, the whole graph lies in an ε-tube.
- Uniform limits of continuous functions are continuous, and integrals pass to the limit.
- Power series converge uniformly inside their radius, and can be differentiated and integrated term by term.
- Weierstrass: a continuous, nowhere differentiable function; and every continuous function on \([a, b]\) is a uniform limit of polynomials.
- Pointwise convergence
- \(f_n(x) \to f(x)\) at each \(x\) separately.
- Uniform convergence
- One \(N\) works for all \(x\): \(\sup|f_n - f| \to 0\).
- M-test
- Domination by a convergent series of numbers gives uniform convergence.
- Radius of convergence
- The \(R\) with convergence for \(|x| < R\), divergence for \(|x| > R\).
- Bernstein polynomials
- Explicit polynomial approximations built from coin-toss probabilities.