Improper Integrals and When an Infinite Area Is Finite
How to evaluate integrals over endless intervals or near blow-ups, and how to tell convergence from divergence.
Key takeaways
- Replace every infinite endpoint or blow-up point with a variable, integrate, and then take a limit.
- The integral of 1/xᵖ from 1 to infinity converges exactly when p > 1, while from 0 to 1 it converges exactly when p < 1.
- Each trouble spot needs its own limit; if any one piece diverges, the whole integral diverges.
- Comparison with a known integral can settle convergence without finding an antiderivative.
An infinitely long region can have a finite area if it thins out fast enough. The area under 1/x² to the right of x = 1 is exactly 1, even though the region never ends. The area under 1/x over the same stretch is infinite, although the two curves look much alike.
An improper integral is one over an unbounded interval, or one whose integrand is unbounded. It is defined by taking an ordinary integral on a safe piece and then a limit. If the limit exists and is finite, the integral converges; otherwise it diverges.
Infinite intervals
The Riemann integral is built on a closed, bounded interval, as described in the definition by Riemann sums. To go further, define:
∫ₐ^∞ f(x) dx = limit, as b → ∞, of ∫ₐᵇ f(x) dx For 1/x²:
∫₁ᵇ x⁻² dx = 1 − 1/b
as b → ∞ this approaches 1 For 1/x, the same steps give ln b, which grows without bound. It grows very slowly: when b is a million, ln b is only about 13.8. Slow growth is still growth, so the integral diverges.
For the exponential, the integral of e^(−x) from 0 to b is 1 − e^(−b), which approaches 1.
Why a finite total is possible
Slice the region under 1/x² at x = 1, 2, 4, 8 and so on. The integral from 1 to 2 is 1/2. From 2 to 4 it is 1/4. From 4 to 8 it is 1/8. Each block adds half as much as the one before, and 1/2 + 1/4 + 1/8 + … totals 1.
Now slice 1/x the same way. Every block has area ln 2, about 0.693. The blocks get twice as wide while the curve gets half as high, and the two effects cancel. Adding the same positive amount forever gives no finite total.
This is the same behavior you meet in infinite series. Being endless is no obstacle. What matters is how quickly the contributions shrink.
The p-test
Powers of x provide the yardstick for most other integrals.
| Integral | Converges when | Value |
|---|---|---|
| ∫ from 1 to ∞ of 1/xᵖ | p > 1 | 1/(p − 1) |
| ∫ from 0 to 1 of 1/xᵖ | p < 1 | 1/(1 − p) |
| ∫ from 0 to ∞ of e^(−kx) | k > 0 | 1/k |
The case p = 1 diverges at both ends. Notice that no power gives a convergent integral over the whole range from 0 to infinity: what helps at one end hurts at the other.
Blow-ups at a point
If f is unbounded near an endpoint, approach that endpoint through a limit. For 1/√x on (0, 1]:
∫ from c to 1 of x^(−1/2) dx = 2 − 2√c
as c → 0 from the right this approaches 2 The curve climbs infinitely high near 0, but it narrows quickly enough that the area is 2.
If the blow-up is inside the interval, split there and treat each side separately. For 1/x² from −1 to 1, each side diverges. Applying the antiderivative across the gap would yield −2, a nonsense answer that the fundamental theorem does not authorize, since the function is not continuous on the interval.
This kind of improper integral is easy to miss, because nothing in the notation warns you. Always check where the integrand is undefined before evaluating.
An integral with two kinds of trouble
Consider the integral of 1/(√x (1 + x)) from 0 to infinity. The integrand is unbounded at 0, and the interval is endless. Split at x = 1 and look at each end.
Near 0, the factor 1 + x is close to 1, so the integrand behaves like x^(−1/2), a convergent power. For large x it behaves like x^(−3/2), also convergent at that end. So the whole integral converges.
Here you can also find its value. With u = √x we have x = u² and dx = 2u du.
∫ 2u/(u(1 + u²)) du = 2 arctan u + C
limit at ∞: 2·(π/2) = π
limit at 0: 0
value = π Deciding convergence first and computing second is a good habit. It protects you from reporting a finite number for something that has none.
Near the borderline
Logarithms separate cases that powers cannot. Both integrals below run from 2 to infinity.
∫ dx/(x ln x) = limit of ln(ln b) − ln(ln 2) diverges
∫ dx/(x (ln x)²) = limit of 1/ln 2 − 1/ln b = 1/ln 2 The first diverges extraordinarily slowly. A table of values of ln(ln b) would suggest to almost anyone that it levels off, which is why numerical experiments alone can mislead about convergence.
Both are found with the substitution u = ln x, which turns them into the integrals of 1/u and 1/u².
Cutting off a tail in practice
To compute a convergent integral numerically, you often stop at a large number and bound what you threw away. For e^(−x²) beyond x = 4, note that x/4 ≥ 1 there, so:
tail ≤ ∫ from 4 to ∞ of (x/4) e^(−x²) dx = e^(−16)/8 That is about 1.4 × 10⁻⁸. Integrating from 0 to 4 therefore captures the whole half-line integral to roughly seven decimal places or better.
Two infinite ends
For an integral over the whole line, choose any point, say 0, and require both halves to converge independently.
The function x shows why. Integrating it from −b to b always gives 0. But the half from 0 to infinity diverges, so the integral over the line diverges. Integrating from −b to 2b instead gives 3b²/2, which heads to infinity. The answer would depend on how you let the ends run away.
The symmetric limit has its own name, the Cauchy principal value. It is useful in some branches of analysis and physics, but it is a different object from the ordinary improper integral, and it should be labeled when used.
Testing without evaluating
Often you cannot find an antiderivative, yet you only need to know whether the total is finite.
Direct comparison. Suppose 0 ≤ f(x) ≤ g(x) for all x ≥ a, with both integrable on bounded intervals. If the integral of g converges, so does that of f. If the integral of f diverges, so does that of g.
For example, e^(−x²) ≤ e^(−x) when x ≥ 1. Therefore the tail of e^(−x²) beyond 1 converges, and its value is at most 1/e. This works even though e^(−x²) has no elementary antiderivative.
Limit comparison. For positive functions, if f(x)/g(x) approaches a finite positive number, the two integrals converge or diverge together. So the integral from 1 to infinity of (3x + 1)/(x³ + 5) converges, because for large x the integrand behaves like 3/x².
An exact example of the same type is 1/(x² + x). Splitting it as 1/x − 1/(x + 1) shows that its integral from 1 to infinity equals ln 2. Take care to combine the two logarithms before taking the limit, since each alone diverges.
Oscillating integrands
When the integrand changes sign, cancellation can help. The integral of (sin x)/x from 0 to infinity converges to π/2. Yet the integral of its absolute value diverges, because the humps shrink only like 1/k. Such convergence is called conditional.
If the integral of |f| converges, then the integral of f converges too, which is called absolute convergence and is the safer kind.
One common belief is false: a convergent integral does not force the integrand to approach zero. The integral of sin(x²) from 0 to infinity converges, although the function keeps swinging between −1 and 1. Its oscillations simply become so rapid that successive areas nearly cancel. The converse fails too, as 1/x goes to zero while its integral diverges.
Where improper integrals appear
In probability, a density on an unbounded range must integrate to 1. The exponential distribution with rate λ > 0 has density λe^(−λx) for x ≥ 0, and the table above confirms the total.
In physics, the work needed to move a mass m from distance R to arbitrarily far from a spherical body of mass M is the integral of GMm/r² from R to infinity, which is the finite value GMm/R. That finiteness is why an escape speed exists.
In pure mathematics, the integral of x^(s−1)e^(−x) from 0 to infinity, for s > 0, defines the gamma function, which extends the factorial. And revolving 1/x produces Gabriel's horn, whose volume converges while its surface area does not.
Changing variables in an improper integral
A substitution can turn an endless interval into a finite one without changing the value or the verdict. Putting x = 1/t into the integral of 1/x² from 1 to infinity gives dx = −dt/t², and the limits become 1 and 0. After reversing them, you are left with the integral of the constant 1 from 0 to 1.
Here an improper integral became a completely ordinary one. The trick can also run the other way, so being "improper" often depends on which variable you chose. Make the substitution on a cut-off interval first, then take the limit, and the logic stays sound.
Common mistakes
- Plugging infinity in as though it were a number. Write the limit.
- Subtracting two divergent pieces, as in "infinity minus infinity", and calling the result zero.
- Using comparison on functions that change sign.
- Comparing in the useless direction. Being smaller than a divergent integral tells you nothing.
Ask two questions in turn: where can the integral go wrong, and how fast does the integrand grow or decay there? Matching that rate against a power of x settles most cases.