Skip to content

§15 Alternating Series and Integral Tests

Sometimes we can decide whether a series converges by comparing its partial sums with familiar integrals.

Why this matters

The tests of §14 give no information about the most important comparison series of all, ∑1np\sum\frac1{n^p}, since their ratios tend to 11. This section supplies two new tools: comparison with an integral, which settles the pp-series, and the Alternating Series Theorem, which shows that a series can converge without converging absolutely.

Example 1.

We show ∑1n=+∞\sum \frac1n = +\infty. Draw f(x)=1xf(x) = \frac1x and, over each interval [k,k+1][k, k+1], a rectangle of height 1k\frac1k. These rectangles lie above the curve, so for n≥1n \ge 1

∑k=1n1k=sum of the areas of the first n rectangles≥∫1n+11x dx=log⁡e(n+1).\sum_{k=1}^n \frac1k = \text{sum of the areas of the first } n \text{ rectangles} \ge \int_1^{n+1} \frac1x\,dx = \log_e(n+1).

Since lim⁡n→∞log⁡e(n+1)=+∞\lim_{n\to\infty} \log_e(n+1) = +\infty, we conclude ∑n=1∞1n=+∞\sum_{n=1}^\infty \frac1n = +\infty.

The series diverges very slowly. In fact ∑n=1N1n\sum_{n=1}^N \frac1n is approximately log⁡eN+0.5772\log_e N + 0.5772, so for N=1,000N = 1{,}000 the sum is about 7.4857.485, and for N=1,000,000N = 1{,}000{,}000 it is only about 14.39314.393. Another proof of divergence was given in Exercise 14.14.

Example 2.

We show ∑1n2\sum \frac1{n^2} converges. Now put the rectangle of height 1k2\frac1{k^2} over [k−1,k][k-1, k], so for k≥2k \ge 2 it lies under the curve f(x)=1x2f(x) = \frac1{x^2}. Then

∑k=1n1k2=sum of the areas of the first n rectangles≤1+∫1n1x2 dx=2−1n<2\sum_{k=1}^n \frac1{k^2} = \text{sum of the areas of the first } n \text{ rectangles} \le 1 + \int_1^n \frac1{x^2}\,dx = 2 - \frac1n < 2

for all n≥1n \ge 1. The partial sums form an increasing sequence bounded above by 22, so ∑n=1∞1n2\sum_{n=1}^\infty \frac1{n^2} converges and its sum is at most 22. (Its sum is actually π26=1.6449⋯\frac{\pi^2}6 = 1.6449\cdots.)

We did not simply write ∑k=1n1k2≤∫0n1x2 dx\sum_{k=1}^n \frac1{k^2} \le \int_0^n \frac1{x^2}\,dx, even though it is true, because that integral is infinite. We were after a finite upper bound for the partial sums.

The harmonic series ∑1/n\sum 1/n diverges, but its terms shrink only slightly slower than those of ∑1/n1.01\sum 1/n^{1.01}. Does ∑1/n1.01\sum 1/n^{1.01} converge?

Set p=1p = 1 with rectangles above to see Example 1, and p=2p = 2 with rectangles below to see Example 2. Then move pp past 11 and watch which bound stays finite.

1234567891y = 1/x1

s8 = 2.7179 ≥ ∫19 x−1 dx = 2.1972. That integral tends to +∞ as n grows, so the series diverges.

The techniques just illustrated prove the following theorem.

15.1 Theorem.

∑1np\sum \dfrac1{n^p} converges if and only if p>1p > 1.

Used in Exercise 15.5

Proof

Supply your own picture. If p>1p > 1, then

∑k=1n1kp≤1+∫1n1xp dx=1+1p−1[1−1np−1]<1+1p−1=pp−1.\sum_{k=1}^n \frac1{k^p} \le 1 + \int_1^n \frac1{x^p}\,dx = 1 + \frac1{p-1}\left[1 - \frac1{n^{p-1}}\right] < 1 + \frac1{p-1} = \frac{p}{p-1}.

Consequently ∑n=1∞1np≤pp−1<+∞\sum_{n=1}^\infty \frac1{n^p} \le \frac{p}{p-1} < +\infty.

Suppose 0<p≤10 < p \le 1. Then 1n≤1np\frac1n \le \frac1{n^p} for all nn. Since ∑1n\sum \frac1n diverges, ∑1np\sum \frac1{n^p} diverges by the Comparison Test.

∎

Intuition

For a decreasing ff, the area ∫kk+1f(x) dx\int_k^{k+1} f(x)\,dx lies between f(k+1)f(k+1) and f(k)f(k). Adding these up, the partial sums and the integrals can never drift apart by more than the first term. So the series and the integral are both finite or both infinite.

