Calculus/Improper Integrals

From Wikibooks, the open-content textbooks collection

Jump to: navigation, search
← Integration techniques/Numerical Approximations Calculus Integration/Exercises →
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.

Contents

[edit] L'Hopital's Rule

L'Hopital's Rule is included in this section because limits involving infinity often appear in improper integration. L'Hopital's Rule describes how to evaluate limits involving infinity and or 0 if the limit evaluates to an indeterminate form.

All of the following expressions are indeterminate forms.

 \frac{\infin}{\infin}, \frac{-\infin}{-\infin}, \frac{0}{0}, 1^\infin, 1 \cdot \infin \

These expressions are called indeterminate because you cannot determine their exact value in the indeterminate form. Depending on the situation, each indeterminate form could evaluate to a variety of values.

[edit] Definition

If  \lim_{x \to c} \frac{f(x)}{g(x)} \ is indeterminate

Then  \lim_{x \to c} \frac{f(x)}{g(x)} = \lim_{x \to c} \frac{f'(x)}{g'(x)}

Note:

 x \ can approach a finite value c,  \infin or  -\infin .

Example:

One might think the value  1^\infin = 1 .

Consider

 \lim_{x \to \infin} \left( 1 + \frac{1}{x} \right) ^ x

Plugging the value of x into the limit yields

 \lim_{x \to \infin} \left( 1 + \frac{1}{x} \right) ^ x = 1^\infin (indeterminate form).

Let  k = \lim_{x \to \infin} \left( 1 + \frac{1}{x} \right) ^ x = 1^\infin

 \ln k \, =  \lim_{x \to \infin} \ln \left( 1 + \frac{1}{x} \right) ^ x
=  \lim_{x \to \infin} x \ln \left( 1 + \frac{1}{x} \right)
=  \lim_{x \to \infin} \frac{\ln \left( 1 + \frac{1}{x} \right)}{\frac{1}{x}} = \frac{\ln 1}{\frac{1}{x}} = \frac{0}{0} (indeterminate form)

We now apply L'Hopital's Rule by taking the derivative of the top and bottom with respect to x.

 \frac{d}{dx} \left[ \ln \left( 1 + \frac{1}{x} \right) \right] = \frac{x}{x+1} \cdot \frac{-1}{x^2} = \frac{-1}{x(x+1)}
 \frac{d}{dx} \left( \frac{1}{x} \right) = \frac{-1}{x^2}

Returning to the expression above

 \ln k \ =  \lim_{x \to \infin} \frac{-(-x^2)}{x(x+1)}
=  \lim_{x \to \infin} \frac{x}{x+1} = \frac{\infin}{\infin} (indeterminate form)

We apply L'Hopital's Rule once again

 \ln k = \lim_{x \to \infin} \frac{1}{1} = 1

Therefore

 k = e \

And

 \lim_{x \to \infin} \left( 1 + \frac{1}{x} \right) ^x = e \ne 1

Careful: this does not prove that  1^\infin = e \ because

 \lim_{x \to \infin} \left( 1 + \frac{2}{x} \right) ^x = 1^\infin \ne e

[edit] Improper Integrals with Infinite Limits of Integration

Consider the integral

\int_{1}^{\infin} \frac{dx}{x^2}

Assigning a finite upper bound b in place of infinity gives

 \lim_{b \to \infin} \int_{1}^{b} \frac{dx}{x^2} = \lim_{b \to \infin}\left(1-\frac{1}{b}\right)\ = 1

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

[edit] Definition

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

\int_{a}^{\infin} f(x)\, dx=\lim_{b \to \infin}\int_{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_a^b f(x) dx exists for all a\le b we define

\int_{-\infin}^{b} f(x)\, dx=\lim_{a \to -\infin}\int_{a}^{b} f(x)\, dx.

3. Finally suppose c is a fixed real number and that \int_{-\infin}^{c} f(x)\, dx and \int_{c}^{\infin} f(x)\, dx are both convergent. Then we define

\int_{-\infin}^{\infin} f(x)\, dx=\int_{-\infin}^{c} f(x)\, dx + \int_{c}^{\infin} f(x)\, dx.

Example: Convergent Improper Integral

We claim that

\int_{0}^{\infin} e^{-x}\, dx=1

To do this we calculate

 \int_{0}^{\infin} e^{-x} dx =  \lim_{b \to \infin} \int_{0}^{b} e^{-x} dx
=  \lim_{b \to \infin} \left[-e^{-x} \right]_0^b
=  \lim_{b \to \infin} \left(-e^{-b}+1 \right)
=  1 \,

Example: Divergent Improper Integral

We claim that the integral

\int_{1}^{\infin} \frac{dx}{x}\, diverges.

This follows as

\int_{1}^{\infin} \frac{dx}{x}\, = \lim_{b \to \infin}\int_{1}^{b} \frac{dx}{x}\,
= \lim_{b \to \infin}\left[\ln x\right]_1^b
= \lim_{b \to \infin}\left(\ln b - 0\right)
=  \infin \,

Therefore

 \int_{1}^{\infin} \frac{dx}{x}\, diverges.

Example: Improper Integral

Find \int_0^\infty x^2e^{-x} dx.

To calculate the integral use integration by parts twice to get

\begin{matrix}
\int_0^b x^2 e^{-x} dx &=& [-x^2 e^{-x}]_0^b + 2 \int_2^b x e^{-x}dx\\
&=&-b^2 e^{-b} - [2 x e^{-x}]_0^b +  \int_0^b e^{-x}dx\\
&=&-b^2 e^{-b} - 2 b e^{-b} - [e^{-x}]_0^b\\
&=&-b^2 e^{-b} - 2 b e^{-b} - e^{-b}+1.\\
\end{matrix}

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

\int_0^\infty x^2 e^{-x} dx =\lim_{b\to\infty} \int_0^b x^2 e^{-x} dx=0+0+ 1=1.

Example: Powers

Show \int_{1}^{\infin} \frac{dx}{x^p}\,=\begin{cases} \frac{1}{p-1}, & \mbox{if }p>1 \\ \mbox{diverges}, & \mbox{if }p\le1 \end{cases}}}

