Skip to content
Family Table Math
Auto

Improper Integrals

Can a region that goes on forever have a finite area? Surprisingly, yes. The region under y=1x2y = \dfrac{1}{x^2} from x=1x = 1 out to infinity has area exactly 11. An improper integral is an integral where the interval is infinite or the function blows up to infinity somewhere in it. You handle it by computing an ordinary integral and then taking a limit. Improper integrals are BC-only, and they lead straight into the integral test and p-series for infinite series.

Replace ∞\infty with a letter, integrate, then let the letter go to infinity:

∫a∞f(x) dx=lim⁡b→∞∫abf(x) dx\int_a^\infty f(x)\,dx = \lim_{b \to \infty} \int_a^b f(x)\,dx

If the limit is a finite number, the integral converges to that number. If the limit is infinite or doesn’t exist, the integral diverges. Likewise, ∫−∞bf(x) dx=lim⁡a→−∞∫abf(x) dx\displaystyle\int_{-\infty}^{b} f(x)\,dx = \lim_{a \to -\infty} \int_a^b f(x)\,dx.

For ∫−∞∞\displaystyle\int_{-\infty}^{\infty}, split at any convenient point, for example 00. The whole integral converges only if both halves converge.

If ff has a vertical asymptote at an endpoint, approach that endpoint with a one-sided limit. For an asymptote at x=ax = a:

∫abf(x) dx=lim⁡t→a+∫tbf(x) dx\int_a^b f(x)\,dx = \lim_{t \to a^+} \int_t^b f(x)\,dx

If the asymptote is inside the interval, at x=cx = c with a<c<ba \lt c \lt b, split there:

∫abf(x) dx=∫acf(x) dx+∫cbf(x) dx\int_a^b f(x)\,dx = \int_a^c f(x)\,dx + \int_c^b f(x)\,dx

and both pieces must converge. These are easy to miss, because the integral looks ordinary. Always check the integrand for zeros in a denominator (or logs of 00) before using the Fundamental Theorem.

On the AP exam, you must show the limit. Writing [−1x]1∞\Big[-\tfrac{1}{x}\Big]_1^\infty and “plugging in ∞\infty” loses the point. Write lim⁡b→∞[−1x]1b\displaystyle\lim_{b \to \infty}\Big[-\tfrac{1}{x}\Big]_1^b instead. Limits you’ll use often: lim⁡b→∞1bn=0\displaystyle\lim_{b \to \infty} \frac{1}{b^n} = 0 for n>0n \gt 0, lim⁡b→∞e−b=0\displaystyle\lim_{b \to \infty} e^{-b} = 0, lim⁡b→∞ln⁡b=∞\displaystyle\lim_{b \to \infty} \ln b = \infty, and lim⁡b→∞arctan⁡b=π2\displaystyle\lim_{b \to \infty} \arctan b = \frac{\pi}{2}. Sometimes you’ll need L’Hôpital’s rule.

For p≠1p \ne 1, ∫1bx−p dx=b1−p−11−p\displaystyle\int_1^b x^{-p}\,dx = \frac{b^{1 - p} - 1}{1 - p}. As b→∞b \to \infty, b1−pb^{1 - p} goes to 00 if p>1p \gt 1 and to ∞\infty if p<1p \lt 1. For p=1p = 1 you get ln⁡b→∞\ln b \to \infty. So:

