∫Yoboa Math
Home / Guides / Improper Integrals

Improper Integrals

An integral is improper when a limit of integration is infinite or the integrand blows up somewhere on the interval. You handle both cases the same way: replace the problem spot with a variable and take a limit.

Type 1: infinite limits

\[\int_a^\infty f(x)\,dx = \lim_{t\to\infty}\int_a^t f(x)\,dx\]

If the limit is a finite number, the integral converges. Otherwise it diverges.

Example: \(\int_1^\infty \frac{1}{x^2}\,dx\)

\[\lim_{t\to\infty}\int_1^t x^{-2}\,dx = \lim_{t\to\infty}\left[-\frac{1}{x}\right]_1^t = \lim_{t\to\infty}\left(1-\frac{1}{t}\right) = 1\]

It converges to 1.

Example: \(\int_1^\infty \frac{1}{x}\,dx\)

\[\lim_{t\to\infty}\Big[\ln x\Big]_1^t = \lim_{t\to\infty}\ln t = \infty\]

It diverges, even though \(\frac1x \to 0\). Going to zero is not enough. It has to go to zero fast enough.

The p-test

\[\int_1^\infty \frac{1}{x^p}\,dx \text{ converges if } p>1 \text{ and diverges if } p\le 1.\]

On \([0,1]\) it flips: \(\int_0^1 \frac{1}{x^p}\,dx\) converges if \(p<1\).

Type 2: vertical asymptotes

If \(f\) blows up at an endpoint, approach that endpoint with a limit. If it blows up in the middle at \(c\), split the integral at \(c\). Both pieces must converge.

Example: \(\int_0^1 \frac{1}{\sqrt{x}}\,dx\)

\[\lim_{t\to0^+}\int_t^1 x^{-1/2}\,dx = \lim_{t\to0^+}\Big[2\sqrt{x}\Big]_t^1 = 2\]

Classic trap: \(\int_{-1}^{1}\frac{1}{x^2}\,dx\) is not \(-2\). The integrand blows up at 0. Split it, and each half diverges, so the integral diverges.

Both ends infinite

Split at any convenient point and require both halves to converge:

\[\int_{-\infty}^{\infty}\frac{dx}{1+x^2} = \int_{-\infty}^{0}\frac{dx}{1+x^2} + \int_{0}^{\infty}\frac{dx}{1+x^2} = \frac{\pi}{2}+\frac{\pi}{2} = \pi\]

Comparison test

When you can't find the antiderivative, compare. If \(0 \le f(x) \le g(x)\) and \(\int g\) converges, then \(\int f\) converges. If \(\int f\) diverges, so does \(\int g\).

Example: for \(x \ge 1\), \(e^{-x^2} \le e^{-x}\), and \(\int_1^\infty e^{-x}\,dx = e^{-1}\) converges. So \(\int_1^\infty e^{-x^2}\,dx\) converges, even though \(e^{-x^2}\) has no elementary antiderivative.

Try your own

Paste any integral into the integral calculator to get the full step-by-step solution and a graph.

More techniques