TExcelTAD
Home › Calculus in Depth › Absolute Convergence and the Ratio and Root Tests

Absolute Convergence and the Ratio and Root Tests

Absolute convergence is the robust kind of convergence: it survives any reordering and it lets you test series with arbitrary signs. The ratio and root tests decide it by comparing a series with a geometric one, and this lesson proves both.

The Convergence Tests survey shows the ratio test in action; here we prove it and its sibling.

Absolute and conditional convergence

A series ∑an\sum a_n is absolutely convergent if ∑∣an∣\sum \lvert a_n \rvert converges, and conditionally convergent if ∑an\sum a_n converges but ∑∣an∣\sum \lvert a_n \rvert does not (the alternating harmonic series, from Alternating Series).

Theorem. Absolute convergence implies convergence.

Proof. For every nn, 0≤an+∣an∣≤2∣an∣0 \le a_n + \lvert a_n \rvert \le 2\lvert a_n \rvert. Since ∑2∣an∣\sum 2\lvert a_n \rvert converges, the Comparison Test (see The Comparison Tests) makes ∑(an+∣an∣)\sum (a_n + \lvert a_n \rvert) converge. Then

∑an=∑(an+∣an∣)−∑∣an∣\sum a_n = \sum (a_n + \lvert a_n \rvert) - \sum \lvert a_n \rvert

is a difference of two convergent series, so it converges. ∎

Example: ∑sin⁡(n)/n2\sum \sin(n)/n^2 has signs in no pattern, but ∣sin⁡n/n2∣≤1/n2\lvert \sin n/n^2 \rvert \le 1/n^2, so it converges absolutely.

