Skip to content
Family Table Math

The Alternating Series Test

The harmonic series 1+12+13+…1 + \tfrac{1}{2} + \tfrac{1}{3} + \dots diverges. But flip every second sign, 1−12+13−14+…1 - \tfrac{1}{2} + \tfrac{1}{3} - \tfrac{1}{4} + \dots, and the result converges. When terms alternate in sign, each one partly cancels the one before, and that’s often enough. The alternating series test tells you exactly when this cancelling guarantees convergence.

An alternating series has terms that switch sign every time. It can be written

∑n=1∞(−1)n+1bn=b1−b2+b3−b4+…or∑n=1∞(−1)nbn=−b1+b2−b3+…\sum_{n=1}^{\infty} (-1)^{n+1} b_n = b_1 - b_2 + b_3 - b_4 + \dots \qquad\text{or}\qquad \sum_{n=1}^{\infty} (-1)^n b_n = -b_1 + b_2 - b_3 + \dots

where every bn>0b_n \gt 0. Here bnb_n is the size of the term, without its sign. You’ll also see cos⁡(nπ)\cos(n\pi) used as the sign, since cos⁡(nπ)=(−1)n\cos(n\pi) = (-1)^n (in radians).

If

  1. the sizes bnb_n are decreasing: bn+1≤bnb_{n+1} \le b_n (at least from some point on), and
  2. lim⁡n→∞bn=0\displaystyle\lim_{n \to \infty} b_n = 0,

then the alternating series converges.

Picture the partial sums for 1−12+13−14+…1 - \tfrac{1}{2} + \tfrac{1}{3} - \tfrac{1}{4} + \dots. You step forward 11, back 12\tfrac{1}{2}, forward 13\tfrac{1}{3}, back 14\tfrac{1}{4}, and so on. Each step is shorter than the last (condition 1), so the partial sums zig-zag in a narrowing band. The steps shrink to nothing (condition 2), so the band closes in on a single number: the sum.

Partial sums of the alternating harmonic series 1 - 1/2 + 1/3 - 1/4 + ... for n = 1 to 12, joined by a zig-zag line. They go 1, 0.5, 0.833, 0.583, and so on, landing alternately above and below the dashed line at ln 2, about 0.693, and getting closer each time. 1 2 3 4 5 6 7 8 9 10 11 12 0.25 0.5 0.75 1 ln 2 ≈ 0.693 S₁ = 1 S₂ = 1/2 n partial sum Sₙ
The partial sums of 1−12+13−…1 - \frac{1}{2} + \frac{1}{3} - \dots land alternately above and below the sum ln⁡2≈0.693\ln 2 \approx 0.693.

The picture also shows that the sum always lies between any two consecutive partial sums. That fact leads to the alternating series error bound.

∑n=1∞(−1)n+1n=1−12+13−14+…\sum_{n=1}^{\infty} \frac{(-1)^{n+1}}{n} = 1 - \frac{1}{2} + \frac{1}{3} - \frac{1}{4} + \dots

converges (to ln⁡2\ln 2, as you’ll be able to show with Taylor series), even though the harmonic series without the signs diverges.

The alternating series test only ever proves convergence. If bnb_n does not approach 00, the series diverges, but the reason is the nth term test, and you should say so. If bn→0b_n \to 0 but bnb_n isn’t decreasing, the test simply doesn’t apply. The series might converge or diverge.

On the AP exam, write both conditions explicitly: “The terms alternate in sign, 1n\frac{1}{n} is decreasing, and lim⁡n→∞1n=0\displaystyle\lim_{n \to \infty} \frac{1}{n} = 0, so the series converges by the alternating series test.”

Example 1: The alternating harmonic series

Section titled “Example 1: The alternating harmonic series”

Show that ∑n=1∞(−1)n+1n\displaystyle\sum_{n=1}^{\infty} \frac{(-1)^{n+1}}{n} converges, and find its first five partial sums.

