
## Section5.11Comparison of Improper Integrals

###### Motivating Questions
• What are some typical improper integrals that we can classify as convergent or divergent?

• When can the convergence behavior of one improper integral be used to determine the convergence behavior of another improper integral?

In the previous section, we learned how to compute improper integrals -- integrals involving certain functions over unbounded integrals, as well as functions that become infinite at a point within or at the endpoint of the interval of integration.

Recall the important classes of improper integrals we examined in Section5.10.

###### Convergence Behavior of Important Classes of Improper Integrals
• $\int_1^{\infty} \frac{1}{x^p} \ dx$ converges if $p>1$ and diverges if $p\leq1$

• $\int_0^{1} \frac{1}{x^p} \ dx$ converges if $p < 1$ and diverges if $p \geq 1$

• $\int_0^{\infty} \frac{1}{e^{ax}} \ dx$ converges if $a>0$ and diverges if $a\leq0$

In this section, we will learn how to use improper integrals that we know converge or diverge (such as those above) to determine the convergence of more complex integrals.

### SubsectionComparing Improper Integrals

Sometimes we may encounter an improper integral for which we cannot easily evaluate the limit of the corresponding proper integral. For instance, consider $\int_1^{\infty} \frac{1}{1+x^3} \, dx\text{.}$ While it is hard (or perhaps impossible) to find an antiderivative for $\frac{1}{1+x^3}\text{,}$ we can still determine whether or not the improper integral converges or diverges by comparison to a simpler one. Observe that for all $x \gt 0\text{,}$ $1 + x^3 \gt x^3\text{,}$ and therefore

\begin{equation*} \frac{1}{1+x^3} \lt \frac{1}{x^3}\text{.} \end{equation*}

It therefore follows that

\begin{equation*} \int_1^b \frac{1}{1+x^3} \, dx \lt \int_1^b \frac{1}{x^3} \, dx \end{equation*}

for every $b \gt 1\text{.}$ We know that $\lim_{b \to \infty} \int_{1}^{b} \frac{1}{x^{3}} \,dx =\int_{1}^{\infty}\frac{1}{x^{3}} \,dx$ converges, since it is an improper integral of the form $\int_{1}^{\infty}\frac{1}{x^{p}} \,dx$ with $p > 1 \text{.}$ By the inequality above, if $\lim_{b \to \infty} \int_{1}^{b}\frac{1}{x^{3}+1} \,dx$ exists, it must be less than or equal to $\int_{1}^{\infty} \frac{1}{x^{3}} \,dx \text{;}$ in particular, if $\lim_{b \to \infty} \int_{1}^{b}\frac{1}{x^{3}+1} \,dx$ exists, it is finite. By making some technical considerations, it can be proved that in fact $\lim_{b \to \infty} \int_{1}^{b}\frac{1}{x^{3}+1} \,dx$ must exist, and therefore $\int_{1}^{\infty} \frac{1}{x^{3}+1} \,dx$ is a convergent improper integral.

The comparison of these improper integrals can be visualized by comparing the area under each function. The area under the curve $\frac{1}{x^3}$ is shown in green, and the area under the curve $\frac{1}{x^3+1}$ is shown in blue.

In particular, $\int_1^\infty \frac{1}{1+x^3} \, dx$ must converge, even though we never explicitly evaluated the corresponding limit of proper integrals. We use this idea and similar ones in the examples that follow.

###### Example5.107
1. Explain why $x^2 + x + 1 \gt x^2$ for all $x \ge 1\text{,}$ and hence determine if $\int_1^{\infty} \frac{1}{x^2 + x + 1} \, dx$ converges or diverges by comparison to $\int_1^{\infty} \frac{1}{x^2} \, dx\text{.}$

2. Observe that for each $x \gt 1\text{,}$ $\ln(x) \lt x\text{.}$ Explain why

\begin{equation*} \int_2^b \frac{1}{x} \, dx \lt \int_2^b \frac{1}{\ln(x)} \,dx \end{equation*}

for each $b \gt 2\text{.}$ Why must it be true that $\int_2^b \frac{1}{\ln(x)} \, dx$ diverges?

3. Explain why $\sqrt{\frac{x^4+1}{x^4}} \gt 1$ for all $x \gt 1\text{.}$ Then, determine whether or not the improper integral

\begin{equation*} \int_1^{\infty} \frac{1}{x} \cdot \sqrt{\frac{x^4+1}{x^4}} \, dx \end{equation*}