15.2 Integral Tests.

An integral test is advisable when:

  1. the tests in §14 do not seem to apply;
  2. the terms ana_n of the series ∑an\sum a_n are nonnegative;
  3. there is a nice decreasing function ff on [1,∞)[1, \infty) with f(n)=anf(n) = a_n for all nn (ff is decreasing if x<yx < y implies f(x)≥f(y)f(x) \ge f(y));
  4. the integral of ff is easy to calculate or estimate.

If lim⁡n→∞∫1nf(x) dx=+∞\lim_{n\to\infty} \int_1^n f(x)\,dx = +\infty, the series diverges just as in Example 1. If lim⁡n→∞∫1nf(x) dx<+∞\lim_{n\to\infty} \int_1^n f(x)\,dx < +\infty, the series converges just as in Example 2. The interested reader may formulate and prove the general result (Exercise 15.8).

Common pitfallthe decreasing hypothesis matters

Let f(x)=sin⁡2(πx)f(x) = \sin^2(\pi x). Then f(n)=0f(n) = 0 for every integer nn, so ∑f(n)=0\sum f(n) = 0 converges, but ∫1∞f(x) dx=+∞\int_1^\infty f(x)\,dx = +\infty since ff has the same positive area over every interval [k,k+1][k, k+1]. Without a decreasing ff, the values at the integers need not reflect the area under the curve at all.

The next result shows that series like ∑(−1)nn\sum \frac{(-1)^n}{\sqrt n} converge even though they do not converge absolutely (see Example 9 of §14).

15.3 Alternating Series Theorem.

If a1≥a2≥⋯≥an≥⋯≥0a_1 \ge a_2 \ge \cdots \ge a_n \ge \cdots \ge 0 and lim⁡an=0\lim a_n = 0, then the alternating series ∑(−1)n+1an\sum (-1)^{n+1} a_n converges. Moreover, the partial sums sn=∑k=1n(−1)k+1aks_n = \sum_{k=1}^n (-1)^{k+1} a_k satisfy ∣s−sn∣≤an|s - s_n| \le a_n for all nn.

Used in §14

The series ∑(−1)nan\sum (-1)^n a_n is called alternating because the signs of its terms alternate between ++ and −-.

Proof

We show (sn)(s_n) converges. The subsequence (s2n)(s_{2n}) is increasing, because s2n+2−s2n=−a2n+2+a2n+1≥0s_{2n+2} - s_{2n} = -a_{2n+2} + a_{2n+1} \ge 0. Similarly (s2n−1)(s_{2n-1}) is decreasing, since s2n+1−s2n−1=a2n+1−a2n≤0s_{2n+1} - s_{2n-1} = a_{2n+1} - a_{2n} \le 0. We claim

s2m≤s2n+1for all m,n∈N.(1)s_{2m} \le s_{2n+1} \qquad\text{for all } m, n \in \mathbb{N}. \tag{1}

First, s2n≤s2n+1s_{2n} \le s_{2n+1} for all nn, because s2n+1−s2n=a2n+1≥0s_{2n+1} - s_{2n} = a_{2n+1} \ge 0. If m≤nm \le n, then (1) holds because s2m≤s2n≤s2n+1s_{2m} \le s_{2n} \le s_{2n+1}. If m≥nm \ge n, then (1) holds because s2n+1≥s2m+1≥s2ms_{2n+1} \ge s_{2m+1} \ge s_{2m}.

By (1), (s2n)(s_{2n}) is an increasing subsequence bounded above by every odd partial sum, and (s2n+1)(s_{2n+1}) is a decreasing subsequence bounded below by every even partial sum. By Theorem 10.2 these converge, say to ss and tt. Now

t−s=lim⁡n→∞s2n+1−lim⁡n→∞s2n=lim⁡n→∞(s2n+1−s2n)=lim⁡n→∞a2n+1=0,t - s = \lim_{n\to\infty} s_{2n+1} - \lim_{n\to\infty} s_{2n} = \lim_{n\to\infty} (s_{2n+1} - s_{2n}) = \lim_{n\to\infty} a_{2n+1} = 0,

so s=ts = t, and it follows that lim⁡nsn=s\lim_n s_n = s.

For the last claim, note s2k≤s≤s2k+1s_{2k} \le s \le s_{2k+1}, so both s2k+1−ss_{2k+1} - s and s−s2ks - s_{2k} are bounded by s2k+1−s2k=a2k+1≤a2ks_{2k+1} - s_{2k} = a_{2k+1} \le a_{2k}. Whether nn is even or odd, ∣s−sn∣≤an|s - s_n| \le a_n.