Solution. The series alternates with bn=1nb_n = \dfrac{1}{n}.

  1. 1n+1<1n\dfrac{1}{n+1} \lt \dfrac{1}{n}, so bnb_n is decreasing.
  2. lim⁡n→∞1n=0\displaystyle\lim_{n \to \infty} \frac{1}{n} = 0.

So the series converges by the alternating series test. The partial sums are

S1=1,S2=0.5,S3≈0.833,S4≈0.583,S5≈0.783S_1 = 1, \quad S_2 = 0.5, \quad S_3 \approx 0.833, \quad S_4 \approx 0.583, \quad S_5 \approx 0.783

They bounce above and below the sum, ln⁡2≈0.693\ln 2 \approx 0.693.

Example 2: Checking “decreasing” with a derivative

Section titled “Example 2: Checking “decreasing” with a derivative”

Does ∑n=1∞(−1)nnn2+1\displaystyle\sum_{n=1}^{\infty} \frac{(-1)^n n}{n^2 + 1} converge or diverge?

Solution. The series alternates with bn=nn2+1b_n = \dfrac{n}{n^2 + 1}.

Is bnb_n decreasing? It isn’t obvious, because both the top and bottom grow. Let f(x)=xx2+1f(x) = \dfrac{x}{x^2 + 1}:

f′(x)=(x2+1)−x(2x)(x2+1)2=1−x2(x2+1)2≤0for x≥1f'(x) = \frac{(x^2 + 1) - x(2x)}{(x^2 + 1)^2} = \frac{1 - x^2}{(x^2 + 1)^2} \le 0 \quad\text{for } x \ge 1

So bnb_n is decreasing. The limit is lim⁡n→∞nn2+1=0\displaystyle\lim_{n \to \infty} \frac{n}{n^2 + 1} = 0 (the bottom has the higher power). Both conditions hold, so the series converges by the alternating series test.

Example 3: When the terms don’t shrink to zero

Section titled “Example 3: When the terms don’t shrink to zero”

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

Solution. The sizes are bn=2n3n+1b_n = \dfrac{2n}{3n + 1}, and

lim⁡n→∞2n3n+1=23≠0.\lim_{n \to \infty} \frac{2n}{3n + 1} = \frac{2}{3} \ne 0 .

So the terms an=(−1)n 2n3n+1a_n = \dfrac{(-1)^n\, 2n}{3n + 1} keep jumping between values near 23\tfrac{2}{3} and −23-\tfrac{2}{3}, and don’t approach 00. The series diverges by the nnth term test. (The alternating series test can’t prove divergence, so don’t cite it here.)

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

Solution. Here bn=ln⁡nnb_n = \dfrac{\ln n}{n} (with b1=0b_1 = 0, which doesn’t matter). Let f(x)=ln⁡xxf(x) = \dfrac{\ln x}{x}:

f′(x)=1−ln⁡xx2<0when x>ef'(x) = \frac{1 - \ln x}{x^2} \lt 0 \quad\text{when } x \gt e

So bnb_n is decreasing for n≥3n \ge 3. That’s enough, since the first two terms don’t affect convergence. By L’Hôpital’s rule,

lim⁡x→∞ln⁡xx=lim⁡x→∞1/x1=0.\lim_{x \to \infty} \frac{\ln x}{x} = \lim_{x \to \infty} \frac{1/x}{1} = 0 .

Both conditions hold (from n=3n = 3 on), so the series converges by the alternating series test.

Saying “the alternating series test fails, so the series diverges.” The test only proves convergence. If bn↛0b_n \not\to 0, cite the nnth term test for divergence. If bnb_n isn’t decreasing, you need a different argument.

Checking only that b_n goes to 0. Both conditions are required. Many AP answers lose a point for never mentioning that bnb_n is decreasing. When it isn’t obvious, use a derivative or compare bn+1b_{n+1} with bnb_n.

Including the sign in b_n. bnb_n is the positive size of the term. For (−1)nnn2+1\frac{(-1)^n n}{n^2 + 1}, bn=nn2+1b_n = \frac{n}{n^2 + 1}, not (−1)nnn2+1\frac{(-1)^n n}{n^2 + 1}. The sequence (−1)nbn(-1)^n b_n isn’t decreasing, but that’s irrelevant.

