# Calculus/Improper Integrals

 ← Indefinite integral Calculus Integration techniques/Infinite Sums → Improper Integrals

The definition of a definite integral:

$\int_a^b f(x)dx$

requires the interval [a,b] be finite. The Fundamental Theorem of Calculus requires that f be continuous on [a,b]. In this section, you will be studying a method of evaluating integrals that fail these requirements—either because their limits of integration are infinite, or because a finite number of discontinuities exist on the interval [a,b]. Integrals that fail either of these requirements are improper integrals. (If you are not familiar with L'Hôpital's rule, it is a good idea to review it before reading this section.)

## Improper Integrals with Infinite Limits of IntegrationEdit

Consider the integral

\begin{align}\int\limits_1^\infty \frac{dx}{x^2}\end{align}

Assigning a finite upper bound $b$ in place of infinity gives

\begin{align}\lim_{b\to\infty}\int\limits_1^b \frac{dx}{x^2}=\lim_{b\to\infty}\left(\frac{1}{1}-\frac{1}{b}\right)=\lim_{b\to\infty}\left(1-\frac{1}{b}\right)=1\end{align}

This improper integral can be interpreted as the area of the unbounded region between $f(x)=\frac{1}{x^2}$ , $y=0$ (the $x$-axis), and $x=1$ .

### DefinitionEdit

1. Suppose $\int\limits_a^b f(x)dx$ exists for all $b\ge a$ . Then we define

$\int\limits_a^\infty f(x)dx=\lim_{b\to\infty}\int\limits_a^b f(x)dx,$ as long as this limit exists and is finite.

If it does exist we say the integral is convergent and otherwise we say it is divergent.

2. Similarly if $\int\limits_a^b f(x)dx$ exists for all $a\le b$ we define

$\int\limits_{-\infty}^b f(x)dx=\lim_{a\to-\infty}\int\limits_a^b f(x)dx.$

3. Finally suppose $c$ is a fixed real number and that $\int\limits_{-\infty}^c f(x)dx$ and $\int\limits_c^\infty f(x)dx$ are both convergent. Then we define

$\int\limits_{-\infty}^\infty f(x)dx=\int\limits_{-\infty}^c f(x)dx+\int\limits_c^\infty f(x)dx.$
Example: Convergent Improper Integral

We claim that

$\int\limits_0^\infty e^{-x}dx=1$

To do this we calculate

 $\int\limits_0^{\infty} e^{-x}dx$ $=\lim_{b\to\infty}\int\limits_0^b e^{-x}dx$ $=\lim_{b\to\infty}(-e^{-x})\Bigr|_0^b$ $=\lim_{b\to\infty}\left(-e^{-b}+1 \right)$ $=1$
Example: Divergent Improper Integral

We claim that the integral

$\int\limits_1^\infty \frac{dx}{x}$ diverges.

This follows as

 $\int\limits_1^\infty \frac{dx}{x}$ $=\lim_{b\to\infty}\int\limits_1^b \frac{dx}{x}$ $=\lim_{b\to\infty}\ln(x)\Bigr|_1^b$ $=\lim_{b\to\infty}\left(\ln(b)-0\right)$ $=\infty$

Therefore

$\int\limits_1^\infty \frac{dx}{x}$ diverges.
 Example: Improper Integral Find $\int\limits_0^\infty x^2e^{-x}dx.$ To calculate the integral use integration by parts twice to get \begin{align} \int\limits_0^b x^2e^{-x}dx &= (-x^2e^{-x})\Bigr|_0^b+2\int\limits_0^b xe^{-x}dx\\ &=-b^2 e^{-b}+2\left((-x e^{-x})\Bigr|_0^b+\int\limits_0^b e^{-x}dx\right)\\ &=-b^2 e^{-b}+2\left(-be^{-b}-(e^{-x})\Bigr|_0^b\right)\\ &=-b^2 e^{-b}+2(-be^{-b}-e^{-b}+1).\\ \end{align} Now $\lim_{b\to\infty}e^{-b}=0$ and because exponentials overpower polynomials, we see that $\lim_{b\to\infty}b^2e^{-b}=0$ and $\lim_{b\to\infty}be^{-b}=0$ as well. Hence, $\int\limits_0^\infty x^2e^{-x}dx=\lim_{b\to\infty}\int\limits_0^b x^2e^{-x}dx=0+2(0-0+1)=2.$
Example: Powers

Show $\int\limits_1^\infty \frac{dx}{x^p}=\begin{cases} \frac{1}{p-1}, & \mbox{if }p>1 \\ \mbox{diverges}, & \mbox{if }p\le1 \end{cases}$}}