∎

Intuition

Each new term overshoots the limit in the opposite direction, by less than the previous overshoot. So the limit is trapped between any two consecutive partial sums, and the error is at most the first omitted term. For example, to compute 1−12+13−⋯1 - \frac12 + \frac13 - \cdots to within 0.0010.001, it is enough to stop at a term an≤0.001a_n \le 0.001.

Common pitfallterms tending to 0 is not enough without “decreasing”

Alternating signs and an→0a_n \to 0 do not suffice. Consider

1−1+12−14+13−19+14−116+⋯ ,1 - 1 + \tfrac12 - \tfrac14 + \tfrac13 - \tfrac19 + \tfrac14 - \tfrac1{16} + \cdots,

whose terms alternate in sign and tend to 00 but do not decrease. Grouped in pairs, the partial sums are ∑j=1k(1j−1j2)\sum_{j=1}^k \left(\frac1j - \frac1{j^2}\right), and these tend to +∞+\infty because ∑1j\sum\frac1j diverges while ∑1j2\sum\frac1{j^2} converges.

Common pitfallorder matters for conditionally convergent series

A series that converges but not absolutely is called conditionally convergent, and for such series the order of the terms matters. Take the terms of 1−12+13−14+⋯1 - \frac12 + \frac13 - \frac14 + \cdots and write them as one positive term followed by two negative ones:

(1−12)−14+(13−16)−18+(15−110)−112+⋯=12−14+16−18+110−112+⋯ .\begin{aligned} &\left(1 - \tfrac12\right) - \tfrac14 + \left(\tfrac13 - \tfrac16\right) - \tfrac18 + \left(\tfrac15 - \tfrac1{10}\right) - \tfrac1{12} + \cdots \\ &\quad = \tfrac12 - \tfrac14 + \tfrac16 - \tfrac18 + \tfrac1{10} - \tfrac1{12} + \cdots. \end{aligned}

Each group in parentheses is half of its first term, and the result is exactly half of the original series, so it converges to 12log⁡2\frac12\log 2 instead of log⁡2\log 2. The same terms in a different order give a different sum. Absolutely convergent series do not have this problem: every rearrangement has the same sum.

Choose an order and watch where the partial sums go. For the conditionally convergent series you can even steer the sum to any target you like (Riemann’s rearrangement theorem). For the absolutely convergent series nothing you do changes the sum.

00.511.5number of terms used: 600

Order: one positive term, then two negative terms, repeating. Terms: +1/1 −1/2 −1/4 +1/3 −1/6 −1/8 +1/5 −1/10 −1/12 +1/7 −1/14 −1/16 +1/9 −1/18 ⋯
After 600 terms the partial sum is 0.3459. The same terms, reordered, now sum to 0.3466, not 0.6931.

The terms of 1−12+13−14+⋯1 - \frac12 + \frac13 - \frac14 + \cdots alternate in sign, and the absolute values 1/n1/n add up to infinity. Does this series converge?

The partial sums of 1−12+13−⋯1 - \frac12 + \frac13 - \cdots zigzag: even sums climb, odd sums fall, and every even sum sits below every odd sum, exactly as in (1). They squeeze down to log⁡2≈0.6931\log 2 \approx 0.6931.

terms aₙpartial sums sₙ = a₁ + ⋯ + aₙsum = log 2

s_40 = 0.680803, which differs from the sum log 2 ≈ 0.693147 by 1.23e-2.

Converges by the alternating series theorem 15.3, but not absolutely. The partial sums zig-zag, and the limit lies between any two consecutive ones.

Reading alongside Abbott

Abbott proves the Alternating Series Test in Section 2.7, along with the theorem that rearranging an absolutely convergent series does not change its sum. In fact Abbott opens the whole chapter on sequences and series (Section 2.1) with the puzzle of rearrangements, as motivation for taking convergence seriously. Abbott does not use integral tests at this stage, since integrals come much later in that book. It settles the pp-series with the Cauchy condensation test instead (see the note at the end of §14).

Take the quiz (3 questions)

Which series converges?

How does ∑(−1)n+1n=1−12+13−⋯\sum \frac{(-1)^{n+1}}{n} = 1 - \frac12 + \frac13 - \cdots behave?

For ∑(−1)n+1n\sum \frac{(-1)^{n+1}}{n}, when does the bound in Theorem 15.3 guarantee ∣s−sn∣≤0.01|s - s_n| \le 0.01?

