Skip to main content
Mathematics LibreTexts

2.7: Improper Integrals

  • Page ID
    42114
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)

    ( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\id}{\mathrm{id}}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\kernel}{\mathrm{null}\,}\)

    \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\)

    \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\)

    \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    \( \newcommand{\vectorA}[1]{\vec{#1}}      % arrow\)

    \( \newcommand{\vectorAt}[1]{\vec{\text{#1}}}      % arrow\)

    \( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vectorC}[1]{\textbf{#1}} \)

    \( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)

    \( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)

    \( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)

    \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \(\newcommand{\avec}{\mathbf a}\) \(\newcommand{\bvec}{\mathbf b}\) \(\newcommand{\cvec}{\mathbf c}\) \(\newcommand{\dvec}{\mathbf d}\) \(\newcommand{\dtil}{\widetilde{\mathbf d}}\) \(\newcommand{\evec}{\mathbf e}\) \(\newcommand{\fvec}{\mathbf f}\) \(\newcommand{\nvec}{\mathbf n}\) \(\newcommand{\pvec}{\mathbf p}\) \(\newcommand{\qvec}{\mathbf q}\) \(\newcommand{\svec}{\mathbf s}\) \(\newcommand{\tvec}{\mathbf t}\) \(\newcommand{\uvec}{\mathbf u}\) \(\newcommand{\vvec}{\mathbf v}\) \(\newcommand{\wvec}{\mathbf w}\) \(\newcommand{\xvec}{\mathbf x}\) \(\newcommand{\yvec}{\mathbf y}\) \(\newcommand{\zvec}{\mathbf z}\) \(\newcommand{\rvec}{\mathbf r}\) \(\newcommand{\mvec}{\mathbf m}\) \(\newcommand{\zerovec}{\mathbf 0}\) \(\newcommand{\onevec}{\mathbf 1}\) \(\newcommand{\real}{\mathbb R}\) \(\newcommand{\twovec}[2]{\left[\begin{array}{r}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\ctwovec}[2]{\left[\begin{array}{c}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\threevec}[3]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\cthreevec}[3]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\fourvec}[4]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\cfourvec}[4]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\fivevec}[5]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\cfivevec}[5]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\mattwo}[4]{\left[\begin{array}{rr}#1 \amp #2 \\ #3 \amp #4 \\ \end{array}\right]}\) \(\newcommand{\laspan}[1]{\text{Span}\{#1\}}\) \(\newcommand{\bcal}{\cal B}\) \(\newcommand{\ccal}{\cal C}\) \(\newcommand{\scal}{\cal S}\) \(\newcommand{\wcal}{\cal W}\) \(\newcommand{\ecal}{\cal E}\) \(\newcommand{\coords}[2]{\left\{#1\right\}_{#2}}\) \(\newcommand{\gray}[1]{\color{gray}{#1}}\) \(\newcommand{\lgray}[1]{\color{lightgray}{#1}}\) \(\newcommand{\rank}{\operatorname{rank}}\) \(\newcommand{\row}{\text{Row}}\) \(\newcommand{\col}{\text{Col}}\) \(\renewcommand{\row}{\text{Row}}\) \(\newcommand{\nul}{\text{Nul}}\) \(\newcommand{\var}{\text{Var}}\) \(\newcommand{\corr}{\text{corr}}\) \(\newcommand{\len}[1]{\left|#1\right|}\) \(\newcommand{\bbar}{\overline{\bvec}}\) \(\newcommand{\bhat}{\widehat{\bvec}}\) \(\newcommand{\bperp}{\bvec^\perp}\) \(\newcommand{\xhat}{\widehat{\xvec}}\) \(\newcommand{\vhat}{\widehat{\vvec}}\) \(\newcommand{\uhat}{\widehat{\uvec}}\) \(\newcommand{\what}{\widehat{\wvec}}\) \(\newcommand{\Sighat}{\widehat{\Sigma}}\) \(\newcommand{\lt}{<}\) \(\newcommand{\gt}{>}\) \(\newcommand{\amp}{&}\) \(\definecolor{fillinmathshade}{gray}{0.9}\)

    Learning Objectives

    • Evaluate an integral over an infinite interval.
    • Evaluate an integral over a closed interval with an infinite discontinuity within the interval.
    • Use the comparison theorem to determine whether a definite integral is convergent.

    Is the area between the graph of \(f(x)=\dfrac{1}{x}\) and the \(x\)-axis over the interval \([1,+∞)\) finite or infinite? If this same region is revolved about the \(x\)-axis, is the volume finite or infinite? Surprisingly, the area of the region described is infinite, but the volume of the solid obtained by revolving this region about the \(x\)-axis is finite.

    In this section, we define integrals over an infinite interval as well as integrals of functions containing a discontinuity on the interval. Integrals of these types are called improper integrals. We examine several techniques for evaluating improper integrals, all of which involve taking limits.

    Integrating over an Infinite Interval

    How should we go about defining an integral of the type \(\displaystyle \int ^{+∞}_af(x)\,dx?\) We can integrate \(\displaystyle \int ^t_af(x)\,dx\) for any value of \(t\), so it is reasonable to look at the behavior of this integral as we substitute larger values of \(t\). Figure \(\PageIndex{1}\) shows that \(\displaystyle \int ^t_af(x)\,dx\) may be interpreted as area for various values of \(t\). In other words, we may define an improper integral as a limit, taken as one of the limits of integration increases or decreases without bound.

    This figure has three graphs. All the graphs have the same curve, which is f(x). The curve is non-negative, only in the first quadrant, and decreasing. Under all three curves is a shaded region bounded by a on the x-axis an t on the x-axis. The region in the first curve is small, and progressively gets wider under the second and third graph as t moves further to the right away from a on the x-axis.
    Figure \(\PageIndex{1}\): To integrate a function over an infinite interval, we consider the limit of the integral as the upper limit increases without bound.

    Definition: improper integral

    1. Let \(f(x)\) be continuous over an interval of the form \([a,+∞)\). Then \[\int ^{+∞}_af(x)\,dx=\lim_{t→+∞}\int ^t_af(x)\,dx, \label{improper1}\] provided this limit exists.
    2. Let \(f(x)\) be continuous over an interval of the form \((−∞,b]\). Then \[\int ^b_{−∞}f(x)\,dx=\lim_{t→−∞}\int ^b_tf(x)\,dx, \label{improper2}\] provided this limit exists.

    In each case, if the limit exists, then the improper integral is said to converge. If the limit does not exist, then the improper integral is said to diverge.

    1. Let \(f(x)\) be continuous over \((−∞,+∞)\). Then \[\int ^{+∞}_{−∞}f(x)\,dx=\int ^0_{−∞}f(x)\,dx+\int ^{+∞}_0f(x)\,dx, \label{improper3}\] provided that \(\displaystyle \int ^0_{−∞}f(x)\,dx\) and \(\displaystyle \int ^{+∞}_0f(x)\,dx\) both converge. If either of these two integrals diverge, then \(\displaystyle \int ^{+∞}_{−∞}f(x)\,dx\) diverges. (It can be shown that, in fact, \(\displaystyle \int ^{+∞}_{−∞}f(x)\,dx=\int ^a_{−∞}f(x)\,dx+\int ^{+∞}_af(x)\,dx\) for any value of a.).

    In our first example, we return to the question we posed at the start of this section: Is the area between the graph of \(f(x)=\frac{1}{x}\) and the \(x\)-axis over the interval \([1,+∞)\) finite or infinite?

    Example \(\PageIndex{1}\): Finding an Area

    Determine whether the area between the graph of \(f(x)=\dfrac{1}{x}\) and the \(x\)-axis over the interval \([1,+∞)\) is finite or infinite.

    Solution

    We first do a quick sketch of the region in question, as shown in Figure \(\PageIndex{2}\).

    This figure is the graph of the function y = 1/x. It is a decreasing function with a vertical asymptote at the y-axis. In the first quadrant there is a shaded region under the curve bounded by x = 1 and x = 4.
    Figure \(\PageIndex{2}\): We can find the area between the curve \(f(x)=1/x\) and the \(x\)-axis on an infinite interval.

    We can see that the area of this region is given by

    \[A=\int ^∞_1\frac{1}{x}\,dx. \nonumber\]

    which can be evaluated using Equation \ref{improper1}:

    \[ \begin{align*} A =\int ^∞_1\frac{1}{x}\,dx \nonumber \\[4pt] =\lim_{t→+∞}\int ^t_1\frac{1}{x}\,dx \tag{Rewrite the improper integral as a limit} \\[4pt] =\lim_{t→+∞}\ln |x|∣^t_1 \tag{Find the antiderivative} \\[4pt] =\lim_{t→+∞}(\ln |t|−\ln 1) \tag{Evaluate the antiderivative} \\[4pt] =+∞. \tag{Evaluate the limit.} \end{align*}\]

    Since the improper integral diverges to \(+∞,\) the area of the region is infinite.

    Example \(\PageIndex{2}\): Finding a Volume

    Find the volume of the solid obtained by revolving the region bounded by the graph of \(f(x)=\dfrac{1}{x}\) and the \(x\)-axis over the interval \([1,+∞)\) about the \(x\)-axis.

    Solution

    The solid is shown in Figure \(\PageIndex{3}\). Using the disk method, we see that the volume \(V\) is

    \[V=π\int ^{+∞}_1\frac{1}{x^2}\,dx. \nonumber\]

    This figure is the graph of the function y = 1/x. It is a decreasing function with a vertical asymptote at the y-axis. The graph shows a solid that has been generated by rotating the curve in the first quadrant around the x-axis.
    Figure \(\PageIndex{3}\): The solid of revolution can be generated by rotating an infinite area about the \(x\)-axis.

    Then we have

    \[\displaystyle \begin{align*} V &=π\int ^{+∞}_1\frac{1}{x^2}\,dx \\[4pt]
    &=π\lim_{t→+∞}\int ^t_1\frac{1}{x^2}\,dx \quad\text{Rewrite as a limit.} \\[4pt]
    &=π\lim_{t→+∞}−\frac{1}{x}∣^t_1 \quad\text{Find the antiderivative.} \\[4pt]
    &=π\lim_{t→+∞}\left(−\frac{1}{t}+1\right) \quad\text{Evaluate the antiderivative.} \\[4pt]
    &=π \end{align*}\]

    The improper integral converges to \(π\). Therefore, the volume of the solid of revolution is \(π\).

    In conclusion, although the area of the region between the \(x\)-axis and the graph of \(f(x)=1/x\) over the interval \([1,+∞)\) is infinite, the volume of the solid generated by revolving this region about the \(x\)-axis is finite. The solid generated is known as Gabriel’s Horn.

    Note: Gabriel's horn (also called Torricelli's trumpet) is a geometric figure which has infinite surface area, but finite volume. The name refers to the tradition identifying the Archangel Gabriel as the angel who blows the horn to announce Judgment Day, associating the divine, or infinite, with the finite. The properties of this figure were first studied by Italian physicist and mathematician Evangelista Torricelli in the 17th century.

    Example \(\PageIndex{3}\): Traffic Accidents in a City

    Suppose that at a busy intersection, traffic accidents occur at an average rate of one every three months. After residents complained, changes were made to the traffic lights at the intersection. It has now been eight months since the changes were made and there have been no accidents. Were the changes effective or is the 8-month interval without an accident a result of chance?

    This is a picture of a city street with a traffic signal. The picture has very busy lanes of traffic in both directions.
    Figure \(\PageIndex{4}\): Modification of work by David McKelvey, Flickr.

    Probability theory tells us that if the average time between events is \(k\), the probability that \(X\), the time between events, is between \(a\) and \(b\) is given by

    \[(P(a≤x≤b)=\int ^b_af(x)\,dx \nonumber\]

    where

    \[f(x)=\begin{cases}0, \text{if}\;x<0\\ke^{−kx}, \text{if}\;x≥0\end{cases}. \nonumber\]

    Thus, if accidents are occurring at a rate of one every 3 months, then the probability that \(X\), the time between accidents, is between \(a\) and \(b\) is given by

    \[P(a≤x≤b)=\int ^b_af(x)\,dx \nonumber\]

    where \[f(x)=\begin{cases}0, \text{if}\;x<0\\3e^{−3x}, \text{if}\;x≥0\end{cases}. \nonumber\]

    To answer the question, we must compute \(\displaystyle P(X≥8)=\int ^{+∞}_83e^{−3x}\,dx\) and decide whether it is likely that 8 months could have passed without an accident if there had been no improvement in the traffic situation.

    Solution

    We need to calculate the probability as an improper integral:

    \(\displaystyle \begin{align*} P(X≥8) =\int ^{+∞}_83e^{−3x}\,dx \\[4pt]
    =\lim_{t→+∞}\int ^t_83e^{−3x}\,dx \\[4pt]
    =\lim_{t→+∞}−e^{−3x}∣^t_8 \\[4pt]
    =\lim_{t→+∞}(−e^{−3t}+e^{−24}) \\[4pt]
    ≈3.8×10^{−11}. \end{align*}\)

    The value \(3.8×10^{−11}\) represents the probability of no accidents in 8 months under the initial conditions. Since this value is very, very small, it is reasonable to conclude the changes were effective.

    Example \(\PageIndex{4}\): Evaluating an Improper Integral over an Infinite Interval

    Evaluate \(\displaystyle \int ^0_{−∞}\frac{1}{x^2+4}\,dx.\) State whether the improper integral converges or diverges.

    Solution

    Begin by rewriting \(\displaystyle \int ^0_{−∞}\frac{1}{x^2+4}\,dx\) as a limit using Equation \ref{improper2} from the definition. Thus,

    \[\begin{align*} \int ^0_{−∞}\frac{1}{x^2+4}\,dx &=\lim_{t→−∞}\int ^0_t\frac{1}{x^2+4}\,dx \quad\text{Rewrite as a limit.} \\[4pt]
    &=\lim_{t→−∞}\frac{1}{2}\tan^{−1}\frac{x}{2}∣^0_t \quad\text{Find the antiderivative.} \\[4pt]
    &=\lim_{t→−∞}\left(\frac{1}{2}\tan^{−1}0−\frac{1}{2}\tan^{−1}\frac{t}{2}\right) \quad\text{Evaluate the antiderivative.} \\[4pt]
    &=\frac{π}{4}. \quad\text{Evaluate the limit and simplify.} \end{align*}\]

    The improper integral converges to \(\dfrac{π}{4}.\)

    Example \(\PageIndex{5}\): Evaluating an Improper Integral on \((−∞,+∞)\)

    Evaluate \(\displaystyle \int ^{+∞}_{−∞}xe^x\,dx.\) State whether the improper integral converges or diverges.

    Solution

    Start by splitting up the integral:

    \[\int ^{+∞}_{−∞}xe^x\,dx=\int ^0_{−∞}xe^x\,dx+\int ^{+∞}_0xe^x\,dx.\]

    If either \(\displaystyle \int ^0_{−∞}xe^x\,dx\) or \(\displaystyle \int ^{+∞}_0xe^x\,dx\) diverges, then \(\displaystyle \int ^{+∞}_{−∞}xe^x\,dx\) diverges. Compute each integral separately. For the first integral,

    \(\displaystyle \int ^0_{−∞}xe^x\,dx=\lim_{t→−∞}\int ^0_txe^x\,dx\) Rewrite as a limit.

    \(=\lim_{t→−∞}(xe^x−e^x)∣^0_t\) Use integration by parts to find the antiderivative. (Here \(u=x\) and \(dv=e^x\).)

    \(=\lim_{t→−∞}(−1−te^t+e^t)\) Evaluate the antiderivative.

    \(=−1.\)

    Evaluate the limit. Note: \(\displaystyle \lim_{t→−∞}te^t\) is indeterminate of the form \(0⋅∞\).Thus, \(\displaystyle \lim_{t→−∞}te^t=\lim_{t→−∞}\frac{t}{e^{−t}}=\lim_{t→−∞}\frac{−1}{e^{−t}}=\lim_{t→−∞}−e^t=0\) by L’Hôpital’s Rule.

    The first improper integral converges. For the second integral,

    \(\displaystyle \int ^{+∞}_0xe^x\,dx=\lim_{t→+∞}\int ^t_0xe^x\,dx\) Rewrite as a limit.

    \(=\lim_{t→+∞}(xe^x−e^x)∣^t_0\) Find the antiderivative.

    \(=\lim_{t→+∞}(te^t−e^t+1)\) Evaluate the antiderivative.

    \(=\lim_{t→+∞}((t−1)e^t+1)\) Rewrite. (\(te^t−e^t\) is indeterminate.)

    \(=+∞.\) Evaluate the limit.

    Thus, \(\displaystyle \int ^{+∞}_0xe^x\,dx\) diverges. Since this integral diverges, \(\displaystyle \int ^{+∞}_{−∞}xe^x\,dx\) diverges as well.

    Exercise \(\PageIndex{1}\)

    Evaluate \(\displaystyle \int ^{+∞}_{−3}e^{−x}\,dx.\) State whether the improper integral converges or diverges.

    Hint

    \[\int ^{+∞}_{−3}e^{−x}\,dx=\lim_{t→+∞}\int ^t_{−3}e^{−x}\,dx\]

    Answer

    It converges to \(e^3.\)

    Integrating a Discontinuous Integrand

    Now let’s examine integrals of functions containing an infinite discontinuity in the interval over which the integration occurs. Consider an integral of the form \(\displaystyle \int ^b_af(x)\,dx,\) where \(f(x)\) is continuous over \([a,b)\) and discontinuous at \(b\). Since the function \(f(x)\) is continuous over \([a,t]\) for all values of \(t\) satisfying \(a  \le t<b\), the integral \(\displaystyle \int ^t_af(x)\,dx\) is defined for all such values of \(t\). Thus, it makes sense to consider the values of \(\displaystyle \int ^t_af(x)\,dx\) as \(t\) approaches \(b\) for \(a \le t<b\). That is, we define \(\displaystyle \int ^b_af(x)\,dx=\lim_{t→b^−}\int ^t_af(x)\,dx\), provided this limit exists. Figure \(\PageIndex{5}\) illustrates \(\displaystyle \int ^t_af(x)\,dx\) as areas of regions for values of \(t\) approaching \(b\).

    This figure has three graphs. All the graphs have the same curve, which is f(x). The curve is non-negative, only in the first quadrant, and increasing. Under all three curves is a shaded region bounded by a on the x-axis an t on the x-axis. There is also a vertical asymptote at x = b. The region in the first curve is small, and progressively gets wider under the second and third graph as t gets further from a, and closer to b on the x-axis.
    Figure \(\PageIndex{5}\): As t approaches b from the left, the value of the area from a to t approaches the area from a to b.

    We use a similar approach to define \(\displaystyle \int ^b_af(x)\,dx\), where \(f(x)\) is continuous over \((a,b]\) and discontinuous at \(a\). We now proceed with a formal definition.

    Definition: Converging and Diverging Improper Integral

    1. Let \(f(x)\) be continuous over \([a,b)\). Then, \[\int ^b_af(x)\,dx=\lim_{t→b^−}\int ^t_af(x)\,dx. \label{improperundefb}\]
    2. Let \(f(x)\) be continuous over \((a,b]\). Then, \[\int ^b_af(x)\,dx=\lim_{t→a^+}\int ^b_tf(x)\,dx. \label{improperundefa}\] In each case, if the limit exists, then the improper integral is said to converge. If the limit does not exist, then the improper integral is said to diverge.
    3. If \(f(x)\) is continuous over \([a,b]\) except at a point \(c\) in \((a,b)\), then \[\int ^b_af(x)\,dx=\int ^c_af(x)\,dx+\int ^b_cf(x)\,dx,\label{improperundefc}\] provided both \(\displaystyle \int ^c_af(x)\,dx\) and \(\displaystyle \int ^b_cf(x)\,dx\) converge. If either of these integrals diverges, then \(\displaystyle \int ^b_af(x)\,dx\) diverges.

    The following examples demonstrate the application of this definition.

    Example \(\PageIndex{6}\): Integrating a Discontinuous Integrand

    Evaluate \(\displaystyle \int ^4_0\frac{1}{\sqrt{4−x}}\,dx,\) if possible. State whether the integral converges or diverges.

    Solution

    The function \(f(x)=\dfrac{1}{\sqrt{4−x}}\) is continuous over \([0,4)\) and discontinuous at 4. Using Equation \ref{improperundefb} from the definition, rewrite \(\displaystyle \int ^4_0\frac{1}{\sqrt{4−x}}\,dx\) as a limit:

    \(\displaystyle \begin{align*} \int ^4_0\frac{1}{\sqrt{4−x}}\,dx &=\lim_{t→4^−}\int ^t_0\frac{1}{\sqrt{4−x}}\,dx \quad\text{Rewrite as a limit.} \\[4pt]
    &=\lim_{t→4^−}(−2\sqrt{4−x})∣^t_0 \quad\text{Find the antiderivative.} \\[4pt]
    &=\lim_{t→4^−}(−2\sqrt{4−t}+4) \quad\text{Evaluate the antiderivative.} \\[4pt]
    &=4. \quad\text{Evaluate the limit.} \end{align*}\)

    The improper integral converges.

    Example \(\PageIndex{7}\): Integrating a Discontinuous Integrand

    Evaluate \(\displaystyle \int ^2_0x\ln x\,dx.\) State whether the integral converges or diverges.

    Solution

    Since \(f(x)=x\ln x\) is continuous over \((0,2]\) and is discontinuous at zero, we can rewrite the integral in limit form using Equation \ref{improperundefa}:

    \(\displaystyle \begin{align*} \int ^2_0x\ln x\,dx &=\lim_{t→0^+}\int ^2_tx\ln x\,dx \quad\text{Rewrite as a limit.} \\[4pt]
    &=\lim_{t→0^+}(\frac{1}{2}x^2\ln x−\frac{1}{4}x^2)∣^2_t \quad\text{Evaluate}\; \int x\ln x\,dx \;\text{using integration by parts with}\; u=\ln x\; \text{and}\; dv=x.\\[4pt]
    &=\lim_{t→0^+}(2\ln 2−1−\frac{1}{2}t^2\ln t+\frac{1}{4}t^2). \quad\text{Evaluate the antiderivative.} \\[4pt]
    &=2\ln 2−1. \quad\text{Evaluate the limit.}\end{align*}\)

    Therefore the improper integral converges.

    Note: \(\displaystyle \lim_{t→0^+}t^2\ln t\;\text{is indeterminate.}\) To evaluate it, rewrite as a quotient and apply L’Hôpital’s rule.

    Example \(\PageIndex{8}\): Integrating a Discontinuous Integrand

    Evaluate \(\displaystyle \int ^1_{−1}\frac{1}{x^3}\,dx.\) State whether the improper integral converges or diverges.

    Solution

    Since \(f(x)=1/x^3\) is discontinuous at zero, using Equation \ref{improperundefc}, we can write

    \[\int ^1_{−1}\frac{1}{x^3}\,dx=\int ^0_{−1}\frac{1}{x^3}\,dx+\int ^1_0\frac{1}{x^3}\,dx.\nonumber\]

    If either of the two integrals diverges, then the original integral diverges. Begin with \(\displaystyle \int ^0_{−1}\frac{1}{x^3}\,dx\):

    \(\displaystyle \int ^0_{−1}\frac{1}{x^3}\,dx=\lim_{t→0^−}\int ^t_{−1}\frac{1}{x^3}\,dx\) Rewrite as a limit.

    \(=\lim_{t→0^−}(−\frac{1}{2x^2})∣^t_{−1}\) Find the antiderivative.

    \(=\lim_{t→0^−}(−\frac{1}{2t^2}+\frac{1}{2})\) Evaluate the antiderivative.

    \(=+∞.\) Evaluate the limit.

    Therefore, \(\displaystyle \int ^0_{−1}\frac{1}{x^3}\,dx\) diverges. Since \(\displaystyle \int ^0_{−1}\frac{1}{x^3}\,dx\) diverges, \(\displaystyle \int ^1_{−1}\frac{1}{x^3}\,dx\) diverges.

    Exercise \(\PageIndex{2}\)

    Evaluate \(\displaystyle \int ^2_0\frac{1}{x}\,dx.\) State whether the integral converges or diverges.

    Hint

    Write \(\displaystyle \int ^2_0\frac{1}{x}\,dx\) in limit form using Equation \ref{improperundefa}.

    Answer

    \(+∞\), It diverges.

    A Comparison Theorem

    It is not always easy or even possible to evaluate an improper integral directly; however, by comparing it with another carefully chosen integral, it may be possible to determine its convergence or divergence. To see this, consider two continuous functions \(f(x)\) and \(g(x)\) satisfying \(0≤f(x)≤g(x)\) for \(x≥a\) (Figure \(\PageIndex{6}\)). In this case, we may view integrals of these functions over intervals of the form \([a,t]\) as areas, so we have the relationship

    \[ 0≤\int ^t_af(x)\,dx≤\int ^t_ag(x)\,dx\]

    for \(t≥a\).

    This figure has two graphs. The graphs are f(x) and g(x). The first graph f(x) is a decreasing, non-negative function with a horizontal asymptote at the x-axis. It has a sharper bend in the curve compared to g(x). The graph of g(x) is a decreasing, non-negative function with a horizontal asymptote at the x-axis.
    Figure \(\PageIndex{6}\): If \(0≤f(x)≤g(x)\) for \(x≥a\), then for \(t≥a\), \(\displaystyle \int ^t_af(x)\,dx≤\int ^t_ag(x)\,dx.\)

    Thus, if

    \[\int ^{+∞}_af(x)\,dx=\lim_{t→+∞}\int ^t_af(x)\,dx=+∞,\]

    then

    \[\int ^{+∞}_ag(x)\,dx=\lim_{t→+∞}\int ^t_ag(x)\,dx=+∞\]

    as well. That is, if the area of the region between the graph of \(f(x)\) and the \(x\)-axis over \([a,+∞)\) is infinite, then the area of the region between the graph of \(g(x)\) and the \(x\)-axis over \([a,+∞)\) is infinite too.

    On the other hand, if

    \[\int ^{+∞}_ag(x)\,dx=\lim_{t→+∞}\int ^t_ag(x)\,dx=L\]

    for some real number \(L\), then

    \[\int ^{+∞}_af(x)\,dx=\lim_{t→+∞}\int ^t_af(x)\,dx\]

    must converge to some value less than or equal to \(L\), since \(\displaystyle \int ^t_af(x)\,dx\) increases as \(t\) increases and \(\displaystyle \int ^t_af(x)\,dx≤L\) for all \(t≥a.\)

    If the area of the region between the graph of \(g(x)\) and the \(x\)-axis over \([a,+∞)\) is finite, then the area of the region between the graph of \(f(x)\) and the \(x\)-axis over \([a,+∞)\) is also finite.

    These conclusions are summarized in the following theorem.

    A Comparison Theorem

    Let \(f(x)\) and \(g(x)\) be continuous over \([a,+∞).\) Assume that \(0≤f(x)≤g(x)\) for \(x≥a.\)

    1. If \[\int ^{+∞}_af(x)\,dx=\lim_{t→+∞}\int ^t_af(x)\,dx=+∞,\] then \[\int ^{+∞}_ag(x)\,dx=\lim_{t→+∞}\int ^t_ag(x)\,dx=+∞.\]
    2. If \[\int ^{+∞}_ag(x)\,dx=\lim_{t→+∞}\int ^t_ag(x)\,dx=L,\] where \(L\) is a real number, then \[\int ^{+∞}_af(x)\,dx=\lim_{t→+∞}\int ^t_af(x)\,dx=M\] for some real number \(M≤L.\)

    Example \(\PageIndex{9}\): Applying the Comparison Theorem

    Use a comparison to show that

    \[\int ^{+∞}_1\frac{1}{xe^x}\,dx \nonumber\]

    converges.

    Solution

    We can see that

    \[0≤\frac{1}{xe^x}≤\frac{1}{e^x}=e^{−x},\]

    so if \(\displaystyle \int ^{+∞}_1e^{−x}\,dx\) converges, then so does \(\displaystyle \int ^{+∞}_1\frac{1}{xe^x}\,dx\). To evaluate \(\displaystyle \int ^{+∞}_1e^{−x}\,dx,\) first rewrite it as a limit:

    \(\displaystyle \int ^{+∞}_1e^{−x}\,dx=\lim_{t→+∞}\int ^t_1e^{−x}\,dx\)

    \(=\lim_{t→+∞}(−e^{−x})∣^t_1\)

    \(=\lim_{t→+∞}(−e^{−t}+e^{-1})\)

    \(=e^{-1}.\)

    Since \(\displaystyle \int ^{+∞}_1e^{−x}\,dx\) converges, so does \(\displaystyle \int ^{+∞}_1\frac{1}{xe^x}\,dx.\)

    Example \(\PageIndex{10}\): Applying the Comparison Theorem

    Use the comparison theorem to show that \(\displaystyle \int ^{+∞}_1\frac{1}{x^p}\,dx\) diverges for all \(p<1\).

    Solution

    For \(p<1, 1/x≤1/(x^p)\) over \([1,+∞).\) In Example \(\PageIndex{1}\), we showed that \(\displaystyle \int ^{+∞}_1\frac{1}{x}\,dx=+∞.\) Therefore, \(\displaystyle \int ^{+∞}_1\frac{1}{x^p}\,dx\) diverges for all \(p<1\).

    Exercise \(\PageIndex{3}\)

    Use a comparison to show that \(\displaystyle \int ^{+∞}_e\frac{\ln x}{x}\,dx\) diverges.

    Hint

    \(\frac{1}{x}≤\frac{\ln x}{x}\) on \([e,+∞)\)

    Answer

    Since \(\displaystyle \int ^{+∞}_e\frac{1}{x}\,dx=+∞,\) \(\displaystyle \int ^{+∞}_e\frac{\ln x}{x}\,dx\) diverges.

    Laplace Transforms

    In the last few chapters, we have looked at several ways to use integration for solving real-world problems. For this next project, we are going to explore a more advanced application of integration: integral transforms. Specifically, we describe the Laplace transform and some of its properties. The Laplace transform is used in engineering and physics to simplify the computations needed to solve some problems. It takes functions expressed in terms of time and transforms them to functions expressed in terms of frequency. It turns out that, in many cases, the computations needed to solve problems in the frequency domain are much simpler than those required in the time domain.

    The Laplace transform is defined in terms of an integral as

    \[L{f(t)}=F(s)=\int ^∞_0e^{−st}f(t)dt.\]

    Note that the input to a Laplace transform is a function of time, \(f(t),\) and the output is a function of frequency, \(F(s)\). Although many real-world examples require the use of complex numbers (involving the imaginary number \(i=\sqrt{−1}),\) in this project we limit ourselves to functions of real numbers.

    Let’s start with a simple example. Here we calculate the Laplace transform of \(f(t)=t\) . We have

    \[L{t}=\int ^∞_0te^{−st}dt.\]

    This is an improper integral, so we express it in terms of a limit, which gives

    \[L{t}=\int ^∞_0te^{−st}dt=\lim_{z→∞}\int ^z_0te^{−st}dt.\]

    Now we use integration by parts to evaluate the integral. Note that we are integrating with respect to t, so we treat the variable s as a constant. We have

    \(u=t\) \(du=dt\) \(dv=e^{−st}dt\) \(v=−\frac{1}{s}e^{−st}\).

    Then we obtain

    \[ \begin{align*} \lim_{z→∞}\int ^z_0te^{−st}dt =\lim_{z→∞}[[−\frac{t}{s}e^{−st}]∣^z_0+\frac{1}{s}\int ^z_0e^{−st}dt] \\[4pt]\ =\lim_{z→∞}[[−\frac{z}{s}e^{−sz}+\frac{0}{s}e^{−0s}]+\frac{1}{s}\int ^z_0e^{−st}dt] \\[4pt]\ =\lim_{z→∞}[[−\frac{z}{s}e^{−sz}+0]−\frac{1}{s}[\frac{e^{−st}}{s}]∣^z_0] \\[4pt]\ =\lim_{z→∞}[[−\frac{z}{s}e^{−sz}]−\frac{1}{s^2}[e^{−sz}−1]] \\[4pt]\ =\lim_{z→∞}[−\frac{z}{se^{sz}}]−\lim_{z→∞}[\frac{1}{s^2e^{sz}}]+\lim_{z→∞}\frac{1}{s^2} \\[4pt]\ =0−0+\frac{1}{s^2} \\[4pt]\ =\frac{1}{s^2}. \end{align*}\]

    1. Calculate the Laplace transform of \(f(t)=1.\)
    2. Calculate the Laplace transform of \(f(t)=e^{−3t}.\)
    3. Calculate the Laplace transform of \(f(t)=t^2\). (Note, you will have to integrate by parts twice.)

    Laplace transforms are often used to solve differential equations. Differential equations are not covered in detail until later in this book; but, for now, let’s look at the relationship between the Laplace transform of a function and the Laplace transform of its derivative.

    Let’s start with the definition of the Laplace transform. We have

    \[L{f(t)}=\int ^∞_0e^{−st}f(t)dt=\lim_{z→∞}\int ^z_0e^{−st}f(t)dt.\]

    Use integration by parts to evaluate \(\displaystyle \lim_{z→∞}\int ^z_0e^{−st}f(t)dt\). (Let \(u=f(t)\) and \(dv=e^{−st}dt\).)

    After integrating by parts and evaluating the limit, you should see that

    \[L{f(t)}=\frac{f(0)}{s}+\frac{1}{s}[L{f′(t)}].\]

    Then,

    \[L{f′(t)}=sL{f(t)}−f(0).\]

    Thus, differentiation in the time domain simplifies to multiplication by s in the frequency domain.

    The final thing we look at in this project is how the Laplace transforms of \(f(t)\) and its antiderivative are related. Let \(g(t)=\int ^t_0f(u)du.\) Then,

    \[L{g(t)}=\int ^∞_0e^{−st}g(t)dt=\lim_{z→∞}\int ^z_0e^{−st}g(t)dt.\]

    Use integration by parts to evaluate \(\displaystyle \lim_{z→∞}\int ^z_0e^{−st}g(t)dt.\) (Let \(u=g(t)\) and \(dv=e^{−st}dt\). Note, by the way that we have defined \(g(t), du=f(t)dt.\))

    As you might expect, you should see that

    \[L{g(t)}=\frac{1}{s}⋅L{f(t)}.\]

    Integration in the time domain simplifies to division by \(s\) in the frequency domain.

    Key Concepts

    • Integrals of functions over infinite intervals are defined in terms of limits.
    • Integrals of functions over an interval for which the function has a discontinuity at an endpoint may be defined in terms of limits.
    • The convergence or divergence of an improper integral may be determined by comparing it with the value of an improper integral for which the convergence or divergence is known.

    Key Equations

    • Improper integrals

    \(\displaystyle \int ^{+∞}_af(x)\,dx=\lim_{t→+∞}\int ^t_af(x)\,dx\)

    \(\displaystyle \int ^b_{−∞}f(x)\,dx=\lim_{t→−∞}\int ^b_tf(x)\,dx\)

    \(\displaystyle \int ^{+∞}_{−∞}f(x)\,dx=\int ^0_{−∞}f(x)\,dx+\int ^{+∞}_0f(x)\,dx\)

    Glossary

    improper integral
    an integral over an infinite interval or an integral of a function containing an infinite discontinuity on the interval; an improper integral is defined in terms of a limit. The improper integral converges if this limit is a finite real number; otherwise, the improper integral diverges

    Contributors

    • Gilbert Strang (MIT) and Edwin “Jed” Herman (Harvey Mudd) with many contributing authors. This content by OpenStax is licensed with a CC-BY-SA-NC 4.0 license. Download for free at http://cnx.org.


    This page titled 2.7: Improper Integrals is shared under a CC BY-NC-SA 4.0 license and was authored, remixed, and/or curated by OpenStax via source content that was edited to the style and standards of the LibreTexts platform.