Improper Integrals

In AB, every definite integral \(\int_a^b f(x)\,dx\) lived on a finite interval and stayed finite. An improper integral breaks one of those rules: either a bound is \(\pm\infty\), or \(f(x)\) blows up to a vertical asymptote somewhere on \([a,b]\).

By the end you can

Type 1: Infinite bounds

You cannot plug \(\infty\) into an antiderivative—infinity isn't a number. Instead, stop at a finite number \(b\), compute the ordinary integral, and take the limit as \(b \to \infty\).

Type 1 definitions
\[ \int_a^\infty f(x)\,dx = \lim_{b\to\infty} \int_a^b f(x)\,dx \] \[ \int_{-\infty}^b f(x)\,dx = \lim_{a\to-\infty} \int_a^b f(x)\,dx \]

If the limit exists and is a finite number, the integral converges to that value. If the limit is \(\pm\infty\) or does not exist, the integral diverges.

Example 1 · Two cousins, opposite fates

Evaluate \(\displaystyle\int_1^\infty \frac{1}{x^2}\,dx\) and \(\displaystyle\int_1^\infty \frac{1}{x}\,dx\).

  1. First integral: replace \(\infty\) with \(b\) and take a limit: \[ \int_1^\infty 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 \] An infinitely long region has a finite area of 1! The curve \(1/x^2\) drops fast enough.
  2. Second integral: \[ \int_1^\infty \frac{1}{x}\,dx = \lim_{b\to\infty}\Big[\ln x\Big]_1^b = \lim_{b\to\infty}(\ln b - 0) = \infty \] Even though \(1/x \to 0\), it shrinks too slowly. The area grows forever (slowly), so it diverges.
\(\int_1^\infty \tfrac{1}{x^2}\,dx = 1\) (converges); \(\int_1^\infty \tfrac{1}{x}\,dx\) diverges.
See it: \(1/x\) vs \(1/x^2\) from \(1\) to \(b\)

Drag \(b\) right. The area under \(1/x^2\) hits a ceiling at \(1\), while the area under \(1/x\) keeps climbing.

Both bounds infinite: \(-\infty\) to \(\infty\)

Split the integral at any convenient number \(c\) (usually \(0\)) and use two separate limits:

\[ \int_{-\infty}^\infty f(x)\,dx = \lim_{a\to-\infty}\int_a^0 f(x)\,dx + \lim_{b\to\infty}\int_0^b f(x)\,dx \]

The whole integral converges only if both halves converge. If either half diverges, the whole integral diverges—you can't cancel \(-\infty + \infty\).

Example 2 · Inverse tangent

Evaluate \(\displaystyle\int_0^\infty \frac{1}{1+x^2}\,dx\).

  1. Rewrite as a limit: \(\displaystyle\lim_{b\to\infty}\int_0^b \frac{1}{1+x^2}\,dx = \lim_{b\to\infty}\Big[\arctan x\Big]_0^b\).
  2. Evaluate: \(\displaystyle\lim_{b\to\infty}(\arctan b - \arctan 0) = \frac{\pi}{2} - 0\). Recall the horizontal asymptote of \(y = \arctan x\): as \(b \to \infty\), \(\arctan b \to \tfrac{\pi}{2}\).
\(\dfrac{\pi}{2}\) (converges)
Example 3 · Parts + L'Hôpital

Evaluate \(\displaystyle\int_0^\infty x e^{-x}\,dx\).

  1. Rewrite with a limit: \(\displaystyle\lim_{b\to\infty}\int_0^b x e^{-x}\,dx\).
  2. Use integration by parts (\(u=x,\; dv=e^{-x}dx\)): antiderivative is \(-xe^{-x} - e^{-x}\).
  3. Plug in \(0\) and \(b\): \[ \lim_{b\to\infty}\Big[(-be^{-b} - e^{-b}) - (0 - 1)\Big] = \lim_{b\to\infty}\left(-\frac{b}{e^b} - \frac{1}{e^b} + 1\right) \]
  4. Use L'Hôpital's rule on \(\frac{b}{e^b}\) (form \(\frac{\infty}{\infty}\)): \(\lim_{b\to\infty}\frac{1}{e^b} = 0\). So the limit is \(0 - 0 + 1 = 1\).
\(1\) (converges)

Type 2: Vertical asymptotes

Even with finite bounds like \(\int_0^3\), an integral is improper if the integrand has a vertical asymptote at an endpoint or anywhere inside the interval. Approach the trouble spot with a one-sided limit.