converges or diverges.

1. converges

2. diverges

3. diverges

Solution
1. Since $x \ge 1\text{,}$ it follows that $x + 1 \ge 1 \gt 0\text{,}$ so adding $x^2$ to both sides of this inequality shows that

\begin{equation*} x^2 + x + 1 \gt x^2 \end{equation*}

for all $x \ge 1\text{.}$ Taking reciprocals (which reverses the inequality),

\begin{equation*} \frac{1}{x^2 + x + 1} \lt \frac{1}{x^2} \end{equation*}

and thus for any $b \gt 1\text{,}$

\begin{equation*} \int_1^b \frac{1}{x^2 + x + 1} \, dx \lt \int_1^b \frac{1}{x^2} \, dx\text{.} \end{equation*}

Taking the limit as $b \to \infty\text{,}$ it follows that

\begin{equation*} \int_1^{\infty} \frac{1}{x^2 + x + 1} \, dx \lt \int_1^{\infty} \frac{1}{x^2} \, dx\text{,} \end{equation*}

and since we know that $\int_1^{\infty} \frac{1}{x^2} \, dx$ converges, we conclude that $\int_1^{\infty} \frac{1}{x^2 + x + 1} \, dx$ also converges.

2. Since for each $x \gt 1\text{,}$ $\ln(x) \lt x\text{,}$ it also holds that $\ln(x) \lt x$ for all $x \gt 2\text{.}$ Taking reciprocals,

\begin{equation*} \frac{1}{x} \lt \frac{1}{\ln(x)} \end{equation*}

and thus

\begin{equation*} \int_2^b \frac{1}{x} \, dx \lt \int_2^b \frac{1}{\ln(x)} \,dx \end{equation*}

for each $b \gt 2\text{.}$ Taking the limit as $b \to \infty\text{,}$ we have

\begin{equation*} \int_2^{\infty} \frac{1}{x} \, dx \le \int_2^{\infty} \frac{1}{\ln(x)} \,dx \end{equation*}

and since we know that $\int_1^\infty \frac{1}{x} \, dx$ diverges, it follows that $\int_2^b \frac{1}{\ln(x)} \, dx$ also diverges.

3. Since $x^4+1 \gt x^4$ for all $x\text{,}$ it follows that

\begin{equation*} \frac{x^4+1}{x^4} \gt 1 \end{equation*}

for all $x \gt 1\text{,}$ and thus taking square roots,

\begin{equation*} \sqrt{\frac{x^4+1}{x^4}} \gt 1 \end{equation*}

for all $x \gt 1\text{.}$ Integrating from $1$ to $b$ and then letting $b \to \infty\text{,}$ we can next say that

\begin{equation*} \int_1^{\infty} \sqrt{\frac{x^4+1}{x^4}} \, dx \ge \int_1^{\infty} 1 \, dx \end{equation*}

It is obvious that $\int_1^{\infty} 1 \, dx$ diverges since the integrand does not tend to $0\text{.}$ By the last inequality above, we can conclude that

\begin{equation*} \int_1^{\infty} \frac{1}{x} \cdot \sqrt{\frac{x^4+1}{x^4}} \, dx \end{equation*}

diverges.

Part (b) demonstrates that if an improper integral can be bounded below by one that diverges, then the improper integral in question also diverges. The same logic can be used to show that if an improper integral can be bounded above by one that converges, it also converges. We formalize these principles as the Comparison Test for Improper Integrals.

###### Comparison Test for Improper Integrals

If $f(x) \ge g(x) \ge 0$ and $\int_a^{\infty} f(x) \, dx$ converges, then $\int_a^{\infty} g(x) \, dx$ converges.

If $f(x) \ge g(x) \ge 0$ and $\int_a^{\infty} g(x) \, dx$ diverges, then $\int_a^{\infty} f(x) \, dx$ diverges.

For Part (b), we claimed that $\int_2^{\infty} \frac{1}{x} \, dx$ diverges, but we've technically only discussed that $\int_1^{\infty} \frac{1}{x} \, dx$ diverges. However, since $\int_{1}^{\infty} \frac{1}{x} \, dx = \int_{2}^{\infty}\frac{1}{x} \, dx + \int_{1}^{2}\frac{1}{x}\, dx$ and $\int_1^2 \frac{1}{x} \, dx$ is finite, $\int_2^{\infty} \frac{1}{x} \, dx$ must diverge; otherwise, the right-hand side of the equation would be finite. In fact, $\int_a^{\infty} \frac{1}{x} \, dx$ diverges for any real number $a \geq 1$ for the same reason. More generally:

