Improper Integrals

The definite integral is defined for a function that is continuous on a closed, bounded interval. Two very common situations fall outside that definition: the interval itself runs off to infinity, or the function becomes unbounded somewhere inside the interval. Neither case can be handled by the ordinary Newton–Leibniz formula, because in both cases the quantity that formula evaluates is not yet known to exist.

Improper integrals are the extension that covers these cases. The idea is always the same: replace the missing endpoint by a finite cutoff, integrate as usual, and then ask whether the limit of the results exists. That is the whole definition — and the whole difficulty. Most of the work on this page is in deciding, carefully and case by case, whether a given limit exists.

Definition

Improper integral

An improper integral is a definite integral in which either the interval of integration is unbounded, or the integrand is unbounded at some point of the interval. There are two kinds: improper integrals of the first kind, where the interval of integration is unbounded, and improper integrals of the second kind, where the integrand is unbounded on the interval.

Improper Integrals of the First Kind

Let ff be continuous on [a,+∞)[a, +\infty). Then

∫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.

The improper integral converges if this limit exists as a finite number, and diverges otherwise. The other unbounded-interval cases follow the same pattern: ∫−∞bf(x) dx=lim⁡a→−∞∫abf(x) dx\int_{-\infty}^{b} f(x)\,dx = \lim_{a \to -\infty} \int_a^b f(x)\,dx on a left-unbounded interval, and ∫−∞+∞f(x) dx=∫−∞cf(x) dx+∫c+∞f(x) dx\int_{-\infty}^{+\infty} f(x)\,dx = \int_{-\infty}^{c} f(x)\,dx + \int_c^{+\infty} f(x)\,dx for any interior point cc, which converges only if both pieces converge.

Improper Integrals of the Second Kind

Let ff be continuous on [a,b)[a,b) and unbounded at x=bx = b. Then

∫abf(x) dx=lim⁡ε→0+∫ab−εf(x) dx.\int_a^b f(x)\,dx = \lim_{\varepsilon \to 0^+} \int_a^{b-\varepsilon} f(x)\,dx.

Again the integral converges if the limit exists and is finite. If the integrand is unbounded at the left endpoint the truncation is lim⁡ε→0+∫a+εbf(x) dx\lim_{\varepsilon \to 0^+} \int_{a+\varepsilon}^b f(x)\,dx, and if it is unbounded at an interior point cc the integral is ∫acf(x) dx+∫cbf(x) dx\int_a^c f(x)\,dx + \int_c^b f(x)\,dx, converging only if both pieces converge. The truncations are always made from inside the interval, so an improper integral is always a limit of proper integrals.

Convergence Tests

The Comparison Test

Let ff and gg be continuous and nonnegative on [a,+∞)[a, +\infty) with f(x)≤g(x)f(x) \leq g(x) there.

  1. If ∫a+∞g(x) dx\int_a^{+\infty} g(x)\,dx converges, then ∫a+∞f(x) dx\int_a^{+\infty} f(x)\,dx converges.
  2. If ∫a+∞f(x) dx\int_a^{+\infty} f(x)\,dx diverges, then ∫a+∞g(x) dx\int_a^{+\infty} g(x)\,dx diverges.

The test works because the partial integrals are monotone in the integrand: if 0≤f≤g0 \leq f \leq g then ∫abf≤∫abg\int_a^b f \leq \int_a^b g for every bb, so a finite limit of the larger family bounds the smaller one, and a divergent smaller family rules out the larger one.

The Limit Comparison Test

Let ff and gg be continuous and positive on [a,+∞)[a, +\infty) with lim⁡x→+∞f(x)g(x)=L\lim_{x \to +\infty} \frac{f(x)}{g(x)} = L.

  1. If 0<L<+∞0 < L < +\infty, then ∫a+∞f(x) dx\int_a^{+\infty} f(x)\,dx and ∫a+∞g(x) dx\int_a^{+\infty} g(x)\,dx converge or diverge together.
  2. If L=0L = 0 and ∫a+∞g(x) dx\int_a^{+\infty} g(x)\,dx converges, then ∫a+∞f(x) dx\int_a^{+\infty} f(x)\,dx converges.
  3. If L=+∞L = +\infty and ∫a+∞g(x) dx\int_a^{+\infty} g(x)\,dx diverges, then ∫a+∞f(x) dx\int_a^{+\infty} f(x)\,dx diverges.

This is the workhorse test, because most integrands of interest are asymptotic to a simple benchmark function.

The p-Integrals as Benchmarks