∫1∞1xp dx  {converges to 1p−1if p>1divergesif p≤1\int_1^\infty \frac{1}{x^p}\,dx \;\begin{cases} \text{converges to } \dfrac{1}{p - 1} & \text{if } p \gt 1 \\[2mm] \text{diverges} & \text{if } p \le 1 \end{cases}

This is the integral behind the p-series test.

Two graphs side by side. Left: y = 1 over x squared, shaded from x = 1 to the right edge; the curve drops quickly toward the x-axis and the total area is 1. Right: y = 1 over x, shaded the same way; it drops more slowly and the total area is infinite. y = 1/x²: area 1 (1, 1) shading continues → y = 1/x: area diverges (1, 1) shading continues → 1 2 3 4 5 1 2 1 2 3 4 5 1 2
The curves look alike, but ∫1∞1x2 dx=1\int_1^\infty \frac{1}{x^2}\,dx = 1 while ∫1∞1x dx\int_1^\infty \frac{1}{x}\,dx diverges.

Determine whether each integral converges. If it does, find its value. (a) ∫1∞1x2 dx\displaystyle\int_1^\infty \frac{1}{x^2}\,dx (b) ∫1∞1x dx\displaystyle\int_1^\infty \frac{1}{x}\,dx

Solution.

(a)

∫1∞1x2 dx=lim⁡b→∞[−1x]1b=lim⁡b→∞(−1b+1)=1\int_1^\infty \frac{1}{x^2}\,dx = \lim_{b \to \infty} \Big[-\frac{1}{x}\Big]_1^b = \lim_{b \to \infty}\left(-\frac{1}{b} + 1\right) = 1

The integral converges to 11.

(b)

∫1∞1x dx=lim⁡b→∞[ln⁡x]1b=lim⁡b→∞ln⁡b=∞\int_1^\infty \frac{1}{x}\,dx = \lim_{b \to \infty} \Big[\ln x\Big]_1^b = \lim_{b \to \infty} \ln b = \infty

The integral diverges. Both curves approach the xx-axis, but 1x\dfrac{1}{x} does so too slowly.

Example 2: An infinite interval with substitution

Section titled “Example 2: An infinite interval with substitution”

Evaluate ∫0∞xe−x2 dx\displaystyle\int_0^\infty x e^{-x^2}\,dx.

Solution. First find the antiderivative with u=−x2u = -x^2, du=−2x dxdu = -2x\,dx: ∫xe−x2 dx=−12e−x2+C\displaystyle\int x e^{-x^2}\,dx = -\tfrac{1}{2}e^{-x^2} + C.

∫0∞xe−x2 dx=lim⁡b→∞[−12e−x2]0b=lim⁡b→∞(−12e−b2+12)=12\int_0^\infty x e^{-x^2}\,dx = \lim_{b \to \infty}\Big[-\tfrac{1}{2}e^{-x^2}\Big]_0^b = \lim_{b \to \infty}\left(-\tfrac{1}{2}e^{-b^2} + \tfrac{1}{2}\right) = \frac{1}{2}

The integral converges to 12\tfrac{1}{2}.

Example 3: A vertical asymptote at an endpoint

Section titled “Example 3: A vertical asymptote at an endpoint”

Evaluate ∫041x dx\displaystyle\int_0^4 \frac{1}{\sqrt{x}}\,dx.

Solution. The integrand is undefined at x=0x = 0 and goes to ∞\infty as x→0+x \to 0^+, so this is improper.

∫04x−1/2 dx=lim⁡t→0+[2x]t4=lim⁡t→0+(4−2t)=4\int_0^4 x^{-1/2}\,dx = \lim_{t \to 0^+} \Big[2\sqrt{x}\Big]_t^4 = \lim_{t \to 0^+} \left(4 - 2\sqrt{t}\right) = 4

It converges to 44, even though the region is infinitely tall.

Graph of y = 1 over root x for x greater than 0. The curve shoots up along the y-axis, a vertical asymptote. The region under it from x = 0 to x = 4, ending at the point (4, 1/2), is shaded and has area 4. (4, 1/2) y = 1/√x area = 4 1 2 3 4 1 2 3 4
The region under y=1xy = \frac{1}{\sqrt{x}} from 00 to 44 is infinitely tall but has finite area 44.

Example 4: A hidden asymptote in the middle

Section titled “Example 4: A hidden asymptote in the middle”

Evaluate ∫−121x2 dx\displaystyle\int_{-1}^{2} \frac{1}{x^2}\,dx, or show it diverges.

Solution. The integrand has a vertical asymptote at x=0x = 0, inside the interval. Split there:

∫−121x2 dx=∫−101x2 dx+∫021x2 dx\int_{-1}^{2} \frac{1}{x^2}\,dx = \int_{-1}^{0} \frac{1}{x^2}\,dx + \int_{0}^{2} \frac{1}{x^2}\,dx

Check the right piece:

∫021x2 dx=lim⁡t→0+[−1x]t2=lim⁡t→0+(−12+1t)=∞\int_0^2 \frac{1}{x^2}\,dx = \lim_{t \to 0^+}\Big[-\frac{1}{x}\Big]_t^2 = \lim_{t \to 0^+}\left(-\frac{1}{2} + \frac{1}{t}\right) = \infty

One piece diverges, so the whole integral diverges. (You don’t need to check the other piece.)

Notice what goes wrong if you ignore the asymptote: [−1x]−12=−12−1=−32\Big[-\tfrac{1}{x}\Big]_{-1}^{2} = -\tfrac{1}{2} - 1 = -\tfrac{3}{2}. A negative answer for the integral of a positive function is a sure sign something broke.

Plugging in infinity. Write the limit. "−1∞=0-\tfrac{1}{\infty} = 0" is not acceptable work on the AP exam; lim⁡b→∞(−1b)=0\displaystyle\lim_{b \to \infty}\left(-\tfrac{1}{b}\right) = 0 is.

Missing an interior asymptote. Before evaluating any definite integral, check whether the integrand is undefined somewhere between the limits. If it is, split the integral there and use limits.

Thinking “the function goes to 0, so the integral converges”. 1x→0\dfrac{1}{x} \to 0, but ∫1∞1x dx\displaystyle\int_1^\infty \frac{1}{x}\,dx diverges. The function has to shrink fast enough.

Getting the p-integral rule backwards. ∫1∞1xp dx\displaystyle\int_1^\infty \frac{1}{x^p}\,dx converges for p>1p \gt 1 (and diverges for p≤1p \le 1, including p=1p = 1). Remember the two key cases: 1x2\dfrac{1}{x^2} converges, 1x\dfrac{1}{x} diverges.

Letting two infinities cancel. For ∫−∞∞\displaystyle\int_{-\infty}^{\infty} or an interior asymptote, each piece must converge on its own. If one piece is ∞\infty, the integral diverges; don’t argue that ∞−∞=0\infty - \infty = 0.

1. (Warm-up) Evaluate ∫1∞1x3 dx\displaystyle\int_1^\infty \frac{1}{x^3}\,dx.

Solutionlim⁡b→∞[−12x2]1b=lim⁡b→∞(−12b2+12)=12\lim_{b \to \infty}\Big[-\frac{1}{2x^2}\Big]_1^b = \lim_{b \to \infty}\left(-\frac{1}{2b^2} + \frac{1}{2}\right) = \frac{1}{2}

Converges to 12\tfrac{1}{2}, matching 1p−1\dfrac{1}{p - 1} with p=3p = 3.

2. (Warm-up) A medicine enters the bloodstream at a rate of r(t)=40e−0.5tr(t) = 40e^{-0.5t} milligrams per hour, where tt is in hours. Find the total amount that ever enters the bloodstream, ∫0∞r(t) dt\displaystyle\int_0^\infty r(t)\,dt.

Solution∫0∞40e−0.5t dt=lim⁡b→∞[−80e−0.5t]0b=lim⁡b→∞(−80e−0.5b+80)=80\int_0^\infty 40e^{-0.5t}\,dt = \lim_{b \to \infty}\Big[-80e^{-0.5t}\Big]_0^b = \lim_{b \to \infty}\left(-80e^{-0.5b} + 80\right) = 80

A total of 8080 mg.

3. (Warm-up) Evaluate ∫011x3 dx\displaystyle\int_0^1 \frac{1}{\sqrt[3]{x}}\,dx.

Solution

There’s an asymptote at x=0x = 0.

∫01x−1/3 dx=lim⁡t→0+[32x2/3]t1=lim⁡t→0+(32−32t2/3)=32\int_0^1 x^{-1/3}\,dx = \lim_{t \to 0^+}\Big[\tfrac{3}{2}x^{2/3}\Big]_t^1 = \lim_{t \to 0^+}\left(\tfrac{3}{2} - \tfrac{3}{2}t^{2/3}\right) = \frac{3}{2}

4. (Core) Show that ∫1∞1x dx\displaystyle\int_1^\infty \frac{1}{\sqrt{x}}\,dx diverges.

Solution∫1∞x−1/2 dx=lim⁡b→∞[2x]1b=lim⁡b→∞(2b−2)=∞\int_1^\infty x^{-1/2}\,dx = \lim_{b \to \infty}\Big[2\sqrt{x}\Big]_1^b = \lim_{b \to \infty}\left(2\sqrt{b} - 2\right) = \infty

The limit is infinite, so the integral diverges. (This is a p-integral with p=12≤1p = \tfrac{1}{2} \le 1.)

5. (Core) Evaluate ∫0∞11+x2 dx\displaystyle\int_0^\infty \frac{1}{1 + x^2}\,dx.

Solutionlim⁡b→∞[arctan⁡x]0b=lim⁡b→∞arctan⁡b−0=π2\lim_{b \to \infty}\Big[\arctan x\Big]_0^b = \lim_{b \to \infty}\arctan b - 0 = \frac{\pi}{2}

6. (Core) Evaluate ∫e∞1x(ln⁡x)2 dx\displaystyle\int_e^\infty \frac{1}{x(\ln x)^2}\,dx.

Solution

Substitute u=ln⁡xu = \ln x, du=1x dxdu = \tfrac{1}{x}\,dx: the antiderivative is −1ln⁡x-\dfrac{1}{\ln x}.

lim⁡b→∞[−1ln⁡x]eb=lim⁡b→∞(−1ln⁡b+1ln⁡e)=0+1=1\lim_{b \to \infty}\Big[-\frac{1}{\ln x}\Big]_e^b = \lim_{b \to \infty}\left(-\frac{1}{\ln b} + \frac{1}{\ln e}\right) = 0 + 1 = 1

7. (Core) Evaluate ∫2∞1x2−1 dx\displaystyle\int_2^\infty \frac{1}{x^2 - 1}\,dx.

Solution

Use partial fractions: 1(x−1)(x+1)=1/2x−1−1/2x+1\dfrac{1}{(x - 1)(x + 1)} = \dfrac{1/2}{x - 1} - \dfrac{1/2}{x + 1}, so an antiderivative is 12ln⁡∣x−1x+1∣\tfrac{1}{2}\ln\left|\dfrac{x - 1}{x + 1}\right|.

lim⁡b→∞12[ln⁡x−1x+1]2b=12(lim⁡b→∞ln⁡b−1b+1−ln⁡13)=12(ln⁡1+ln⁡3)=12ln⁡3\lim_{b \to \infty}\frac{1}{2}\Big[\ln\frac{x - 1}{x + 1}\Big]_2^b = \frac{1}{2}\left(\lim_{b \to \infty}\ln\frac{b - 1}{b + 1} - \ln\frac{1}{3}\right) = \frac{1}{2}\left(\ln 1 + \ln 3\right) = \frac{1}{2}\ln 3

since b−1b+1→1\dfrac{b - 1}{b + 1} \to 1. The value is 12ln⁡3≈0.549\tfrac{1}{2}\ln 3 \approx 0.549.

8. (Challenge) Evaluate ∫031(x−1)2/3 dx\displaystyle\int_0^3 \frac{1}{(x - 1)^{2/3}}\,dx, or show it diverges.

Solution

There’s an asymptote at x=1x = 1, inside the interval, so split. An antiderivative is 3(x−1)1/33(x - 1)^{1/3}.

∫01(x−1)−2/3 dx=lim⁡t→1−[3(x−1)1/3]0t=0−3(−1)=3\int_0^1 (x - 1)^{-2/3}\,dx = \lim_{t \to 1^-}\Big[3(x - 1)^{1/3}\Big]_0^t = 0 - 3(-1) = 3∫13(x−1)−2/3 dx=lim⁡s→1+[3(x−1)1/3]s3=323−0=323\int_1^3 (x - 1)^{-2/3}\,dx = \lim_{s \to 1^+}\Big[3(x - 1)^{1/3}\Big]_s^3 = 3\sqrt[3]{2} - 0 = 3\sqrt[3]{2}

Both pieces converge, so the integral converges to 3+323≈6.7803 + 3\sqrt[3]{2} \approx 6.780.

9. (Challenge) Evaluate ∫0∞xe−x dx\displaystyle\int_0^\infty x e^{-x}\,dx.

Solution

By integration by parts (u=xu = x, dv=e−x dxdv = e^{-x}\,dx), an antiderivative is −xe−x−e−x-x e^{-x} - e^{-x}.

lim⁡b→∞[−xe−x−e−x]0b=lim⁡b→∞(−beb−1eb)−(0−1)\lim_{b \to \infty}\Big[-x e^{-x} - e^{-x}\Big]_0^b = \lim_{b \to \infty}\left(-\frac{b}{e^b} - \frac{1}{e^b}\right) - (0 - 1)

The limit lim⁡b→∞beb\displaystyle\lim_{b \to \infty} \frac{b}{e^b} has the form ∞∞\dfrac{\infty}{\infty}; by L’Hôpital’s rule it equals lim⁡b→∞1eb=0\displaystyle\lim_{b \to \infty} \frac{1}{e^b} = 0. So the integral converges to 0−0+1=10 - 0 + 1 = 1.

Try these independently after the practice questions. Show your setup and explain your reasoning. Use exact answers where possible, and check that your answers fit the question. Homework solutions are not provided on the published site.

Write every improper integral as a limit before you evaluate it, and say clearly whether it converges or diverges.

H1. (Foundations) Rewrite each integral as a limit, then evaluate it.

  • (a) ∫0∞e−2x dx\displaystyle\int_0^\infty e^{-2x}\,dx
  • (b) ∫1∞1x4 dx\displaystyle\int_1^\infty \frac{1}{x^4}\,dx

H2. (Foundations) Each integrand has a vertical asymptote at x=0x = 0.

  • (a) Evaluate ∫011x dx\displaystyle\int_0^1 \frac{1}{\sqrt{x}}\,dx.
  • (b) Show that ∫011x2 dx\displaystyle\int_0^1 \frac{1}{x^2}\,dx diverges.

H3. (Core) Use the p-integral rule to decide whether each integral converges. Give the value of each one that converges.

  • (a) ∫1∞1x6 dx\displaystyle\int_1^\infty \frac{1}{x^6}\,dx
  • (b) ∫1∞1x0.99 dx\displaystyle\int_1^\infty \frac{1}{x^{0.99}}\,dx
  • (c) ∫1∞1xx dx\displaystyle\int_1^\infty \frac{1}{x\sqrt{x}}\,dx
  • (d) ∫1∞5x dx\displaystyle\int_1^\infty \frac{5}{x}\,dx

Then check your answer to (d) by writing it as a limit and evaluating.

H4. (Core) (AP style) Consider ∫−111x2/3 dx\displaystyle\int_{-1}^{1} \frac{1}{x^{2/3}}\,dx.

  • (a) Explain why this is an improper integral, even though both limits of integration are finite.
  • (b) Write the integral as a sum of limits and determine whether it converges. If it does, find its value.

H5. (Core) (AP style) Evaluate ∫0∞xe−2x dx\displaystyle\int_0^\infty x e^{-2x}\,dx. Use integration by parts, write the integral as a limit, and justify any limit you evaluate.

H6. (Core) A hypothetical water tank in a cottage starts with 400400 L of water. A crack lets water leak out at a rate of r(t)=12e−0.04tr(t) = 12e^{-0.04t} litres per minute, where tt is in minutes, and the crack slowly seals itself so the rate keeps decreasing.

  • (a) How much water leaks out in the first 6060 minutes? Give an exact answer and a decimal to one decimal place.
  • (b) Find ∫0∞r(t) dt\displaystyle\int_0^\infty r(t)\,dt, writing it as a limit. What does this number mean in context?
  • (c) Will the tank ever run completely dry? Explain using your answer to (b).

H7. (Challenge) Jordan writes:

∫031(x−1)2 dx=[−1x−1]03=−12−1=−32\int_{0}^{3} \frac{1}{(x - 1)^2}\,dx = \Big[-\frac{1}{x - 1}\Big]_{0}^{3} = -\frac{1}{2} - 1 = -\frac{3}{2}
  • (a) Without doing any calculation, explain why −32-\dfrac{3}{2} cannot be right.
  • (b) Identify Jordan’s mistake.
  • (c) Find the correct conclusion, showing the limit work.

H8. (Challenge) Assume p>0p \gt 0.

  • (a) Find the value of pp for which ∫1∞1xp dx=4\displaystyle\int_1^\infty \frac{1}{x^p}\,dx = 4.
  • (b) For which values of pp does ∫011xp dx\displaystyle\int_0^1 \frac{1}{x^p}\,dx converge? For those values, find the value of the integral in terms of pp.
  • (c) Explain why there is no value of pp for which ∫0∞1xp dx\displaystyle\int_0^\infty \frac{1}{x^p}\,dx converges.

H9. (Challenge) Sam says: “The function x1+x2\dfrac{x}{1 + x^2} is odd, so its graph is symmetric about the origin. The areas on the left and right cancel, so ∫−∞∞x1+x2 dx=0\displaystyle\int_{-\infty}^{\infty} \frac{x}{1 + x^2}\,dx = 0.”

  • (a) Split the integral at 00 and evaluate ∫0∞x1+x2 dx\displaystyle\int_0^\infty \frac{x}{1 + x^2}\,dx as a limit. Is Sam right?
  • (b) Now evaluate ∫−∞∞x(1+x2)2 dx\displaystyle\int_{-\infty}^{\infty} \frac{x}{(1 + x^2)^2}\,dx by splitting at 00. Here the answer really is 00. Explain what is different from part (a).

H10. (Challenge) Consider ∫01ln⁡x dx\displaystyle\int_0^1 \ln x\,dx.

  • (a) Explain why this integral is improper.
  • (b) Evaluate it. You will need integration by parts, and L’Hôpital’s rule for one limit.
  • (c) Your answer should be negative. Explain why that makes sense here (unlike Jordan’s answer in H7).