Integral, \(p\)-Series & Comparison Tests

For most series, you can't find the exact sum—and the AP exam won't ask you to. It just asks: does this series converge or diverge? Every test in this lesson works for series with positive terms (\(a_n > 0\)).

By the end you can

The Integral Test

If you plot the terms \(a_n = f(n)\) as width-1 rectangles on top of (or underneath) the curve \(y = f(x)\), the sum of the rectangles behaves just like the area under the curve \(\int_N^\infty f(x)\,dx\).

Integral Test

Let \(a_n = f(n)\). If \(f(x)\) is positive, continuous, and decreasing for \(x \ge N\), then

\[ \sum_{n=N}^\infty a_n \quad \text{and} \quad \int_N^\infty f(x)\,dx \]

either both converge or both diverge.

Two huge things to remember about the Integral Test
Example 1 · Classic Integral Test problem

Determine whether \(\displaystyle\sum_{n=2}^{\infty} \frac{1}{n\ln n}\) converges or diverges.

  1. Check conditions for \(f(x) = \dfrac{1}{x\ln x}\) on \([2, \infty)\):
    \(x > 0\) and \(\ln x > 0\), so \(f\) is positive and continuous; as \(x\) increases, \(x\ln x\) increases, so \(f\) is decreasing.
  2. Evaluate the improper integral using \(u = \ln x,\; du = \frac1x\,dx\): \[ \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 \]
  3. Write the conclusion: since the improper integral diverges, \(\sum_{n=2}^\infty \frac{1}{n\ln n}\) diverges by the Integral Test.
Diverges by the Integral Test.
Example 2 · When the integral converges