Two families supply the benchmarks: ∫1+∞1xp dx\int_1^{+\infty} \frac{1}{x^p}\,dx converges if and only if p>1p > 1, in which case it equals 1p−1\frac{1}{p-1}; and ∫011xp dx\int_0^1 \frac{1}{x^p}\,dx converges if and only if p<1p < 1, in which case it equals 11−p\frac{1}{1-p}. Everything else is compared against these. As an illustration, ∫1+∞1xln⁡x dx\int_1^{+\infty} \frac{1}{x \ln x}\,dx diverges, because the substitution u=ln⁡xu = \ln x turns it into ∫0+∞1u du\int_0^{+\infty} \frac{1}{u}\,du, which is itself improper at u=0u = 0.

Worked Examples

Example 1. Compute ∫1+∞1x2 dx\int_1^{+\infty} \frac{1}{x^2}\,dx.

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

Example 2. Decide whether ∫1+∞1x dx\int_1^{+\infty} \frac{1}{x}\,dx converges. The truncated value is [ln⁡x]1b=ln⁡b\left[\ln x\right]_1^b = \ln b, and lim⁡b→+∞ln⁡b=+∞\lim_{b \to +\infty} \ln b = +\infty, so the integral diverges. Contrast this with Example 1: the two integrands differ only in the exponent, and that single digit decides convergence.

Example 3. Compute ∫011x dx\int_0^1 \frac{1}{\sqrt{x}}\,dx, which is improper because the integrand is unbounded at x=0x = 0.

∫011x dx=lim⁡ε→0+∫ε1x−1/2 dx=lim⁡ε→0+[2x]ε1=lim⁡ε→0+(2−2ε)=2.\int_0^1 \frac{1}{\sqrt{x}}\,dx = \lim_{\varepsilon \to 0^+} \int_{\varepsilon}^1 x^{-1/2}\,dx = \lim_{\varepsilon \to 0^+} \left[2\sqrt{x}\right]_{\varepsilon}^1 = \lim_{\varepsilon \to 0^+} \left(2 - 2\sqrt{\varepsilon}\right) = 2.

Example 4. Compute ∫0111−x2 dx\int_0^1 \frac{1}{\sqrt{1-x^2}}\,dx, which is improper at x=1x = 1. The truncated integral is [arcsin⁡x]01−ε=arcsin⁡(1−ε)\left[\arcsin x\right]_0^{1-\varepsilon} = \arcsin(1-\varepsilon), and since arcsin⁡(1)=π2\arcsin(1) = \frac{\pi}{2} the limit is π2\frac{\pi}{2}.

Properties of Improper Integrals

Linearity of improper integrals

Let ∫a+∞f(x) dx\int_a^{+\infty} f(x)\,dx and ∫a+∞g(x) dx\int_a^{+\infty} g(x)\,dx both converge, and let kk be a constant. Then

  1. ∫a+∞[f(x)+g(x)] dx=∫a+∞f(x) dx+∫a+∞g(x) dx\int_a^{+\infty} \bigl[f(x) + g(x)\bigr]\,dx = \int_a^{+\infty} f(x)\,dx + \int_a^{+\infty} g(x)\,dx,
  2. ∫a+∞kf(x) dx=k∫a+∞f(x) dx\int_a^{+\infty} k f(x)\,dx = k\int_a^{+\infty} f(x)\,dx.

Absolute and Conditional Convergence

An improper integral ∫a+∞f(x) dx\int_a^{+\infty} f(x)\,dx is absolutely convergent if ∫a+∞∣f(x)∣ dx\int_a^{+\infty} \lvert f(x)\rvert\,dx converges. An absolutely convergent improper integral always converges, because ∣∫abf∣≤∫ab∣f∣\left|\int_a^b f\right| \leq \int_a^b \lvert f\rvert bounds the truncated values by a convergent sequence.

The converse fails. The standard counterexample is ∫1+∞sin⁡xx dx\int_1^{+\infty} \frac{\sin x}{x}\,dx, which converges although ∫1+∞∣sin⁡x∣x dx\int_1^{+\infty} \frac{\lvert \sin x\rvert}{x}\,dx diverges; proving both halves of that statement requires tools beyond this page, such as Dirichlet’s test. The practical consequence is already clear: a divergent absolute integral says nothing about the integral itself, so it can never be used to declare divergence.

Applications

Probability. The Gaussian normalization ∫−∞+∞e−x2/2 dx=2π\int_{-\infty}^{+\infty} e^{-x^2/2}\,dx = \sqrt{2\pi} and the exponential density normalization ∫0+∞λe−λx dx=1\int_0^{+\infty} \lambda e^{-\lambda x}\,dx = 1 (for λ>0\lambda > 0) are improper integrals, and both are finite only because the integrand decays fast enough.

