Find a course

Module 4: Improper Integrals and Numerical IntegrationLesson 11 of 1215 min

Improper Integrals

Evaluate integrals over infinite intervals and through vertical asymptotes as limits, use the p-integral test, and decide convergence by comparison.

Step 1 of 14Learn

An infinite region with finite area

Here is a surprise. The region under y = 1/x² from x = 1 all the way to infinity stretches forever, yet its area is exactly 1.

You can't plug ∞ into an antiderivative, so define the integral as a limit. Integrate up to a finite point b, then let b grow:

∫ from 1 to ∞ of 1/x² dx = lim (b → ∞) ∫ from 1 to b of x^(−2) dx = lim (b → ∞) [−1/x] from 1 to b = lim (b → ∞) (1 − 1/b) = 1.

An integral over an infinite interval is called an improper integral. If the limit is a finite number, the integral converges to that number. If the limit is infinite or doesn't exist, it diverges.

Now compare y = 1/x, which looks almost the same:

∫ from 1 to b of 1/x dx = ln b, which grows without bound as b → ∞.

That integral diverges. Both curves approach 0, but 1/x² gets there fast enough for the total area to stay finite, while 1/x doesn't. "The function goes to zero" is not enough; how fast it goes to zero decides the question.

This distinction matters well beyond pure math. The escape velocity of a rocket, the total energy radiated by a decaying signal and the expected value of a probability distribution are all improper integrals. Whether they converge decides whether the physical quantity is finite.

Step 2 of 14Practice · Chart

Area from 1 to b: 1/x² vs. 1/x

Tap the first b where the area under 1/x² reaches 0.9.

Tap the point that answers the question, then press Check.

Area from 1 to b: 1/x² vs. 1/xLine chart with 7 categories: b = 1: ∫ 1/x² = 1 − 1/b 0, ∫ 1/x = ln b 0; 2: ∫ 1/x² = 1 − 1/b 0.5, ∫ 1/x = ln b 0.693; 5: ∫ 1/x² = 1 − 1/b 0.8, ∫ 1/x = ln b 1.61; 10: ∫ 1/x² = 1 − 1/b 0.9, ∫ 1/x = ln b 2.3; 50: ∫ 1/x² = 1 − 1/b 0.98, ∫ 1/x = ln b 3.91; 100: ∫ 1/x² = 1 − 1/b 0.99, ∫ 1/x = ln b 4.61; 1000: ∫ 1/x² = 1 − 1/b 0.999, ∫ 1/x = ln b 6.91.02468b = 12510501001000b (uneven spacing)
Exact values from the antiderivatives.
Area from 1 to b: 1/x² vs. 1/x
b (uneven spacing)∫ 1/x² = 1 − 1/b∫ 1/x = ln b
b = 100
20.50.693
50.81.61
100.92.3
500.983.91
1000.994.61
10000.9996.91

Step 3 of 14Practice · Choose one

What is ∫ from 1 to ∞ of 1/x dx?

Step 4 of 14Learn

p-integrals and infinite discontinuities

The two examples generalize into a rule you'll use constantly, the p-integral test:

∫ from 1 to ∞ of 1/xᵖ dx converges if p > 1 (to 1/(p − 1)) and diverges if p ≤ 1.

So 1/x³ and 1/x1.01 have finite area, while 1/x and 1/√x do not. The value p = 1 is the boundary, and it lands on the divergent side.

Infinite discontinuities. An integral is also improper when the integrand blows up inside or at the edge of the interval. Approach the trouble spot with a limit.

∫ from 0 to 1 of 1/√x dx = lim (t → 0⁺) [2√x] from t to 1 = lim (t → 0⁺) (2 − 2√t) = 2.

Near 0, the p-rule reverses: ∫ from 0 to 1 of 1/xᵖ dx converges if p < 1 and diverges if p ≥ 1. Small powers blow up gently near zero; large powers blow up too violently.

