TExcelTAD
Home › Pre-Calculus, Geometry & Trigonometry › Tests for Convergence

Tests for Convergence

Adding up partial sums can fool you: the harmonic series looks like it is settling down but never does. A convergence test is a quick check that decides whether a series converges without finding its sum. This lesson states the standard tests a pre-calculus student should know, explains why each is believable, and shows how to try them numerically. Proofs come later in calculus.

A toolbox of tests

Here ana_n are the terms of ∑an\sum a_n. Most tests are for series with positive terms.

Test What you check Conclusion
Divergence (nn-th term) does an→0a_n \to 0? if not, the series diverges
Geometric an=a⋅rna_n = a \cdot r^n converges if ∣r∣<1\lvert r \rvert < 1, diverges otherwise
p-series an=1/npa_n = 1/n^p converges if p>1p > 1, diverges if p≤1p \le 1
Comparison 0≤an≤bn0 \le a_n \le b_n ∑bn\sum b_n converges ⇒\Rightarrow ∑an\sum a_n converges; ∑an\sum a_n diverges ⇒\Rightarrow ∑bn\sum b_n diverges
Ratio L=lim⁡∣an+1/an∣L = \lim \lvert a_{n+1} / a_n \rvert L<1L < 1 converges, L>1L > 1 diverges, L=1L = 1 no verdict
Alternating series signs alternate, ∣an∣\lvert a_n \rvert shrinks to 0 converges

Note: The divergence test can only prove divergence. If an→0a_n \to 0 it tells you nothing, and you must try another test.

p-series: the benchmark

The series ∑1/np\sum 1/n^p are the yardsticks that other series are compared against. The harmonic series (p=1p = 1) diverges, but just a little more shrinkage, like 1/n21/n^2, is enough to converge (to π2/6≈1.6449\pi^2/6 \approx 1.6449, a famous result by Euler).

python · try it yourself
import math

for p in [0.5, 1, 1.5, 2]:
    row = []
    for N in [10, 1_000, 100_000]:
        row.append(sum(1 / n**p for n in range(1, N + 1)))
    print(f"p = {p:<3}: " + "  ".join(f"{s:10.4f}" for s in row))
print("pi^2/6 =", round(math.pi**2 / 6, 4))
p = 0.5:     5.0210     61.8010    630.9968
p = 1  :     2.9290      7.4855     12.0901
p = 1.5:     1.9953      2.5491      2.6061
p = 2  :     1.5498      1.6439      1.6449
pi^2/6 = 1.6449

For p=0.5p = 0.5 and p=1p = 1 the totals keep climbing; for p=1.5p = 1.5 and 2 they level off. Notice how slowly p=1.5p = 1.5 settles: its true sum is about 2.612, and even 100 000 terms leave a gap of about 0.006.

Comparison

If your terms are smaller than the terms of a series that converges, your series converges too: the total is squeezed under a finite bound. If they are bigger than the terms of a divergent positive series, yours diverges.

∑1n2+5n:1n2+5n<1n2, and ∑1n2 converges⇒converges∑1n−0.5:1n−0.5>1n, and ∑1n diverges (p=1/2)⇒diverges∑3n4n+1:3n4n+1<(3/4)n, a convergent geometric series⇒converges\begin{aligned} &\sum \frac{1}{n^2 + 5n}{:} && \frac{1}{n^2 + 5n} < \frac{1}{n^2}, \text{ and } \sum \frac{1}{n^2} \text{ converges} && \Rightarrow \text{converges} \\ &\sum \frac{1}{\sqrt{n} - 0.5}{:} && \frac{1}{\sqrt{n} - 0.5} > \frac{1}{\sqrt{n}}, \text{ and } \sum \frac{1}{\sqrt{n}} \text{ diverges } (p = 1/2) && \Rightarrow \text{diverges} \\ &\sum \frac{3^n}{4^n + 1}{:} && \frac{3^n}{4^n + 1} < (3/4)^n, \text{ a convergent geometric series} && \Rightarrow \text{converges} \end{aligned}

The trick is to keep the biggest power on top and bottom: for large nn, n+1n3−2\frac{n + 1}{n^3 - 2} behaves like n/n3=1/n2n/n^3 = 1/n^2, so you expect convergence, and comparison makes it official.

The ratio test

The ratio test asks: for large nn, how much does each term shrink compared with the one before? If the ratio settles at L<1L < 1, the series eventually behaves like a geometric series with ratio LL, so it converges. It is the go-to test when terms contain factorials or powers like 2n2^n.

python · try it yourself
import math

def ratios(term, ns):
    return [term(n + 1) / term(n) for n in ns]

ns = [1, 5, 10, 50, 100]
tests = {
    "n / 2^n  ": lambda n: n / 2**n,
    "5^n / n! ": lambda n: 5**n / math.factorial(n),
    "n^2      ": lambda n: n**2,
    "1 / n^2  ": lambda n: 1 / n**2,
}
for name, term in tests.items():
    print(name, " ".join(f"{r:.4f}" for r in ratios(term, ns)))
