Educerie

Educerie · AP · Calculus AB and BC

Unit 10 Infinite Sequences and Series · 10.4 Integral Test for Convergence

BC only. This topic is on the AP Calculus BC exam and not on AB.

Big ideas: LIM (Limits). A series of positive, shrinking terms behaves like the area under a matching curve: both are finite, or both are infinite.

The question this unit answers: When does an endless sum settle on a number, and how do we tell, and how do we use it to approximate?

Where it is examined: Section I multiple choice: choose the integral that decides a series, evaluate it, or state what it shows ("converges", "diverges", "cannot be decided"). Section II free response: apply the integral test to a series such as ∑1nln⁡n\sum \dfrac{1}{n \ln n}, with the conditions checked and a limit used for the improper integral.


AP Calculus AB and BC 10.4

Integral Test for Convergence

When does an endless sum settle on a number, and how do we tell, and how do we use it to approximate?

What you will learn

  • Understand the integral test through rectangles above and below the curve.
  • Know the three conditions and that decreasing needs a reason.
  • Understand that the integral decides convergence, not the sum.

You must be able to

  1. Check positive, continuous and decreasing for f(x).
  2. Evaluate an improper integral with a limit and conclude.
  3. Show f is decreasing with a derivative.
  4. Explain why the integral's value is not the sum.
  5. Decide when another test is easier.

1The test

Integral test. Let ff be positive, continuous and decreasing on [1,∞)[1, \infty), and let an=f(n)a_n = f(n). Then ∑n=1∞an\sum_{n=1}^{\infty} a_n and ∫1∞f(x) dx\int_1^{\infty} f(x)\,dx either both converge or both diverge.

The conditions matter, and the exam checks them.

  • Positive. f(x)>0f(x) > 0, since the rectangles must have positive area.
  • Continuous. So that the integral exists.
  • Decreasing. So that each rectangle sits on one side of the curve. In a justification, say why: show f′(x)<0f'(x) < 0.

The test still works if the conditions hold only from some point on, for example for x≥2x \ge 2. A finite number of early terms never changes whether a series converges (10.1).

2Why it works: Figure 1

Figure 1 shows the two ways the rectangles sit.

Two panels. On the left the curve y equals 1 over x squared from 1 to 5 with four rectangles under it, one on each unit interval, each as tall as the curve at its right end. On the right the curve y equals 1 over x from 1 to 5 with four rectangles above it, each as tall as the curve at its left end (a) Under the curve: converges 1 2 3 4 5 0.5 1 0 y x Two panels. On the left the curve y equals 1 over x squared from 1 to 5 with four rectangles under it, one on each unit interval, each as tall as the curve at its right end. On the right the curve y equals 1 over x from 1 to 5 with four rectangles above it, each as tall as the curve at its left end (b) Above the curve: diverges 1 2 3 4 5 0.5 1 0 y x
Figure 1 · Rectangles under the curve y = 1 ÷ x squared (left) and above the curve y = 1 ÷ x (right)

In panel (a), f(x)=1x2f(x) = \dfrac{1}{x^2} and the rectangles stand on [n−1,n][n-1, n] with height f(n)f(n). Because ff is decreasing, each rectangle fits under the curve. For n=2,3,4,5n = 2, 3, 4, 5 the rectangle areas add to 14+19+116+125≈0.464\tfrac14 + \tfrac19 + \tfrac1{16} + \tfrac1{25} \approx 0.464, which is below the area under the curve from 1 to 5, 1−15=0.81 - \tfrac15 = 0.8. Taking the whole range, ∑n=2∞1n2≤∫1∞dxx2=1\sum_{n=2}^{\infty} \tfrac{1}{n^2} \le \int_1^{\infty} \tfrac{dx}{x^2} = 1, so the sum is bounded and the series converges.

In panel (b), f(x)=1xf(x) = \dfrac1x and the rectangles stand on [n,n+1][n, n+1] with height f(n)f(n). Each rectangle now reaches above the curve. For n=1,2,3,4n = 1, 2, 3, 4 they add to 1+12+13+14≈2.0831 + \tfrac12 + \tfrac13 + \tfrac14 \approx 2.083, above the area under the curve from 1 to 5, ln⁡5≈1.609\ln 5 \approx 1.609. Over the whole range ∑1n≥∫1∞dxx\sum \tfrac1n \ge \int_1^{\infty} \tfrac{dx}{x}, and that integral is infinite, so the series diverges.