Note: Absolutely convergent series can be rearranged freely without changing the sum (Dirichlet's theorem), and two of them can be multiplied term by term (Cauchy product). Riemann's rearrangement theorem says conditionally convergent series have neither property.

The Ratio Test

Let L=lim⁡n→∞∣an+1an∣L = \lim_{n \to \infty} \left\lvert \frac{a_{n+1}}{a_n} \right\rvert (possibly ∞\infty).

L<1⇒∑an converges absolutelyL>1 or L=∞⇒∑an divergesL=1⇒no conclusion\begin{aligned} L &< 1 && \Rightarrow \textstyle\sum a_n \text{ converges absolutely} \\ L &> 1 \text{ or } L = \infty && \Rightarrow \textstyle\sum a_n \text{ diverges} \\ L &= 1 && \Rightarrow \text{no conclusion} \end{aligned}

Proof (L<1L < 1). Pick rr with L<r<1L < r < 1. Since the ratios tend to LL, there is NN with ∣an+1∣≤r∣an∣\lvert a_{n+1} \rvert \le r \lvert a_n \rvert for all n≥Nn \ge N. By induction

∣aN+k∣≤rk∣aN∣for k=0,1,2,…\lvert a_{N+k} \rvert \le r^k \lvert a_N \rvert \qquad \text{for } k = 0, 1, 2, \ldots

so the tail of ∑∣an∣\sum \lvert a_n \rvert is dominated by the geometric series ∣aN∣∑rk\lvert a_N \rvert \sum r^k, which converges because r<1r < 1. Comparison finishes the proof.

Proof (L>1L > 1). Eventually ∣an+1∣≥∣an∣\lvert a_{n+1} \rvert \ge \lvert a_n \rvert, so ∣an∣\lvert a_n \rvert does not tend to 0, and the Test for Divergence applies.

Why L=1L = 1 says nothing. For ∑1/n\sum 1/n and ∑1/n2\sum 1/n^2 the ratios are nn+1\frac{n}{n+1} and n2(n+1)2\frac{n^2}{(n+1)^2}, both →1\to 1, yet one diverges and the other converges. The ratio test only detects geometric-speed decay; pp-series decay polynomially.

The Root Test

Let L=lim⁡∣an∣1/nL = \lim \lvert a_n \rvert^{1/n}. The verdicts are the same as for the ratio test.

Proof (L<1L < 1). Pick L<r<1L < r < 1. Eventually ∣an∣1/n≤r\lvert a_n \rvert^{1/n} \le r, that is ∣an∣≤rn\lvert a_n \rvert \le r^n: a direct comparison with a geometric series. For L>1L > 1, eventually ∣an∣≥1\lvert a_n \rvert \ge 1, so an↛0a_n \not\to 0.

The root test is the natural choice when nn appears in an exponent, as in ∑(n2n+1)n\sum \left(\frac{n}{2n+1}\right)^n: here ∣an∣1/n=n2n+1→12\lvert a_n \rvert^{1/n} = \frac{n}{2n+1} \to \frac{1}{2}, so it converges.

It is also strictly stronger: whenever the ratio limit exists, the root limit exists and is equal, but the root test can work when the ratios jump around. For an=2−n+(−1)na_n = 2^{-n + (-1)^n} the ratios alternate between 2 and 18\frac{1}{8} (no limit), while ∣an∣1/n→12\lvert a_n \rvert^{1/n} \to \frac{1}{2}.

python · try it yourself
import math

def ratio(a, n):
    return abs(a(n + 1) / a(n))

def root(a, n):
    return abs(a(n)) ** (1 / n)

series = {
    "n^5 / 3^n":       lambda n: n**5 / 3**n,
    "n! / n^n":        lambda n: math.factorial(n) / n**n,
    "(n/(2n+1))^n":    lambda n: (n / (2 * n + 1)) ** n,
    "2^(-n+(-1)^n)":   lambda n: 2.0 ** (-n + (-1) ** n),
}
for name, a in series.items():
    rs = [round(ratio(a, n), 4) for n in (20, 21, 100)]
    ts = [round(root(a, n), 4) for n in (20, 21, 100)]
    print(f"{name:15s} ratio {rs}  root {ts}")
n^5 / 3^n       ratio [0.4254, 0.4206, 0.3503]  root [0.7049, 0.6882, 0.4196]
n! / n^n        ratio [0.3769, 0.3765, 0.3697]  root [0.4152, 0.4133, 0.3799]
(n/(2n+1))^n    ratio [0.4999, 0.4999, 0.5]  root [0.4878, 0.4884, 0.4975]
2^(-n+(-1)^n)   ratio [0.125, 2.0, 0.125]  root [0.5176, 0.4838, 0.5035]

Reading the table: n5/3nn^5/3^n has both tests heading to 13\frac{1}{3} (slowly, because n5n^5 fights the 3n3^n for a long time). n!/nnn!/n^n has ratio (nn+1)n→1/e≈0.3679\left(\frac{n}{n+1}\right)^n \to 1/e \approx 0.3679. The last row shows the ratio test failing to settle while the root test gives 12\frac{1}{2}.

Growth rates: why these tests suit algorithm analysis

The ratio test is really a statement about growth rates. If an+1/an→La_{n+1}/a_n \to L, then ana_n grows or shrinks roughly like LnL^n. That ranking is the same one used in complexity analysis:

log⁡n  ≪  nk  ≪  cn (c>1)  ≪  n!  ≪  nn\log n \;\ll\; n^k \;\ll\; c^n\ (c > 1) \;\ll\; n! \;\ll\; n^n
  • For a polynomial nkn^k the ratio (n+1n)k→1\left(\frac{n+1}{n}\right)^k \to 1: no geometric factor.
  • For cnc^n the ratio is exactly cc.
  • For n!n! the ratio is n+1→∞n + 1 \to \infty: faster than every exponential.

So ∑cn/n!\sum c^n/n! converges for every cc (ratio c/(n+1)→0c/(n+1) \to 0), which means n!n! eventually beats any exponential cnc^n. In code this explains why a brute-force O(n!)O(n!) search (all permutations, as in the naive Traveling Salesman solver) becomes hopeless much sooner than an O(2n)O(2^n) subset search:

python · try it yourself
import math

for n in (10, 15, 20, 25):
    print(f"n={n:2d}  2^n={2**n:>10,}  n!={math.factorial(n):>34,}  n!/2^n ratio step={(n + 1) / 2:.1f}")
n=10  2^n=     1,024  n!=                         3,628,800  n!/2^n ratio step=5.5
n=15  2^n=    32,768  n!=                 1,307,674,368,000  n!/2^n ratio step=8.0
n=20  2^n= 1,048,576  n!=         2,432,902,008,176,640,000  n!/2^n ratio step=10.5
n=25  2^n=33,554,432  n!=15,511,210,043,330,985,984,000,000  n!/2^n ratio step=13.0

Each step multiplies n!/2nn!/2^n by (n+1)/2(n+1)/2, which is the ratio test's quotient for that sequence; once it is above 1 the gap only widens.

Exercises

Exercise 1: Absolute, conditional, or divergent?

Classify a) ∑(−1)nn3/2\sum \frac{(-1)^n}{n^{3/2}}, b) ∑(−1)nn\sum \frac{(-1)^n}{\sqrt{n}}, c) ∑(−1)nnn+1\sum (-1)^n \frac{n}{n + 1}.

Answer

a) absolutely convergent, b) conditionally convergent, c) divergent.

Solution
a) ∑1/n3/2 is a p-series with p=3/2>1⇒absolute convergence.b) ∑1/n diverges (p=12), but 1/n decreases to 0⇒converges by the AST⇒conditional.c) ∣an∣=nn+1→1≠0⇒diverges by the Test for Divergence.\begin{aligned} &\text{a) } \sum 1/n^{3/2} \text{ is a } p\text{-series with } p = 3/2 > 1 \Rightarrow \text{absolute convergence.} \\ &\text{b) } \sum 1/\sqrt{n} \text{ diverges } (p = \tfrac{1}{2}), \text{ but } 1/\sqrt{n} \text{ decreases to 0} \Rightarrow \text{converges by the AST} \Rightarrow \text{conditional.} \\ &\text{c) } \lvert a_n \rvert = \frac{n}{n+1} \to 1 \ne 0 \Rightarrow \text{diverges by the Test for Divergence.} \end{aligned}

Exercise 2: Ratio test with a factorial

