Improper integrals
In this topic, an ordinary integral is a definite integral like those of the earlier topics. It has a finite interval \([a,b]\), and its integrand is bounded there: the values stay between two numbers. An integral is improper if a bound is \(\infty\) or \(-\infty\). It is also improper if the integrand is unbounded near a point of the interval, for example near a vertical asymptote (topic 1.14). That point can be an end of the interval or lie between the ends. Some books call these two cases type 1 and type 2.
This topic defines an improper integral as a limit of ordinary integrals, decides when the limit exists, and finds its value.
Integrate to a finite bound, then take the limit
The curve y = 1 over x to the p for x from 0 to 10.5, with the numbers 1 to 10 on the x-axis. It passes through the point (1, 1) and falls toward the x-axis, and a slider sets the exponent p, which starts at 2. The region under the curve from x = 1 to an orange edge t is shaded teal. Below, a teal graph plots the area of the region against t, with an orange dot at the current t, on an axis squeezed so that its marks 1, 10, 100 and 10 to the 4th lie closer and closer together and its right end stands for infinity. For p = 2 the graph rises toward a dashed line at height 1. For p = 1 it rises out of the top of the graph.
Figure 1 shows the curve \(y=1/x^p\) for \(p=2\), and the slider under the figure can change \(p\). The shaded region runs from \(x=1\) to the orange edge at \(x=\cy{t}\). For every \(t>1\), the integrand is continuous on \([1,t]\), so the Fundamental Theorem of Calculus, Part 2 (topic 6.7), gives the area of the region:
The lower graph plots this area against \(t\). Its axis is squeezed, so the marks 10, 100 and \(10^4\) lie close together, and the right end stands for \(\infty\). Move the edge to the right. The area grows, but \(\frac{1}{t}\) approaches 0 as \(t\to\infty\) (topic 1.15), so the area approaches 1, the height of the dashed line.
The region under the curve to the right of \(x=1\) has no right end, so no Riemann sum covers it. Its area is defined as the number that the areas up to \(t\) approach, and this number is the value of the improper integral:
In general, let \(f\) be continuous for \(x\ge a\). The integral of \(f\) from \(a\) to \(\infty\) is the limit of its integral from \(a\) to \(t\) as \(t\to\infty\). If the limit exists, the integral converges, and its value is the limit. If not, the integral diverges and has no value. This happens when the areas grow without bound, or when they approach no single number.
Set \(p\) to 1 with the slider. The curve \(y=1/x\) also approaches the axis, but more slowly, and the area up to \(t\) is \(\ln t\). It grows without bound, and the lower graph rises out of view, so \(\int_1^{\infty}\frac{dx}{x}\) diverges. A curve that approaches 0 does not decide convergence. Only the limit of the areas decides it.
If the lower bound is \(-\infty\), the ordinary integral runs from \(s\) to \(b\), and the limit is taken as \(s\to-\infty\). If both ends are improper, split the integral at any number between them, so that each piece has one improper end. Each piece takes its own limit. The integral converges if both pieces converge, and then its value is their sum. Otherwise it diverges. The number chosen for the split does not matter, because a different one moves an ordinary integral from one piece to the other (topic 6.6).
An integrand that is unbounded
The curve y = 1 over the square root of the absolute value of x, for x from −1.25 to 1.25, with the numbers −1 and 1 on the x-axis. It rises without bound on both sides of a dashed vertical asymptote at x = 0. The region under it is shaded teal in two pieces: from −1 to an orange edge t on the left of 0, and from an orange edge s on the right of 0 to 1. Below, a teal graph under each piece plots its area against its edge, and both graphs rise toward dashed lines at height 2. A button changes the curve to y = 1 over x: the left piece turns red below the axis, and its area falls without bound while the area of the right piece rises without bound.
If the integrand is unbounded near the end \(b\), the ordinary integral runs from \(a\) to \(t\). Then \(t\) approaches \(b\) from inside the interval, as \(t\to b^-\). Near the end \(a\), the ordinary integral runs from \(s\) to \(b\), and \(s\) approaches \(a\), as \(s\to a^+\). If the asymptote is at a point \(c\) between \(a\) and \(b\), split the integral at \(c\). Each piece then has the asymptote at one end, and it takes its own one-sided limit.
In Figure 2, the curve \(y=\frac{1}{\sqrt{|x|}}\) has its asymptote at 0, between the bounds of \(\int_{-1}^{1}\frac{dx}{\sqrt{|x|}}\). The left piece ends at the orange edge \(\cy{t}\), and the right piece starts at the orange edge \(\cy{s}\). Under each piece, a lower graph plots its area against its edge, and the numbers under the figure give the two areas and their sum. For the right piece,
As \(s\to0^+\), \(\sqrt{s}\) approaches 0, so the area approaches 2. The curve is symmetric about the \(y\)-axis, so the area of the left piece also approaches 2 (topic 6.6). Both pieces converge, and the integral is \(2+2=4\), although the region is infinitely tall.
Use the button under Figure 2 to change the curve to \(y=\frac{1}{x}\). The left region turns red, because it lies below the axis, so its area counts as negative. The area from \(s\) to 1 is \(-\ln s\), which grows without bound as \(s\to0^+\) (topic 1.14). The area from \(-1\) to \(t\) is \(\ln(-t)\), which falls without bound as \(t\to0^-\). Neither piece converges, so \(\int_{-1}^{1}\frac{dx}{x}\) diverges.
Move both edges toward 0 together. One region is the other after a half-turn about the origin, so their areas cancel, and the sum is 0 at every position. Then move one edge alone. The sum changes, and it can be any number, so the two areas together approach no number. A single letter for both edges hides this, because it keeps them equally far from 0. Each piece needs its own limit, and \(\infty-\infty\) is not a number.
Which powers converge
The curves of Figures 1 and 2 are powers of \(x\) or of \(|x|\), and for a power the exponent decides convergence. For \(p\ne1\), an antiderivative of \(x^{-p}\) is \(\frac{x^{1-p}}{1-p}\), so for \(t>1\)
If \(p>1\), the exponent \(1-p\) is negative, so \(t^{1-p}=\frac{1}{t^{p-1}}\) approaches 0 as \(t\to\infty\), and the integral converges to \(\frac{0-1}{1-p}=\frac{1}{p-1}\). If \(p<1\), the exponent is positive, so \(t^{1-p}\) grows without bound, and the integral diverges. If \(p=1\), the area \(\ln t\) grows without bound too. In Figure 1, move \(p\) down toward 1. The dashed line rises out of view, and for \(p\le1\) no dashed line remains.
Near 0, the same antiderivative gives the area from \(s\) to 1, for \(0<s<1\):
As \(s\to0^+\), \(s^{1-p}\) approaches 0 if \(p<1\), so the integral converges to \(\frac{1}{1-p}\). If \(p>1\), \(s^{1-p}\) grows without bound, and if \(p=1\), the area \(-\ln s\) does too, so the integral diverges. In both results, convergence changes at the exponent 1, the threshold, but near 0 the inequality is reversed. Toward \(\infty\), a power must fall faster than \(\frac{1}{x}\), and near 0 it must rise more slowly than \(\frac{1}{x}\). In Figure 2, \(\frac{1}{\sqrt{|x|}}\) has \(p=\frac12\) and converges, while \(\frac{1}{x}\) has \(p=1\) and diverges.
Another positive bound in place of 1 changes the value but not which powers converge, because the part between that bound and 1 is ordinary. Near an asymptote at \(c\), the substitution \(u=x-c\) or \(u=c-x\) (topic 6.9) turns \(\frac{1}{|x-c|^p}\) into \(\frac{1}{u^p}\), so the result near 0 applies there too. These integrals are often called p-integrals.
Example 1
Identify why an integral is improper
Let \(g(x)=\dfrac{1}{(x-1)^2}\). Decide whether each integral is improper, and give every reason. (a) \(\displaystyle\int_0^3 g(x)\,dx\) (b) \(\displaystyle\int_1^{\infty} g(x)\,dx\) (c) \(\displaystyle\int_2^4 g(x)\,dx\)
Solution
The function \(g\) is continuous at every \(x\) except 1, where its denominator is 0. Near 1, the denominator \((x-1)^2\) is a small positive number, so \(g\) is unbounded. The line \(x=1\) is a vertical asymptote. Each integral needs two tests: whether a bound is infinite, and whether 1 lies in its interval.
(a) The bounds 0 and 3 are finite, but 1 lies between them, so the integral is improper.
(b) The upper bound is \(\infty\), and \(g\) is unbounded near the lower bound 1, so the integral is improper for two reasons.
(c) The interval \([2,4]\) is finite and does not contain 1, so \(g\) is continuous on it, and the integral is ordinary.
Example 2
Replace the improper part with a limit
Write \(\displaystyle\int_0^{10}\frac{dx}{\sqrt[3]{(x-2)^2}}\) as a sum of limits of definite integrals, and find its value.
Solution
The integrand is continuous except at \(x=2\), where its denominator is 0 and its numerator is 1. It is unbounded near 2, which lies between the bounds. Split the integral at 2. The left piece has the asymptote at its upper end, so its upper bound \(t\) approaches 2 from the left. The right piece has the asymptote at its lower end, so its lower bound \(s\) approaches 2 from the right:
On each side of 2, an antiderivative of \((x-2)^{-2/3}\) is \(3\sqrt[3]{x-2}\). It equals \(-3\sqrt[3]{2}\) at 0 and \(3\sqrt[3]{8}=6\) at 10, and it approaches 0 as \(x\) approaches 2:
Both limits exist, so the integral converges, and its value is \(6+3\sqrt[3]{2}\).
Example 3
Decide convergence or divergence
Determine whether \(\displaystyle\int_{-\infty}^{\infty}\frac{x}{1+x^2}\,dx\) converges or diverges.
Solution
The integrand is continuous for every \(x\), and both bounds are infinite, so split the integral at 0. Each piece needs its own limit. The substitution \(u=1+x^2\), with \(du=2x\,dx\) (topic 6.9), gives the antiderivative \(\frac12\ln\left(1+x^2\right)\), with no absolute value because \(1+x^2>0\):
As \(t\to\infty\), \(1+t^2\) grows without bound, and so does its logarithm. The piece from 0 to \(\infty\) diverges, so the integral diverges, whatever the piece from \(-\infty\) to 0 does.
Example 4
Calculate a convergent improper integral
Evaluate \(\displaystyle\int_0^{\infty}\frac{dx}{\sqrt{x}\,(1+x)}\), or show that it diverges.
Solution
The integrand is continuous for \(x>0\), and its denominator approaches 0 as \(x\to0^+\), so it is unbounded near 0. The upper bound is \(\infty\), so the integral has two improper ends. Split it at 1, where neither problem occurs. Each piece takes its own limit.
Substitute \(u=\sqrt{x}\), so that \(du=\frac{dx}{2\sqrt{x}}\) and the integrand becomes \(\frac{2}{1+u^2}\). An antiderivative is \(2\arctan\sqrt{x}\), which equals \(2\cdot\frac{\pi}{4}=\frac{\pi}{2}\) at 1:
As \(s\to0^+\), \(\arctan\sqrt{s}\) approaches 0, so the first piece converges to \(\frac{\pi}{2}\). As \(t\to\infty\), \(\arctan\sqrt{t}\) approaches \(\frac{\pi}{2}\), so the second piece converges to \(\pi-\frac{\pi}{2}=\frac{\pi}{2}\). Both pieces converge, so the value of the integral is \(\frac{\pi}{2}+\frac{\pi}{2}=\pi\).
Example 5
Recognize standard convergence thresholds
Determine whether each integral converges or diverges, and give the value of each one that converges. (a) \(\displaystyle\int_1^{\infty}\frac{dx}{x\sqrt{x}}\) (b) \(\displaystyle\int_4^{5}\frac{dx}{(x-4)\sqrt{x-4}}\)
Solution
Both integrands are powers. In (a), \(x\sqrt{x}=x^{3/2}\), which is continuous and positive for \(x\ge1\), so the only improper end is \(\infty\). Toward \(\infty\), a p-integral converges if \(p>1\). Here \(p=\frac32\), so the integral converges:
In (b), \((x-4)\sqrt{x-4}=(x-4)^{3/2}\), which is 0 at the lower bound 4. The integrand is continuous on the rest of the interval and unbounded near 4. Near an asymptote, a p-integral converges only if \(p<1\). Here \(p=\frac32\), so the integral diverges.
Each example is one of the five skills of topic 6.13 in Which & Why: AP Calculus.