MAT1052 · Week 4 · Ratio Test, Root Test, Comparison Test, Alternating Series Test

Ratio, root, comparison and alternating series tests

You learn the ratio, root and comparison tests for positive-term series, the alternating series test for sign-changing series, and absolute/conditional convergence. At the end of the page there is a decision table showing which test to choose when.

ratio testroot testdirect comparison testlimit comparison testalternating series testabsolute convergenceconditional convergencealternating series estimation theorem

Last week you saw the geometric series, the nth-term test and the integral test. The integral test is powerful but does not work for terms that cannot be integrated (factorials, sin⁡n\sin n, complicated fractions). This week we add four tools that you will use far more often. The series part of the exam almost always comes as “Determine whether the series converges or diverges. Name the test you use.” Choosing the right test is half the job; writing the conditions of the test is the other half.

Golden rules:

  1. The nth-term test first. If the term does not go to zero, no other test is needed.
  2. If you see a factorial or an exponential (cnc^n, nnn^n), use the ratio test. If the whole term is an nnth power, the root test.
  3. If there are only powers, roots, logarithms of nn, compare (mostly limit comparison) with a p-series.
  4. If the sign changes, first look at the absolute value; if it does not converge absolutely, move to the alternating series test.
  5. If the ratio or root test gives L=1L=1, the test gives no result. You cannot write “converges” or “diverges”.

The ratio test

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

  • If L<1L<1 the series converges absolutely (and therefore converges).
  • If L>1L>1 or L=∞L=\infty it diverges.
  • If L=1L=1 the test is inconclusive.

Intuition. For large nn, an+1≈Lana_{n+1}\approx La_n, so in the tail the series behaves like a geometric series with ratio LL. A geometric series converged when ∣r∣<1\lvert r\rvert<1.

Example 1. ∑2nn!\displaystyle\sum\frac{2^n}{n!}.

an+1an=2n+1(n+1)!⋅n!2n=2n+1→0<1.\frac{a_{n+1}}{a_n} = \frac{2^{n+1}}{(n+1)!}\cdot\frac{n!}{2^n} = \frac{2}{n+1}\to0<1.

Converges. In the factorial cancellation we used n!(n+1)!=1n+1\dfrac{n!}{(n+1)!} = \dfrac{1}{n+1}. Memorize this and the pattern (2n)!(2n+2)!=1(2n+1)(2n+2)\dfrac{(2n)!}{(2n+2)!} = \dfrac{1}{(2n+1)(2n+2)}.

Example 2. ∑n32n\displaystyle\sum\frac{n^3}{2^n}. The ratio is (n+1)3n3⋅12→12\dfrac{(n+1)^3}{n^3}\cdot\dfrac12\to\dfrac12. Converges.

PITFALL · L=1L=1. ∑1n\sum\frac1n (divergent) and ∑1n2\sum\frac{1}{n^2} (convergent) both give L=1L=1 in the ratio test. So for rational expressions with polynomials or roots, the ratio test can never decide. Do not waste time on these series, move on to comparison.

The root test

Theorem. L=lim⁡n→∞∣an∣nL = \displaystyle\lim_{n\to\infty}\sqrt[n]{\lvert a_n\rvert}. The conclusions are the same as the ratio test: L<1L<1 converges absolutely, L>1L>1 diverges, L=1L=1 no result.

The root test is unrivaled when the term has the form (…)n(\ldots)^n, because the nnth root removes the exponent.

Example 3. ∑(n3n+1)n\displaystyle\sum\left(\frac{n}{3n+1}\right)^n. ann=n3n+1→13<1\sqrt[n]{a_n} = \dfrac{n}{3n+1}\to\dfrac13<1. Converges.

Helpful limits: nn→1\sqrt[n]{n}\to1, cn→1\sqrt[n]{c}\to1. For example, for ∑n2n\sum\dfrac{n}{2^n}, ann=nn2→12\sqrt[n]{a_n} = \dfrac{\sqrt[n]n}{2}\to\dfrac12.

Comparison tests

These two tests are used only for positive-term series (at least from some point on).

Direct comparison. If 0≤an≤bn0\le a_n\le b_n for every nn:

  • ∑bn\sum b_n converges ⇒\Rightarrow ∑an\sum a_n converges.
  • ∑an\sum a_n diverges ⇒\Rightarrow ∑bn\sum b_n diverges.

