Skip to content
Family Table Math
Auto

The Integral Test

Most series don’t telescope and aren’t geometric, so you can’t find their sums. But you can often still decide whether they converge. The integral test does this by comparing a series with an improper integral. Since you already know how to evaluate improper integrals, this turns a question about infinitely many terms into a calculus problem you can solve.

Suppose an=f(n)a_n = f(n), where for x≥kx \ge k the function ff is

  • positive,
  • continuous, and
  • decreasing.

Then ∑n=k∞an\displaystyle\sum_{n=k}^{\infty} a_n and ∫k∞f(x) dx\displaystyle\int_k^{\infty} f(x)\,dx either both converge or both diverge.

The conditions only need to hold eventually, from some x=kx = k onward. A few odd terms at the start never affect convergence.

Draw boxes of width 11 whose heights are the terms. Each box has area ana_n, so the total area of the boxes is the sum of the series.

Two graphs comparing series with integrals. Left: the curve y = 1/x squared from x = 1, with boxes of width 1 whose heights are 1/4, 1/9, 1/16, and so on, each drawn to the left of x = 2, 3, 4, ...; every box lies under the curve, so the sum from n = 2 is less than the integral from 1 to infinity. Right: the curve y = 1/x, with boxes of heights 1, 1/2, 1/3, ... drawn to the right of x = 1, 2, 3, ...; every box sticks up above the curve, so the harmonic series is greater than the integral from 1 to infinity, which diverges. 1 2 3 4 5 6 0.5 1 Σ 1/n² from n = 2: boxes under y = 1/x² y = 1/x² 1/4 x 1 2 3 4 5 6 0.5 1 Σ 1/n from n = 1: boxes over y = 1/x y = 1/x 1 1/2 x
Left: the boxes for ∑n=2∞1n2\sum_{n=2}^{\infty} \frac{1}{n^2} fit under y=1x2y = \frac{1}{x^2}, so their total is finite. Right: the boxes for ∑n=1∞1n\sum_{n=1}^{\infty} \frac{1}{n} cover the area under y=1xy = \frac{1}{x}, which is infinite.
  • If the boxes fit under the curve and the area under the curve is finite, the boxes’ total is finite too, so the series converges.
  • If the boxes cover the area under the curve and that area is infinite, the series diverges.

“Decreasing” is what makes the boxes line up with the curve this neatly. That’s why it’s a hypothesis.

The test tells you only whether the series converges, not its sum. For example,

∫1∞1x2 dx=1,but∑n=1∞1n2=π26≈1.645.\int_1^{\infty} \frac{1}{x^2}\,dx = 1, \qquad\text{but}\qquad \sum_{n=1}^{\infty} \frac{1}{n^2} = \frac{\pi^2}{6} \approx 1.645 .

The boxes and the region under the curve have different areas.

Often you can see it: 1x2\dfrac{1}{x^2} clearly gets smaller as xx grows. When it isn’t obvious, show that f′(x)<0f'(x) \lt 0 for x≥kx \ge k.

On the AP exam, name the test and state the hypotheses, for example: ”f(x)=1x2f(x) = \dfrac{1}{x^2} is positive, continuous, and decreasing for x≥1x \ge 1, and ∫1∞1x2 dx\int_1^{\infty} \frac{1}{x^2}\,dx converges, so ∑1n2\sum \frac{1}{n^2} converges by the integral test.”

Use the integral test to show that ∑n=1∞1n2\displaystyle\sum_{n=1}^{\infty} \frac{1}{n^2} converges.

Solution. Let f(x)=1x2f(x) = \dfrac{1}{x^2}. For x≥1x \ge 1, ff is positive, continuous, and decreasing. Evaluate the improper integral as a limit:

∫1∞1x2 dx=lim⁡b→∞[−1x]1b=lim⁡b→∞(1−1b)=1\int_1^{\infty} \frac{1}{x^2}\,dx = \lim_{b \to \infty} \left[-\frac{1}{x}\right]_1^b = \lim_{b \to \infty} \left(1 - \frac{1}{b}\right) = 1

The integral converges, so the series converges by the integral test. (Its sum is not 11. It’s π26\frac{\pi^2}{6}.)

