TExcelTAD
Home › Calculus in Depth › Power Series

Power Series

A power series is a polynomial with infinitely many terms. Where it converges it defines a function, and the set of xx where it converges is always an interval centred at a single point. This lesson proves that, computes radii of convergence, and treats power series as generating functions for sequences.

For a gentler first pass, see Power Series.

Definition

A power series centred at aa is

∑n=0∞cn(x−a)n=c0+c1(x−a)+c2(x−a)2+⋯\sum_{n=0}^{\infty} c_n (x - a)^n = c_0 + c_1(x - a) + c_2(x - a)^2 + \cdots

For each fixed xx it is an ordinary series of numbers, so every test from Strategy for Testing Series applies. The question is: for which xx does it converge?

The radius of convergence theorem

Theorem. For a power series ∑cn(x−a)n\sum c_n(x - a)^n exactly one of these holds:

  1. it converges only at x=ax = a (radius R=0R = 0);
  2. it converges absolutely for every xx (R=∞R = \infty);
  3. there is R>0R > 0 such that it converges absolutely for ∣x−a∣<R\lvert x - a \rvert < R and diverges for ∣x−a∣>R\lvert x - a \rvert > R.

At the endpoints x=a±Rx = a \pm R anything can happen, so each endpoint is checked separately.

Key lemma (Abel). If ∑cnbn\sum c_n b^n converges for some b≠0b \ne 0, then ∑cnxn\sum c_n x^n converges absolutely for every ∣x∣<∣b∣\lvert x \rvert < \lvert b \rvert (take a=0a = 0 to simplify).

Proof. Since ∑cnbn\sum c_n b^n converges, its terms tend to 0, so they are bounded: ∣cnbn∣≤M\lvert c_n b^n \rvert \le M for all nn. Then

∣cnxn∣=∣cnbn∣⋅∣xb∣n≤M⋅∣xb∣n\lvert c_n x^n \rvert = \lvert c_n b^n \rvert \cdot \left\lvert \frac{x}{b} \right\rvert^n \le M \cdot \left\lvert \frac{x}{b} \right\rvert^n

and ∣x/b∣<1\lvert x/b \rvert < 1, so the right side is a convergent geometric series. Comparison gives absolute convergence. ∎

The contrapositive says: if the series diverges at dd, it diverges for all ∣x∣>∣d∣\lvert x \rvert > \lvert d \rvert. Now let RR be the supremum of the ∣x∣\lvert x \rvert at which the series converges. Abel's lemma gives convergence inside RR, its contrapositive gives divergence outside, and that is the theorem.

Computing R

The ratio test applied to the terms, with xx fixed, is the usual tool:

∣cn+1(x−a)n+1∣∣cn(x−a)n∣=∣cn+1cn∣⋅∣x−a∣→∣x−a∣R,R=lim⁡∣cncn+1∣\frac{\lvert c_{n+1} (x - a)^{n+1} \rvert}{\lvert c_n (x - a)^n \rvert} = \left\lvert \frac{c_{n+1}}{c_n} \right\rvert \cdot \lvert x - a \rvert \to \frac{\lvert x - a \rvert}{R}, \qquad R = \lim \left\lvert \frac{c_n}{c_{n+1}} \right\rvert

The general formula, which needs no limit to exist, is Cauchy–Hadamard: 1/R=lim sup⁡∣cn∣1/n1/R = \limsup \lvert c_n \rvert^{1/n}. It comes from the root test in Absolute Convergence and the Ratio and Root Tests.

Series RR Interval of convergence
∑xn\sum x^n 1 (−1,1)(-1, 1): both endpoints have terms ±1\pm 1, which do not tend to 0
∑xn/n\sum x^n/n 1 [−1,1)[-1, 1): harmonic at 1, alternating harmonic at −1
∑xn/n2\sum x^n/n^2 1 [−1,1][-1, 1]: absolutely convergent at both ends
∑xn/n!\sum x^n/n! ∞\infty all real xx
∑n! xn\sum n!\, x^n 0 only x=0x = 0
∑(x−3)n/(2nn)\sum (x - 3)^n/(2^n n) 2 [1,5)[1, 5)

The first three rows share R=1R = 1 yet differ at the endpoints, which is why endpoint checks are a separate step.

python · try it yourself
import sympy as sp

n = sp.symbols("n", integer=True, positive=True)
x = sp.symbols("x")

def radius(c):
    return sp.limit(sp.Abs(c / c.subs(n, n + 1)), n, sp.oo)

print("R for x^n/n      :", radius(1 / n))
print("R for x^n/n!     :", radius(1 / sp.factorial(n)))
print("R for n! x^n     :", radius(sp.factorial(n)))
print("R for (x-3)^n/(2^n n):", radius(1 / (2**n * n)))
print("endpoint x=1:", sp.Sum((1 - 3) ** n / (2**n * n), (n, 1, sp.oo)).is_convergent(),
      "| endpoint x=5:", sp.Sum((5 - 3) ** n / (2**n * n), (n, 1, sp.oo)).is_convergent())