If $p\ne 1$ then

 $\int\limits_1^\infty \frac{dx}{x^p}$ $=\lim_{b\to\infty}\int\limits_1^b x^{-p}dx$ $=\lim_{b\to\infty}\left(\frac{x^{-p+1}}{-p+1}\right)\Bigg|_1^b$ $=-\frac{1}{1-p}\lim_{b\to\infty}\left(b^{-p+1}-1\right)$ $=\begin{cases}\frac{1}{p-1}, & \mbox{if }p>1 \\ \mbox{diverges}, & \mbox{if }p<1.\end{cases}$

Notice that we had to assume that $p\ne 1$ to avoid dividing by zero. However the $p=1$ case was done in a previous example.

## Improper Integrals with a Finite Number DiscontinuitiesEdit

First we give a definition for the integral of functions which have a discontinuity at one point.

### Definition of improper integrals with a single discontinuityEdit

If f is continuous on the interval [a,b) and is discontinuous at b, we define

$\int\limits_a^b f(x)dx=\lim_{c\to b^-}\int\limits_a^c f(x)dx.$

If the limit in question exists we say the integral converges and otherwise we say it diverges.

Similarly if f is continuous on the interval (a,b] and is discontinuous at a, we define

$\int\limits_a^b f(x)dx=\lim_{c\to a^+}\int\limits_c^b f(x)dx.$

Finally suppose f has an discontinuity at a point c in (a,b) and is continuous at all other points in [a,b]. If $\int\limits_a^c f(x)dx$ and $\int\limits_c^b f(x)dx$ converge we define

$\int\limits_a^b f(x)dx$=$\int\limits_a^c f(x)dx+\int\limits_c^b f(x)dx$
Example 1

Show $\int\limits_0^1 \frac{dx}{x^p}=\begin{cases} \frac{1}{1-p}, & \mbox{if }p<1 \\ \mbox{diverges}, & \mbox{if }p\ge1 \end{cases}$

If $p\ne 1$ then

 $\int\limits_0^1 \frac{dx}{x^p}$ $=\lim_{a\to 0^+}\int\limits_a^1 x^{-p}dx$ $=\lim_{a\to 0^+}\left(\frac{x^{-p+1}}{-p+1}\right)\Bigg|_a^1$ $=-\frac{1}{1-p}\lim_{a\to 0^+}\left(1-a^{-p+1}\right)$ $=\begin{cases} \frac{1}{1-p}, & \mbox{if }p<1 \\ \mbox{diverges}, & \mbox{if }p>1.\end{cases}$

Notice that we had to assume that $p\ne 1$ do avoid dividing by zero. So instead we do the $p=1$ case separately,

$\int\limits_0^1 \frac{dx}{x}=\lim_{a\to 0^+}\left[\ln(|x|)\Big|_a^1\right]=\lim_{a\to 0^+}\Big[-\ln(a)\Big]$

which diverges.

 Example 2 The integral $\int\limits_{-1}^3 \frac{dx}{x-2}$ is improper because the integrand is not continuous at x=2. However had we not noticed that we might have been tempted to apply the fundamental theorem of calculus and conclude that it equals $\ln(|x-2|)\Big|_{-1}^3=\ln(5)-\ln(3)=\ln(\tfrac{5}{3}),$ which is not correct. In fact the integral diverges since \begin{align}\int\limits_{-1}^3 \frac{dx}{x-2} &=\lim_{b\to 2^-}\int\limits_{-1}^b \frac{dx}{x-2}+\lim_{a\to 2^+}\int\limits_a^3 \frac{dx}{x-2}\\ &=\lim_{b\to 2^-}\ln(|x-2|)\Big|_{-1}^b+\lim_{a\to 2^+}\ln(|x-2|)\Big|_a^3\\ &=\lim_{b\to 2^-}\Big[\ln(2-b)-\ln(3)\Big]+\lim_{a\to 2^+}\Big[\ln(1)-\ln(a-2)\Big]\\ &=\lim_{b\to 2^-}\Big[\ln(2-b)\Big]-\ln(3)+\lim_{a\to 2^+}\Big[-\ln(a-2)\Big]\\ \end{align} and $\lim_{b\to 2^-}\Big[\ln(2-b)\Big]$ and $\lim_{a\to 2^+}\Big[-\ln(a-2)\Big]$ both diverge.

We can also give a definition of the integral of a function with a finite number of discontinuities.

### Definition: Improper integrals with finite number of discontinuitiesEdit

