A Type II improper integral is one whose integrand becomes unbounded somewhere on the interval of integration: at an endpoint, or at a point hidden in the middle. You handle it by cutting the bad point out with a limit, and the integral converges only when that limit is finite.
| Item | Statement |
|---|---|
| Type II improper integral | in which is unbounded at some point of |
| Singularity | a point where ; also called an infinite discontinuity |
| Singular right endpoint | |
| Singular left endpoint | |
| Interior singularity at | , and both pieces must converge |
| Converges / diverges | converges when the limit is finite, diverges otherwise |
| The -test | converges exactly when , with value |
| Benchmark | (converges) |
| Benchmark | diverges |
| Benchmark | diverges |
| Benchmark | (converges even though ) |
| Both endpoints singular | split at any convenient interior point, then treat each piece separately |
| Classic trap | applying the Fundamental Theorem straight across an interior singularity |
| Sign check | if but your answer is negative, you missed a singularity |
The Definition
The second type of improper integral occurs when the integrand is unbounded at one or both endpoints, or at a point inside the interval. We call such a point, where , a singularity of , or equivalently an infinite discontinuity.
The interval itself is perfectly finite here. That is the difference from Type I integrals, where the interval was infinite and the integrand was well behaved. In a Type II integral the interval is short and the function is the thing that misbehaves.
Let be real numbers.
(a) If is continuous on and as , we define
(b) If is continuous on and as , we define
(c) If has an infinite discontinuity at an interior point and is continuous elsewhere on , we define
provided both integrals on the right converge.
In each case the integral converges if the limit is finite, and diverges otherwise.
The number is a small positive amount of room we leave between the limit of integration and the singularity. Inside that shortened interval the integrand is continuous and bounded, so is an ordinary Riemann integral with an ordinary value. The improper integral is then defined as what that ordinary value approaches as the gap closes.
The two endpoint rules are the ones you use constantly. When the trouble is at the left endpoint:
\bbox[8px, #E6F0FA, border: 3px solid #0066CC]{\int_a^b f(x)\,dx = \lim_{\epsilon\to 0^+}\int_{a+\epsilon}^{b} f(x)\,dx}In words: start a hair to the right of the bad point, integrate normally, and then slide the starting point back toward .
When Both Endpoints Are Singular
The definition does not cover an integrand that blows up at and at , such as on . The fix is the same as in case (c): pick any convenient interior point , split the integral there, and apply rule (b) to the left piece and rule (a) to the right piece. The original integral converges exactly when both pieces converge, and its value is their sum. The choice of does not affect the answer.
A Step-by-Step Procedure
- Locate the singularities. Set every denominator equal to zero, check the argument of every logarithm, and check where , , and friends blow up. Keep only the points that lie in .
- Split the interval so that every singularity is an endpoint of a piece, never an interior point of a piece.
- Replace each singular endpoint by a limit variable. A singular left endpoint becomes ; a singular right endpoint becomes .
- Integrate the resulting proper integral exactly as usual, using the Fundamental Theorem, which is now legitimate because the integrand is continuous on the shortened interval.
- Take the limit . If it is finite, that piece converges to that number; otherwise it diverges.
- Add the pieces. If even one piece diverges, the whole integral diverges. Do not let a from one piece cancel a from another; that cancellation is a different object, the Cauchy principal value.
The Three Cases, Geometrically
In each picture below, the shaded area is the honest, finite area of the shortened region. The improper integral asks what happens to that area as the gap around the singularity closes: the integral converges if and only if the total area stays finite.
Case (a): Singularity at the Right Endpoint
The curve runs off to at the right endpoint , so we stop short at and shade the area we can actually compute. Then we let and watch whether that area settles on a number.
Case (b): Singularity at the Left Endpoint
Here the curve escapes at the left endpoint , so we start at instead. The shaded area grows as shrinks, and the question is whether it grows without bound or approaches a limit.
Case (c): Singularity at an Interior Point
An interior singularity at splits the problem into two independent Type II integrals, one shaded blue and one shaded orange. Both must converge on their own; a single divergent half kills the whole integral.
Worked Examples
Evaluate .
Solution
The integrand blows up as . Here , so we integrate from :
\begin{aligned} \int_0^1 \frac{dx}{\sqrt{x}} &= \lim_{\epsilon\to 0^+}\int_\epsilon^1 x^{-1/2}\,dx \\ &= \lim_{\epsilon\to 0^+}\bigl[2\sqrt{x}\bigr]_\epsilon^1 \\ &= \lim_{\epsilon\to 0^+}(2 - 2\sqrt{\epsilon}) \\ &= 2. \end{aligned}The region under over is infinitely tall, yet it has finite area . The curve rises to infinity slowly enough that the extra area near adds up to something finite.
Evaluate .
Solution
The singularity is at , so we integrate from up to and let . Integrate by parts with and , so and :
\begin{aligned} \int_\epsilon^1 \ln x\,dx &= \bigl[x\ln x\bigr]_\epsilon^1 - \int_\epsilon^1 dx \\ &= (0 - \epsilon\ln \epsilon) - (1-\epsilon). \end{aligned}Now . (By L'Hôpital's rule, : the factor shrinks faster than grows.) Therefore:
The answer is negative because on , so the region lies below the -axis and contributes negative signed area.
The shaded region is unbounded downward as , and yet its total signed area is exactly . Being unbounded does not automatically mean divergent.
A Warning: Hidden Discontinuities
The most dangerous situation is an integrand with an infinite discontinuity at a point inside the interval. Such discontinuities are easy to miss, and applying the Fundamental Theorem of Calculus without noticing them can lead to a completely wrong answer.
The reason is that the Fundamental Theorem has a hypothesis, and the hypothesis is exactly what fails. To write you need to be continuous on all of and to be an antiderivative there. If has a pole partway through, no single is an antiderivative across the gap, and the subtraction is meaningless.
Determine whether converges or diverges.
Solution
The integrand has an infinite discontinuity at , which lies inside . We must split there:
For the right half, the singularity is at the left endpoint , so we integrate from :
\begin{aligned} \int_\epsilon^1 \frac{dx}{x^2} &= \left[-\frac{1}{x}\right]_\epsilon^1 \\ &= -1 + \frac{1}{\epsilon}. \end{aligned}As , the term , so diverges. One divergent half is enough: the full integral diverges.
Warning. Applying the Fundamental Theorem naively:
This is nonsensical: an integral of the nonnegative function cannot be negative. The Fundamental Theorem requires the integrand to be continuous on the entire interval.
Both shaded areas, to the left and to the right of , grow without bound. The integral is improper and diverges, even though the naive antiderivative calculation returns the tidy looking number .
The splitting rule is the one to commit to memory:
\bbox[8px, #E6F0FA, border: 3px solid #0066CC]{\int_a^b f(x)\,dx = \int_a^c f(x)\,dx + \int_c^b f(x)\,dx, \quad \text{both halves must converge}}Requiring both halves separately is not fussiness. It is what keeps a on one side from silently cancelling a on the other. When such a cancellation does happen and you want to record it, the correct name for the resulting number is the Cauchy principal value, and it is a weaker statement than convergence.
A Checklist Before You Integrate
Checklist before evaluating . Check that is continuous at every point of , including all interior points. If has an infinite discontinuity anywhere on , the integral is improper and must be handled with limits. Skipping this check can give not just a wrong answer, but an impossible one.
- Where are the zeros of every denominator? Any that land in are singularities.
- Where is the argument of a logarithm equal to zero? There .
- Where does a negative power, a root, , , , or blow up inside ?
- Split at every singularity so that each bad point is an endpoint, never an interior point, of a piece.
- Evaluate each piece as a limit, and declare divergence as soon as one piece diverges.
- Sanity check the sign: a nonnegative integrand can never produce a negative answer.
Exercises
Evaluate , or show it diverges.
Answer
Diverges.
Solution
The integrand has an infinite discontinuity at , the left endpoint. Here , so we integrate from . By definition:
\begin{aligned} \int_0^1 \frac{dx}{x} &= \lim_{\epsilon\to 0^+}\int_\epsilon^1 \frac{dx}{x} \\ &= \lim_{\epsilon\to 0^+}\bigl[\ln x\bigr]_\epsilon^1 \\ &= \lim_{\epsilon\to 0^+}(0 - \ln \epsilon) \\ &= \lim_{\epsilon\to 0^+}(-\ln \epsilon). \end{aligned}As , , so . The integral diverges.
Evaluate the following integral, or show it diverges.
Answer
Solution
The integrand is undefined at both endpoints . We split at :
For the right piece, the singularity is at , so we integrate up to :
\begin{aligned} \int_0^1 \frac{dx}{\sqrt{1-x^2}} &= \lim_{\epsilon\to 0^+}\int_0^{1-\epsilon} \frac{dx}{\sqrt{1-x^2}} \\ &= \lim_{\epsilon\to 0^+}\bigl[\arcsin x\bigr]_0^{1-\epsilon} \\ &= \lim_{\epsilon\to 0^+}\bigl(\arcsin(1-\epsilon) - 0\bigr) \\ &= \arcsin 1 = \frac{\pi}{2}. \end{aligned}For the left piece, the singularity is at , so we integrate from :
\begin{aligned} \int_{-1}^0 \frac{dx}{\sqrt{1-x^2}} &= \lim_{\epsilon\to 0^+}\int_{-1+\epsilon}^0 \frac{dx}{\sqrt{1-x^2}} \\ &= \lim_{\epsilon\to 0^+}\bigl[\arcsin x\bigr]_{-1+\epsilon}^0 \\ &= \lim_{\epsilon\to 0^+}\bigl(0 - \arcsin(-1+\epsilon)\bigr) \\ &= -\arcsin(-1) = -\!\left(-\frac{\pi}{2}\right) = \frac{\pi}{2}. \end{aligned}Both pieces converge, so
Evaluate the following integral, or show it diverges.
Answer
Diverges.
Solution
The integrand has an infinite discontinuity at , which lies inside . We split there:
For the left piece, the singularity is at the right endpoint , so we integrate up to :
\begin{aligned} \int_0^{1-\epsilon} \frac{dx}{x-1} &= \bigl[\ln\lvert x-1\rvert\bigr]_0^{1-\epsilon} \\ &= \ln\lvert -\epsilon\rvert - \ln\lvert -1\rvert \\ &= \ln\epsilon - 0 \\ &= \ln\epsilon. \end{aligned}As , . The left piece diverges, so the entire integral diverges.
Evaluate the following integral, or show it diverges.
Answer
Solution
The integrand is unbounded at , the right endpoint, so we integrate up to . Let , so . When , ; when , :
\begin{aligned} \int_0^{4-\epsilon} \frac{dx}{\sqrt{4-x}} &= \int_4^{\epsilon} w^{-1/2}(-dw) \\ &= \int_{\epsilon}^4 w^{-1/2}\,dw \\ &= \bigl[2\sqrt{w}\bigr]_{\epsilon}^4 \\ &= 2\sqrt{4} - 2\sqrt{\epsilon} \\ &= 4 - 2\sqrt{\epsilon}. \end{aligned}Taking the limit as :
Evaluate .
Hint: Integrate by parts.
Answer
Solution
The integrand is not defined at , so we start from (with ) and let .
Integrate by parts. Let and , so and :
\begin{aligned} \int_\epsilon^1 x\ln x\,dx &= \left[\frac{x^2\ln x}{2}\right]_\epsilon^1 - \int_\epsilon^1 \frac{x^2}{2}\cdot\frac{dx}{x} \\ &= \left(\frac{1^2\cdot\ln 1}{2} - \frac{\epsilon^2\ln \epsilon}{2}\right) - \frac{1}{2}\int_\epsilon^1 x\,dx \\ &= \left(0 - \frac{\epsilon^2\ln \epsilon}{2}\right) - \frac{1}{2}\left[\frac{x^2}{2}\right]_\epsilon^1 \\ &= -\frac{\epsilon^2\ln \epsilon}{2} - \frac{1}{2}\left(\frac{1}{2}-\frac{\epsilon^2}{2}\right) \\ &= -\frac{\epsilon^2\ln \epsilon}{2} - \frac{1}{4} + \frac{\epsilon^2}{4}. \end{aligned}Now we take the limit as . The term and the constant stays. For the remaining term, apply L'Hôpital's rule:
Therefore:
Determine whether converges. If it does, find its value.
Hint: Let .
Answer
Solution
The integrand has a singularity at , so this is a Type II improper integral.
Let , so and . When , ; when , . Also , so:
\begin{aligned} \int_0^1 \frac{dx}{\sqrt{x}\,(1+x)} &= \int_0^1 \frac{2u\,du}{u\,(1+u^2)} \\ &= 2\int_0^1 \frac{du}{1+u^2}. \end{aligned}The integrand is continuous on , so this is now a proper Riemann integral. Evaluating:
\begin{aligned} 2\int_0^1 \frac{du}{1+u^2} &= 2\bigl[\arctan u\bigr]_0^1 \\ &= 2\left(\arctan 1 - \arctan 0\right) \\ &= 2\left(\frac{\pi}{4} - 0\right) \\ &= \frac{\pi}{2}. \end{aligned}The integral converges to .
Determine whether each integral converges or diverges. For those that converge, identify the type (Type I, Type II, or both) and find the value.
Answer
(a) Diverges. (b) Converges; value ; Type I only.
Solution
(a) Write . The denominator is zero at , which lies inside . We split there:
For the left piece, use partial fractions:
The singularity is at the right endpoint , so we integrate from to :
\begin{aligned} \int_0^{1-\epsilon} \frac{dx}{x^2-1} &= \frac{1}{2}\bigl[\ln\lvert x-1\rvert\bigr]_0^{1-\epsilon} - \frac{1}{2}\bigl[\ln\lvert x+1\rvert\bigr]_0^{1-\epsilon} \\ &= \frac{1}{2}(\ln\epsilon - \ln 1) - \frac{1}{2}(\ln(2-\epsilon) - \ln 1) \\ &= \frac{1}{2}\ln\epsilon - \frac{1}{2}\ln(2-\epsilon). \end{aligned}As , . Since (a finite number), the left piece diverges. Therefore the full integral diverges.
(b) Complete the square: . The denominator for all , so there are no discontinuities. This is a Type I integral only.
Let , ; the limits are still to :
This standard integral is evaluated in Type I: Infinite Limits of Integration, where splitting at gives . The answer is .
One of these converges and the other diverges. Decide which is which, and evaluate the convergent one.
Answer
(a) Converges to . (b) Diverges.
Solution
Both integrands blow up at the left endpoint , so both are Type II improper integrals and both are handled by integrating from and letting .
(a) Here the exponent is . Since , the antiderivative of is :
\begin{aligned} \int_\epsilon^1 x^{-2/3}\,dx &= \bigl[3x^{1/3}\bigr]_\epsilon^1 \\ &= 3 - 3\epsilon^{1/3}. \end{aligned}As we have , so the limit is and the integral converges:
(b) Here . Since , the antiderivative of is :
\begin{aligned} \int_\epsilon^1 x^{-3/2}\,dx &= \bigl[-2x^{-1/2}\bigr]_\epsilon^1 \\ &= -2 + \frac{2}{\sqrt{\epsilon}}. \end{aligned}As , , so the integral diverges.
What decided the outcome. The two parts differ only in the exponent, and the antiderivative shows why that is enough. Writing the integrand as with , an antiderivative is , so
\begin{aligned} \int_\epsilon^1 x^{-p}\,dx &= \frac{1-\epsilon^{1-p}}{1-p}. \end{aligned}Everything now rides on the sign of the exponent . In part (a), gives , so and the limit is the finite number . In part (b), gives , so and there is no limit. The dividing line is : a singularity of the form at an endpoint is integrable exactly when , and when it is, the value can be read straight off the antiderivative.
Evaluate , or show it diverges.
Answer
Solution
The denominator vanishes at , the right endpoint, and the integrand runs off to there. The integrand is continuous on , so this is case (a): integrate up to .
An antiderivative of is , because differentiating gives . Hence:
\begin{aligned} \int_0^{2-\epsilon} \frac{dx}{\sqrt{2-x}} &= \bigl[-2\sqrt{2-x}\bigr]_0^{2-\epsilon} \\ &= -2\sqrt{2-(2-\epsilon)} + 2\sqrt{2-0} \\ &= -2\sqrt{\epsilon} + 2\sqrt{2}. \end{aligned}Now let . The term , so:
The integral converges. Notice the shape of the integrand: it is an inverse power of the distance to the singular point, namely , with exponent . Because that exponent is smaller than , the antiderivative still approaches a finite value as climbs to , and that is precisely what makes the integral converge.
Determine whether converges, and if so find its value. Treat each half separately; do not appeal to symmetry until you have checked both halves.
Answer
Converges to . Each half converges: the right half to and the left half to .
Solution
The integrand has an infinite discontinuity at , an interior point of : it tends to as and to as . Here means the real cube root, which is defined and negative for . By case (c) we must split at and check both halves:
An antiderivative of is , and is defined for negative as well, so the same antiderivative works on both sides.
Right half. The singularity is at the left endpoint, so integrate from :
\begin{aligned} \int_\epsilon^1 x^{-1/3}\,dx &= \left[\tfrac{3}{2}x^{2/3}\right]_\epsilon^1 \\ &= \tfrac{3}{2} - \tfrac{3}{2}\epsilon^{2/3} \;\longrightarrow\; \tfrac{3}{2}. \end{aligned}Left half. The singularity is now at the right endpoint, so integrate up to :
\begin{aligned} \int_{-1}^{-\epsilon} x^{-1/3}\,dx &= \left[\tfrac{3}{2}x^{2/3}\right]_{-1}^{-\epsilon} \\ &= \tfrac{3}{2}\epsilon^{2/3} - \tfrac{3}{2} \;\longrightarrow\; -\tfrac{3}{2}. \end{aligned}Both halves converge, so the original integral converges and
Why the caution matters. The integrand is odd and the answer is , but oddness alone proves nothing. Compare , whose integrand is also odd about . There each half diverges, so the whole integral diverges, and no appeal to symmetry can rescue it: the definition requires each half to be finite on its own before the two are added, and and are not allowed to cancel. The difference between the two problems is the exponent. With exponent , each half of genuinely converges, so adding them is legitimate and the symmetry is real. With exponent , neither half of converges, so there is nothing to add.
Evaluate , or show it diverges.
Answer
Diverges.
Solution
Write . On the denominator is positive and continuous, but as , so . The singularity is at the right endpoint, so we integrate up to .
An antiderivative of is , valid wherever :
\begin{aligned} \int_0^{\pi/2-\epsilon}\tan x\,dx &= \bigl[-\ln(\cos x)\bigr]_0^{\pi/2-\epsilon} \\ &= -\ln\!\left(\cos\!\left(\tfrac{\pi}{2}-\epsilon\right)\right) + \ln(\cos 0) \\ &= -\ln(\sin\epsilon) + \ln 1 \\ &= -\ln(\sin\epsilon). \end{aligned}Here we used the identity .
As we have , so and therefore . The limit is infinite, so the integral diverges.
This is unsurprising once you see the shape of the blow-up: near we have , so behaves like , the reciprocal of the distance to the bad point. That is the same shape as near the origin, which the first exercise of this set showed to be divergent.
Show that converges and find its value.
Answer
Solution
Near both factors misbehave: and , so the integrand tends to . The singularity is at the left endpoint , so we integrate from to and let .
Integrate by parts with and , so and :
\begin{aligned} \int_\epsilon^1 \frac{\ln x}{\sqrt{x}}\,dx &= \bigl[2\sqrt{x}\,\ln x\bigr]_\epsilon^1 - \int_\epsilon^1 2\sqrt{x}\cdot\frac{dx}{x} \\ &= \left(2\ln 1 - 2\sqrt{\epsilon}\,\ln\epsilon\right) - 2\int_\epsilon^1 x^{-1/2}\,dx \\ &= -2\sqrt{\epsilon}\,\ln\epsilon - 2\bigl[2\sqrt{x}\bigr]_\epsilon^1 \\ &= -2\sqrt{\epsilon}\,\ln\epsilon - 4 + 4\sqrt{\epsilon}. \end{aligned}Two of the three terms are easy: and the constant stays. For the first term, apply L'Hôpital's rule to the indeterminate product:
Therefore:
The value is negative because throughout , so the whole region lies below the -axis. The factor makes the region deeper than in the earlier example , but not so deep that the area becomes infinite.
Evaluate , or show it diverges.
Answer
Diverges.
Solution
The trap here is that nothing in the expression looks undefined until you notice that . So the denominator vanishes at , the left endpoint, and the integrand tends to as . This is a Type II integral with a singular left endpoint, so we integrate from .
Substitute , so . When , ; when , :
\begin{aligned} \int_{1+\epsilon}^2 \frac{dx}{x\ln x} &= \int_{\ln(1+\epsilon)}^{\ln 2} \frac{du}{u} \\ &= \bigl[\ln u\bigr]_{\ln(1+\epsilon)}^{\ln 2} \\ &= \ln(\ln 2) - \ln\!\bigl(\ln(1+\epsilon)\bigr). \end{aligned}The first term is a finite constant, . For the second, as we have , so and its negative tends to . Hence:
and the integral diverges. The substitution makes the reason plain: in the variable the integral is , which is the divergent integral of the first exercise of this set with a different upper limit. The substitution moved the singularity to the origin without changing its strength.
A student evaluates
Explain why this computation is invalid, identify the clue that should have raised the alarm, and determine what the integral really does.
Answer
The computation is invalid because has an infinite discontinuity at , which is interior to . The clue is the sign: , so no correct answer can be negative. The integral diverges.
Solution
Why the computation is invalid. The Fundamental Theorem of Calculus states that when is continuous on and F'=f there. The integrand is not even defined at , and lies inside . So is not an antiderivative on the whole interval, and the subtraction has no meaning as an integral.
The clue. Since for every , the integrand is strictly positive everywhere it is defined. A positive integrand cannot produce a negative answer, so the value is impossible on its face. Any time a nonnegative integrand yields a negative number, look for a singularity you stepped over.
What really happens. Split at the singularity:
For the right piece the singularity is at the left endpoint, so integrate from :
\begin{aligned} \int_\epsilon^{2} x^{-4}\,dx &= \left[-\frac{1}{3x^{3}}\right]_\epsilon^{2} \\ &= -\frac{1}{24} + \frac{1}{3\epsilon^{3}}. \end{aligned}As , the term , so this piece diverges. That alone settles the question: the whole integral diverges. (The left piece diverges too, since .)
The exponent alone predicts the outcome. Integrating up from produces a term in , and any power with produces a term in with a negative exponent, which blows up as . Here , so divergence was certain before a single antiderivative was written down.