8.4: Convergence Tests  Comparison Test
 Page ID
 13637
\( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\( \newcommand{\vecd}[1]{\overset{\!\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)
We have seen that the integral test allows us to determine the convergence or divergence of a series by comparing it to a related improper integral. In this section, we show how to use comparison tests to determine the convergence or divergence of a series by comparing it to a series whose convergence or divergence is known. Typically these tests are used to determine convergence of series that are similar to geometric series or pseries.
Comparison Test
In the preceding two sections, we discussed two large classes of series: geometric series and pseries. We know exactly when these series converge and when they diverge. Here we show how to use the convergence or divergence of these series to prove convergence or divergence for other series, using a method called the comparison test.
For example, consider the series
\[\sum_{n=1}^∞\dfrac{1}{n^2+1}.\]
This series looks similar to the convergent series
\[\sum_{n=1}^∞\dfrac{1}{n^2}\]
Since the terms in each of the series are positive, the sequence of partial sums for each series is monotone increasing. Furthermore, since
\[0<\dfrac{1}{n^2+1}<\dfrac{1}{n^2}\]
for all positive integers \(n\), the \(kth\) partial sum \(S_k\) of \(\sum^∞_{n=1}\dfrac{1}{n^2+1}\) satisfies
\[S_k=\sum_{n=1}^k\dfrac{1}{n^2+1}<\sum_{n=1}^k\dfrac{1}{n^2}<\sum_{n=1}^∞\dfrac{1}{n^2}.\]
(See Figure(a) and Table.) Since the series on the right converges, the sequence \({S_k}\) is bounded above. We conclude that \({S_k}\) is a monotone increasing sequence that is bounded above. Therefore, by the Monotone Convergence Theorem, \({S_k}\) converges, and thus
\[\sum_{n=1}^∞\dfrac{1}{n^2+1}\]
converges.
Similarly, consider the series
\[\sum_{n=1}^∞\dfrac{1}{n−1/2}.\]
This series looks similar to the divergent series
\[\sum_{n=1}^∞\dfrac{1}{n}.\]
The sequence of partial sums for each series is monotone increasing and
\[\dfrac{1}{n−1/2}>\dfrac{1}{n}>0\]
for every positive integer \(n\). Therefore, the \(kth\) partial sum \(S_k\) of
\[ \sum^∞_{n=1}\dfrac{1}{n−1/2}\]
satisfies
\[S_k=\sum_{n=1}^k\dfrac{1}{n−1/2}>\sum_{n=1}^k\dfrac{1}{n}.\]
(See Figure \(\PageIndex{1n}\) and Table \(\PageIndex{1}\)). Since the series \(\sum^∞_{n=1}1/n\) diverges to infinity, the sequence of partial sums \(\sum^k_{n=1}1/n\) is unbounded. Consequently, \({S_k}\) is an unbounded sequence, and therefore diverges. We conclude that
\[\sum_{n=1}^∞\dfrac{1}{n−1/2}\]
diverges.
Figure \(\PageIndex{1}\): (a) Each of the partial sums for the given series is less than the corresponding partial sum for the converging \(p−series\). (b) Each of the partial sums for the given series is greater than the corresponding partial sum for the diverging harmonic series.
\(k\)  1  2  3  4  5  6  7  8 

\(\sum_{n=1}^k\dfrac{1}{n^2+1}\)  0.5  0.7  0.8  0.8588  0.8973  0.9243  0.9443  0.9597 
\(\sum_{n=1}^k\dfrac{1}{n^2}\)  1  1.25  1.3611  1.4236  1.4636  1.4914  1.5118  1.5274 
\(k\)  1  2  3  4  5  6  7  8 

\(\sum_{n=1}^k\dfrac{1}{n−1/2}\) 
2  2.6667  3.0667  3.3524  3.5746  3.7564  3.9103  4.0436 
\(\sum_{n=1}^k\dfrac{1}{n}\)  1  1.5  1.8333  2.0933  2.2833  2.45  2.5929  2.7179 
 Suppose there exists an integer \(N\) such that \(0≤a_n≤b_n\) for all \(n≥N\). If \(\sum^∞_{n=1}b_n\) converges, then \(\sum^∞_{n=1}a_n\) converges.
 Suppose there exists an integer \(N\) such that \(a_n≥b_n≥0\) for all \(n≥N.\) If \(\sum^∞_{n=1}b_n\) diverges, then \(\sum^∞_{n=1}a_n\) diverges.
Proof
We prove part i. The proof of part ii. is the contrapositive of part i. Let \({S_k}\) be the sequence of partial sums associated with \(\sum^∞_{n=1}a_n\), and let \(L=\sum^∞_{n=1}b_n\). Since the terms \(a_n≥0,\)
\[S_k=a_1+a_2+⋯+a_k≤a_1+a_2+⋯+a_k+a_{k+1}=S_{k+1}. \nonumber\]
Therefore, the sequence of partial sums is increasing. Further, since \(a_n≤b_n\) for all \(n≥N\), then
\[\sum_{n=N}^ka_n≤\sum_{n=N}^kb_n≤\sum_{n=1}^∞b_n=L. \nonumber\]
Therefore, for all \(k≥1\),
\[S_k=(a_1+a_2+⋯+a_{N−1})+\sum_{n=N}^ka_n≤(a_1+a_2+⋯+a_{N−1})+L. \nonumber\]
Since \(a_1+a_2+⋯+a_{N−1}\) is a finite number, we conclude that the sequence \({S_k}\) is bounded above. Therefore, \({S_k}\) is an increasing sequence that is bounded above. By the Monotone Convergence Theorem, we conclude that \({S_k}\) converges, and therefore the series \(\sum_{n=1}^∞a_n\) converges.
□
To use the comparison test to determine the convergence or divergence of a series \(\sum_{n=1}^∞a_n\), it is necessary to find a suitable series with which to compare it. Since we know the convergence properties of geometric series and pseries, these series are often used. If there exists an integer \(N\) such that for all \(n≥N\), each term an is less than each corresponding term of a known convergent series, then \(\sum_{n=1}^∞a_n\) converges. Similarly, if there exists an integer \(N\) such that for all \(n≥N\), each term an is greater than each corresponding term of a known divergent series, then \(\sum_{n=1}^∞a_n\) diverges.
Example \(\PageIndex{1}\): Using the Comparison Test
For each of the following series, use the comparison test to determine whether the series converges or diverges.
 \(\displaystyle \sum_{n=1}^∞=\dfrac{1}{n^3+3n+1}\)
 (\displaystyle \sum_{n=1}^∞=\dfrac{1}{2^n+1}\)
 (\displaystyle \sum_{n=2}^∞=\dfrac{1}{\ln \,n }\)
Solution
a. Compare to \(\sum_{n=1}^∞\dfrac{1}{n^3}\). Since \(\sum_{n=1}^∞\dfrac{1}{n^3}\) is a pseries with \(p=3\), it converges. Further,
\[\dfrac{1}{n^3+3n+1}<\dfrac{1}{n^3} \nonumber\]
for every positive integer \(n\). Therefore, we can conclude that \(\sum^∞_{n=1}\dfrac{1}{n^3+3n+1}\) converges.
b. Compare to \(\sum^∞_{n=1}(\dfrac{1}{2})^n\). Since \(\sum_{n=1}^∞(\dfrac{1}{2})^n\) is a geometric series with \(r=1/2\) and \(1/2<1\), it converges. Also,
\[\dfrac{1}{2^n+1}<\dfrac{1}{2^n} \nonumber\]
for every positive integer \(n\). Therefore, we see that \(\sum^∞_{n=1}\dfrac{1}{2^n+1}\) converges.
c. Compare to \(\sum^∞_{n=2}\dfrac{1}{n}\). Since
\[\dfrac{1}{ln\,n }>\dfrac{1}{n} \nonumber\]
for every integer \(n≥2\) and \(\sum^∞_{n=2}1/n\) diverges, we have that \(\sum^∞_{n=2}\dfrac{1}{\ln \, n}\) diverges.
Exercise \(\PageIndex{1}\)
Use the comparison test to determine if the series \(\sum^∞_{n=1}\dfrac{n}{n^3+n+1}\) converges or diverges.
 Hint

Find a value \(p\) such that \(\dfrac{n}{n^3+n+1}≤\dfrac{1}{n^p}\).
 Answer

The series converges.
Limit Comparison Test
The comparison test works nicely if we can find a comparable series satisfying the hypothesis of the test. However, sometimes finding an appropriate series can be difficult. Consider the series
\[\sum_{n=2}^∞\dfrac{1}{n^2−1}.\]
It is natural to compare this series with the convergent series
\[\sum_{n=2}^∞\dfrac{1}{n^2}.\]
However, this series does not satisfy the hypothesis necessary to use the comparison test because
\[\dfrac{1}{n^2−1}>\dfrac{1}{n^2}\]
for all integers \(n≥2\). Although we could look for a different series with which to compare \(\sum^∞_{n=2}1/(n^2−1),\) instead we show how we can use the limit comparison test to compare
\[\sum_{n=2}^∞\dfrac{1}{n^2−1}\]
and
\[\sum_{n=2}^∞\dfrac{1}{n^2}.\]
Let us examine the idea behind the limit comparison test. Consider two series \(\sum^∞_{n=1}a_n\) and \(\sum^∞_{n=1}b_n\). with positive terms \(a_n\) and \(b_n\) and evaluate
\[\lim_{n→∞}\dfrac{a_n}{b_n}.\]
If
\[\lim_{n→∞}\dfrac{a_n}{b_n}=L≠0,\]
then, for \(n\) sufficiently large, \(a_n≈Lb_n\). Therefore, either both series converge or both series diverge. For the series \(\sum^∞_{n=2}1/(n^2−1)\) and \(\sum^∞_{n=2}1/n^2\), we see that
\[\lim_{n→∞}\dfrac{1/(n^2−1)}{1/n^2}=\lim_{n→∞}\dfrac{n^2}{n^2−1}=1.\]
Since \(\sum^∞_{n=2}1/n^2\) converges, we conclude that
\[\sum_{n=2}^∞\dfrac{1}{n^2−1}\]
converges.
The limit comparison test can be used in two other cases. Suppose
\[\lim_{n→∞}\dfrac{a_n}{b_n}=0.\]
In this case, \({a_n/b_n}\) is a bounded sequence. As a result, there exists a constant \(M\) such that \(a_n≤Mb_n\). Therefore, if \(\sum^∞_{n=1}b_n\) converges, then \(\sum^∞_{n=1}a_n\) converges. On the other hand, suppose
\[\lim_{n→∞}\dfrac{a_n}{b_n}=∞.\]
In this case, \({a_n/b_n}\) is an unbounded sequence. Therefore, for every constant \(M\) there exists an integer \(N\) such that \(a_n≥Mb_n\) for all \(n≥N.\) Therefore, if \(\sum^∞_{n=1}b_n\) diverges, then \(\sum^∞_{n=1}a_n\) diverges as well.
Limit Comparison Test
Let \(a_n,b_n≥0\) for all \(n≥1.\)
 If \(\lim_{n→∞}a_n/b_n=L≠0,\) then \(\sum^∞_{n=1}a_n\) and \(\sum^∞_{n=1}b_n\) both converge or both diverge.
 If \(\lim_{n→∞}a_n/b_n=0\) and \(\sum^∞_{n=1}b_n\) converges, then \(\sum^∞_{n=1}a_n\) converges.
 If \(\lim_{n→∞}a_n/b_n=∞\) and \(\sum^∞_{n=1}b_n\) diverges, then \(\sum^∞_{n=1}a_n\) diverges.
Note that if \(a_n/b_n→0\) and \(\sum^∞_{n=1}b_n\) diverges, the limit comparison test gives no information. Similarly, if \(a_n/b_n→∞\) and \(\sum^∞_{n=1}b_n\) converges, the test also provides no information. For example, consider the two series \(\sum_{n=1}^∞1/\sqrt{n}\) and \(\sum_{n=1}^∞1/n^2\). These series are both pseries with \(p=1/2\) and \(p=2\), respectively. Since \(p=1/2>1,\) the series \(\sum_{n=1}^∞1/\sqrt{n}\) diverges. On the other hand, since \(p=2<1\), the series \(\sum_{n=1}^∞1/n^2\) converges. However, suppose we attempted to apply the limit comparison test, using the convergent p−series \(\sum_{n=1}^∞1/n^3\) as our comparison series. First, we see that
\[\dfrac{1/\sqrt{n}}{1/n^3}=\dfrac{n^3}{\sqrt{n}}=n^{5/2}→∞ as n→∞.\]
Similarly, we see that
\[\dfrac{1/n^2}{1/n^3}=n→∞ as n→∞.\]
Therefore, if \(a_n/b_n→∞\) when \(\sum_{n=1}^∞b_n\) converges, we do not gain any information on the convergence or divergence of \(\sum_{n=1}^∞a_n\).
Example \(\PageIndex{2}\): Using the Limit Comparison Test
For each of the following series, use the limit comparison test to determine whether the series converges or diverges. If the test does not apply, say so.
 \(displaystyle \sum^∞_{n=1}\dfrac{1}{\sqrt{n}+1}\)
 \(displaystyle \sum^∞_{n=1}\dfrac{2^n+1}{3^n}\)
 \(displaystyle \sum^∞_{n=1}\dfrac{ln(n)}{n^2}\)
Solution
a. Compare this series to \(\sum^∞_{n=1}\dfrac{1}{\sqrt{n}}\). Calculate
\(\lim_{n→∞}\dfrac{1/(\sqrt{n}+1)}{1/\sqrt{n}}=\lim_{n→∞}\dfrac{\sqrt{n}}{\sqrt{n}+1}=\lim_{n→∞}\dfrac{1/\sqrt{n}}{1+1/\sqrt{n}}=1.\)
By the limit comparison test, since \(\sum^∞_{n=1}\dfrac{1}{\sqrt{n}}\) diverges, then \(\sum^∞_{n=1}\dfrac{1}{\sqrt{n}+1}\0 diverges.
b. Compare this series to \(\sum^∞_{n=1}(\dfrac{2}{3})^n\). We see that
\(\lim_{n→∞}\dfrac{(2^n+1)/3^n}{2^n/3^n}=\lim_{n→∞}\dfrac{2^n+1}{3^n}⋅\dfrac{3^n}{2^n}=\lim_{n→∞}\dfrac{2^n+1}{2^n}=\lim_{n→∞}[1+(\dfrac{1}{2})^n]=1.\)
Therefore,
\(\lim_{n→∞}\dfrac{(2^n+1)/3^n}{2^n/3^n}=1.\)
Since \(\sum^∞_{n=1}(\dfrac{2}{3})^n\) converges, we conclude that \(\sum^∞_{n=1}\dfrac{2^n+1}{3^n}\) converges.
c. Since \(lnn<n,\) compare with \(\sum^∞_{n=1}\dfrac{1}{n}\). We see that
\(\lim_{n→∞}\dfrac{lnn/n^2}{1/n}=\lim_{n→∞}\dfrac{lnn}{n^2}⋅\dfrac{n}{1}=\lim_{n→∞}\dfrac{lnn}{n}.\)
In order to evaluate \(\lim_{n→∞}lnn/n\), evaluate the limit as \(x→∞\) of the realvalued function \(ln(x)/x\). These two limits are equal, and making this change allows us to use L’Hôpital’s rule. We obtain
\(\lim_{x→∞}\dfrac{lnx}{x}=\lim_{x→∞}\dfrac{1}{x}=0.\)
Therefore, \(\lim_{n→∞}lnn/n=0\), and, consequently,
\(\lim_{n→∞}\dfrac{lnn/n^2}{1/n}=0.\)
Since the limit is \(0\) but \(\sum^∞_{n=1}\dfrac{1}{n}\) diverges, the limit comparison test does not provide any information.
Compare with \(\sum^∞_{n=1}\dfrac{1}{n^2}\) instead. In this case,
\(\lim_{n→∞}\dfrac{lnn/n^2}{1/n^2}=\lim_{n→∞}\dfrac{lnn}{n^2}⋅\dfrac{n^2}{1}=\lim_{n→∞}lnn=∞.\)
Since the limit is \(∞\) but \(\sum^∞_{n=1}\dfrac{1}{n^2}\) converges, the test still does not provide any information.
So now we try a series between the two we already tried. Choosing the series \(\sum^∞_{n=1}\dfrac{1}{n^{3/2}}\), we see that
\(\lim_{n→∞}\dfrac{lnn/n^2}{1/n^{3/2}}=\lim_{n→∞}\dfrac{lnn}{n^2}⋅\dfrac{n^{3/2}}{1}=\lim_{n→∞}\dfrac{lnn}{\sqrt{n}}\).
As above, in order to evaluate \(\lim_{n→∞}lnn/\sqrt{n}\), evaluate the limit as \(x→∞\) of the realvalued function \(lnx/\sqrt{x}\). Using L’Hôpital’s rule,
\(\lim_{x→∞}\dfrac{lnx}{\sqrt{x}}=\lim_{x→∞}\dfrac{2\sqrt{x}}{x}=\lim_{x→∞}\dfrac{2}{\sqrt{x}}=0\).
Since the limit is \(0\) and \(\sum^∞_{n=1}\dfrac{1}{n^{3/2}}\) converges, we can conclude that \(\sum^∞_{n=1}\dfrac{lnn}{n^2}\) converges.
Exercise \(\PageIndex{2}\)
Use the limit comparison test to determine whether the series \(\sum^∞_{n=1}\dfrac{5^n}{3^n+2}\) converges or diverges.
 Hint

Compare with a geometric series.
 Answer

The series diverges.
Key Concepts
 The comparison tests are used to determine convergence or divergence of series with positive terms.
 When using the comparison tests, a series \(\sum^∞_{n=1}a_n\) is often compared to a geometric or pseries.
Glossary
 comparison test
 if \(0≤a_n≤b_n\) for all \(n≥N\) and \(\sum^∞_{n=1}b_n\) converges, then \(\sum^∞_{n=1}a_n\) converges; if \(a_n≥b_n≥0\) for all \(n≥N\) and \(\sum^∞_{n=1}b_n\) diverges, then \(\sum^∞_{n=1}a_n\) diverges
 limit comparison test
 suppose \(a_n,b_n≥0\) for all \(n≥1\). If \(\lim_{n→∞}a_n/b_n→L≠0\), then \(\sum^∞_{n=1}a_n\) and \(\sum^∞_{n=1}b_n\) both converge or both diverge; if \(\lim_{n→∞}a_n/b_n→0\) and \(\sum^∞_{n=1}b_n\) converges, then \(\sum^∞_{n=1}a_n\) converges. If \(\lim_{n→∞}a_n/b_n→∞\), and \(\sum^∞_{n=1}b_n\) diverges, then \(\sum^∞_{n=1}a_n\) diverges
Contributors
Gilbert Strang (MIT) and Edwin “Jed” Herman (Harvey Mudd) with many contributing authors. This content by OpenStax is licensed with a CCBYSANC 4.0 license. Download for free at http://cnx.org.