Using the test on a series that doesn’t strictly alternate. ∑sin⁡nn2\sum \frac{\sin n}{n^2} has mixed signs, but not +,−,+,−+,-,+,- in order, so this test doesn’t apply. (It converges by absolute convergence.)

Thinking the series “converges absolutely” because of this test. The alternating series test says nothing about ∑bn\sum b_n. The alternating harmonic series converges, but ∑1n\sum \frac{1}{n} diverges.

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

Solution

It alternates with bn=1nb_n = \dfrac{1}{\sqrt{n}}, which is decreasing (the square root increases) and has limit 00. It converges by the alternating series test.

2. (Warm-up) Does ∑n=1∞(−1)nnn+1\displaystyle\sum_{n=1}^{\infty} \frac{(-1)^n n}{n + 1} converge or diverge?

Solution

bn=nn+1→1≠0b_n = \dfrac{n}{n + 1} \to 1 \ne 0, so the terms don’t approach 00. The series diverges by the nnth term test.

3. (Warm-up) Does ∑n=1∞cos⁡(nπ)n2\displaystyle\sum_{n=1}^{\infty} \frac{\cos(n\pi)}{n^2} converge or diverge?

Solution

In radians, cos⁡(nπ)=(−1)n\cos(n\pi) = (-1)^n, so the series is ∑(−1)nn2\sum \frac{(-1)^n}{n^2}. It alternates with bn=1n2b_n = \frac{1}{n^2}, which is decreasing with limit 00. It converges by the alternating series test.

4. (Core) Does ∑n=1∞(−1)n+1nn2+4\displaystyle\sum_{n=1}^{\infty} \frac{(-1)^{n+1} n}{n^2 + 4} converge or diverge? Compute b1b_1, b2b_2, and b3b_3 first.

Solution

b1=15=0.2b_1 = \tfrac{1}{5} = 0.2, b2=28=0.25b_2 = \tfrac{2}{8} = 0.25, b3=313≈0.231b_3 = \tfrac{3}{13} \approx 0.231. So bnb_n goes up at first, then down. Check with f(x)=xx2+4f(x) = \dfrac{x}{x^2 + 4}:

f′(x)=(x2+4)−2x2(x2+4)2=4−x2(x2+4)2<0for x>2f'(x) = \frac{(x^2 + 4) - 2x^2}{(x^2 + 4)^2} = \frac{4 - x^2}{(x^2 + 4)^2} \lt 0 \quad\text{for } x \gt 2

So bnb_n is decreasing for n≥2n \ge 2, which is enough. Also lim⁡n→∞nn2+4=0\displaystyle\lim_{n \to \infty} \frac{n}{n^2 + 4} = 0. The series converges by the alternating series test.

5. (Core) Does ∑n=2∞(−1)nln⁡n\displaystyle\sum_{n=2}^{\infty} \frac{(-1)^n}{\ln n} converge or diverge?

Solution

It alternates with bn=1ln⁡nb_n = \dfrac{1}{\ln n}. Since ln⁡n\ln n is increasing and positive for n≥2n \ge 2, bnb_n is decreasing, and ln⁡n→∞\ln n \to \infty means bn→0b_n \to 0. It converges by the alternating series test.

6. (Core) Find S5S_5 for the alternating harmonic series, to three decimal places. Between which two partial sums must the sum lie?

SolutionS5=1−12+13−14+15=4760≈0.783S_5 = 1 - \frac{1}{2} + \frac{1}{3} - \frac{1}{4} + \frac{1}{5} = \frac{47}{60} \approx 0.783

The sum lies between consecutive partial sums, so it’s between S4=712≈0.583S_4 = \tfrac{7}{12} \approx 0.583 and S5≈0.783S_5 \approx 0.783. (Indeed, ln⁡2≈0.693\ln 2 \approx 0.693.)