R for x^n/n      : 1
R for x^n/n!     : oo
R for n! x^n     : 0
R for (x-3)^n/(2^n n): 2
endpoint x=1: True | endpoint x=5: False

At x=1x = 1 the series becomes ∑(−1)n/n\sum (-1)^n/n (converges), at x=5x = 5 it becomes ∑1/n\sum 1/n (diverges): interval [1,5)[1, 5).

What happens near the boundary

Inside the interval the partial sums settle quickly; near ∣x−a∣=R\lvert x - a \rvert = R they converge slowly, and outside they blow up. Here are partial sums of ∑xn=1/(1−x)\sum x^n = 1/(1 - x) at three points:

python · try it yourself
import numpy as np
import matplotlib.pyplot as plt

xs = np.linspace(-0.95, 0.95, 400)
plt.figure(figsize=(6, 4))
for N in (2, 5, 10, 30):
    plt.plot(xs, sum(xs**k for k in range(N + 1)), label=f"S_{N}")
plt.plot(xs, 1 / (1 - xs), "k--", label="1/(1 − x)")
plt.ylim(-1, 12); plt.legend(); plt.title("Partial sums of ∑ xⁿ")

for x0 in (0.5, 0.9, 1.1):
    s = [sum(x0**k for k in range(N + 1)) for N in (10, 50, 100)]
    print(f"x={x0}: S_10={s[0]:.6g}  S_50={s[1]:.6g}  S_100={s[2]:.6g}")
x=0.5: S_10=1.99902  S_50=2  S_100=2
x=0.9: S_10=6.86189  S_50=9.95362  S_100=9.99976
x=1.1: S_10=18.5312  S_50=1281.3  S_100=151577

Generating functions

A power series is also a way to package a whole sequence into one function: the sequence (cn)(c_n) becomes the coefficients of G(x)=∑cnxnG(x) = \sum c_n x^n. Algebra on GG then says things about the sequence.

The Fibonacci numbers F0=0F_0 = 0, F1=1F_1 = 1, Fn=Fn−1+Fn−2F_n = F_{n-1} + F_{n-2} satisfy

G(x)−xG(x)−x2G(x)=F0+(F1−F0)x+∑n≥2(Fn−Fn−1−Fn−2)xn=x⇒G(x)=x1−x−x2\begin{aligned} G(x) - xG(x) - x^2G(x) &= F_0 + (F_1 - F_0)x + \sum_{n \ge 2} (F_n - F_{n-1} - F_{n-2})x^n = x \\ \Rightarrow G(x) &= \frac{x}{1 - x - x^2} \end{aligned}

The radius of convergence is the distance from 0 to the nearest root of 1−x−x21 - x - x^2, which is 1/φ≈0.6181/\varphi \approx 0.618 (φ\varphi the golden ratio). Partial fractions on GG give Binet's formula Fn=(φn−ψn)/5F_n = (\varphi^n - \psi^n)/\sqrt{5} with ψ=−1/φ\psi = -1/\varphi, so FnF_n grows like φn/5\varphi^n/\sqrt{5} and Fn+1/Fn→φ=1/RF_{n+1}/F_n \to \varphi = 1/R. The same growth rate is why naive recursive fib(n) makes about φn\varphi^n calls.

python · try it yourself
import sympy as sp

x = sp.symbols("x")
G = x / (1 - x - x**2)
print("series:", sp.series(G, x, 0, 10))
print("roots of 1 − x − x²:", [sp.nsimplify(r) for r in sp.solve(1 - x - x**2, x)])
print("1/φ =", float((sp.sqrt(5) - 1) / 2))
series: x + x**2 + 2*x**3 + 3*x**4 + 5*x**5 + 8*x**6 + 13*x**7 + 21*x**8 + 34*x**9 + O(x**10)
roots of 1 − x − x²: [-1/2 + sqrt(5)/2, -sqrt(5)/2 - 1/2]
1/φ = 0.6180339887498949

O(x**10) is SymPy's way of writing "terms of degree 10 and higher". Generating functions like this are a standard tool for counting problems and recurrences in algorithm analysis (Discrete Mathematics), and the probability generating function E[sX]E[s^X] packages a whole discrete distribution into one power series (Probability).

Exercises

Exercise 1: Radius and interval

Find the interval of convergence of ∑n=1∞(x+1)n/(3nn)\sum_{n=1}^{\infty} (x + 1)^n / (3^n \sqrt{n}).

Answer

R=3R = 3, interval [−4,2)[-4, 2).

