16 Series of Functions
A series of functions \(\sum_{k=1}^\infty u_k\) is a sequence of partial sums \(S_n = \sum_{k=1}^n u_k\). All the definitions and theorems for sequences of functions apply directly: convergence, uniform convergence, interchange of limits. The question is when these partial sums converge uniformly, and the Weierstrass \(M\)-test gives the principal sufficient condition.
16.1 The Weierstrass \(M\)-test
The test is a comparison test for uniform convergence: if each \(u_k\) is bounded by a summable constant, the series converges uniformly and absolutely.
Theorem 16.1 (Weierstrass \(M\)-test) Let \(u_k : X \to \mathbb{R}\) and suppose there exist constants \(M_k \geq 0\) with \[ \|u_k\|_\infty \leq M_k \quad \text{for all } k, \qquad \sum_{k=1}^\infty M_k < \infty. \] Then \(\sum_{k=1}^\infty u_k\) converges uniformly and absolutely on \(X\).
Proof. Let \(S_n = \sum_{k=1}^n u_k\). For \(m > n\), \[ \|S_m - S_n\|_\infty = \left\|\sum_{k=n+1}^m u_k\right\|_\infty \leq \sum_{k=n+1}^m \|u_k\|_\infty \leq \sum_{k=n+1}^m M_k. \] Since \(\sum M_k < \infty\), the tail \(\sum_{k=n+1}^m M_k \to 0\) as \(n \to \infty\), uniformly in \(m > n\). So \((S_n)\) is Cauchy in \(\|\cdot\|_\infty\). Since \(B(X, \mathbb{R})\) is complete, \((S_n)\) converges uniformly to some \(S \in B(X, \mathbb{R})\). Absolute convergence holds pointwise because \(\sum |u_k(x)| \leq \sum M_k < \infty\) for every \(x\). \(\square\)
The \(M\)-test gives no information about what happens at the boundary of the region where it applies. That subtlety is the subject of power series, below.
Exercise. Show that \[ f(x) = \sum_{n=1}^\infty \frac{\cos(nx)}{n^2} \] defines a continuous function on \(\mathbb{R}\).
Since \(|\cos(nx)/n^2| \leq 1/n^2\) and \(\sum 1/n^2 < \infty\), the \(M\)-test with \(M_n = 1/n^2\) gives uniform convergence on all of \(\mathbb{R}\). Each partial sum is continuous (finite sum of continuous functions), so \(f\) is continuous as a uniform limit of continuous functions. \(\square\)
Exercise. Show that \(\sum_{n=0}^\infty x^n / n!\) converges uniformly on every bounded interval \([-M, M]\), and conclude that \(e^x = \sum_{n=0}^\infty x^n/n!\) is continuous on \(\mathbb{R}\).
On \([-M, M]\): \(|x^n/n!| \leq M^n/n!\), and \(\sum_{n=0}^\infty M^n/n! = e^M < \infty\). The \(M\)-test gives uniform convergence on \([-M,M]\). Since \(M\) is arbitrary, we get locally uniform convergence on \(\mathbb{R}\), hence continuity. \(\square\)
16.2 Power series
A power series centred at \(a \in \mathbb{R}\) is a series of the form \[ \sum_{n=0}^\infty c_n (x - a)^n. \] By translating, it suffices to treat \(a = 0\). The central fact is that every power series has a radius of convergence beyond which it diverges and within which it converges absolutely and uniformly on compact subsets.
Theorem 16.2 (Radius of convergence) For a power series \(\sum_{n=0}^\infty c_n x^n\), define \[ R = \frac{1}{\limsup_{n \to \infty} |c_n|^{1/n}} \in [0, \infty]. \] Then:
- The series converges absolutely for \(|x| < R\).
- The series diverges for \(|x| > R\).
- On every compact subset \(K \subset (-R, R)\), the series converges uniformly.
Proof. This is the Cauchy–Hadamard formula. Set \(L = \limsup |c_n|^{1/n}\), so \(R = 1/L\) (with conventions \(1/0 = \infty\), \(1/\infty = 0\)).
(a) Fix \(|x| < R\), so \(|x| < 1/L\), i.e. \(L|x| < 1\). Choose \(r\) with \(L|x| < r < 1\). By the definition of limsup, \(|c_n|^{1/n} < r/|x|\) for all sufficiently large \(n\), so \(|c_n x^n| < r^n\) eventually. Since \(\sum r^n < \infty\), the series converges absolutely by comparison.
(b) Fix \(|x| > R\), so \(L|x| > 1\). By the definition of limsup, \(|c_n|^{1/n} > 1/|x|\) for infinitely many \(n\), meaning \(|c_n x^n| > 1\) for infinitely many \(n\). The terms do not go to zero, so the series diverges.
(c) Let \(K \subset (-R, R)\) be compact. Then \(K \subset [-\rho, \rho]\) for some \(\rho < R\). For \(|x| \leq \rho\): \(|c_n x^n| \leq |c_n| \rho^n\). Since \(\rho < R\), part (a) gives \(\sum |c_n| \rho^n < \infty\), and the \(M\)-test with \(M_n = |c_n|\rho^n\) gives uniform convergence on \(K\). \(\square\)
The theorem says nothing about the endpoints. Each possibility can occur: \(\sum x^n/n\) converges at \(x = -1\) and diverges at \(x = 1\), both on the boundary of its disc (\(R = 1\)). Whether a power series converges at the boundary requires separate analysis — Abel’s theorem, Dirichlet’s test — and is not covered here.
The formula \(R = 1/\limsup |c_n|^{1/n}\) is exact but can be awkward to compute. In practice, when \(\lim |c_{n+1}/c_n|\) exists, it equals \(1/R\) by the ratio test, and that is usually simpler.
Exercise. Find the radius of convergence of each series.
\(\displaystyle\sum_{n=0}^\infty n!\, x^n\)
\(\displaystyle\sum_{n=0}^\infty \frac{x^n}{n!}\)
\(\displaystyle\sum_{n=1}^\infty \frac{x^n}{n}\)
\(\displaystyle\sum_{n=0}^\infty n^n x^n\)
(a) \(|c_n| = n!\), so \(|c_n|^{1/n} = (n!)^{1/n} \to \infty\) (since \((n!)^{1/n} \geq (n/e)\) by Stirling). Thus \(R = 0\): the series converges only at \(x = 0\).
(b) \(|c_n| = 1/n!\), so \(|c_n|^{1/n} = (1/n!)^{1/n} \to 0\). Thus \(R = \infty\): the series converges on all of \(\mathbb{R}\), as expected for \(e^x\).
(c) \(|c_n| = 1/n\), so \(|c_n|^{1/n} = n^{-1/n} \to 1\). Thus \(R = 1\). (At \(x = 1\) this is the harmonic series, which diverges. At \(x = -1\) it is the alternating harmonic series \(\sum (-1)^n/n\), which converges.)
(d) \(|c_n| = n^n\), so \(|c_n|^{1/n} = n \to \infty\). Thus \(R = 0\). \(\square\)
16.3 Differentiation of power series
Power series are not merely continuous inside their disc of convergence — they are infinitely differentiable, and can be differentiated term by term.
Theorem 16.3 (Power series are differentiable) Let \(f(x) = \sum_{n=0}^\infty c_n x^n\) have radius of convergence \(R > 0\). Then \(f\) is differentiable on \((-R, R)\) and \[ f'(x) = \sum_{n=1}^\infty n c_n x^{n-1}. \] Moreover, the differentiated series has the same radius of convergence \(R\).
Proof. Same radius of convergence. The radius of convergence of \(\sum n c_n x^{n-1}\) is \(1/\limsup (n|c_n|)^{1/n} = 1/\limsup |c_n|^{1/n}\) since \(n^{1/n} \to 1\). So the differentiated series also has radius \(R\).
Differentiability. Fix \(x_0 \in (-R, R)\) and choose \(\rho\) with \(|x_0| < \rho < R\). On \([-\rho, \rho]\), the differentiated series converges uniformly (by the \(M\)-test with \(M_n = n|c_n|\rho^{n-1}\), which is summable since \(\rho < R\)). The partial sums \(S_n(x) = \sum_{k=0}^n c_k x^k\) satisfy \(S_n(x_0) \to f(x_0)\) and \(S_n'\) converges uniformly on \([-\rho, \rho]\). By the differentiation theorem from the previous chapter, \(f\) is differentiable at \(x_0\) and \(f'(x_0) = \sum_{n=1}^\infty n c_n x_0^{n-1}\). \(\square\)
Iterating: \(f\) is infinitely differentiable on \((-R, R)\), and \[ c_n = \frac{f^{(n)}(0)}{n!}. \] So the coefficients of a power series are determined by the derivatives of its sum at the centre — the Taylor coefficients. Every power series is its own Taylor series.
Corollary 16.1 (Integration of power series) Let \(f(x) = \sum_{n=0}^\infty c_n x^n\) have radius of convergence \(R > 0\). Then for \(|x| < R\), \[ \int_0^x f(t)\,dt = \sum_{n=0}^\infty \frac{c_n}{n+1} x^{n+1}. \] The integrated series also has radius of convergence \(R\).
Proof. Uniform convergence on \([0, x] \subset (-R, R)\) permits term-by-term integration by the preservation theorem. The radius of the integrated series is \(1/\limsup (|c_n|/(n+1))^{1/(n+1)} = 1/\limsup |c_n|^{1/n} = R\). \(\square\)
Exercise. Use term-by-term integration of the geometric series \(1/(1-t) = \sum_{n=0}^\infty t^n\) to derive the power series for \(\log(1+x)\). Determine the radius of convergence and check the value at \(x = 1\).
Substituting \(t \mapsto -t\): \(1/(1+t) = \sum_{n=0}^\infty (-1)^n t^n\) for \(|t| < 1\). Integrating from \(0\) to \(x\): \[ \log(1+x) = \int_0^x \frac{dt}{1+t} = \sum_{n=0}^\infty \frac{(-1)^n x^{n+1}}{n+1} = x - \frac{x^2}{2} + \frac{x^3}{3} - \cdots \] The radius of convergence of \(\sum (-1)^n/(n+1)\) is \(1\) (by Cauchy–Hadamard, since \(|c_n| = 1/(n+1)\) and \(|c_n|^{1/n} \to 1\)). At \(x = 1\) the series is \(\sum_{n=0}^\infty (-1)^n/(n+1)\), the alternating harmonic series, which converges to \(\log 2\) — consistent with the formula. \(\square\)
Exercise. Show that \(\arctan x = \sum_{n=0}^\infty (-1)^n x^{2n+1}/(2n+1)\) for \(|x| < 1\), and use this to derive the Leibniz formula \(\pi/4 = 1 - 1/3 + 1/5 - 1/7 + \cdots\).
From \(1/(1+t^2) = \sum_{n=0}^\infty (-1)^n t^{2n}\) for \(|t| < 1\), integrate from \(0\) to \(x\): \[ \arctan x = \int_0^x \frac{dt}{1+t^2} = \sum_{n=0}^\infty \frac{(-1)^n x^{2n+1}}{2n+1}. \] The radius of convergence is \(1\). At \(x = 1\) the series is \(\sum (-1)^n/(2n+1)\), which converges by the alternating series test; Abel’s theorem (not proved here) says the power series limit equals the series sum at the endpoint, giving \(\arctan 1 = \pi/4 = \sum_{n=0}^\infty (-1)^n/(2n+1)\). \(\square\)
16.4 Analytic functions
A function \(f : (a - R, a + R) \to \mathbb{R}\) is called real analytic at \(a\) if it equals its power series expansion in some neighbourhood of \(a\). The theorems above show that every power series sum is analytic inside its disc of convergence.
The converse is not obvious: an infinitely differentiable function need not be analytic. The standard example is \[ f(x) = \begin{cases} e^{-1/x^2} & x \neq 0, \\ 0 & x = 0. \end{cases} \] This is \(C^\infty\) at \(0\) with \(f^{(n)}(0) = 0\) for all \(n\), so its Taylor series at \(0\) is identically \(0\) — yet \(f\) is not identically \(0\). The distinction between \(C^\infty\) and real analytic is genuine and matters in the theory of differential equations.
Exercise. Verify that \(f(x) = e^{-1/x^2}\) (extended by \(f(0) = 0\)) satisfies \(f^{(n)}(0) = 0\) for all \(n \geq 0\).
One shows by induction that for \(x \neq 0\), \(f^{(n)}(x) = P_n(1/x) e^{-1/x^2}\) for some polynomial \(P_n\). At \(x = 0\), use the limit definition: \[ f^{(n)}(0) = \lim_{x \to 0} \frac{f^{(n-1)}(x) - f^{(n-1)}(0)}{x} = \lim_{x \to 0} \frac{P_{n-1}(1/x) e^{-1/x^2}}{x}. \] Since \(e^{-1/x^2}\) decays faster than any power of \(x\) as \(x \to 0\), every such limit is \(0\). By induction \(f^{(n)}(0) = 0\) for all \(n\). \(\square\)