The Harmonic Series and p-Series

A few series come up so often that you should know at once whether they converge. Geometric series are one family. The harmonic series and the p-series are two more.

The harmonic series

∑n=1∞1n=1+12+13+14+⋯\sum_{n=1}^{\infty} \frac{1}{n} = 1 + \frac{1}{2} + \frac{1}{3} + \frac{1}{4} + \cdots
Its terms approach 0, so the nth term test says nothing. The function f(x)=1xf(x) = \frac{1}{x} is positive, continuous and decreasing for x≥1x \ge 1, so the integral test applies.
∫1∞dxx=lim⁡b→∞ln⁡b=∞\int_{1}^{\infty} \frac{dx}{x} = \lim_{b\to\infty} \ln b = \infty
The integral diverges, so the harmonic series diverges. Its partial sums grow very slowly. The rectangles of height 1k\frac{1}{k} on [k,k+1][k, k + 1] lie above y=1xy = \frac{1}{x}, so Sn>∫1n+1dxx=ln⁡(n+1)S_n > \int_1^{n+1} \frac{dx}{x} = \ln(n + 1).
The first thirty partial sums of the harmonic series. They stay above y = ln(x + 1), which grows without bound.
The partial sum first passes 5 at n=83n = 83, and it first passes 10 at n=12,367n = 12{,}367. No finite list of partial sums can show that a series diverges, so the test is needed.

p-Series

The harmonic series is the case p=1p = 1 of a whole family. The integral test decides every member at once.
For p>0p > 0, f(x)=x−pf(x) = x^{-p} is positive, continuous and decreasing on [1,∞)[1, \infty). With p≠1p \ne 1,
∫1∞dxxp=lim⁡b→∞b1−p−11−p.\int_{1}^{\infty} \frac{dx}{x^p} = \lim_{b\to\infty} \frac{b^{1-p} - 1}{1 - p}.
When p>1p > 1, b1−p→0b^{1-p} \to 0 and the integral is 1p−1\frac{1}{p - 1}. When p<1p < 1, b1−p→∞b^{1-p} \to \infty and the integral diverges. By the integral test, the p-series converges for p>1p > 1 and diverges for 0<p<10 < p < 1. The case p=1p = 1 is the harmonic series. For p≤0p \le 0 the terms don't approach 0, so the series diverges by the nth term test.
In a p-series the variable is the base and pp is the exponent. In a geometric series such as ∑12n\sum \frac{1}{2^n} it's the other way around, and the two tests aren't interchangeable.

The alternating harmonic series

Giving the harmonic series alternating signs changes its behavior.
∑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} + \cdots
Its partial sums swing up and down, and the swings shrink.
nnSnS_nnnSnS_n
90.7456990.6982
100.64561000.6882
110.73651010.6981
They close in on ln⁡2≈0.6931\ln 2 \approx 0.6931. Unlike the harmonic series, the alternating harmonic series converges, and a test for alternating series proves it.