If p\neq 1 then

\int_{1}^{\infin} \frac{dx}{x^p}\, = \lim_{b \to \infin}\int_{1}^{b} x^{-p} dx\,
= \lim_{b \to \infin}\left[ \frac{1}{-p+1} x^{-p+1}\right]_1^b
=  \frac{1}{1-p} \lim_{b \to \infin}  \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 do avoid dividing by zero. However the p = 1 case was done in a previous example.

[edit] Improper Integrals with a Finite Number Discontinuities

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

[edit] Definition of improper integrals with a single discontinuity

If f is continuous on the interval [a,b) and is discontinuous at b, we define :\int_{a}^{b} f(x)\, dx=\lim_{c \to b^-}\int_{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_{a}^{b} f(x)\, dx=\lim_{c \to a^+}\int_{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_{a}^{c} f(x)\, dx and \int_{c}^{b} f(x)\, dx converge we define

\int_{a}^{b} f(x)\, dx=\int_{a}^{c} f(x)\, dx+\int_{c}^{b} f(x)\, dx

Example 1

Show \int_{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\neq 1 then

\int_{0}^{1} \frac{dx}{x^p}\, = \lim_{a \to 0^+}\int_{a}^{1} x^{-p} dx\,
= \lim_{a \to 0^+}\left[ \frac{1}{-p+1} x^{-p+1}\right]_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_0^1 \frac{1}{x} dx = \lim_{a\to 0^+} [\ln |x|]_a^0= \lim_{a\to 0^+} \ln a

which diverges.


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

[edit] Definition: Improper integrals with finite number of discontinuities

Suppose f is continuous on [a,b] except at points c_1<c_2<\ldots<c_n in [a,b]. We define \int_a^b f(x) dx = \int_a^{c_1} f(x) dx + \int_{c_1}^{c_2} f(x) dx +\int_{c_2}^{c_3} f(x) dx + \cdots + \int_{c_{n-1}}^{c_n} f(x) dx + \int_{c_n}^{b} f(x) dx 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.


Example 2

The integral \int_{-1}^3 \frac{1}{x-2}dx is improper because the integrand is not continuous at x=2. However had we not notice that we might have been tempted to apply the fundamental theorem of calculus and conclude that it equals

 [\ln |x-2|]_{-1}^3 = \ln(5)- \ln (3) = \ln (5/3),

which is not correct. In fact the integral diverges.

[edit] 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 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_a^\infty g(x) dx converges so does \int_a^\infty f(x) dx.
  2. Suppose f(x)\ge h(x)\ge 0 for all x\ge a. Then if \int_a^\infty h(x) dx diverges so does \int_a^\infty f(x) dx.

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

Example: Use of comparsion test to show convergence

Show that \int_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_1^{\infty} \frac{3}{x^2} dx = 3\int_1^{\infty} \frac{1}{x^2} dx 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_1^{\infty} \frac{\sin x+2}{x^2} dx converges as well.

Example: Use of Comparsion Test to show divergence

Show that \int_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_1^{\infty} \frac{1}{x} dx diverges. So putting   f(x) = \frac{\sin x+2}{x} and g(x) = \frac{1}{x} into the comparison test we get that \int_1^{\infty} \frac{\sin x+2}{x} dx diverges as well.

[edit] An extension of the comparison theorem

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_a^\infty f(x) dx = \int_a^c f(x) dx + \int_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_c^\infty f(x) dx piece.


Example

Show that \int_1^{\infty} x^{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 x7 / 2e 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^{3/2} e^{-\frac{3x}{2}} dx= x^{7/2} e^{-\frac{x}{2}} e^{-x} dx.

Since the limit \lim_{x\to \infty} x^{7/2} e^{-\frac{x}{2}} = 0 we know that for x sufficiently large we have  x^{3/2} e^{-\frac{x}{2}} \le 1. So for large x,

 x^{7/2} e^{\frac{-7x}{2}} = x^{7/2} e^{-\frac{x}{2}} e^{-x} \le e^{-x}.

Since the integral  \int_1^{\infty} e^{-x} dx converges the comparison test tells us that  \int_a^{\infty} x^{7/2} e^{\frac{-3x}{2}} converges as well.