Hi everyone! In today’s lesson we’ll learn about two of the tests for our series convergence/divergence toolbox. We’ll be adding more tools to this toolbox in the upcoming lessons.
Lesson 15: The Integral and Divergence Tests
Learning goals:
- Use the integral test to determine whether a series converges or diverges.
- Use the divergence test to determine whether a series converges or diverges.
Topic:
- Volume 2, Section 5.3 The Divergence and Integral Tests (link to textbook section)
WeBWorK:
- Series – Integral Test
- Series – Divergence Test
Motivating question
We are covering two tests for our series convergence/divergence toolbox today, so we’ll ask two motivating questions:
- What can integrals tell us about series?
- What is the “easiest” way for a series to diverge?
Determine whether the improper integral converges or diverges. If it converges, evaluate it.
\[ \int_1^\infty \frac{1}{x^2}dx\]
Since the integral is improper, we must begin by setting it up as a limit:
\[\int_1^\infty \frac{1}{x^2}dx = \lim_{b \to \infty}\int_1^b \frac{1}{x^2}dx\]
\[=\lim_{b \to \infty}\int_1^b x^{-2}dx\]
\[=\lim_{b \to \infty} \left. \frac{x^{-2+1}}{-2+1}\right|_1^b\]
\[=\lim_{b \to \infty} \left( \frac{-1}{b} – \frac{-1}{1} \right)\]
\[=1\]
Determine whether the improper integral converges or diverges. If it converges, evaluate it.
\[ \int_1^\infty \frac{1}{x}dx\]
Again, we must first set up the integral as a limit:
\[ \int_1^\infty \frac{1}{\sqrt{x}}dx = \lim_{b \to \infty}\int_1^b\frac{1}{{x}}dx\]
\[=\lim_{b \to \infty} \left. \ln(x) \right|_1^b\]
\[=\lim_{b \to \infty} (\ln(b) – \ln(1))\]
\[=\lim_{b \to \infty} \ln(b)\]
Remember that $\lim_{x \to \infty} \ln(x)$ does not exist; $\ln(x)$ keeps getting bigger as $x$ gets bigger. This means that our limit above does not exist, so our original improper integral diverges.
Helpful reminder
Recall from Lesson 10 (link here) that for functions of the form $f(x) = \frac{1}{x^p}dx$ where $p>0$,
- if $p>1$, then $\int_1^\infty \frac{1}{x^p}dx$ converges, and
- if $0 < p \leq 1$ then $\int_1^\infty \frac{1}{x^p}dx$ diverges.
In Warmup exercise 1 p = 2 and in Warmup exercise 2, p=1.
We’ll start with the integral test and see the divergence test later in the lesson
Integral test
In Lesson 10 (link here) we saw that improper integrals represent areas of unbounded regions and they either converge or diverge. In Lesson 14 (link here) we saw that series are infinite sums and they either converge or diverge. The integral test tells us exactly what these two facts have to do with each other.
Before we get to the formal statement of the integral test, here are two visuals that should help give you an intuitive understanding:
- This Desmos graph (link here) shows $\int_1^\infty \frac{1}{x^2}dx$ as the red shaded region. The series $\sum_{n=1}^\infty \frac{1}{n}$ is represented by the areas of the blue rectangles plus the area of the one green rectangle. We had to separate out the first term of the series because the green rectangle with area $\frac{1}{1^2}$ doesn’t fit inside the red region, but the blue rectangles, which represent $\sum_{n=2}^\infty \frac{1}{n}$ do. Since the red region represents an integral that converges (see Warmup exercise 1), and the blue region sits inside the red region, the blue region represents a series that also converges. So $\sum_{n=2}^\infty \frac{1}{n}$ converges and (since you can add a finite number to something that converges and get something that converges), $\frac{1}{1^2} + \sum_{n=2}^\infty \frac{1}{n} = \sum_{n=1}^\infty \frac{1}{n}$ also converges.
- This Desmos graph (link here) shows $\int_1^\infty \frac{1}{x}dx$ as the red shaded region. The series $\sum_{n=1}^\infty \frac{1}{n}$ is represented by the areas of the blue rectangles (only the first few terms of the series are shown). Clearly, the blue region is larger than the red region. So since the red region represents an integral that diverges (see Warmup exercise 2), the blue region represents a series that also diverges.
When looking at the areas of the irregular shapes versus the sums of the areas of the rectangles, think about the blobs of different sizes we used to demonstrate how the comparison theorem for improper integrals works in Lesson 10 (link here).
Theorem (Integral test): Let $\sum_{n=1}^\infty a_n$ be a series where each term $a_n$ is positive.
Let $f(x)$ be a continuous, decreasing function where $f(n) = a_n$ for all positive integers $1, 2, 3, \dots$. Then either
- $\int_1^\infty f(x) dx$ and $\sum_{n=1}^\infty a_n$ both converge, or
- $\int_1^\infty f(x) dx$ and $\sum_{n=1}^\infty a_n$ both diverge.
Remark: As stated in the theorem above, both the improper integral and series start at the value 1, but the theorem is still true if we replace that 1 with any positive integer $N$.
Video 1 below introduces you to how the integral test works through three examples.
p-series
Two examples in that video are examples of what we call “p-series.” These are series that look like $\sum_{n=1}^\infty \frac{1}{n^p}$.
The corresponding improper integrals should look familiar to you: $\int_1^\infty \frac{1}{x^p}dx$.
You know the improper integrals converge if $p > 1$ and diverge if $p \leq 1$. The same is true for p-series and you can prove this using the integral test.
Theorem: Let $\sum_{n=1}^\infty \frac{1}{n^p}$ be a p-series where $p >0$.
If $p > 1$ then the series converges.
If $p \leq 1$ then the series diverges.
Definition: The series $\sum_{n=1}^\infty \frac{1}{n}$ (that is, the p-series where p=1) is known as the harmonic series.
Videos 2, 3, and 4 below show more examples of the integral test in action.
Divergence Test
You saw the divergence test briefly in one of the videos in Lesson 14 (link here).
The divergence test is convenient when it applies. It’s always a good idea to check whether it applies to a particular series before you start trying to use another test for convergence.
Remember that when an infinite series converges, that means that a sum of infinitely many numbers is actually (in the limit) finite. The only way this can possibly happen is if the individual numbers are getting smaller and smaller and smaller. If the individual numbers (terms of the sequence) are not getting smaller, there’s no way for the series to converge.
Compare this to improper integrals of Type 1 from Lesson 10 (link here): if your function $f(x)$ does not have the $x$-axis as a horizontal asymptote as $x$ approaches $\infty$, then there’s no way that $\int_a^\infty f(x)dx$ (which calculates the area under the curve) can possibly converge.
Theorem (Divergence test): Consider the series $\sum_{n =1}^\infty a_n$.
If $\lim_{n \to \infty} a_n \neq 0$ then the series diverges.
Notice which direction the implication goes: if the individual terms of the sequence don’t approach zero, then the infinite series diverges. The test does not say that that if the individual terms do approach zero, then the infinite series converges. Compare this to the improper integral again: if $f(x)=\frac{1}{x}$ then $f(x)$ has the $x$-axis as a horizontal asymptote ($\lim_{x \to \infty} \frac{1}{x} = 0$). But having the $x$-axis as a horizontal asymptote is not enough for convergence; we know that $\int_1^\infty \frac{1}{x}dx$ diverges.
To reiterate: the divergence test cannot tell you if a series converges, but it might tell you if the series diverges.
Video 5 below show how the divergence test works in some examples where it applies.
Video 6 below shows how the divergence test works in some other examples where it applies. But note that these are examples of geometric series and we know from Lesson 14 (link here) exactly when geometric series converge or diverge. The divergence test can only confirm divergence when $|r| \geq 1$.
Back to today’s motivating questions
- What can integrals tell us about series?
- If the individual terms $a_n$ of a series $\sum_{n=1}^\infty a_n$ correspond to a function $f(x)$ satisfying the conditions of the integral test, then the convergence or divergence of the corresponding improper integral of $f(x)$ tells us whether the series $\sum_{n=1}^\infty a_n$ converges or diverges.
- What is the “easiest” way for a series to diverge?
- Some people may argue about how “easy” the divergence test is, but the point is that it can tell you if a particular series $\sum_{n=1}^\infty a_n$ doesn’t have a hope of converging: if the individual terms in an infinite sum don’t approach zero, there is no way for that infinite sum to converge. If they do approach zero, you’ll have to use another test to determine whether the series converges or diverges.
Additional Video Resources
Determine whether the series converges or diverges.
\[\sum_{n=1}^\infty \frac{9n^5}{3n^5+5}\]