Exercise 15.1

Determine which of the following series converge. Justify your answers.

  1. ∑(−1)nn\sum \dfrac{(-1)^n}{n}
  2. ∑(−1)nn!2n\sum \dfrac{(-1)^n n!}{2^n}
Solution

(a) converges by the Alternating Series Theorem. (b) diverges: n!2n→∞\frac{n!}{2^n} \to \infty, so the terms do not tend to 00.

Tags: Warm-upSeries tests

Used in Exercise 15.2

Exercise 15.2

Repeat Exercise 15.1 for the following.

  1. ∑[sin⁡(nπ6)]n\sum \left[\sin\left(\tfrac{n\pi}6\right)\right]^n
  2. ∑[sin⁡(nπ7)]n\sum \left[\sin\left(\tfrac{n\pi}7\right)\right]^n
Solution

(a) diverges: for n=12j+3n = 12j + 3, sin⁡(nπ/6)=1\sin(n\pi/6) = 1, so the terms do not tend to 00. (b) converges absolutely: ∣sin⁡(nπ/7)∣≤sin⁡(3π/7)<1|\sin(n\pi/7)| \le \sin(3\pi/7) < 1 for every nn (it is 00 when 7∣n7 \mid n), so compare with a geometric series.

Tags: StandardSeries tests

Exercise 15.3

Show ∑n=2∞1n(log⁡n)p\displaystyle\sum_{n=2}^\infty \frac1{n(\log n)^p} converges if and only if p>1p > 1.

Hint

Integral test with f(x)=1x(log⁡x)pf(x) = \frac1{x(\log x)^p}; substitute u=log⁡xu = \log x.

Solution