Physics. The gravitational potential energy of a body of mass mm at distance rr from a body of mass MM is W=∫r+∞GMmx2 dx=GMmrW = \int_r^{+\infty} \frac{GMm}{x^2}\,dx = \frac{GMm}{r}. Similarly, the electric field at a point a distance rr from a uniformly charged ray that begins at distance r0r_0 (with rr strictly less than r0r_0) is E(r)=∫r0+∞λ dx4πε0(x−r)2=λ4πε0(r0−r)E(r) = \int_{r_0}^{+\infty} \frac{\lambda\,dx}{4\pi\varepsilon_0 (x-r)^2} = \frac{\lambda}{4\pi\varepsilon_0 (r_0 - r)}, where λ\lambda is the linear charge density.

Analysis. The gamma function Γ(s)=∫0+∞xs−1e−x dx\Gamma(s) = \int_0^{+\infty} x^{s-1} e^{-x}\,dx and the beta function B(p,q)=∫01xp−1(1−x)q−1 dxB(p,q) = \int_0^1 x^{p-1}(1-x)^{q-1}\,dx are improper integrals for most of their natural parameter ranges, and their convergence conditions are part of their definitions.

Common Errors

  • Assuming every improper integral converges. Each one must be tested; ∫1+∞1x dx\int_1^{+\infty} \frac{1}{x}\,dx is the standard counterexample.
  • Ignoring the unbounded points. Every singularity of the integrand inside the interval must be located and treated separately.
  • Applying Newton–Leibniz directly. The formula evaluates a proper integral; for an improper one the limit must come first.
  • Integrating across a singularity without splitting. At an interior unbounded point the integral converges only if both sides converge.

Exercises

Exercise 1

Compute the improper integral ∫1+∞1x3 dx\int_1^{+\infty} \frac{1}{x^3}\,dx.

improper integralinfinite intervalconvergence

Approach: Apply the definition of an improper integral on an unbounded interval: replace the infinite endpoint by a finite one, integrate as usual, and evaluate the limit of the resulting expression.

Steps:

  1. Write the truncated integral: ∫1+∞1x3 dx=lim⁡b→+∞∫1bx−3 dx\int_1^{+\infty} \frac{1}{x^3}\,dx = \lim_{b \to +\infty} \int_1^b x^{-3}\,dx.
  2. Integrate with the power rule: ∫x−3 dx=x−2−2\int x^{-3}\,dx = \frac{x^{-2}}{-2}, so ∫1bx−3 dx=[−12x2]1b\int_1^b x^{-3}\,dx = \left[-\frac{1}{2x^2}\right]_1^b.
  3. Evaluate the limit: lim⁡b→+∞(−12b2+12)=12\lim_{b \to +\infty} \left(-\frac{1}{2b^2} + \frac{1}{2}\right) = \frac{1}{2}, since 1b2→0\frac{1}{b^2} \to 0.

Answer: The integral converges, with value 12\frac{1}{2}.

Exercise 2

Decide whether the improper integral ∫011x2 dx\int_0^1 \frac{1}{x^2}\,dx converges.

improper integralunbounded integranddivergence

Approach: The integrand is unbounded at x=0x = 0, so this is an improper integral of the second kind. Truncate from the left, integrate, and inspect the limit of the truncated values.

Steps:

  1. Since f(x)=1x2f(x) = \frac{1}{x^2} is unbounded at x=0x = 0, write ∫011x2 dx=lim⁡ε→0+∫ε1x−2 dx\int_0^1 \frac{1}{x^2}\,dx = \lim_{\varepsilon \to 0^+} \int_{\varepsilon}^1 x^{-2}\,dx.
  2. Integrate: ∫x−2 dx=−1x\int x^{-2}\,dx = -\frac{1}{x}, so ∫ε1x−2 dx=[−1x]ε1=−1+1ε\int_{\varepsilon}^1 x^{-2}\,dx = \left[-\frac{1}{x}\right]_{\varepsilon}^1 = -1 + \frac{1}{\varepsilon}.
  3. Evaluate the limit: lim⁡ε→0+(−1+1ε)=+∞\lim_{\varepsilon \to 0^+} \left(-1 + \frac{1}{\varepsilon}\right) = +\infty, which is not finite.

Answer: The integral diverges, to +∞+\infty.

Exercise 3

