Unit 11: Sequences of functions

When functions converge

Taylor polynomials, Fourier series, numerical methods: much of analysis builds a function as the limit of simpler ones. But what does it mean for functions to converge? The obvious answer turns out to be too weak, and fixing it is one of the great clarifications of the nineteenth century.

123456789101112
In this unit
  1. Pointwise convergence
  2. Uniform convergence
  3. Uniform limits are continuous
  4. Swapping limits and integrals
  5. Power series
  6. Continuous, nowhere differentiable
  7. Every continuous function is nearly a polynomial
  8. Practice set
  9. Summary and glossary

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.

The functions x to the nGraphs of x to the power n on [0, 1] for n = 1, 3, 8, 20 and 60. As n grows each graph sags towards the axis, but every one still rises to 1 at x = 1. The pointwise limit, drawn in ink, is 0 on [0, 1) with a solid dot at height 1 at x = 1: a broken function.0.511n = 1, 3, 8, 20, 60
Continuous functions, broken limit. \(f_n(x) = x^n\) on \([0, 1]\). For \(x < 1\), \(x^n \to 0\); at \(x = 1\), \(1^n = 1\). Every \(f_n\) is continuous, but the pointwise limit jumps.

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.

Uniform convergenceA dashed blue limit function f surrounded by a shaded tube reaching a distance epsilon above and below it. A wiggly crimson function f n stays inside the tube along the whole interval: that is what uniform convergence demands, for every n from some point on.tube of width ε
The ε-tube. Draw a band of half-width \(\varepsilon\) around the graph of \(f\). Uniform convergence says that from some \(n\) on, the whole graph of \(f_n\) lies inside the band. For \(x^n\) this fails: every \(f_n\) climbs to 1 at the right end, leaving any thin band around the limit.

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:

Spikes with area 1Triangular spikes on [0, 2/n] of height n, drawn for n = 2, 4 and 8. Each has area 1. As n grows the spike gets taller and thinner and slides towards 0. At every point the values eventually become 0, but the area stays 1.1/41/21n = 2n = 4n = 8
Area that vanishes in the limit. Each spike has area 1, so \(\int_0^1 f_n = 1\) for all \(n\). But \(f_n(x) \to 0\) at every \(x\) (for \(x > 0\), the spike eventually passes it; and \(f_n(0) = 0\)). So \(\lim\int f_n = 1\) while \(\int\lim f_n = 0\).

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:

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). \]
Weierstrass's functionA jagged continuous curve, the sum of cos(3 to the k times pi x) over 2 to the k. It has zig-zags inside zig-zags at every scale, and no tangent line anywhere.
Corners everywhere. The first eight terms of \(W\). Each term is a smooth wave, half as tall and three times as fast as the last. The heights shrink geometrically, so by the M-test the sum is continuous. But the slopes grow like \(\left(\frac32\right)^k\), and the limit has no derivative at any point.

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

  1. Pointwise convergence can destroy continuity: \(x^n\) on \([0, 1]\).
  2. Uniform convergence means \(\sup|f_n - f| \to 0\): eventually, the whole graph lies in an ε-tube.
  3. Uniform limits of continuous functions are continuous, and integrals pass to the limit.
  4. Power series converge uniformly inside their radius, and can be differentiated and integrated term by term.
  5. 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.
Powered by Webloyt | Report abuse