Suppose $f(x)$ is continuous on the interval $[a,b]$

• If $\int_a^{\infty} f(x) \, dx$ converges, then $\int_b^{\infty} f(x) \, dx$ also converges.

• If $\int_a^{\infty} f(x) \, dx$ diverges, then $\int_b^{\infty} f(x) \, dx$ also diverges.

We'll finish this section with a few guided examples of applications of the Comparison Test. A useful strategy for these types of problems goes as follows: first, make an educated guess about whether the given integral converges or diverges; then, based on this guess, bound the integrand above or below by a simpler function whose integral over the same interval converges or diverges, respectively.

###### Example5.108

Use the Comparison Test for Improper Integrals to determine whether the following improper integrals converge or diverge. Be sure to justify any inequalities used when applying the Test.

1. $\int_{1}^{\infty} \frac{\sin^{2}(x)}{x^{2}} \,dx$
2. $\int_{1}^{\infty} \frac{1}{\sqrt{x^{3}+6}} \,dx$
3. $\int_{10}^{\infty} \frac{3x}{(x+4)^{2}} \,dx$
4. $\int_{1}^{\infty} \frac{2+\cos(x)}{\sqrt{x+12}} \,dx$
Hint
1. Since $-1 \leq \sin(x) \leq 1$ for any $x \in \mathbb{R} \text{,}$ we have $0 \leq \sin^{2}(x) \leq 1$ for any $x \in \mathbb{R} \text{.}$
2. When $x$ is large, observe that $\sqrt{x^{3}+6} \approx \sqrt{x^{3}} = x^{3/2}.$
3. When $x$ is large, $\frac{3x}{(x+4)^{2}} \approx \frac{3x}{x^{2}} = \frac{3}{x}.$
4. Since $\cos(x) \geq -1$ for all $x \in \mathbb{R} \text{,}$ the numerator is at least $1 \text{.}$ For the denominator, when $x$ is large we have $\sqrt{x+12} \approx \sqrt{x}.$
1. Converges, via comparison with e.g. $\frac{1}{x^{2}} \text{.}$
2. Converges, via comparison with e.g. $\frac{1}{x^{3/2}} \text{.}$
3. Diverges, via comparison with e.g. $\frac{3}{4x} \text{.}$
4. Diverges, via comparison with e.g. $\frac{1}{2\sqrt{x}}$ on the interval $[4, \infty) \text{.}$
Solution
1. From the hint, we know $0 \leq \sin^{2}(x) \leq 1$ for any $x \in \mathbb{R} \text{.}$ Therefore, $0 \leq \frac{\sin^{2}(x)}{x^{2}} \leq \frac{1}{x^{2}}$ for any $x \in \mathbb{R} \text{.}$ (In particular, this inequality holds on the interval $[1, \infty) \text{.}$) Since $\int_{1}^{\infty}\frac{1}{x^{2}} \,dx$ converges, by the Comparison Test it follows that $\int_{1}^{\infty} \frac{\sin^{2}(x)}{x^{2}} \,dx$ converges.
2. From the hint, we should expect our improper integral to behave like $\int_{1}^{\infty} \frac{1}{x^{3/2}} \,dx \text{,}$ which converges. Indeed, we can compare our integral directly to this one.

For any $x \in \mathbb{R} \text{,}$ we have $x^{3}+6 > x^{3} \text{.}$ Therefore, $\sqrt{x^{3}+6} > \sqrt{x^{3}} = x^{3/2}$ whenever both $x^{3}+6$ and $x^{3}$ are non-negative, i.e., for all $x \geq 0 \text{.}$ This, along with the assumption that we use the positive square root, yields the inequality $\frac{1}{x^{3/2}} > \frac{1}{\sqrt{x^{3}+6}} > 0$ for all $x > 0 \text{.}$ Specifically, the inequality holds on the interval $[1, \infty) \text{.}$ Because $\int_{1}^{\infty}\frac{1}{x^{3/2}} \,dx$ converges, by the Comparison Test we conclude that $\int_{1}^{\infty} \frac{1}{\sqrt{x^{3}+6}} \,dx$ converges.