Compute the improper integral ∫0+∞e−2x dx\int_0^{+\infty} e^{-2x}\,dx.

improper integralinfinite intervalexponential

Approach: Truncate the infinite interval at bb, integrate the exponential, and evaluate the limit. The chain rule contributes the factor 12\frac{1}{2}.

Steps:

  1. Write ∫0+∞e−2x dx=lim⁡b→+∞∫0be−2x dx\int_0^{+\infty} e^{-2x}\,dx = \lim_{b \to +\infty} \int_0^b e^{-2x}\,dx.
  2. Integrate: ∫e−2x dx=−12e−2x\int e^{-2x}\,dx = -\frac{1}{2}e^{-2x}, so ∫0be−2x dx=[−12e−2x]0b=−12e−2b+12\int_0^b e^{-2x}\,dx = \left[-\frac{1}{2}e^{-2x}\right]_0^b = -\frac{1}{2}e^{-2b} + \frac{1}{2}.
  3. Evaluate the limit: as b→+∞b \to +\infty, e−2b→0e^{-2b} \to 0, so the limit is 12\frac{1}{2}.

Answer: The integral converges, with value 12\frac{1}{2}.

Exercise 4

For which values of pp does the improper integral ∫1+∞1xp dx\int_1^{+\infty} \frac{1}{x^p}\,dx converge, and what is its value in those cases?

improper integralp-integralconvergencelimit comparison test

Approach: Truncate the integral at bb, integrate with the power rule, and inspect the limit. The behaviour of b1−pb^{1-p} as b→+∞b \to +\infty decides the question for every value of pp at once.

Steps:

  1. Write the truncated integral: ∫1+∞1xp dx=lim⁡b→+∞∫1bx−p dx\int_1^{+\infty} \frac{1}{x^p}\,dx = \lim_{b \to +\infty} \int_1^b x^{-p}\,dx.
  2. For p≠1p \neq 1, integrate: ∫x−p dx=x1−p1−p\int x^{-p}\,dx = \frac{x^{1-p}}{1-p}, so ∫1bx−p dx=b1−p−11−p\int_1^b x^{-p}\,dx = \frac{b^{1-p} - 1}{1-p}.
  3. If p>1p > 1, then 1−p<01 - p < 0 and b1−p→0b^{1-p} \to 0, so the limit is 0−11−p=1p−1\frac{0 - 1}{1-p} = \frac{1}{p-1}, a finite number.
  4. If p=1p = 1, the integral is lim⁡b→+∞ln⁡b=+∞\lim_{b \to +\infty} \ln b = +\infty, so it diverges.
  5. If p<1p < 1, then 1−p>01 - p > 0 and b1−p→+∞b^{1-p} \to +\infty, so the limit is +∞+\infty and the integral diverges.

Answer: The integral converges exactly when p>1p > 1, and then its value is 1p−1\frac{1}{p-1}.


Summary

An improper integral is not a new kind of integral; it is the same definite integral with a limit attached, and the entire content of the topic lies in deciding whether that limit exists. The workflow is always the same three steps: locate the unbounded endpoint or the unbounded point of the integrand, truncate the interval from inside, and evaluate the limit of the resulting proper integrals. When the integrand has several singularities, split at each one and require every piece to converge. Comparison against the benchmark p-integrals settles the great majority of questions, and the limit comparison test turns most remaining integrands into something comparable. Finally, keep two ideas apart that students most often blur: absolute convergence is stronger than convergence, and convergence is about the existence of a limit, not about the limit being large.

Symbols Used in This Article

SymbolTypePronunciation/ExplanationMeaning in This Article
∫a+∞\int_a^{+\infty}mathematical symbolintegral from a to infinityAn improper integral on an unbounded interval
lim⁡b→+∞\lim_{b \to +\infty}mathematical symbollimit as b goes to infinityThe limit that decides convergence
ε\varepsilonGreek letterepsilonA positive quantity tending to zero
lim⁡ε→0+\lim_{\varepsilon \to 0^+}mathematical symbollimit as epsilon tends to zero from aboveThe limit at a singular endpoint
LLmathematical symbolLThe limit of the ratio in the limit comparison test
ppmathematical symbolpThe exponent of the p-integrals
λ\lambdaGreek letterlambdaThe rate parameter of the exponential density
Γ(s)\Gamma(s)mathematical symbolgamma of sThe gamma function
B(p,q)B(p,q)mathematical symbolbeta of p comma qThe beta function
ε0\varepsilon_0Greek letterepsilon naughtThe vacuum permittivity

Found an issue with this content?

Tell us what could be improved.