Example 4 · Asymptote at an endpoint

Evaluate \(\displaystyle\int_0^3 \frac{1}{\sqrt{3-x}}\,dx\).

  1. Spot the trouble: at \(x = 3\), we divide by \(0\). Replace the upper bound \(3\) with \(b \to 3^-\) (approaching 3 from inside \([0,3]\)).
  2. Integrate (\(u = 3-x,\; du = -dx\)): antiderivative is \(-2\sqrt{3-x}\).
  3. Take the limit: \[ \lim_{b\to 3^-}\Big[-2\sqrt{3-x}\Big]_0^b = \lim_{b\to 3^-}\Big(-2\sqrt{3-b} + 2\sqrt{3}\Big) = 2\sqrt{3} \]
\(2\sqrt{3}\) (converges)
Example 5 · The classic interior-asymptote trap

Evaluate \(\displaystyle\int_{-1}^{1} \frac{1}{x^2}\,dx\).

  1. Don't blindly use FTC! Naive FTC gives \(\big[-\frac1x\big]_{-1}^1 = -1 - 1 = -2\), which is impossible because \(\frac{1}{x^2} > 0\) everywhere!
  2. Spot the asymptote at \(x = 0\), right inside \([-1,1]\). Split at \(0\): \[ \int_{-1}^{1} \frac{1}{x^2}\,dx = \lim_{b\to 0^-}\int_{-1}^{b} \frac{1}{x^2}\,dx + \lim_{a\to 0^+}\int_{a}^{1} \frac{1}{x^2}\,dx \]
  3. Check the right half: \(\displaystyle\lim_{a\to 0^+}\left(-1 + \frac{1}{a}\right) = \infty\).
  4. One half already diverges, so we stop right here: the entire integral diverges.
Diverges
Example 6 · Asymptote at \(x = 0\) with \(\ln x\)

Evaluate \(\displaystyle\int_0^1 \ln x\,dx\).

  1. \(\ln x \to -\infty\) as \(x \to 0^+\), so replace \(0\) with \(a \to 0^+\).
  2. From Integration by Parts, \(\int \ln x\,dx = x\ln x - x\).
  3. Evaluate: \(\displaystyle\lim_{a\to 0^+}\Big[(1\ln 1 - 1) - (a\ln a - a)\Big] = -1 - \lim_{a\to 0^+} a\ln a\).
  4. Rewrite \(a\ln a = \frac{\ln a}{1/a}\) (\(\frac{-\infty}{\infty}\)) and apply L'Hôpital: \(\lim_{a\to 0^+}\frac{1/a}{-1/a^2} = \lim_{a\to 0^+}(-a) = 0\).
\(-1\) (converges)

Evaluate \(\displaystyle\int_{-2}^{2} \frac{1}{x^3}\,dx\).

There is a vertical asymptote at \(x=0\). Splitting gives \(\int_0^2 \frac{1}{x^3}\,dx = \lim_{a\to 0^+}[-\frac{1}{2x^2}]_a^2 = \infty\). Because the right half diverges, the whole integral diverges—odd-function symmetry only applies when the integral actually converges!

The \(p\)-integral rule (memorize this!)

For \(p \ne 1\), \(\int_1^b x^{-p}\,dx = \frac{b^{1-p} - 1}{1-p}\). Look at \(b^{1-p}\) as \(b \to \infty\): it goes to \(0\) when \(1-p < 0\) (i.e., \(p > 1\)), and blows up when \(p < 1\). We already saw \(p = 1\) gives \(\ln b \to \infty\). On \([0,1]\), the exponent flips!

Tail to infinity: \(\displaystyle\int_1^\infty \frac{1}{x^p}\,dx\)

Converges if and only if \(p > 1\).

Needs a big \(p\) to drop fast enough out at \(\infty\).

Pole at zero: \(\displaystyle\int_0^1 \frac{1}{x^p}\,dx\)

Converges if and only if \(p < 1\).

Needs a small \(p\) so the spike at \(0\) isn't too fat.

Notice \(p = 1\) (\(\frac{1}{x}\)) diverges in both places! You will see the \(p > 1\) rule again as the \(p\)-series test in Integral, p-Series & Comparison Tests.

Which of these improper integrals converges?