Solution
Ratio: ∣x+1∣3⋅nn+1→∣x+1∣3<1  ⟺  −4<x<2x=2:∑3n3nn=∑1ndiverges (p=12)x=−4:∑(−3)n3nn=∑(−1)nnconverges (AST)\begin{aligned} &\text{Ratio: } \frac{\lvert x + 1 \rvert}{3} \cdot \sqrt{\frac{n}{n+1}} \to \frac{\lvert x + 1 \rvert}{3} < 1 \iff -4 < x < 2 \\ x = 2&: \sum \frac{3^n}{3^n\sqrt{n}} = \sum \frac{1}{\sqrt{n}} && \text{diverges } (p = \tfrac{1}{2}) \\ x = -4&: \sum \frac{(-3)^n}{3^n\sqrt{n}} = \sum \frac{(-1)^n}{\sqrt{n}} && \text{converges (AST)} \end{aligned}

Exercise 2: Radius from the coefficients

Find RR for ∑(2n)!/(n!)2 xn\sum (2n)!/(n!)^2\, x^n.

Answer

R=1/4R = 1/4.

Solution
cn+1cn=(2n+2)(2n+1)(n+1)2=2(2n+1)n+1→4⇒R=14\frac{c_{n+1}}{c_n} = \frac{(2n+2)(2n+1)}{(n+1)^2} = \frac{2(2n+1)}{n+1} \to 4 \quad\Rightarrow\quad R = \frac{1}{4}
python · try it yourself
import sympy as sp

n = sp.symbols("n", integer=True, positive=True)
c = sp.factorial(2 * n) / sp.factorial(n) ** 2
print(sp.limit(c / c.subs(n, n + 1), n, sp.oo))
1/4

Exercise 3: Only even powers

Find the radius of convergence of ∑n=0∞x2n/5n\sum_{n=0}^{\infty} x^{2n} / 5^n.

Answer

R=5R = \sqrt{5}.

Solution

It is geometric in r=x2/5r = x^2/5, so it converges iff x2/5<1x^2/5 < 1, that is ∣x∣<5\lvert x \rvert < \sqrt{5}. The formula R=lim⁡∣cn/cn+1∣R = \lim \lvert c_n/c_{n+1} \rvert does not apply directly because every odd coefficient is 0; treat the series as a function of x2x^2 (or use the ratio test on the nonzero terms).

Exercise 4: A generating function

The sequence an=2an−1+1a_n = 2a_{n-1} + 1 with a0=0a_0 = 0 (Tower of Hanoi moves) has generating function A(x)A(x). Show A(x)=x/((1−x)(1−2x))A(x) = x / ((1 - x)(1 - 2x)), find RR, and check the first coefficients with SymPy.

Answer

A(x)=x/((1−x)(1−2x))A(x) = x/((1 - x)(1 - 2x)), R=1/2R = 1/2, coefficients 0,1,3,7,15,31,…=2n−10, 1, 3, 7, 15, 31, \ldots = 2^n - 1.

Solution
A−2xA=∑n≥1(an−2an−1)xn=∑n≥1xn=x1−x⇒A=x(1−x)(1−2x).Nearest pole: x=12⇒R=12.Partial fractions: A=11−2x−11−x⇒an=2n−1.\begin{aligned} A - 2xA &= \sum_{n \ge 1} (a_n - 2a_{n-1}) x^n = \sum_{n \ge 1} x^n = \frac{x}{1 - x} \\ \Rightarrow A &= \frac{x}{(1 - x)(1 - 2x)}. && \text{Nearest pole: } x = \tfrac{1}{2} \Rightarrow R = \tfrac{1}{2}. \\ &\text{Partial fractions: } A = \frac{1}{1 - 2x} - \frac{1}{1 - x} \Rightarrow a_n = 2^n - 1. \end{aligned}
python · try it yourself
import sympy as sp

x = sp.symbols("x")
A = x / ((1 - x) * (1 - 2 * x))
print(sp.series(A, x, 0, 7))
x + 3*x**2 + 7*x**3 + 15*x**4 + 31*x**5 + 63*x**6 + O(x**7)

Test yourself

A power series centred at 0 converges at x=−4x = -4 and diverges at x=6x = 6. Which is certain?

  1. It converges at x=5x = 5
  2. It converges absolutely at x=3x = 3
  3. It diverges at x=−5x = -5
  4. R=5R = 5

What is the interval of convergence of ∑xn/n\sum x^n/n?

  1. (−1,1)(-1, 1)
  2. [−1,1][-1, 1]
  3. (−1,1](-1, 1]
  4. [−1,1)[-1, 1)

Why does G(x)=x/(1−x−x2)G(x) = x/(1 - x - x^2) have radius of convergence 1/φ≈0.6181/\varphi \approx 0.618?

  1. Because F10=55F_{10} = 55
  2. It is the distance from 0 to the nearest zero of the denominator
  3. Every rational function has R=0.618R = 0.618
  4. Because the coefficients are integers