Example 4. ∑12n+5\displaystyle\sum\frac{1}{2^n+5}. 12n+5<12n\dfrac{1}{2^n+5}<\dfrac1{2^n} and ∑12n\sum\frac1{2^n} is a convergent geometric series. Converges.

Limit comparison. If an,bn>0a_n, b_n>0 and

lim⁡n→∞anbn=c,0<c<∞\lim_{n\to\infty}\frac{a_n}{b_n} = c,\qquad 0<c<\infty

then ∑an\sum a_n and ∑bn\sum b_n either both converge or both diverge. Extreme cases: if c=0c=0 and ∑bn\sum b_n converges, then ∑an\sum a_n converges; if c=∞c=\infty and ∑bn\sum b_n diverges, then ∑an\sum a_n diverges.

How do you choose bnb_n? Keep only the highest-degree terms of the numerator and denominator. Drop the constant coefficients.

a_n = (n+1)/(n^3+2)          → dominant: n/n^3 = 1/n^2         → b_n = 1/n^2
a_n = (3n^2 - 1)/sqrt(n^5+n) → dominant: n^2/n^(5/2) = 1/n^(1/2) → b_n = 1/sqrt(n)
a_n = 1/(n - ln n)           → dominant: 1/n                   → b_n = 1/n

Example 5. ∑n+1n3+2\displaystyle\sum\frac{n+1}{n^3+2}. With bn=1/n2b_n = 1/n^2: anbn=n3+n2n3+2→1\dfrac{a_n}{b_n} = \dfrac{n^3+n^2}{n^3+2}\to1. ∑1/n2\sum1/n^2 converges, so the series converges.

TIP · why limit comparison? In direct comparison the direction of the inequality is critical and often comes out reversed. 1n2−3>1n2\dfrac{1}{n^2-3}>\dfrac{1}{n^2}, that is, it is bigger than a convergent series, and direct comparison says nothing. In limit comparison the direction does not matter: the ratio goes to 11, done.

The alternating series test

Theorem (Leibniz). In the series ∑(−1)n+1bn\sum(-1)^{n+1}b_n, if

  1. bn>0b_n>0,
  2. bnb_n is decreasing (bn+1≤bnb_{n+1}\le b_n, from some point on),
  3. bn→0b_n\to0

then the series converges.

Example 6. The alternating harmonic series 1−12+13−14+…1-\frac12+\frac13-\frac14+\dots All three conditions hold, so it converges (its sum is ln⁡2\ln2). But its absolute value is the harmonic series, which diverges.

Error estimate. If the conditions hold, the difference between sns_n and the true sum is smaller than the first term dropped:

∣S−sn∣≤bn+1.\lvert S-s_n\rvert\le b_{n+1}.

Example 7. If you compute the sum of ∑(−1)n+1n2\sum\dfrac{(-1)^{n+1}}{n^2} with s4s_4, the error is at most b5=125=0.04b_5 = \dfrac{1}{25} = 0.04.

Absolute and conditional convergence

CaseDefinitionExample
Absolutely convergent∑∣an∣\sum\lvert a_n\rvert converges∑(−1)nn2\sum\frac{(-1)^n}{n^2}
Conditionally convergent∑an\sum a_n converges, ∑∣an∣\sum\lvert a_n\rvert diverges∑(−1)nn\sum\frac{(-1)^n}{n}
Divergent∑an\sum a_n diverges∑(−1)n\sum(-1)^n

Theorem. Every absolutely convergent series is convergent. That is why, for series with irregular signs (those containing sin⁡n\sin n, cos⁡n\cos n), you switch to the absolute value and compare.

The template for an “absolutely, conditionally, or diverges?” question in the exam:

1) lim a_n ≠ 0 ? → diverges (done)
2) Does Σ|a_n| converge? (p-series, comparison, ratio) → if yes, ABSOLUTELY
3) If not: alternating series test (b_n decreasing, → 0) → if it holds, CONDITIONALLY

Which test? The decision table

