Calculus/Improper Integrals

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

The definition of a definite integral:

${\displaystyle \int \limits _{a}^{b}f(x)dx}$

requires the interval ${\displaystyle [a,b]}$ be finite. The Fundamental Theorem of Calculus requires that ${\displaystyle f}$ be continuous on ${\displaystyle [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 ${\displaystyle [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 Integration

Consider the integral

${\displaystyle \int \limits _{1}^{\infty }{\frac {dx}{x^{2}}}}$

Assigning a finite upper bound ${\displaystyle b}$ in place of infinity gives

${\displaystyle \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}$

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

Definition

1. Suppose ${\displaystyle \int \limits _{a}^{b}f(x)dx}$ exists for all ${\displaystyle b\geq a}$ . Then we define

${\displaystyle \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 ${\displaystyle \int \limits _{a}^{b}f(x)dx}$ exists for all ${\displaystyle a\leq b}$ we define

${\displaystyle \int \limits _{-\infty }^{b}f(x)dx=\lim _{a\to -\infty }\int \limits _{a}^{b}f(x)dx}$

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

${\displaystyle \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

${\displaystyle \int \limits _{0}^{\infty }e^{-x}dx=1}$

To do this we calculate

 ${\displaystyle \int \limits _{0}^{\infty }e^{-x}dx}$ ${\displaystyle =\lim _{b\to \infty }\int \limits _{0}^{b}e^{-x}dx}$ ${\displaystyle =\lim _{b\to \infty }(-e^{-x}){\Bigr |}_{0}^{b}}$ ${\displaystyle =\lim _{b\to \infty }\left(-e^{-b}+1\right)}$ ${\displaystyle =1}$
Example: Divergent Improper Integral

We claim that the integral

${\displaystyle \int \limits _{1}^{\infty }{\frac {dx}{x}}}$ diverges.

This follows as

 ${\displaystyle \int \limits _{1}^{\infty }{\frac {dx}{x}}}$ ${\displaystyle =\lim _{b\to \infty }\int \limits _{1}^{b}{\frac {dx}{x}}}$ ${\displaystyle =\lim _{b\to \infty }\ln(x){\Bigr |}_{1}^{b}}$ ${\displaystyle =\lim _{b\to \infty }\left(\ln(b)-0\right)}$ ${\displaystyle =\infty }$

Therefore

${\displaystyle \int \limits _{1}^{\infty }{\frac {dx}{x}}}$ diverges.
Example: Improper Integral

Find ${\displaystyle \int \limits _{0}^{\infty }x^{2}e^{-x}dx}$ .

To calculate the integral use integration by parts twice to get

 ${\displaystyle \int \limits _{0}^{b}x^{2}e^{-x}dx}$ ${\displaystyle =(-x^{2}e^{-x}){\Bigr |}_{0}^{b}+2\int \limits _{0}^{b}xe^{-x}dx}$ ${\displaystyle =-b^{2}e^{-b}+2\left((-xe^{-x}){\Bigr |}_{0}^{b}+\int \limits _{0}^{b}e^{-x}dx\right)}$ ${\displaystyle =-b^{2}e^{-b}+2\left(-be^{-b}-(e^{-x}){\Bigr |}_{0}^{b}\right)}$ ${\displaystyle =-b^{2}e^{-b}+2(-be^{-b}-e^{-b}+1)}$

Now ${\displaystyle \lim _{b\to \infty }e^{-b}=0}$ and because exponentials overpower polynomials, we see that ${\displaystyle \lim _{b\to \infty }b^{2}e^{-b}=0}$ and ${\displaystyle \lim _{b\to \infty }be^{-b}=0}$ as well. Hence,

${\displaystyle \int \limits _{0}^{\infty }x^{2}e^{-x}dx=\lim _{b\to \infty }\int \limits _{0}^{b}x^{2}e^{-x}dx=0+2(0-0+1)=2}$
Example: Powers

Show ${\displaystyle \int \limits _{1}^{\infty }{\frac {dx}{x^{p}}}={\begin{cases}{\frac {1}{p-1}},&{\text{if }}p>1\\{\text{diverges}},&{\text{if }}p\leq 1\end{cases}}}$

If ${\displaystyle p\neq 1}$ then

 ${\displaystyle \int \limits _{1}^{\infty }{\frac {dx}{x^{p}}}}$ ${\displaystyle =\lim _{b\to \infty }\int \limits _{1}^{b}x^{-p}dx}$ ${\displaystyle =\lim _{b\to \infty }\left({\frac {x^{-p+1}}{-p+1}}\right){\Bigg |}_{1}^{b}}$ ${\displaystyle =-{\frac {1}{1-p}}\lim _{b\to \infty }\left(b^{-p+1}-1\right)}$ ${\displaystyle ={\begin{cases}{\frac {1}{p-1}},&{\text{if }}p>1\\{\text{diverges}},&{\text{if }}p<1\end{cases}}}$

Notice that we had to assume that ${\displaystyle p\neq 1}$ to avoid dividing by 0. However the ${\displaystyle p=1}$ case was done in a previous example.

Improper Integrals with a Finite Number Discontinuities

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

Definition of improper integrals with a single discontinuity

If ${\displaystyle f}$ is continuous on the interval ${\displaystyle [a,b)}$ and is discontinuous at ${\displaystyle b}$ , we define

${\displaystyle \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 ${\displaystyle f}$ is continuous on the interval ${\displaystyle (a,b]}$ and is discontinuous at ${\displaystyle a}$ , we define

${\displaystyle \int \limits _{a}^{b}f(x)dx=\lim _{c\to a^{+}}\int \limits _{c}^{b}f(x)dx}$

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

${\displaystyle \int \limits _{a}^{b}f(x)dx}$=${\displaystyle \int \limits _{a}^{c}f(x)dx+\int \limits _{c}^{b}f(x)dx}$
Example 1

Show ${\displaystyle \int \limits _{0}^{1}{\frac {dx}{x^{p}}}={\begin{cases}{\frac {1}{1-p}},&{\text{if }}p<1\\{\text{diverges}},&{\text{if }}p\geq 1\end{cases}}}$

If ${\displaystyle p\neq 1}$ then

 ${\displaystyle \int \limits _{0}^{1}{\frac {dx}{x^{p}}}}$ ${\displaystyle =\lim _{a\to 0^{+}}\int \limits _{a}^{1}x^{-p}dx}$ ${\displaystyle =\lim _{a\to 0^{+}}\left({\frac {x^{-p+1}}{-p+1}}\right){\Bigg |}_{a}^{1}}$ ${\displaystyle =-{\frac {1}{1-p}}\lim _{a\to 0^{+}}\left(1-a^{-p+1}\right)}$ ${\displaystyle ={\begin{cases}{\frac {1}{1-p}},&{\mbox{if }}p<1\\{\text{diverges}},&{\text{if }}p>1\end{cases}}}$

Notice that we had to assume that ${\displaystyle p\neq 1}$ do avoid dividing by 0. So instead we do the ${\displaystyle p=1}$ case separately,

${\displaystyle \int \limits _{0}^{1}{\frac {dx}{x}}=\lim _{a\to 0^{+}}\left[\ln {\big (}|x|{\big )}{\Big |}_{a}^{1}\right]=\lim _{a\to 0^{+}}{\Big [}-\ln(a){\Big ]}}$

which diverges.

 Example 2 The integral ${\displaystyle \int \limits _{-1}^{3}{\frac {dx}{x-2}}}$ is improper because the integrand is not continuous at ${\displaystyle 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 ${\displaystyle \ln {\big (}|x-2|{\big )}{\Big |}_{-1}^{3}=\ln(5)-\ln(3)=\ln \left({\tfrac {5}{3}}\right)}$ which is not correct. In fact the integral diverges since {\displaystyle {\begin{aligned}\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 {\big (}|x-2|{\big )}{\Big |}_{-1}^{b}+\lim _{a\to 2^{+}}\ln {\big (}|x-2|{\big )}{\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{aligned}}} and ${\displaystyle \lim _{b\to 2^{-}}{\Big [}\ln(2-b){\Big ]}}$ and ${\displaystyle \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 discontinuities

Suppose ${\displaystyle f}$ is continuous on ${\displaystyle [a,b]}$ except at points ${\displaystyle c_{1} in ${\displaystyle [a,b]}$ . We define {\displaystyle {\begin{aligned}\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{aligned}}} 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 Test

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 ${\displaystyle f,g}$ be continuous functions defined for all ${\displaystyle x\geq a}$ .

1. Suppose ${\displaystyle g(x)\geq f(x)\geq 0}$ for all ${\displaystyle x\geq a}$ . Then if ${\displaystyle \int \limits _{a}^{\infty }g(x)dx}$ converges so does ${\displaystyle \int \limits _{a}^{\infty }f(x)dx}$ .
2. Suppose ${\displaystyle f(x)\geq h(x)\geq 0}$ for all ${\displaystyle x\geq a}$ . Then if ${\displaystyle \int \limits _{a}^{\infty }h(x)dx}$ diverges so does ${\displaystyle \int \limits _{a}^{\infty }f(x)dx}$ .

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

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

An extension of the comparison theorem

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

${\displaystyle \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 ${\displaystyle \int \limits _{c}^{\infty }f(x)dx}$ piece.

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