Let f(x)=1x(log⁡x)pf(x) = \dfrac1{x(\log x)^p} on [2,∞)[2,\infty). For p>0p>0, it is positive and decreasing, because x(log⁡x)px(\log x)^p is positive and increasing. Substitute u=log⁡xu = \log x: ∫2nf(x) dx=∫log⁡2log⁡nu−p du={log⁡log⁡n−log⁡log⁡2,p=1,(log⁡n)1−p−(log⁡2)1−p1−p,p≠1.\int_2^n f(x)\,dx = \int_{\log 2}^{\log n}u^{-p}\,du = \begin{cases}\log\log n - \log\log 2, & p = 1,\\[2pt] \dfrac{(\log n)^{1-p} - (\log 2)^{1-p}}{1-p}, & p \ne 1.\end{cases} As n→∞n \to \infty this tends to +∞+\infty when p=1p = 1 or 0<p<10<p<1, and tends to the finite limit (log⁡2)1−pp−1\frac{(\log 2)^{1-p}}{p-1} when p>1p > 1. By the integral test (Remark 15.2, Exercise 15.8) the series converges exactly when p>1p > 1. For p≤0p \le 0, 1n(log⁡n)p≥1n\frac1{n(\log n)^p} \ge \frac1n for n≥3n \ge 3, so the series diverges by comparison with ∑1n\sum\frac1n.

Tags: StandardSeries tests

Exercise 15.4

Determine which of the following series converge. Justify your answers.

  1. ∑n=2∞1nlog⁡n\sum_{n=2}^\infty \dfrac1{\sqrt n \log n}
  2. ∑n=2∞log⁡nn\sum_{n=2}^\infty \dfrac{\log n}{n}
  3. ∑n=4∞1n(log⁡n)(log⁡log⁡n)\sum_{n=4}^\infty \dfrac1{n (\log n)(\log \log n)}
  4. ∑n=2∞log⁡nn2\sum_{n=2}^\infty \dfrac{\log n}{n^2}
Solution

(a) diverges (nlog⁡n≤n\sqrt n \log n \le n for large nn, so the terms dominate 1n\frac1n). (b) diverges (terms ≥1n\ge \frac1n for n≥3n \ge 3). (c) diverges (integral is log⁡log⁡log⁡x\log\log\log x). (d) converges (log⁡n≤n\log n \le \sqrt n, so terms ≤n−3/2\le n^{-3/2}).

Tags: StandardSeries tests

Exercise 15.5

Why didn’t we use the Comparison Test to prove Theorem 15.1 for p>1p > 1?

Solution

To compare we need a known convergent series to compare against, and at that point we had only geometric series, which decay too fast to dominate 1np\frac1{n^p}.

Tags: Warm-upExplain why

Exercise 15.6
  1. Give an example of a divergent series ∑an\sum a_n for which ∑an2\sum a_n^2 converges.
  2. Observe that if ∑an\sum a_n is a convergent series of nonnegative terms, then ∑an2\sum a_n^2 also converges. See Exercise 14.7.
  3. Give an example of a convergent series ∑an\sum a_n for which ∑an2\sum a_n^2 diverges.
Solution

(a) an=1na_n = \frac1n. (c) an=(−1)nna_n = \frac{(-1)^n}{\sqrt n}.

Tags: StandardSeries testsExamples & counterexamples

Exercise 15.7
  1. Prove that if (an)(a_n) is a decreasing sequence of real numbers and ∑an\sum a_n converges, then lim⁡nan=0\lim n a_n = 0.
  2. Use (a) to give another proof that ∑1n\sum \frac1n diverges.
Hint

For (a), consider ∣aN+1+aN+2+⋯+an∣|a_{N+1} + a_{N+2} + \cdots + a_n| for suitable NN. Each term is at least ana_n, so this is at least (n−N)an(n - N)a_n. Note the ana_n must be nonnegative, since otherwise the terms would not tend to 00.

Solution
  1. Since ∑an\sum a_n converges, an→0a_n \to 0; a decreasing sequence tending to 00 has all terms ≥0\ge 0. Let ε>0\varepsilon > 0 and use the Cauchy criterion to choose NN with ∑k=N+1nak<ε/2\sum_{k=N+1}^n a_k < \varepsilon/2 for all n>Nn > N. Because (ak)(a_k) is decreasing, ak≥ana_k \ge a_n for N<k≤nN < k \le n, so (n−N)an≤∑k=N+1nak<ε/2(n - N)a_n \le \sum_{k=N+1}^n a_k < \varepsilon/2. For n≥2Nn \ge 2N we have n−N≥n/2n - N \ge n/2, hence n2an<ε2\frac n2 a_n < \frac\varepsilon2, i.e. 0≤nan<ε0 \le na_n < \varepsilon. So nan→0na_n \to 0.
  2. The sequence an=1na_n = \frac1n is decreasing but nan=1↛0na_n = 1 \not\to 0. By (a), ∑1n\sum\frac1n cannot converge.

Tags: ChallengeSeries testsMonotone & Cauchy

Exercise 15.8

Formulate and prove a general integral test as advised in 15.2.

Hint

If f≥0f \ge 0 is decreasing on [1,∞)[1,\infty) and an=f(n)a_n = f(n), then ∫1n+1f≤∑k=1nak≤a1+∫1nf\int_1^{n+1} f \le \sum_{k=1}^n a_k \le a_1 + \int_1^n f.

Solution

Integral test. Let f≥0f \ge 0 be a decreasing function on [1,∞)[1, \infty) and let an=f(n)a_n = f(n). Then ∑an\sum a_n converges if and only if lim⁡n→∞∫1nf(x) dx<+∞\lim_{n\to\infty}\int_1^n f(x)\,dx < +\infty; otherwise both the series and the integral limit are +∞+\infty.

Proof. A decreasing function is integrable on each [1,n][1,n]. For x∈[k,k+1]x \in [k, k+1] we have ak+1=f(k+1)≤f(x)≤f(k)=aka_{k+1} = f(k+1) \le f(x) \le f(k) = a_k, so ak+1≤∫kk+1f≤aka_{k+1} \le \int_k^{k+1}f \le a_k. Summing over kk, with sn=∑k=1naks_n = \sum_{k=1}^n a_k and F(n)=∫1nfF(n) = \int_1^n f, sn−a1≤F(n)≤sn−1.s_n - a_1 \le F(n) \le s_{n-1}. Both (sn)(s_n) and (F(n))(F(n)) are increasing. If (sn)(s_n) is bounded, so is (F(n))(F(n)) (as F(n)≤sn−1F(n) \le s_{n-1}), so F(n)F(n) converges. If (F(n))(F(n)) is bounded, then sn≤a1+F(n)s_n \le a_1 + F(n) is bounded, so ∑an\sum a_n converges. Hence one converges exactly when the other does, and otherwise both tend to +∞+\infty. ■\blacksquare

Tags: ChallengeSeries tests

Used in Remark 15.2, Exercise 15.3

Keyboard shortcuts

Single-key shortcuts
KeyAction
nNext section
pPrevious section
jNext exercise
kPrevious exercise
hShow or hide all hints
sShow or hide all solutions
/Search
?Show this list
Ctrl K or ⌘ KSearch (built in)
EscClose a dialog

Shortcuts never fire while you type in a text field or hold Ctrl, Alt or ⌘. Screen reader users in browse mode can press the keys after switching to focus mode, or turn them off here.