What do you see in the term?The first test to tryExample
lim⁡an≠0\lim a_n\neq0 is clearnth-term test (diverges)∑n2n+1\sum\frac{n}{2n+1}
the form arnar^ngeometric series∑3(25)n\sum 3(\frac25)^n
1np\frac{1}{n^p}p-series∑n−1.5\sum n^{-1.5}
n!n!, cnc^n, nnn^nratio test∑n23n\sum\frac{n^2}{3^n}
Term (…)n(\ldots)^nroot test∑(n2n+1)n\sum(\frac{n}{2n+1})^n
powers and roots of nn (rational)limit comparison (bnb_n = ratio of the dominant terms)∑2n+3n3−n+4\sum\frac{2n+3}{n^3-n+4}
a bounded factor sin⁡n\sin n, cos⁡n\cos ndirect comparison with ∣an∣\lvert a_n\rvert∑sin⁡nn2\sum\frac{\sin n}{n^2}
(−1)n(-1)^nfirst ∑∣an∣\sum\lvert a_n\rvert, then the alternating test∑(−1)nn\sum\frac{(-1)^n}{\sqrt n}
f(n)f(n) is easy to integrate (1nln⁡n\frac{1}{n\ln n}, ne−n2ne^{-n^2})integral test∑1n(ln⁡n)2\sum\frac{1}{n(\ln n)^2}
difference of fractions, partial fractionstelescoping (the sum can be found)∑1n(n+1)\sum\frac{1}{n(n+1)}

Mixed examples: choosing the test

Example 8. ∑3nn2 4n\displaystyle\sum\frac{3^n}{n^2\,4^n}. There is an exponential term. Ratio: 34⋅n2(n+1)2→34<1\dfrac34\cdot\dfrac{n^2}{(n+1)^2}\to\dfrac34<1. Converges. (Direct comparison would also work: ≤(3/4)n\le(3/4)^n.)

Example 9. ∑nn2+1\displaystyle\sum\frac{\sqrt n}{n^2+1}. Only powers. Dominant: n1/2n2=1n3/2\dfrac{n^{1/2}}{n^2} = \dfrac{1}{n^{3/2}}. The limit comparison ratio →1\to1, p=32>1p = \frac32>1, converges.

Example 10. ∑(−1)nnn2+1\displaystyle\sum\frac{(-1)^n n}{n^2+1}. The absolute value is ≈1n\approx\frac1n, diverges. bn=nn2+1→0b_n = \dfrac{n}{n^2+1}\to0 and for x≥1x\ge1, f′(x)=1−x2(x2+1)2≤0f'(x) = \dfrac{1-x^2}{(x^2+1)^2}\le0, decreasing. The alternating test holds: conditionally convergent.

Example 11. ∑(1−1n)n\displaystyle\sum\left(1-\frac1n\right)^n. It looks like a root test case but be careful: the term itself →e−1≠0\to e^{-1}\neq0. It diverges by the nth-term test. The root test here gives ann=1−1n→1\sqrt[n]{a_n} = 1-\frac1n\to1 and would be silent; if you had skipped the first step you would have been stuck.

Common mistakes

WrongCorrect
Writing “converges” when the ratio test gives L=1L=1No result; another test
Applying the ratio test to a rational seriesAlways L=1L=1; use limit comparison
The wrong direction in direct comparisonBe smaller for convergence, bigger for divergence
Comparison on a series with negative termsOnly for positive terms; first ∣an∣\lvert a_n\rvert
Not checking that it is decreasing in the alternating testbnb_n must be decreasing; show f′(x)<0f'(x)<0
Thinking the alternating test proves “diverges”If the condition fails the test is silent; go back to the nth-term test
Calling a conditionally convergent series “absolutely”Check ∑∣an∣\sum\lvert a_n\rvert separately
Using bnb_n in the error estimateThe first dropped term: bn+1b_{n+1}

Test yourself

Exam-style questions. Solve them on paper first, then reveal the answer.

Question 1easy

Determine whether ∑n=1∞n23n\displaystyle\sum_{n=1}^{\infty}\frac{n^2}{3^n} converges.

Show answer
Converges (ratio test, L=1/3L = 1/3)

There is an exponential term, so the ratio test. an+1an=(n+1)23n+1⋅3nn2=13(n+1n)2→13\dfrac{a_{n+1}}{a_n} = \dfrac{(n+1)^2}{3^{n+1}}\cdot\dfrac{3^n}{n^2} = \dfrac13\left(\dfrac{n+1}{n}\right)^2\to\dfrac13.L=13<1L = \frac13<1, the series converges. (The sum comes out as 3/23/2, but the question only asks about the fate.)

Question 2easy