Does ∑n=2∞1nln⁡n\displaystyle\sum_{n=2}^{\infty} \frac{1}{n \ln n} converge or diverge?

Solution. Let f(x)=1xln⁡xf(x) = \dfrac{1}{x \ln x}. For x≥2x \ge 2, both xx and ln⁡x\ln x are positive and increasing, so their product is positive and increasing, and ff is positive, continuous, and decreasing.

Use the substitution u=ln⁡xu = \ln x, du=1x dxdu = \dfrac{1}{x}\,dx:

∫2∞1xln⁡x dx=lim⁡b→∞[ln⁡(ln⁡x)]2b=lim⁡b→∞(ln⁡(ln⁡b)−ln⁡(ln⁡2))=∞\int_2^{\infty} \frac{1}{x \ln x}\,dx = \lim_{b \to \infty} \Big[\ln(\ln x)\Big]_2^b = \lim_{b \to \infty} \big(\ln(\ln b) - \ln(\ln 2)\big) = \infty

The integral diverges, so the series diverges by the integral test. (Notice the terms do go to 00, so the nnth term test couldn’t have settled this.)

Example 3: Showing f is decreasing with a derivative

Section titled “Example 3: Showing f is decreasing with a derivative”

Does ∑n=1∞ne−n2\displaystyle\sum_{n=1}^{\infty} n e^{-n^2} converge or diverge?

Solution. Let f(x)=xe−x2f(x) = x e^{-x^2}, which is positive and continuous for x≥1x \ge 1. By the product rule,

f′(x)=e−x2+x⋅(−2xe−x2)=e−x2(1−2x2)f'(x) = e^{-x^2} + x \cdot \left(-2x e^{-x^2}\right) = e^{-x^2}\left(1 - 2x^2\right)

For x≥1x \ge 1, 1−2x2<01 - 2x^2 \lt 0, so f′(x)<0f'(x) \lt 0 and ff is decreasing. Now integrate with u=−x2u = -x^2:

∫1∞xe−x2 dx=lim⁡b→∞[−12e−x2]1b=lim⁡b→∞(12e−12e−b2)=12e\int_1^{\infty} x e^{-x^2}\,dx = \lim_{b \to \infty} \left[-\frac{1}{2}e^{-x^2}\right]_1^b = \lim_{b \to \infty} \left(\frac{1}{2e} - \frac{1}{2}e^{-b^2}\right) = \frac{1}{2e}

The integral converges, so the series converges by the integral test.

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

Solution. Let f(x)=ln⁡xxf(x) = \dfrac{\ln x}{x}. By the quotient rule,

f′(x)=x⋅1x−ln⁡xx2=1−ln⁡xx2f'(x) = \frac{x \cdot \frac{1}{x} - \ln x}{x^2} = \frac{1 - \ln x}{x^2}

This is negative when ln⁡x>1\ln x \gt 1, that is, when x>e≈2.718x \gt e \approx 2.718. So ff is positive, continuous, and decreasing for x≥3x \ge 3. That’s enough: apply the test from n=3n = 3.

With u=ln⁡xu = \ln x:

∫3∞ln⁡xx dx=lim⁡b→∞[(ln⁡x)22]3b=∞\int_3^{\infty} \frac{\ln x}{x}\,dx = \lim_{b \to \infty} \left[\frac{(\ln x)^2}{2}\right]_3^b = \infty

So ∑n=3∞ln⁡nn\sum_{n=3}^{\infty} \frac{\ln n}{n} diverges, and adding back the first two terms doesn’t change that. The series diverges.

Skipping the hypotheses. AP graders look for “positive, continuous, and decreasing.” If ff isn’t obviously decreasing, show f′(x)<0f'(x) \lt 0. If a hypothesis fails (for example, the terms aren’t all positive), you can’t use this test.

Saying the sum equals the integral. In Example 1 the integral is 11 but the sum is about 1.6451.645. The integral test answers “converge or diverge?” and nothing more.

Using it on series with negative or alternating terms. For ∑(−1)nn\sum \frac{(-1)^n}{n}, ff would have to be positive, and it isn’t. Use the alternating series test instead.