3. From the hint, we should expect our imroper integral to behave like $\int_{10}^{\infty}\frac{3}{x} \,dx \text{,}$ which diverges. However, since $(x+4)^{2} > x^{2}$ for all $x \in \mathbb{R}$ it's actually the case that $\frac{3x}{(x+4)^{2}} \lt \frac{3x}{x^{2}} = \frac{3}{x}$ for $x \in \mathbb{R} \text{.}$ So we cannot compare our function to $\frac{3}{x}$ to conclude divergence. More care is needed to find an appropriate lower bound for $\frac{3x}{(x+4)^{2}}.$

Observe that if $x \geq 4 \text{,}$ we have $2x \geq x+4 \text{.}$ (In fact, these inequalities are equivalent.) So $(2x)^{2} \geq (x+4)^{2}$ for $x \geq 4$ and thus we may write $\frac{3x}{(x+4)^{2}} \geq \frac{3x}{(2x)^{2}} = \frac{3}{4x} \geq 0\text{.}$ Now, $\int_{10}^{\infty}\frac{3}{4x} \,dx =\frac{3}{4} \int_{10}^{\infty}\frac{1}{x} \, dx$ diverges, so it follows from the Comparison Test that $\int_{10}^{\infty} \frac{3x}{(x+4)^{2}} \,dx$ diverges.

4. From the hint, for large enough $x$ the function $\frac{2+\cos(x)}{\sqrt{x+12}}$ is approximately bounded below by $\frac{1}{\sqrt{x}} \text{.}$ Since $\int_{1}^{\infty}\frac{1}{\sqrt{x}} \,dx$ diverges, we should expect our integral to diverge as well. However, a direct comparison to $\frac{1}{\sqrt{x}}$ won't show divergence, since $\frac{1}{\sqrt{x+12}} \lt \frac{1}{\sqrt{x}} \text{.}$

Note, however, that for $x \geq 4$ we have $x + 12 \leq 4x \text{.}$ (These inequalities are indeed equivalent.) So when $x \geq 4 \text{,}$ we know $\frac{2+\cos(x)}{\sqrt{x+12}} \geq \frac{1}{\sqrt{4x}} = \frac{1}{2\sqrt{x}} > 0 \text{.}$ Since $\int_{4}^{\infty}\frac{1}{2\sqrt{x}} \,dx = \frac{1}{2} \int_{4}^{\infty} \frac{1}{\sqrt{x}} \,dx$ diverges, by the Comparison Test $\int_{4}^{\infty} \frac{2+\cos(x)}{\sqrt{x+12}} \,dx$ diverges. It follows that $\int_{1}^{\infty} \frac{2+\cos(x)}{\sqrt{x+12}} \,dx$ diverges as well.

### SubsectionSummary

• There are three important classes of improper integrals discussed in this section.

• One important class of improper integrals is given by

\begin{equation*} \int_1^{\infty} \frac{1}{x^p} \, dx \end{equation*}

where $p$ is a positive real number. We can show that this improper integral converges whenever $p \gt 1$ and diverges whenever $p \le 1\text{.}$

• A related class of improper integrals is

\begin{equation*} \int_0^1 \frac{1}{x^p} \, dx, \end{equation*}

which converges for $p \lt 1$ and diverges for $p \ge 1\text{.}$

• Another class of improper integrals is

\begin{equation*} \int_0^{\infty} e^{-ax} \, dx, \end{equation*}

which converges when $a \gt 0$ and diverges when $a \leq 0 \text{.}$

• These important classes of improper integrals are used for comparisons in the Comparison Test for Improper Integrals. The Comparison Test for Improper Integrals allows us to determine if an improper integral converges or diverges without having to calculate the antiderivative. The actual test states the following:

If $f(x) \ge g(x) \ge 0$ and $\int_a^{\infty} f(x) \, dx$ converges, then $\int_a^{\infty} g(x) \, dx$ converges.

If $f(x) \ge g(x) \ge 0$ and $\int_a^{\infty} g(x) \, dx$ diverges, then $\int_a^{\infty} f(x) \, dx$ diverges.

### SubsectionExercises

Determine, with justification, whether each of the following improper integrals converges or diverges.

1. $\int_e^{\infty} \frac{\ln(x)}{x} \, dx$

2. $\int_e^{\infty} \frac{1}{x\ln(x)} \, dx$

3. $\int_e^{\infty} \frac{1}{x(\ln(x))^2} \, dx$

4. $\int_e^{\infty} \frac{1}{x(\ln(x))^p} \, dx\text{,}$ where $p$ is a positive real number

5. $\int_0^1 \frac{\ln(x)}{x} \, dx$

6. $\int_0^1 \ln(x) \, dx$