Suppose f is continuous on [a,b] except at points $c_1 in [a,b]. We define \begin{align}\int\limits_a^b f(x)dx=\int\limits_a^{c_1} f(x)dx+\int\limits_{c_1}^{c_2} f(x)dx+\int\limits_{c_2}^{c_3} f(x)dx+\cdots+\int\limits_{c_{n-1}}^{c_n} f(x)dx+\int\limits_{c_n}^{b} f(x)dx\end{align} as long as each integral on the right converges.

Notice that by combining this definition with the definition for improper integrals with infinite endpoints, we can define the integral of a function with a finite number of discontinuities with one or more infinite endpoints.

## Comparison TestEdit

There are integrals which cannot easily be evaluated. However it may still be possible to show they are convergent by comparing them to an integral we already know converges.

Theorem (Comparison Test) Let f and g be continuous functions defined for all $x\ge a$ .

1. Suppose $g(x)\ge f(x)\ge 0$ for all $x\ge a$ . Then if $\int\limits_a^\infty g(x) dx$ converges so does $\int\limits_a^\infty f(x)dx.$
2. Suppose $f(x)\ge h(x)\ge 0$ for all $x\ge a$ . Then if $\int\limits_a^\infty h(x) dx$ diverges so does $\int\limits_a^\infty f(x)dx.$

A similar theorem holds for improper integrals of the form $\int\limits_{-\infty}^b f(x)dx$ and for improper integrals with discontinuities.

 Example: Use of comparsion test to show convergence Show that $\int\limits_1^{\infty} \frac{\sin(x)+2}{x^2} dx$ converges. For all x we know that $-1\le\sin(x)\le 1$ so $1\le\sin(x)+2\le 3$ . This implies that $0\le\frac{\sin(x)+2}{x^2}\le\frac{3}{x^2}$ . We have seen that $\int\limits_1^\infty \frac{3}{x^2}dx=3\int\limits_1^\infty \frac{dx}{x^2}$ converges. So putting $f(x)=\frac{\sin(x)+2}{x^2}$ and $g(x)=\frac{3}{x^2}$ into the comparison test we get that the integral $\int\limits_1^\infty \frac{\sin(x)+2}{x^2}dx$ converges as well.
 Example: Use of Comparsion Test to show divergence Show that $\int\limits_1^\infty \frac{\sin(x)+2}{x}dx$ diverges. Just as in the previous example we know that $\sin(x)+2\ge 1$ for all x. Thus $\frac{\sin(x)+2}{x}\ge\frac{1}{x}\ge 0.$ We have seen that $\int\limits_1^\infty \frac{dx}{x}$ diverges. So putting $f(x)=\frac{\sin(x)+2}{x}$ and $g(x)=\frac{1}{x}$ into the comparison test we get that $\int\limits_1^\infty \frac{\sin(x)+2}{x}dx$ diverges as well.

### An extension of the comparison theoremEdit

To apply the comparison theorem you do not really need $g(x)\ge f(x)\ge 0$ for all $x\ge a$ . What we actually need is this inequality holds for sufficiently large x (i.e. there is a number c such that $g(x)\ge f(x)$ for all $x\ge c$). For then

$\int\limits_a^\infty f(x)dx=\int\limits_a^c f(x)dx+\int\limits_c^\infty f(x)dx,$

so the first integral converges if and only if third does, and we can apply the comparison theorem to the $\int\limits_c^\infty f(x)dx$ piece.

 Example Show that $\int\limits_1^\infty x^\frac{7}{2}e^{-\frac{3x}{2}}dx$ converges. The reason that this integral converges is because for large x the $e^{-x}$ factor in the integrand is dominant. We could try comparing $x^\frac{7}{2}e^{-x}$ with $e^{-x}$ , but as $x\ge 1$ , the inequality $x^{7/2}e^{-x}\ge e^{-x}$ is the wrong way around to show convergence. Instead we rewrite the integrand as $x^\frac{3}{2}e^{-\frac{3x}{2}}dx=x^\frac{7}{2}e^{-\frac{x}{2}}e^{-x}dx.$ Since the limit $\lim_{x\to\infty}\Big[x^\frac{7}{2}e^{-\frac{x}{2}}\Big]=0$ we know that for x sufficiently large we have $x^\frac{3}{2}e^{-\frac{x}{2}}\le 1$ . So for large x, $x^\frac{7}{2}e^{\frac{-7x}{2}}=x^\frac{7}{2}e^{-\frac{x}{2}}e^{-x}\le e^{-x}.$ Since the integral $\int\limits_1^\infty e^{-x} dx$ converges the comparison test tells us that $\int\limits_a^\infty x^\frac{7}{2}e^{\frac{-3x}{2}}$ converges as well.
 ← Indefinite integral Calculus Integration techniques/Infinite Sums → Improper Integrals