Decide ∑n=1∞5nn!nn\sum_{n=1}^{\infty} \frac{5^n n!}{n^n}.

Answer

It diverges: L=5/e≈1.839>1L = 5/e \approx 1.839 > 1.

Solution
an+1an=5⋅(n+1)!n!⋅nn(n+1)n+1=5⋅(n+1)⋅nn(n+1)n+1=5⋅(nn+1)n(nn+1)n=1(1+1/n)n→1e,so L=5/e≈1.839>1⇒diverges.\begin{aligned} \frac{a_{n+1}}{a_n} &= 5 \cdot \frac{(n+1)!}{n!} \cdot \frac{n^n}{(n+1)^{n+1}} = 5 \cdot (n+1) \cdot \frac{n^n}{(n+1)^{n+1}} = 5 \cdot \left(\frac{n}{n+1}\right)^n \\ \left(\frac{n}{n+1}\right)^n &= \frac{1}{(1 + 1/n)^n} \to \frac{1}{e}, \quad \text{so } L = 5/e \approx 1.839 > 1 \Rightarrow \text{diverges.} \end{aligned}

With 2 instead of 5 the limit is 2/e<12/e < 1 and the series converges; ee is the borderline.

Exercise 3: Root test

Decide ∑(3n+14n−1)2n\sum \left(\frac{3n + 1}{4n - 1}\right)^{2n}.

Answer

It converges absolutely: L=(3/4)2=9/16L = (3/4)^2 = 9/16.

Solution
∣an∣1/n=(3n+14n−1)2→(34)2=916<1⇒converges absolutely.\lvert a_n \rvert^{1/n} = \left(\frac{3n + 1}{4n - 1}\right)^2 \to \left(\frac{3}{4}\right)^2 = \frac{9}{16} < 1 \Rightarrow \text{converges absolutely.}

Exercise 4: Code a test helper

Write estimate_L(a) that prints ∣an∣1/n\lvert a_n \rvert^{1/n} for n=10,100,1000n = 10, 100, 1000 using logarithms (so large factorials do not overflow), and apply it to an=n10/2na_n = n^{10}/2^n and an=4n(n!)2(2n)!a_n = \frac{4^n (n!)^2}{(2n)!}.

Answer

The first tends to 12\frac{1}{2}, slowly (5.0, 0.79, 0.54 at n=10,100,1000n = 10, 100, 1000), so it converges. The second gives 1.19,1.03,1.004→11.19, 1.03, 1.004 \to 1, so neither the root nor the ratio test decides it.

Solution

Work with log⁡∣an∣\log\lvert a_n \rvert and divide by nn. math.lgamma(n + 1) is ln⁡(n!)\ln(n!).

second series: an=4n(n!)2(2n)!.Ratio=4(n+1)2(2n+1)(2n+2)=2n+22n+1→1.In fact an≈πn→∞, so it diverges (Test for Divergence), which neither test could show.\begin{aligned} &\text{second series: } a_n = \frac{4^n (n!)^2}{(2n)!}. \quad \text{Ratio} = \frac{4(n+1)^2}{(2n+1)(2n+2)} = \frac{2n+2}{2n+1} \to 1. \\ &\text{In fact } a_n \approx \sqrt{\pi n} \to \infty, \text{ so it diverges (Test for Divergence), which neither test could show.} \end{aligned}
python · try it yourself
import math

def estimate_L(log_a):
    for n in (10, 100, 1000):
        print(f"  n={n:4d}: |a_n|^(1/n) ≈ {math.exp(log_a(n) / n):.4f}")

print("n^10 / 2^n")
estimate_L(lambda n: 10 * math.log(n) - n * math.log(2))
print("4^n (n!)^2 / (2n)!")
estimate_L(lambda n: n * math.log(4) + 2 * math.lgamma(n + 1) - math.lgamma(2 * n + 1))
n^10 / 2^n
  n=  10: |a_n|^(1/n) ≈ 5.0000
  n= 100: |a_n|^(1/n) ≈ 0.7924
  n=1000: |a_n|^(1/n) ≈ 0.5358
4^n (n!)^2 / (2n)!
  n=  10: |a_n|^(1/n) ≈ 1.1896
  n= 100: |a_n|^(1/n) ≈ 1.0292
  n=1000: |a_n|^(1/n) ≈ 1.0040

Test yourself

For ∑an\sum a_n the ratio ∣an+1an∣\left\lvert \frac{a_{n+1}}{a_n} \right\rvert tends to 1. What can you conclude?

  1. The series converges
  2. Nothing from this test
  3. The series diverges
  4. It converges conditionally

What does the proof of the ratio test compare the series with?

  1. A pp-series
  2. An integral
  3. A geometric series with ratio rr between LL and 1
  4. The harmonic series

Which series is conditionally convergent?

  1. ∑(−1)n/n2\sum (-1)^n/n^2
  2. ∑(−1)n/2n\sum (-1)^n/2^n
  3. ∑(−1)n\sum (-1)^n
  4. ∑(−1)n/ln⁡(n+1)\sum (-1)^n/\ln(n+1)