Determine whether \(\displaystyle\sum_{n=1}^{\infty} n e^{-n^2}\) converges or diverges.

  1. Check conditions for \(f(x) = xe^{-x^2}\) on \([1, \infty)\): clearly positive and continuous. Differentiate to verify decreasing: \(f'(x) = (1 - 2x^2)e^{-x^2} < 0\) for all \(x \ge 1\). ✓
  2. Integrate with \(u = -x^2,\; du = -2x\,dx\): \[ \lim_{b\to\infty}\int_1^b xe^{-x^2}\,dx = \lim_{b\to\infty}\Big[-\tfrac12 e^{-x^2}\Big]_1^b = \lim_{b\to\infty}\left(-\frac{1}{2e^{b^2}} + \frac{1}{2e}\right) = \frac{1}{2e} \]
  3. Since the integral converges to a finite number (\(\frac{1}{2e}\)), the series converges by the Integral Test.
Converges by the Integral Test (note: its sum is NOT \(\frac{1}{2e}\)).

\(p\)-Series (instant recognition!)

Applying the Integral Test to \(a_n = \frac{1}{n^p}\) connects straight back to the \(p\)-integral rule from Improper Integrals:

\(p\)-Series Test
\[ \sum_{n=1}^{\infty} \frac{1}{n^p} \quad \begin{cases} \textbf{converges} & \text{if } p > 1 \\ \textbf{diverges} & \text{if } p \le 1 \end{cases} \]

Direct Comparison Test (DCT)

Now that you know geometric series and \(p\)-series, you can judge ugly positive-term series by comparing them to nice ones! Suppose \(0 \le a_n \le b_n\) for all \(n \ge N\):

The useless directions!
Example 3 · Direct Comparison

Determine whether \(\displaystyle\sum_{n=1}^{\infty} \frac{1}{n^2 + 5}\) converges or diverges.

  1. Compare with \(\frac{1}{n^2}\): making the denominator bigger makes the fraction smaller: \[ 0 < \frac{1}{n^2 + 5} < \frac{1}{n^2} \qquad \text{for all } n \ge 1 \]
  2. \(\sum_{n=1}^\infty \frac{1}{n^2}\) converges because it is a \(p\)-series with \(p = 2 > 1\).
  3. Smaller than a convergent positive series ⇒ converges by Direct Comparison.
Converges by Direct Comparison with \(\sum \frac{1}{n^2}\).

For \(\displaystyle\sum_{n=3}^{\infty} \frac{1}{n^2 - 5}\), notice \(\dfrac{1}{n^2 - 5} > \dfrac{1}{n^2}\). What does Direct Comparison with \(\sum \frac{1}{n^2}\) tell you?

Being bigger than a convergent series proves nothing! That's the exact reason we love the Limit Comparison Test right below—it solves \(\sum \frac{1}{n^2-5}\) effortlessly without worrying about inequality directions.

Limit Comparison Test (LCT) — your best friend

When a positive-term series looks messy like \(\frac{1}{n^2 - 5}\) or \(\frac{3n^2 + 1}{n^4 - n + 5}\), Direct Comparison inequalities can be annoying or go the wrong way. Limit Comparison skips inequalities completely!

Limit Comparison Test

Suppose \(a_n > 0\) and \(b_n > 0\). Compute \(L = \displaystyle\lim_{n\to\infty} \frac{a_n}{b_n}\).

If \(L\) is a finite, positive number (\(0 < L < \infty\)), then \(\sum a_n\) and \(\sum b_n\) both converge or both diverge.

How to pick \(b_n\): just keep the highest-power (dominant) term on top and the highest-power term on bottom, and simplify!

Example 4 · Fixing the wrong-way inequality

Determine whether \(\displaystyle\sum_{n=3}^{\infty} \frac{1}{n^2 - 5}\) converges or diverges.

  1. Keep dominant terms: compare \(a_n = \frac{1}{n^2-5}\) with \(b_n = \frac{1}{n^2}\) (both positive for \(n \ge 3\)).
  2. Compute the limit of the ratio: \[ \lim_{n\to\infty} \frac{a_n}{b_n} = \lim_{n\to\infty} \frac{1/(n^2-5)}{1/n^2} = \lim_{n\to\infty} \frac{n^2}{n^2 - 5} = 1 \]
  3. Since \(L = 1\) is finite and positive (\(0 < 1 < \infty\)), and \(\sum \frac{1}{n^2}\) converges (\(p\)-series, \(p = 2 > 1\)), our series converges by the Limit Comparison Test.
Converges by Limit Comparison with \(\sum \frac{1}{n^2}\).
Example 5 · Rational function of \(n\)

Determine whether \(\displaystyle\sum_{n=1}^{\infty} \frac{3n^2 + 1}{n^3 - n + 5}\) converges or diverges.

  1. Keep dominant terms: \(\dfrac{3n^2}{n^3} = \dfrac{3}{n}\), so choose \(b_n = \dfrac{1}{n}\). (Both \(a_n > 0\) and \(b_n > 0\) for \(n \ge 1\).)
  2. Compute the limit: \[ \lim_{n\to\infty} \frac{(3n^2 + 1)/(n^3 - n + 5)}{1/n} = \lim_{n\to\infty} \frac{3n^3 + n}{n^3 - n + 5} = 3 \]
  3. Since \(0 < 3 < \infty\) and \(\sum \frac{1}{n}\) diverges (harmonic / \(p\)-series with \(p = 1\)), the series diverges by the Limit Comparison Test.
Diverges by Limit Comparison with \(\sum \frac{1}{n}\).
Example 6 · Comparing with a geometric series

Determine whether \(\displaystyle\sum_{n=1}^{\infty} \frac{1}{2^n - 1}\) converges or diverges.

  1. Direct comparison with \(\frac{1}{2^n}\) goes the wrong way (\(\frac{1}{2^n-1} > \frac{1}{2^n}\)). Use Limit Comparison with \(b_n = \frac{1}{2^n}\) instead!
  2. Limit: \[ \lim_{n\to\infty} \frac{1/(2^n - 1)}{1/2^n} = \lim_{n\to\infty} \frac{2^n}{2^n - 1} = \lim_{n\to\infty} \frac{1}{1 - 2^{-n}} = 1 \]
  3. Since \(0 < 1 < \infty\) and \(\sum (\frac12)^n\) converges (geometric, \(|r| = \frac12 < 1\)), our series converges by the Limit Comparison Test.
Converges by Limit Comparison with \(\sum \frac{1}{2^n}\).

To test \(\displaystyle\sum_{n=1}^{\infty} \frac{\sqrt{n} + 2}{n^2 + 3n}\) with Limit Comparison, what \(b_n\) should you pick?

Keep the dominant term on top (\(\sqrt{n} = n^{1/2}\)) and bottom (\(n^2\)): \(\frac{n^{1/2}}{n^2} = \frac{1}{n^{3/2}}\). The ratio limit is \(1\), and since \(p = \frac32 > 1\), the series converges!

Common mistakes

Watch out for these
On the AP exam

LCT is your go-to whenever you see polynomials, roots, or exponentials with extra \(+ 5\) or \(- 1\) terms. A complete LCT justification on an FRQ always has 4 ingredients: (1) state \(b_n\) and note \(a_n, b_n > 0\), (2) show \(\lim_{n\to\infty} \frac{a_n}{b_n} = L\) with \(0 < L < \infty\), (3) state why \(\sum b_n\) converges/diverges, and (4) conclude by the Limit Comparison Test.

Practice problems

Warm-up

Converge or diverge? \(\displaystyle\sum_{n=1}^{\infty} \frac{5}{n^{4/3}}\)

Hint

Pull out the \(5\)—it's a \(p\)-series.

Solution

Constant multiple of a \(p\)-series with \(p = \frac43 > 1\), so it converges.

Converges (\(p\)-series, \(p = \frac43 > 1\))
Warm-up

Converge or diverge? \(\displaystyle\sum_{n=1}^{\infty} \frac{1}{n^3 + n}\)

Hint

Direct comparison with \(\frac{1}{n^3}\) goes the right way here!

Solution

For all \(n \ge 1\), \(0 < \frac{1}{n^3 + n} < \frac{1}{n^3}\). Since \(\sum \frac{1}{n^3}\) converges (\(p = 3 > 1\)), our series converges by Direct Comparison.

Converges by Direct Comparison
Medium

Converge or diverge? \(\displaystyle\sum_{n=2}^{\infty} \frac{n + 3}{\sqrt{n^3 - 1}}\)

Hint

Dominant terms: \(\frac{n}{n^{3/2}} = \frac{1}{\sqrt{n}}\). Use Limit Comparison.

Solution

Compare with \(b_n = \frac{1}{n^{1/2}}\) (positive for \(n \ge 2\)):

\[ \lim_{n\to\infty} \frac{(n+3)/\sqrt{n^3-1}}{1/\sqrt{n}} = \lim_{n\to\infty} \frac{n^{3/2} + 3n^{1/2}}{\sqrt{n^3 - 1}} = 1 \]

Since \(0 < 1 < \infty\) and \(\sum \frac{1}{n^{1/2}}\) diverges (\(p = \frac12 \le 1\)), the series diverges by LCT.

Diverges by Limit Comparison with \(\sum \frac{1}{\sqrt{n}}\)
Medium

Converge or diverge? \(\displaystyle\sum_{n=2}^{\infty} \frac{\ln n}{n}\)

Hint

For \(n \ge 3\), \(\ln n > 1\), so Direct Comparison with \(\frac{1}{n}\) works in two lines! (Or use the Integral Test.)

Solution

For \(n \ge 3\), \(\ln n > 1\), so \(\frac{\ln n}{n} > \frac{1}{n} > 0\). Because \(\sum \frac{1}{n}\) diverges (harmonic series), \(\sum \frac{\ln n}{n}\) diverges by Direct Comparison. (Integral Test also gives \(\int_2^\infty \frac{\ln x}{x}\,dx = \lim [\frac12(\ln x)^2]_2^b = \infty\).)

Diverges (Direct Comparison with \(\sum \frac1n\), or Integral Test)
Medium

Converge or diverge? \(\displaystyle\sum_{n=2}^{\infty} \frac{1}{n(\ln n)^2}\)

Hint

Looks just like \(\int_2^\infty \frac{1}{x(\ln x)^2}\,dx\) from the Improper Integrals lesson—use the Integral Test!

Solution

\(f(x) = \frac{1}{x(\ln x)^2}\) is positive, continuous, and decreasing on \([2, \infty)\).

With \(u = \ln x\): \(\lim_{b\to\infty}\Big[-\frac{1}{\ln x}\Big]_2^b = 0 + \frac{1}{\ln 2} = \frac{1}{\ln 2}\) (finite).

Converges by the Integral Test
AP-style

Determine whether \(\displaystyle\sum_{n=1}^{\infty} \frac{2^n + 1}{3^n - 1}\) converges or diverges. Write a complete AP-style justification.

Hint

Keep the dominant terms: \(\frac{2^n}{3^n} = (\frac23)^n\). Use Limit Comparison!

Solution

Both \(a_n = \frac{2^n + 1}{3^n - 1}\) and \(b_n = \left(\frac23\right)^n\) are positive for \(n \ge 1\).

\[ \lim_{n\to\infty} \frac{(2^n + 1)/(3^n - 1)}{2^n / 3^n} = \lim_{n\to\infty} \frac{(2^n + 1)3^n}{(3^n - 1)2^n} = \lim_{n\to\infty} \frac{1 + 2^{-n}}{1 - 3^{-n}} = 1 \]

Since \(0 < 1 < \infty\) and \(\sum_{n=1}^\infty (\frac23)^n\) converges (geometric series with \(|r| = \frac23 < 1\)), \(\sum_{n=1}^\infty \frac{2^n+1}{3^n-1}\) converges by the Limit Comparison Test.

Converges by Limit Comparison with \(\sum (\frac23)^n\)