\(\frac{1}{\sqrt{x}} = \frac{1}{x^{1/2}}\) has \(p = \tfrac12\). On \([0,1]\) we need \(p < 1\), so \(\int_0^1 x^{-1/2}\,dx = [2\sqrt{x}]_0^1 = 2\) converges. On \([1,\infty)\) we need \(p > 1\), so \(\int_1^\infty x^{-1/2}\,dx\) diverges.

Common mistakes

Watch out for these
On the AP exam

Expect 1–2 multiple-choice questions plus occasional FRQ parts (often paired with partial fractions or integration by parts). On FRQs, always write the limit symbol explicitly until you actually take the limit—graders check for proper limit notation.

Practice problems

Warm-up

\(\displaystyle\int_2^\infty \frac{1}{x^3}\,dx\)

Hint

Replace \(\infty\) with \(b\). Antiderivative of \(x^{-3}\) is \(-\frac{1}{2x^2}\).

Solution
\[ \lim_{b\to\infty}\Big[-\frac{1}{2x^2}\Big]_2^b = \lim_{b\to\infty}\left(-\frac{1}{2b^2} + \frac{1}{8}\right) = \frac{1}{8} \]
\(\dfrac{1}{8}\) (converges)
Warm-up

\(\displaystyle\int_0^\infty e^{-2x}\,dx\)

Hint

Antiderivative is \(-\tfrac12 e^{-2x}\). Remember \(e^0 = 1\), not \(0\)!

Solution
\[ \lim_{b\to\infty}\Big[-\tfrac12 e^{-2x}\Big]_0^b = \lim_{b\to\infty}\left(-\tfrac12 e^{-2b} + \tfrac12\right) = \tfrac12 \]
\(\dfrac{1}{2}\) (converges)
Medium

\(\displaystyle\int_0^4 \frac{1}{(x-4)^2}\,dx\)

Hint

Asymptote at \(x=4\). Replace \(4\) with \(b \to 4^-\).

Solution
\[ \lim_{b\to 4^-}\Big[-\frac{1}{x-4}\Big]_0^b = \lim_{b\to 4^-}\left(-\frac{1}{b-4} - \frac{1}{4}\right) = \infty \]
Diverges
Medium

\(\displaystyle\int_0^2 \frac{1}{\sqrt[3]{x-1}}\,dx\)

Hint

Asymptote at \(x = 1\) inside \([0,2]\)! Split at \(1\) into two limits. Watch the \(p\)-value (\(\tfrac13 < 1\)).

Solution

Split at \(x = 1\): antiderivative is \(\tfrac32 (x-1)^{2/3}\).

Left half: \(\lim_{b\to 1^-}\tfrac32\big((b-1)^{2/3} - (-1)^{2/3}\big) = 0 - \tfrac32 = -\tfrac32\).

Right half: \(\lim_{a\to 1^+}\tfrac32\big((1)^{2/3} - (a-1)^{2/3}\big) = \tfrac32 - 0 = \tfrac32\).

Both halves converge! Total: \(-\tfrac32 + \tfrac32 = 0\).

\(0\) (converges)
Challenge

\(\displaystyle\int_e^\infty \frac{1}{x(\ln x)^2}\,dx\)

Hint

Use \(u = \ln x\), \(du = \frac1x\,dx\). When \(x = e\), \(u = 1\); as \(x \to \infty\), \(u \to \infty\).

Solution
\[ \lim_{b\to\infty}\int_e^b \frac{1}{x(\ln x)^2}\,dx = \lim_{b\to\infty}\Big[-\frac{1}{\ln x}\Big]_e^b = \lim_{b\to\infty}\left(-\frac{1}{\ln b} + \frac{1}{1}\right) = 1 \]
\(1\) (converges)
AP-style

Evaluate \(\displaystyle\int_1^\infty \frac{1}{x^2+x}\,dx\), showing proper limit notation.

Hint

Use partial fractions: \(\frac{1}{x(x+1)} = \frac{1}{x} - \frac{1}{x+1}\). Combine the two logs into one BEFORE taking \(b \to \infty\)!

Solution
\[ \lim_{b\to\infty}\int_1^b \left(\frac{1}{x} - \frac{1}{x+1}\right)dx = \lim_{b\to\infty}\Big[\ln\frac{x}{x+1}\Big]_1^b \] \[ = \lim_{b\to\infty}\left(\ln\frac{b}{b+1} - \ln\frac{1}{2}\right) = \ln(1) - (-\ln 2) = \ln 2 \]

Combining the logs avoids the indeterminate \(\infty - \infty\) form.

\(\ln 2\) (converges)