Determine whether ∑n=1∞n!10n\displaystyle\sum_{n=1}^{\infty}\frac{n!}{10^n} converges.

Show answer
Diverges (ratio test, L=∞L=\infty)

There is a factorial, so the ratio test. an+1an=(n+1)!10n+1⋅10nn!=n+110→∞\dfrac{a_{n+1}}{a_n} = \dfrac{(n+1)!}{10^{n+1}}\cdot\dfrac{10^n}{n!} = \dfrac{n+1}{10}\to\infty.L>1L>1, diverges. (Do not be fooled because the first few terms shrink; after n>9n>9 the terms grow.)

Question 3medium

Determine whether ∑n=1∞(n2n+1)n\displaystyle\sum_{n=1}^{\infty}\left(\frac{n}{2n+1}\right)^n converges.

Show answer
Converges (root test, L=1/2L = 1/2)

The whole term is an nnth power, so the root test. ann=n2n+1→12<1\sqrt[n]{a_n} = \dfrac{n}{2n+1}\to\dfrac12<1. Converges.

Question 4medium

Determine whether ∑n=1∞2n+3n3−n+4\displaystyle\sum_{n=1}^{\infty}\frac{2n+3}{n^3-n+4} converges.

Show answer
Converges (limit comparison with ∑1/n2\sum 1/n^2)

Dominant terms: 2nn3=2n2\dfrac{2n}{n^3} = \dfrac{2}{n^2}. Limit comparison with bn=1n2b_n = \dfrac1{n^2}:anbn=(2n+3)n2n3−n+4→2\dfrac{a_n}{b_n} = \dfrac{(2n+3)n^2}{n^3-n+4}\to 2, and 0<2<∞0<2<\infty.∑1/n2\sum 1/n^2 is a convergent p-series (p=2p=2), so the given series converges too.

Question 5medium

Determine whether ∑n=1∞1n2+1\displaystyle\sum_{n=1}^{\infty}\frac{1}{\sqrt{n^2+1}} converges.

Show answer
Diverges (limit comparison with ∑1/n\sum 1/n)

For large nn, n2+1≈n\sqrt{n^2+1}\approx n. With bn=1/nb_n = 1/n: anbn=nn2+1→1\dfrac{a_n}{b_n} = \dfrac{n}{\sqrt{n^2+1}}\to1.
The harmonic series diverges, so the given series diverges too.
Direct comparison does not work here: the inequality 1n2+1<1n\dfrac{1}{\sqrt{n^2+1}}<\dfrac1n goes in the wrong direction.

Question 6medium

Does ∑n=1∞(−1)n+1n\displaystyle\sum_{n=1}^{\infty}\frac{(-1)^{n+1}}{\sqrt n} converge absolutely, converge conditionally, or diverge?

Show answer
Converges conditionally

Absolute value: ∑1n\sum\dfrac{1}{\sqrt n}, p=12p=\frac12, diverges. Not absolutely convergent.
Alternating series test: bn=1nb_n = \dfrac{1}{\sqrt n} is positive, decreasing and →0\to0. The series converges.
It converges but not absolutely: conditionally convergent.

Question 7easy

Does ∑n=1∞(−1)nnn+5\displaystyle\sum_{n=1}^{\infty}(-1)^n\frac{n}{n+5} converge?

Show answer
Diverges (nth-term test)

nn+5→1\dfrac{n}{n+5}\to1, so the terms oscillate around ±1\pm1 and do not go to zero.
It diverges by the nth-term test. The "bn→0b_n\to0" condition of the alternating series test is not satisfied; that test cannot be applied here.

Question 8medium

Does ∑n=1∞sin⁡nn2\displaystyle\sum_{n=1}^{\infty}\frac{\sin n}{n^2} converge absolutely?

Show answer
Yes, absolutely convergent

The signs of the terms are irregular, so the alternating series test cannot be used. Look at the absolute value:∣sin⁡nn2∣≤1n2\left\lvert\dfrac{\sin n}{n^2}\right\rvert\le\dfrac{1}{n^2} and ∑1n2\sum\frac1{n^2} converges.
By direct comparison ∑∣an∣\sum\lvert a_n\rvert converges, so the series is absolutely convergent (and therefore convergent).

Question 9hard

How many terms of ∑n=1∞(−1)n+1n3\displaystyle\sum_{n=1}^{\infty}\frac{(-1)^{n+1}}{n^3} are needed to guarantee, by the alternating series estimation theorem, an error less than 0.0010.001?