Treating the improper integral as a regular one. Write the limit: lim⁡b→∞∫kbf(x) dx\displaystyle\lim_{b \to \infty} \int_k^b f(x)\,dx. Writing "∞\infty" into an antiderivative as if it were a number loses marks and leads to errors.

Choosing the integral test when something easier works. If the series is geometric or a p-series, just say so. Save the integral test for terms you can integrate, like 1nln⁡n\frac{1}{n \ln n} or ne−n2n e^{-n^2}.

1. (Warm-up) Use the integral test to decide whether ∑n=1∞12n+3\displaystyle\sum_{n=1}^{\infty} \frac{1}{2n + 3} converges.

Solution

f(x)=12x+3f(x) = \dfrac{1}{2x + 3} is positive, continuous, and decreasing for x≥1x \ge 1.

∫1∞12x+3 dx=lim⁡b→∞[12ln⁡(2x+3)]1b=∞\int_1^{\infty} \frac{1}{2x + 3}\,dx = \lim_{b \to \infty} \left[\frac{1}{2}\ln(2x + 3)\right]_1^b = \infty

The integral diverges, so the series diverges by the integral test.

2. (Warm-up) Use the integral test to show that ∑n=1∞1n3\displaystyle\sum_{n=1}^{\infty} \frac{1}{n^3} converges.

Solution

f(x)=1x3f(x) = \dfrac{1}{x^3} is positive, continuous, and decreasing for x≥1x \ge 1.

∫1∞x−3 dx=lim⁡b→∞[−12x2]1b=lim⁡b→∞(12−12b2)=12\int_1^{\infty} x^{-3}\,dx = \lim_{b \to \infty} \left[-\frac{1}{2x^2}\right]_1^b = \lim_{b \to \infty} \left(\frac{1}{2} - \frac{1}{2b^2}\right) = \frac{1}{2}

The integral converges, so the series converges.

3. (Warm-up) A student says that, by Question 2, ∑n=1∞1n3=12\displaystyle\sum_{n=1}^{\infty} \frac{1}{n^3} = \frac{1}{2}. Explain why that can’t be right.

Solution

The integral test only tells you the series converges, not its sum. In fact the first term alone is 11, and every term is positive, so the sum is more than 11. (It’s about 1.2021.202.)

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

Solution

f(x)=1x2+1f(x) = \dfrac{1}{x^2 + 1} is positive, continuous, and decreasing for x≥1x \ge 1 (the denominator increases).

∫1∞1x2+1 dx=lim⁡b→∞[arctan⁡x]1b=π2−π4=π4\int_1^{\infty} \frac{1}{x^2 + 1}\,dx = \lim_{b \to \infty} \Big[\arctan x\Big]_1^b = \frac{\pi}{2} - \frac{\pi}{4} = \frac{\pi}{4}

The integral converges, so the series converges by the integral test.

5. (Core) Does ∑n=1∞nn2+1\displaystyle\sum_{n=1}^{\infty} \frac{n}{n^2 + 1} converge or diverge? Show that the hypotheses are met.

Solution

f(x)=xx2+1f(x) = \dfrac{x}{x^2 + 1} is positive and continuous for x≥1x \ge 1. By the quotient rule,

f′(x)=(x2+1)−x(2x)(x2+1)2=1−x2(x2+1)2f'(x) = \frac{(x^2 + 1) - x(2x)}{(x^2 + 1)^2} = \frac{1 - x^2}{(x^2 + 1)^2}

which is ≤0\le 0 for x≥1x \ge 1 (and negative for x>1x \gt 1), so ff is decreasing. With u=x2+1u = x^2 + 1:

∫1∞xx2+1 dx=lim⁡b→∞[12ln⁡(x2+1)]1b=∞\int_1^{\infty} \frac{x}{x^2 + 1}\,dx = \lim_{b \to \infty} \left[\frac{1}{2}\ln(x^2 + 1)\right]_1^b = \infty

The integral diverges, so the series diverges by the integral test.

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

Solution