7. (Core) Does ∑n=1∞(−1)n+1n22n\displaystyle\sum_{n=1}^{\infty} \frac{(-1)^{n+1} n^2}{2^n} converge or diverge?

Solution

bn=n22nb_n = \dfrac{n^2}{2^n}: b1=12b_1 = \tfrac{1}{2}, b2=1b_2 = 1, b3=98b_3 = \tfrac{9}{8}, b4=1b_4 = 1, b5=2532b_5 = \tfrac{25}{32}, … It rises at first. Compare consecutive terms:

bn+1bn=(n+1)22n2\frac{b_{n+1}}{b_n} = \frac{(n+1)^2}{2n^2}

This is less than 11 when (n+1)2<2n2(n+1)^2 \lt 2n^2, which is true for n≥3n \ge 3 (at n=3n = 3: 16<1816 \lt 18). So bnb_n is decreasing from n=3n = 3 on. By L’Hôpital’s rule twice, lim⁡x→∞x22x=lim⁡x→∞2(ln⁡2)22x=0\displaystyle\lim_{x \to \infty} \frac{x^2}{2^x} = \lim_{x \to \infty} \frac{2}{(\ln 2)^2 2^x} = 0. The series converges by the alternating series test.

8. (Challenge) Does ∑n=1∞(−1)nsin⁡ ⁣(1n)\displaystyle\sum_{n=1}^{\infty} (-1)^n \sin\!\left(\frac{1}{n}\right) converge or diverge?

Solution

bn=sin⁡ ⁣(1n)b_n = \sin\!\left(\frac{1}{n}\right). For n≥1n \ge 1, 1n\frac{1}{n} is in (0,1](0, 1], where sine is positive and increasing. As nn increases, 1n\frac{1}{n} decreases, so sin⁡ ⁣(1n)\sin\!\left(\frac{1}{n}\right) decreases. Also sin⁡ ⁣(1n)→sin⁡0=0\sin\!\left(\frac{1}{n}\right) \to \sin 0 = 0. Both conditions hold, so the series converges by the alternating series test.

(Compare with the comparison tests page, where ∑sin⁡ ⁣(1n)\sum \sin\!\left(\frac{1}{n}\right) without the signs diverges.)

9. (Challenge) Consider the alternating series

1−122+13−142+15−162+…1 - \frac{1}{2^2} + \frac{1}{3} - \frac{1}{4^2} + \frac{1}{5} - \frac{1}{6^2} + \dots

where the positive terms are 1n\frac{1}{n} for odd nn and the negative terms are 1n2\frac{1}{n^2} for even nn. The sizes go to 00. Explain why the alternating series test doesn’t apply, and show that the series diverges.

Solution

The sizes are not decreasing: for example, b2=14b_2 = \tfrac{1}{4} but b3=13>14b_3 = \tfrac{1}{3} \gt \tfrac{1}{4}. So condition 1 fails and the test doesn’t apply.

To see that it diverges, look at the partial sums after an even number of terms:

S2k=(1+13+15+⋯+12k−1)−(122+142+⋯+1(2k)2)S_{2k} = \left(1 + \frac{1}{3} + \frac{1}{5} + \dots + \frac{1}{2k - 1}\right) - \left(\frac{1}{2^2} + \frac{1}{4^2} + \dots + \frac{1}{(2k)^2}\right)

The subtracted part is less than ∑1n2=π26\sum \frac{1}{n^2} = \frac{\pi^2}{6}, so it stays bounded. In the first part, each term 12j−1\frac{1}{2j - 1} is bigger than 12j\frac{1}{2j}, so

1+13+⋯+12k−1>12+14+⋯+12k=12(1+12+⋯+1k)1 + \frac{1}{3} + \dots + \frac{1}{2k - 1} \gt \frac{1}{2} + \frac{1}{4} + \dots + \frac{1}{2k} = \frac{1}{2}\left(1 + \frac{1}{2} + \dots + \frac{1}{k}\right)

That’s half a harmonic partial sum, which grows without bound. So S2k→∞S_{2k} \to \infty and the series diverges. The “decreasing” condition really matters.