Hidden asymptotes. Watch for discontinuities in the middle of an interval. In ∫ from −1 to 1 of 1/x² dx, the integrand blows up at x = 0. You must split it into ∫ from −1 to 0 plus ∫ from 0 to 1 and take a limit in each. Both pieces diverge, so the whole integral diverges. Naively applying FTC gives −2, a negative answer for a positive integrand, which is the giveaway that something went wrong.

Step 5 of 14Practice · Diagram

The p-integral test: ∫ from 1 to ∞ of 1/xᵖ dx

Tap the borderline case that still diverges.

Tap the shape that answers the question, then press Check.

The p-integral test: ∫ from 1 to ∞ of 1/xᵖ dxScale: 1/√x: diverges, 1/x: diverges (borderline), 1/x²: converges to 1, 1/x³: converges to 1/2.DivergesConverges00.511.522.530.51/√x: diverges11/x: diverges(borderline)21/x²: converges to131/x³: converges to1/2
1/√x: diverges

0.5

1/x: diverges (borderline)

The boundary case: ln b grows without bound, but very slowly.

1/x²: converges to 1

1/(p − 1) = 1.

1/x³: converges to 1/2

3

Step 6 of 14Practice · Sort into groups

Does each improper integral converge or diverge?

Tap an item, then tap its group (or drag it there).

Step 7 of 14Practice · Work it out

Evaluate ∫ from 0 to ∞ of e^(−2x) dx.

Step 8 of 14Learn

Comparison: deciding without integrating

Often you only need to know whether an improper integral converges, and the antiderivative is hard or impossible to find. The comparison test settles it by comparing with an integral you already understand.

Suppose 0 ≤ f(x) ≤ g(x) for x ≥ a.

  • If ∫ g converges, then ∫ f converges too: a smaller positive area is also finite.
  • If ∫ f diverges, then ∫ g diverges too: a bigger area is also infinite.

Example. Does ∫ from 1 to ∞ of e^(−x²) dx converge? There's no elementary antiderivative, but for x ≥ 1, x² ≥ x, so e^(−x²) ≤ e^(−x). Since ∫ from 1 to ∞ of e^(−x) dx converges, so does ours.

Example. Does ∫ from 1 to ∞ of (2 + sin x)/x dx converge? The numerator is always at least 1, so the integrand is at least 1/x, whose integral diverges. Ours diverges too.

The comparison has to point the right way. Knowing f is smaller than a divergent integral tells you nothing; neither does knowing f is bigger than a convergent one.

Doubly infinite integrals. For ∫ from −∞ to ∞, split at any convenient point and require both halves to converge. The bell-curve integral ∫ from −∞ to ∞ of e^(−x²) dx converges by comparison and, through a clever trick using polar coordinates, equals √π.

Step 9 of 14Compare

Using the comparison test

AspectTo prove convergenceTo prove divergence
You needA bigger function whose integral convergesA smaller function whose integral diverges
Inequality0 ≤ f(x) ≤ g(x)0 ≤ g(x) ≤ f(x)
Example1/(x² + 1) ≤ 1/x², which converges(1 + e^(−x))/x ≥ 1/x, which diverges
Useless comparisonf below a divergent functionf above a convergent function

Step 10 of 14Explore

Area under 1/xᵖ from 1 to b

The curve is 1/xᵖ. The readouts show the area from 1 to b for larger and larger b. For p above 1 the areas level off at 1/(p − 1); for p below 1 they keep growing. Slide p slowly across 1 and watch the behavior flip.

00.250.50.751 5101520
Area from 1 to 10
0.9345
Area from 1 to 1,000
1.0511
Area from 1 to 1,000,000
1.0526
Limit 1/(p − 1) if p > 1
1.0526

Step 11 of 14Note

Step 12 of 14Practice · Work it out

Evaluate ∫ from 0 to 8 of x^(−1/3) dx.

Step 13 of 14Practice · True or false

If f(x) → 0 as x → ∞, then ∫ from 1 to ∞ of f(x) dx converges.

Step 14 of 14Practice · Choose one

What does the comparison test say about ∫ from 1 to ∞ of (2 + sin x)/x dx?