n / 2^n   1.0000 0.6000 0.5500 0.5100 0.5050
5^n / n!  2.5000 0.8333 0.4545 0.0980 0.0495
n^2       4.0000 1.4400 1.2100 1.0404 1.0201
1 / n^2   0.2500 0.6944 0.8264 0.9612 0.9803
  • n/2nn/2^n: ratios →1/2\to 1/2, so it converges.
  • 5n/n!5^n/n!: ratios →0\to 0. Factorials beat any power, so it converges (its sum is e5−1e^5 - 1).
  • n2n^2: ratios →1\to 1, but the terms grow, so the divergence test already settles it: diverges.
  • 1/n21/n^2: ratios →1\to 1 too, so the ratio test gives no verdict even though the series converges (p-series, p=2p = 2). When L=1L = 1, switch tests.

Alternating series

1−12+13−14+⋯1 - \frac{1}{2} + \frac{1}{3} - \frac{1}{4} + \cdots converges (to ln⁡2≈0.6931\ln 2 \approx 0.6931) even though the harmonic series without the signs diverges. Each partial sum overshoots, then undershoots, and the swings shrink to zero. A bonus: the error after stopping is smaller than the first term you left out. Such a series is called conditionally convergent; if ∑∣an∣\sum \lvert a_n \rvert also converges it is absolutely convergent.

In software

Convergence matters any time code sums a series: approximating functions (Power Series), computing discounted rewards, or summing probabilities. The ratio test also explains why Taylor series with factorials in the denominator converge so fast that a dozen terms often reach full double precision. The proofs of these tests and the integral, limit comparison and root tests are in Convergence Tests and in depth in Comparison Tests, Alternating Series and Ratio and Root Tests.

Exercises

Exercise 1: Divergence test

Does ∑2n+13n−1\sum \frac{2n + 1}{3n - 1} converge?

Answer

No, it diverges.

Solution
an=2+1/n3−1/n→23≠0The terms do not go to 0, so the series diverges.\begin{aligned} &a_n = \frac{2 + 1/n}{3 - 1/n} \to \frac{2}{3} \ne 0 \\ &\text{The terms do not go to 0, so the series diverges.} \end{aligned}

Exercise 2: Pick the p

For each series, say converge or diverge: (a) ∑1/n3\sum 1/n^3, (b) ∑1/n3\sum 1/\sqrt[3]{n}, (c) ∑n/n3.5\sum n/n^{3.5}.

Answer

(a) converges, (b) diverges, (c) converges.

Solution
(a) p=3>1→converges(b) 1/n3=1/n1/3, p=1/3≤1→diverges(c) n/n3.5=1/n2.5, p=2.5>1→converges\begin{aligned} &\text{(a) } p = 3 > 1 && \to \text{converges} \\ &\text{(b) } 1/\sqrt[3]{n} = 1/n^{1/3},\ p = 1/3 \le 1 && \to \text{diverges} \\ &\text{(c) } n/n^{3.5} = 1/n^{2.5},\ p = 2.5 > 1 && \to \text{converges} \end{aligned}

Exercise 3: Comparison

Show that ∑12n+n\sum \frac{1}{2^n + n} converges.

Answer

It converges, by comparison with ∑(1/2)n\sum (1/2)^n.

Solution
2n+n>2n⇒12n+n<12n=(1/2)n∑(1/2)n is geometric with r=1/2<1, so it converges,and the smaller positive series converges too.\begin{aligned} &2^n + n > 2^n \quad\Rightarrow\quad \frac{1}{2^n + n} < \frac{1}{2^n} = (1/2)^n \\ &\textstyle\sum (1/2)^n \text{ is geometric with } r = 1/2 < 1, \text{ so it converges,} \\ &\text{and the smaller positive series converges too.} \end{aligned}

Exercise 4: Ratio test in code

Use the ratio test on ∑n3/3n\sum n^3/3^n: compute the limit LL by hand, then print an+1/ana_{n+1}/a_n for n=10,100,1000n = 10, 100, 1000.

Answer

L=1/3L = 1/3, so the series converges.

Solution
an+1an=(n+1)33n+1⋅3nn3=13⋅(n+1n)3→13⋅1=13<1\frac{a_{n+1}}{a_n} = \frac{(n + 1)^3}{3^{n+1}} \cdot \frac{3^n}{n^3} = \frac{1}{3} \cdot \left(\frac{n + 1}{n}\right)^3 \to \frac{1}{3} \cdot 1 = \frac{1}{3} < 1
python · try it yourself
for n in [10, 100, 1000]:
    print(n, round(((n + 1) / n)**3 / 3, 6))
10 0.443667
100 0.343434
1000 0.334334

Test yourself

The ratio test gives L = 1. What do you conclude?

  1. The series converges
  2. The series diverges
  3. Nothing: try another test
  4. The sum is 1

Which p-series converges?

  1. ∑1/n\sum 1/n
  2. ∑1/n\sum 1/\sqrt{n}
  3. ∑1/n0.99\sum 1/n^{0.99}
  4. ∑1/n1.01\sum 1/n^{1.01}

Why does 1−12+13−14+⋯1 - \frac{1}{2} + \frac{1}{3} - \frac{1}{4} + \cdots converge although ∑1/n\sum 1/n diverges?

  1. Because the signs alternate and the term sizes shrink to 0
  2. Because its terms are negative
  3. Because it is geometric
  4. It does not converge