Show answer
1010 terms

The error is ∣S−sn∣≤bn+1=1(n+1)3\lvert S-s_n\rvert\le b_{n+1} = \dfrac{1}{(n+1)^3}. Wanted: 1(n+1)3<0.001\dfrac{1}{(n+1)^3}<0.001, that is, (n+1)3>1000(n+1)^3>1000, n+1>10n+1>10.
If you take n=9n=9 the bound is exactly 0.0010.001, and "less than" is not satisfied. The smallest n=10n = 10.
(The actual error for s10s_{10} is about 0.000430.00043.)

Question 10hard

Determine whether ∑n=1∞nnn!\displaystyle\sum_{n=1}^{\infty}\frac{n^n}{n!} converges.

Show answer
Diverges (ratio test, L=eL=e)

an+1an=(n+1)n+1(n+1)!⋅n!nn=(n+1)nnn=(1+1n)n→e\dfrac{a_{n+1}}{a_n} = \dfrac{(n+1)^{n+1}}{(n+1)!}\cdot\dfrac{n!}{n^n} = \dfrac{(n+1)^n}{n^n} = \left(1+\dfrac1n\right)^n\to e.e>1e>1, diverges. (Since nn/n!≥1n^n/n!\ge1 anyway, the nth-term test would also have been enough.)

Question 11hard

Determine whether ∑n=1∞ln⁡nn2\displaystyle\sum_{n=1}^{\infty}\frac{\ln n}{n^2} converges.

Show answer
Converges

ln⁡n\ln n grows more slowly than any power, and the denominator n2n^2 is generous for convergence. Limit comparison with bn=1n3/2b_n = \dfrac{1}{n^{3/2}}:anbn=ln⁡nn1/2→0\dfrac{a_n}{b_n} = \dfrac{\ln n}{n^{1/2}}\to0 (L'Hôpital).
If the limit is 00 and ∑bn\sum b_n converges (p=1.5p = 1.5), then ∑an\sum a_n converges too.
(Comparing with bn=1/n2b_n = 1/n^2 gives limit ∞\infty and says nothing.)

Question 12hard

Does ∑n=2∞(−1)nln⁡nn\displaystyle\sum_{n=2}^{\infty}\frac{(-1)^n\ln n}{n} converge absolutely, converge conditionally, or diverge?

Show answer
Converges conditionally

Absolute: ln⁡nn≥1n\dfrac{\ln n}{n}\ge\dfrac1n (n≥3n\ge3), larger than the harmonic series, diverges.
Alternating test: bn=ln⁡nn→0b_n = \dfrac{\ln n}{n}\to0. Decreasing: f(x)=ln⁡xxf(x) = \dfrac{\ln x}{x}, f′(x)=1−ln⁡xx2<0f'(x) = \dfrac{1-\ln x}{x^2}<0 (x>ex>e). Decreasing for n≥3n\ge3, which is enough.
The series converges but not absolutely: conditionally convergent.

Verification: Ratio and root limits were checked at large n using logarithms (without overflow), limit comparison ratios at large n, and the sums of convergent series and alternating series error estimates with partial sums of millions of terms in node (verify/MAT1052/04.mjs).

Review card

RATIO: L = lim |a_(n+1)/a_n|. L<1 converges (absolutely), L>1 diverges, L=1 THE TEST IS SILENT if there is n!, c^n, n^n use the ratio test ROOT: L = lim |a_n|^(1/n). Rules same as the ratio. If the term is (...)^n use the root test For rational/algebraic (powers of n) ratio/root ALWAYS gives L=1 → useless DIRECT COMP.: 0≤a≤b. Σb converges → Σa converges. Σa diverges → Σb diverges LIMIT COMP.: lim a/b = c, 0<c<∞ → same fate. b = ratio of the dominant terms c=0 and Σb converges → Σa converges; c=∞ and Σb diverges → Σa diverges ALTERNATING: Σ(-1)^n b_n, b_n>0 DECREASING and b_n→0 → converges error |S - s_n| ≤ b_(n+1) Σ|a_n| converges → ABSOLUTE. Σa_n converges but Σ|a_n| does not → CONDITIONAL Absolutely convergent ⇒ convergent (the converse is false) FIRST STEP ALWAYS: is lim a_n ≠ 0? → diverges