f(x)=1x(ln⁡x)2f(x) = \dfrac{1}{x(\ln x)^2} is positive, continuous, and decreasing for x≥2x \ge 2 (the denominator is a product of positive increasing factors). With u=ln⁡xu = \ln x, du=1x dxdu = \dfrac{1}{x}\,dx:

∫2∞1x(ln⁡x)2 dx=lim⁡b→∞[−1ln⁡x]2b=lim⁡b→∞(1ln⁡2−1ln⁡b)=1ln⁡2\int_2^{\infty} \frac{1}{x(\ln x)^2}\,dx = \lim_{b \to \infty} \left[-\frac{1}{\ln x}\right]_2^b = \lim_{b \to \infty} \left(\frac{1}{\ln 2} - \frac{1}{\ln b}\right) = \frac{1}{\ln 2}

The integral converges, so the series converges. Compare this with Example 2: squaring the ln⁡n\ln n made the difference.

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

Solution

f(x)=xe−xf(x) = x e^{-x} is positive and continuous for x≥1x \ge 1, and

f′(x)=e−x−xe−x=(1−x)e−x<0for x>1,f'(x) = e^{-x} - x e^{-x} = (1 - x)e^{-x} \lt 0 \quad\text{for } x \gt 1,

so ff is decreasing for x≥1x \ge 1. Use integration by parts with u=xu = x, dv=e−x dxdv = e^{-x}\,dx:

∫xe−x dx=−xe−x−e−x+C\int x e^{-x}\,dx = -x e^{-x} - e^{-x} + C∫1∞xe−x dx=lim⁡b→∞[−xe−x−e−x]1b=0−(−1e−1e)=2e\int_1^{\infty} x e^{-x}\,dx = \lim_{b \to \infty} \Big[-x e^{-x} - e^{-x}\Big]_1^b = 0 - \left(-\frac{1}{e} - \frac{1}{e}\right) = \frac{2}{e}

(Here be−b→0b e^{-b} \to 0 by L’Hôpital’s rule.) The integral converges, so the series converges.

8. (Challenge) For which values of p>0p \gt 0 does ∑n=2∞1n(ln⁡n)p\displaystyle\sum_{n=2}^{\infty} \frac{1}{n(\ln n)^p} converge?

Solution

f(x)=1x(ln⁡x)pf(x) = \dfrac{1}{x(\ln x)^p} is positive, continuous, and decreasing for x≥2x \ge 2 when p>0p \gt 0. With u=ln⁡xu = \ln x, the integral becomes

∫2∞1x(ln⁡x)p dx=∫ln⁡2∞1up du\int_2^{\infty} \frac{1}{x(\ln x)^p}\,dx = \int_{\ln 2}^{\infty} \frac{1}{u^p}\,du

This converges when p>1p \gt 1 and diverges when p≤1p \le 1 (for p=1p = 1 it’s ln⁡u→∞\ln u \to \infty; for p<1p \lt 1 it’s u1−p1−p→∞\frac{u^{1-p}}{1-p} \to \infty). So the series converges exactly when p>1p \gt 1.

9. (Challenge) Use the box pictures to show that

12≤∑n=1∞1n3≤32.\frac{1}{2} \le \sum_{n=1}^{\infty} \frac{1}{n^3} \le \frac{3}{2} .
Solution

Boxes of height 1n3\frac{1}{n^3} drawn to the right of x=nx = n sit above the curve y=1x3y = \frac{1}{x^3} (as in the right-hand picture), so their total is at least the area under the curve:

∑n=1∞1n3≥∫1∞1x3 dx=12\sum_{n=1}^{\infty} \frac{1}{n^3} \ge \int_1^{\infty} \frac{1}{x^3}\,dx = \frac{1}{2}

Boxes for n≥2n \ge 2 drawn to the left of x=nx = n fit under the curve (as in the left-hand picture), so

∑n=2∞1n3≤∫1∞1x3 dx=12\sum_{n=2}^{\infty} \frac{1}{n^3} \le \int_1^{\infty} \frac{1}{x^3}\,dx = \frac{1}{2}

Adding the first term 11 gives ∑n=1∞1n3≤32\sum_{n=1}^{\infty} \frac{1}{n^3} \le \frac{3}{2}. (The actual sum is about 1.2021.202, which fits.)