The same idea gives a quick way to remember the pattern for powers. The series ∑1np\sum \dfrac{1}{n^p} behaves like ∫1∞x−p dx\int_1^{\infty} x^{-p}\,dx, which is finite exactly when p>1p > 1. That is the pp-series rule of 10.5, and the integral test is where it comes from.

3A worked example that converges

Example: ∑n=1∞1n2+1\displaystyle \sum_{n=1}^{\infty} \frac{1}{n^2+1}.

Let f(x)=1x2+1f(x) = \dfrac{1}{x^2+1}. It is positive and continuous. Also f′(x)=−2x(x2+1)2<0f'(x) = \dfrac{-2x}{(x^2+1)^2} < 0 for x≥1x \ge 1, so ff is decreasing. The conditions hold. Now

∫1∞dxx2+1=lim⁡b→∞[arctan⁡x]1b=π2−π4=π4. \int_1^{\infty} \frac{dx}{x^2+1} = \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. Notice that π4≈0.785\tfrac{\pi}{4} \approx 0.785 is not the sum. The sum is about 1.077, which you could not read off the integral.

4A worked example that diverges

Example: ∑n=2∞1nln⁡n\displaystyle \sum_{n=2}^{\infty} \frac{1}{n \ln n}.

Let f(x)=1xln⁡xf(x) = \dfrac{1}{x \ln x} on [2,∞)[2, \infty). It is positive and continuous, and decreasing because both xx and ln⁡x\ln x increase, so their product increases and the reciprocal falls. The substitution u=ln⁡xu = \ln x gives

∫2∞dxxln⁡x=lim⁡b→∞[ln⁡(ln⁡x)]2b=∞. \int_2^{\infty} \frac{dx}{x \ln x} = \lim_{b\to\infty} \Big[\ln(\ln x)\Big]_2^{b} = \infty.

The integral diverges, so the series diverges. The terms are very small and the divergence is very slow, but it is there.

5A worked example with a hidden decrease

Example: ∑n=1∞n e−n2\displaystyle \sum_{n=1}^{\infty} n\,e^{-n^2}.

Let f(x)=x e−x2f(x) = x\,e^{-x^2}. Then f′(x)=(1−2x2) e−x2f'(x) = (1 - 2x^2)\,e^{-x^2}, which is negative when x≥1x \ge 1 because 1−2x2<01 - 2x^2 < 0. So ff is positive, continuous and decreasing on [1,∞)[1, \infty). The substitution u=−x2u = -x^2 gives

∫1∞x e−x2 dx=lim⁡b→∞[−12e−x2]1b=12e. \int_1^{\infty} x\,e^{-x^2}\,dx = \lim_{b\to\infty} \left[-\tfrac12 e^{-x^2}\right]_1^{b} = \tfrac{1}{2e}.

The integral is finite, so the series converges. The sum is about 0.405, while the integral is 12e≈0.184\tfrac{1}{2e} \approx 0.184: they are different numbers.

The point of this example: the function xe−x2x e^{-x^2} rises on [0,12][0, \tfrac{1}{\sqrt2}] before it falls. The conditions only need to hold from x=1x = 1 on, which is where the series starts.

6When the conditions fail

If ff is not positive, not continuous, or not decreasing, the test does not apply and you cannot use it.

  • Alternating series such as ∑(−1)nn\sum \dfrac{(-1)^n}{n} have terms of both signs. Use the alternating series test (10.7).
  • ∑cos⁡nn2\sum \dfrac{\cos n}{n^2} is not positive. Compare absolute values (10.9).
  • Factorials are not given by a nice continuous function you can integrate. Use the ratio test (10.8).
  • Terms that grow, like ∑n2\sum n^2, are not decreasing, and in any case the nnth term test (10.3) settles them at once.

An integral that is hard to evaluate is also a sign to try another test. The comparison test (10.6) often does the job with much less algebra.

7What the integral does and does not give

The test says the series and the integral share a fate. It does not say they share a value.

  • Converges: the sum is a finite number, but it is not ∫1∞f(x) dx\int_1^{\infty} f(x)\,dx. For ∑1n2\sum \tfrac{1}{n^2} the integral is 1 and the sum is π26≈1.645\tfrac{\pi^2}{6} \approx 1.645.
  • Diverges: the sum does not exist, and neither does the integral.

A good answer states the conclusion about the series and says nothing about its value.

Practice questions

30 questions on this note, from easy to hard. Each one you get right lights a star of this topic's constellation.