Integrals

Improper Integrals: How to Tell If They Converge or Diverge

Improper Integrals: How to Tell If They Converge or Diverge

An improper integral converges if its defining limit is a single finite number. It diverges if the limit approaches infinity. Divergence also occurs if the limit approaches negative infinity. It also diverges if the limit fails to settle. To determine convergence of improper integrals, first replace the problem point with a parameter. This point could be an infinite limit. It could also be a vertical asymptote. Next, evaluate the finite integral. Finally, take the limit.

An integral is improper when either:

  • First, a limit of integration is infinite. For example, consider \( \int_1^{\infty}\frac{dx}{x^2} \).
  • Second, the integrand blows up somewhere on the interval. For instance, look at \( \int_0^1\frac{dx}{\sqrt{x}} \).

We handle both by rephrasing the expression with a limit. If the limit exists as a finite number, the integral converges; otherwise, it diverges.

How can an infinite region have a finite area?

It sounds impossible for a region stretching to infinity to have a finite area. However, you already know a discrete version of this. Consider \( \frac{1}{2} + \frac{1}{4} + \frac{1}{8} + \cdots = 1 \). This is a geometric series. Infinitely many pieces can add up to a finite total. This happens as long as the pieces shrink quickly enough.

Improper integrals: Railroad tracks stretching through a dense forest tunnel into the distance

The same thing happens with the area under a curve. The graph of \( \frac{1}{x^2} \) drops very fast. For example, the area from 1 to 10 is 0.9. From 1 to 100, it is 0.99. From 1 to 1000, it is 0.999. Each extra stretch adds smaller and smaller amounts. As a result, the totals settle toward 1. The graph of \( \frac{1}{x} \) also drops. However, it drops more slowly. The area from 1 to \( t \) is \( \ln t \). This value keeps growing without bound. Deciding which of these two behaviors you have is the entire goal of testing for convergence.

That is why the formal definition relies on a limit. You cannot integrate directly to infinity. So, you integrate up to a finite boundary \( t \). The Fundamental Theorem of Calculus applies there. Then you evaluate the behavior as \( t \) grows unbounded.

A 4-step checklist for evaluating any improper integral

  1. Find every problem point: Identify infinite limits of integration. Also, find any \( x \)-value. This value makes the function undefined or unbounded on the interval.
  2. Split the interval: An integral may have multiple problem points. It might also have an interior asymptote. If so, break it into separate integrals. This way, each piece has exactly one problem point at an endpoint.
  3. Convert to limits: Replace each infinite bound or vertical asymptote with a limit parameter.
  4. Evaluate each piece independently: If every piece converges to a finite number, add their values together. However, if even one piece diverges, the entire integral diverges immediately.

Type 1: handling infinite limits of integration

When an upper bound is infinite, replace it with a limit variable \( t \to \infty \):

A long straight road stretching towards the distant horizon

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

If the lower bound is infinite, use \( s \to -\infty \):

$$\int_{-\infty}^b f(x)\,dx = \lim_{s\to-\infty}\int_s^b f(x)\,dx$$

Example 1. We calculate \( \int_1^{\infty}\frac{dx}{x^2} \). This equals \( \lim_{t\to\infty}\left[-\frac{1}{x}\right]_1^t \). So, we get \( \lim_{t\to\infty}\left(1 - \frac{1}{t}\right) = 1 \). The integral converges.

Example 2. \( \int_1^{\infty}\frac{dx}{x} = \lim_{t\to\infty}\left[\ln x\right]_1^t = \lim_{t\to\infty}\ln t = \infty \). Diverges (see integral of 1/x).

Example 3. We calculate \( \int_0^{\infty}e^{-x}\,dx \). This equals ( lim_{ttoinfty}left[-e^{-x}
ight]_0^t ). So, we get ( lim_{ttoinfty}left(1 – e^{-t}
ight) = 1 ). The integral converges.

Example 4 (both bounds are infinite). You must split the domain at a convenient point. For example, you can use \( x = 0 \):

$$\int_{-\infty}^{\infty}\frac{dx}{1+x^2} = \lim_{s\to-\infty}\int_s^0 \frac{dx}{1+x^2} + \lim_{t\to\infty}\int_0^t \frac{dx}{1+x^2}$$

Examples of evaluating improper integrals

$$\int_{-\infty}^{\infty}\frac{dx}{1+x^2} = \left(0 - \left(-\frac{\pi}{2}\right)\right) + \left(\frac{\pi}{2} - 0\right) = \frac{\pi}{2} + \frac{\pi}{2} = \pi$$

Both halves converge independently, so the entire integral converges to \( \pi \).

Example 5 (integration by parts with a limit). \( \int_0^{\infty}xe^{-x}\,dx \). Using Integration by parts with \( u = x \) and \( dv = e^{-x}dx \), the antiderivative is \( -xe^{-x} - e^{-x} \). Evaluating on ( [0, t] ):

$$\int_0^t xe^{-x}\,dx = 1 - te^{-t} - e^{-t}$$

As \( t \to \infty \), \( e^{-t} \to 0 \). For the term \( te^{-t} = \frac{t}{e^t} \), apply L’Hôpital’s rule to get \( \lim_{t\to\infty}\frac{1}{e^t} = 0 \). The entire integral converges to 1.

Example 6 (substitution with a limit). \( \int_e^{\infty}\frac{dx}{x(\ln x)^2} \). Using \( u = \ln x \), \( du = \frac{1}{x}dx \), the antiderivative is \( -\frac{1}{\ln x} \):

$$\int_e^t \frac{dx}{x(\ln x)^2} = \left[-\frac{1}{\ln x}\right]_e^t = 1 - \frac{1}{\ln t} longrightarrow 1 \text{ as } t \to \infty$$

This shows that an integrand shrinking only slightly faster than \( \frac{1}{x} \) can still guarantee convergence.

Type 2: handling unbounded integrands (vertical asymptotes)

When an integrand has a vertical asymptote at an endpoint \( x = a \), you can replace that endpoint with a limit. Approach the limit from the inside of the interval:

A low-angle view of a tall skyscraper reaching into the sky

$$\int_a^b f(x)\,dx = \lim_{s\to a^{+}}\int_s^b f(x)\,dx$$

If the asymptote occurs at the upper limit \( x = b \), approach from the left:

$$\int_a^b f(x)\,dx = \lim_{t\to b^{-}}\int_a^t f(x)\,dx$$

Example 7. \( \int_0^1\frac{dx}{\sqrt{x}} = \lim_{s\to 0^+}\left[2\sqrt{x}\right]_s^1 = \lim_{s\to 0^+}\left(2 - 2\sqrt{s}\right) = 2 \). Converges, even though the function grows infinitely tall at \( x = 0 \).

Example 8 (asymptote inside the interval). Consider \( \int_{-1}^1 \frac{dx}{x^2} \). The function blows up at \( x = 0 \), which lies inside the interval. You must split the integral at \( x = 0 \):

$$\int_{-1}^1 \frac{dx}{x^2} = \int_{-1}^0 \frac{dx}{x^2} + \int_0^1 \frac{dx}{x^2}$$

Evaluating the right half gives \( \int_0^1 \frac{dx}{x^2} = \lim_{s\to 0^+} \left[-\frac{1}{x}\right]_s^1 = \lim_{s\to 0^+}\left(-1 + \frac{1}{s}\right) = \infty \). This piece diverges. As a result, the entire original integral diverges. However, if you naively apply the Fundamental Theorem of Calculus without splitting, you get \( \left[-\frac{1}{x}\right]_{-1}^1 = -1 - (1) = -2 \). This is wildly wrong for an area of positive values.

Example 9. \( \int_0^1 \ln x\,dx \). The logarithm approaches \( -\infty \) as \( x \to 0^+ \). Using the antiderivative \( x\ln x - x \):

$$\int_s^1 \ln x\,dx = (1\ln 1 - 1) - (s\ln s - s) = -1 - s\ln s + s$$

Using L’Hôpital’s rule on \( s\ln s = \frac{\ln s}{1/s} \), the limit as \( s \to 0^+ \) is 0. The integral converges to \( -1 \). The answer is negative because the function lies entirely below the x-axis on \( (0, 1) \).

The p-integral test: your benchmark comparison tool

You can resolve many convergence questions immediately. Compare the integrand to a power function \( \frac{1}{x^p} \). The rules depend on the problem point. Is it at infinity or at zero?

$$\text{Over } [1, \infty): \quad \int_1^{\infty}\frac{dx}{x^p} \text{ converges if } p > 1, \text{ and diverges if } p \le 1$$

$$\text{Over } (0, 1]: \quad \int_0^1\frac{dx}{x^p} \text{ converges if } p < 1, \text{ and diverges if } p \ge 1$$

For instance, \( \int_1^{\infty}\frac{dx}{x^3} = \frac{1}{2} \). This integral converges because \( p = 3 > 1 \). However, \( \int_1^{\infty}\frac{dx}{\sqrt{x}} \) diverges. This is because \( p = 1/2 \le 1 \).

Derivation of the p-integral test: For any \( p \neq 1 \), the power rule yields:

$$\int_1^t x^{-p}\,dx = \left[\frac{x^{1-p}}{1-p}\right]_1^t = \frac{t^{1-p} - 1}{1-p}$$

When testing on \( [1, \infty\) ):

  • If \( p > 1 \), then \( 1 - p < 0 \), so \( t^{1-p} = \frac{1}{t^{p-1}} \to 0 \) as \( t \to \infty \). The integral converges to \( \frac{1}{p-1} \).
  • If \( p 0 \), so \( t^{1-p} \to \infty \). The integral diverges.
  • If \( p = 1 \), the antiderivative is \( \ln t \), which grows to \( \infty \).

When testing on ( (0, 1] ), the limits switch directions: as \( s \to 0^+ \), \( s^{1-p} \to 0 \) only when \( 1 - p > 0 \) (meaning \( p < 1 \)). Understanding how powers behave near zero and infinity lets you classify integrands on sight.

How to use the Direct Comparison Test

You cannot integrate an integrand using standard techniques. Therefore, compare it to a simpler benchmark function. This function must have known behavior.

A brass balance scale weighing coins in a wooden box

Direct Comparison Test (DCT): Suppose \( 0 \le f(x) \le g(x) \) for all \( x \ge a \).

  • If \( \int_a^{\infty} g(x)\,dx \) converges, then \( \int_a^{\infty} f(x)\,dx \) converges.
  • If \( \int_a^{\infty} f(x)\,dx \) diverges, then \( \int_a^{\infty} g(x)\,dx \) diverges.

Convergent comparison example: To test \( \int_1^{\infty}\frac{dx}{x^2 + 1} \), observe that for \( x \ge 1 \):

$$\frac{1}{x^2 + 1} < \frac{1}{x^2}$$

Since \( \int_1^{\infty}\frac{dx}{x^2} \) is a convergent p-integral (\( p = 2 \)), the smaller function’s integral must also converge. (Its exact value evaluated via arctangent happens to be \( \frac{\pi}{4} \).)

Divergent comparison example: To test \( \int_1^{\infty}\frac{2 + \sin x}{x}\,dx \), notice that \( \sin x \ge -1 \). As a result, the numerator is always at least 1:

$$\frac{2 + \sin x}{x} \ge \frac{1}{x}$$

Because \( \int_1^{\infty}\frac{1}{x}\,dx \) diverges (\( p = 1 \)), the larger function’s integral must also diverge.

How to use the Limit Comparison Test

Setting up strict inequalities for the Direct Comparison Test can be difficult. This is especially true when you add or subtract terms in complex fractions. However, the Limit Comparison Test bypasses inequalities. It compares the growth rates of two positive functions as \( x \to \infty \).

Limit Comparison Test (LCT): If \( f(x) > 0 \) and \( g(x) > 0 \), evaluate the limit of their ratio:

$$L = \lim_{x\to\infty}\frac{f(x)}{g(x)}$$

If \( L \) is a finite positive number \(( 0 < L < \infty )\), then \( \int f(x)\,dx \) and \( \int g(x)\,dx \) either both converge or both diverge.

Determine whether \( \int_1^{\infty}\frac{x + 1}{x^3 + 5}\,dx \) converges.

For large \( x \), the highest power terms dominate: \( \frac{x}{x^3} = \frac{1}{x^2} \). Choose \( g(x) = \frac{1}{x^2} \) as your comparison function. Calculate the ratio limit:

$$L = \lim_{x\to\infty}\frac{\frac{x+1}{x^3+5}}{\frac{1}{x^2}} = \lim_{x\to\infty}\frac{x^3 + x^2}{x^3 + 5} = 1$$

Since \( L = 1 \) is finite and positive, both integrals share the same fate. Because \( \int_1^{\infty}\frac{1}{x^2}\,dx \) converges by the p-test (\( p = 2 \)), the original integral converges as well.

Special LCT boundary cases

  • If \( L = 0 \) and \( \int g(x)\,dx \) converges, then \( \int f(x)\,dx \) converges.
  • If \( L = \infty \) and \( \int g(x)\,dx \) diverges, then \( \int f(x)\,dx \) diverges.

Common mistakes when testing convergence

  • Missing interior asymptotes: Always check if the denominator equals zero anywhere inside the interval of integration. Skipping this leads to incorrect values (like obtaining negative areas for strictly positive functions).
  • Treating infinity like a real number: Never substitute \( \infty \) directly into an antiderivative. Always write the expression as a formal limit parameter \( t \to \infty \).
  • Assuming canceling infinities equal zero: \( \int_{-\infty}^{\infty} x\,dx \) does not equal 0. The definition requires both halves \(( \int_{-\infty}^0 x\,dx ) and ( \int_0^{\infty} x\,dx )\) to converge independently. Since both diverge, the integral diverges.
  • Assuming “approaching zero” guarantees convergence: The function \( \frac{1}{x} \) approaches 0 as \( x \to \infty \), but its integral diverges logarithmicly. The function must decay faster than \( \frac{1}{x} \).
  • Reversing comparison test logic: Proving your integrand is smaller than a divergent integral gives no useful information. Similarly, proving it is larger than a convergent integral tells you nothing.

Famous improper integrals

Integral Value
\( \int_0^{\infty}e^{-x}dx \) \( 1 \)
\( \int_0^{\infty}xe^{-x}dx \) \( 1 \)
\( \int_{-\infty}^{\infty}e^{-x^2}dx \) \( \sqrt{\pi} \) (Gaussian integral)
\( \int_{-\infty}^{\infty}\frac{dx}{1+x^2} \) \( \pi \)
\( \int_0^1\ln x\,dx \) \( -1 \)

Where improper integrals are applied

Improper integrals are foundational across mathematics and physics:

Where improper integrals are applied
  • Probability and statistics: Continuous probability density functions defined across unbounded domains must integrate to 1 over \( (-\infty, \infty) \). Expected values and variances rely on integrals like Example 5.
  • Physics and engineering: The work required to move an object infinitely far away against gravity relies on an improper integral. This integral is of gravitational force \( \int_R^{\infty} \frac{GMm}{r^2} dr \). It converges and provides the derivation for escape velocity.
  • Differential equations: The Laplace transform maps time-domain functions to frequency-domain expressions. It uses the improper integral \( \mathcal{L}{f(t)} = \int_0^{\infty} e^{-st} f(t) dt \).
  • Pure mathematics: The Gamma function extends the factorial function to non-integer and complex numbers. We write it as \( \Gamma(n) = \int_0^{\infty} x^{n-1}e^{-x} dx \).

Evaluate improper integrals online

Type inf or -inf as a bound. The solver maps the infinite interval onto a finite one and integrates numerically, telling you whether the integral converges.

A hand typing on a laptop keyboard

Step-by-step solverExact symbolic engine

Interactive Calculus Problem Solver

Derivatives, antiderivatives, definite and improper integrals, and limits. Every answer comes with the rules used, and antiderivatives are verified by differentiating them back.

Try:
Input syntax
  • Powers x^2, roots sqrt(x), cbrt(x), absolute value |x|
  • Implicit multiplication works: 3x sin(2x)
  • sin cos tan sec csc cot, asin acos atan, sinh cosh tanh
  • e^x or exp(x); ln(x) is the natural log. In this solver log(x) also means the natural log (the usual calculus convention); type log10(x) for base 10
  • Constants pi and e; bounds accept inf and -inf
Enter a function and press Solve to see a full worked solution.

The same calculation engine powers the definite integral calculator.

Practice problems

Test your knowledge with these problems before reviewing the step-by-step solutions below.

A young man writing math equations on a chalkboard
  1. \( \int_1^{\infty}\frac{dx}{x^4} \)
  2. \( \int_0^{\infty}e^{-2x}\,dx \)
  3. \( \int_0^{8}\frac{dx}{\sqrt[3]{x}} \)
  4. \( \int_1^{\infty}x^{-3/2}\,dx \)
  5. \( \int_0^{\infty}\frac{dx}{x^2 + 4} \)
  6. \( \int_0^1\frac{dx}{x} \)

Detailed solutions:

1. Solution: \( \frac{1}{3} \). This is a p-integral with \( p = 4 > 1 \). Evaluating the limit gives \( \lim_{t\to\infty} \left[ -\frac{1}{3x^3} \right]_1^t = 0 - \left(-\frac{1}{3}\right) = \frac{1}{3} \).

2. Solution: \( \frac{1}{2} \). Evaluate \( \lim_{t\to\infty} \left[ -\frac{1}{2}e^{-2x} \right]_0^t = 0 - \left(-\frac{1}{2}\right) = \frac{1}{2} \).

3. Solution: 6. Rewrite as \( \int_0^8 x^{-1/3} dx \). This is an improper Type 2 integral with a power \( p = 1/3 < 1 \). Evaluating yields \( \lim_{s\to 0^+} \left[ \frac{3}{2}x^{2/3} \right]_s^8 = \frac{3}{2}(4) - 0 = 6 \).

4. Solution: 2. This is a p-integral on \( [1, \infty\) ) with \( p = 3/2 > 1 \). The limit evaluates to \( \lim_{t\to\infty} \left[ -2x^{-1/2} \right]_1^t = 0 - (-2) = 2 \).

5. Solution: \( \frac{\pi}{4} \). The antiderivative is \( \frac{1}{2}\arctan\left(\frac{x}{2}\right) \). Taking the limit as \( t \to \infty \) gives \( \frac{1}{2}\left(\frac{\pi}{2}\right) - 0 = \frac{\pi}{4} \).

6. Solution: Diverges. This is a p-integral on ( (0, 1] ) with \( p = 1 \). Because convergence on ( (0, 1] ) requires \( p < 1 \), the integral diverges to \( \infty \).

Frequently asked questions

If the function goes to zero, does the integral converge?

Not necessarily. The function \( \frac{1}{x} \) approaches zero as \( x \to \infty \), but \( \int_1^{\infty}\frac{dx}{x} \) diverges. This integrand must shrink fast enough to guarantee a finite area.

How are improper integrals related to infinite series?

The integral test applies to a continuous, positive, decreasing function \( f(x) \). This test states that the infinite series \( \sum_{n=1}^{\infty} f(n) \) and the improper integral \( \int_1^{\infty} f(x)\,dx \) both converge or both diverge. You can also explore additional convergence tests. For example, consider the ratio test for infinite series.

Is the integral of x from minus infinity to infinity zero?

No, this is incorrect. By definition, you must split \( \int_{-\infty}^{\infty} x\,dx \) into two separate integrals. Both of these integrals diverge to infinity. However, the expression \( \lim_{t\to\infty}\int_{-t}^{t} x\,dx = 0 \) is a distinct concept. We call it the Cauchy principal value, not the standard improper integral value.

What does “diverges” mean exactly?

The underlying limit does not settle on a single finite real number. Therefore, the integral may approach positive infinity or negative infinity. It can also oscillate endlessly without converging, as you see in \( \int_0^t \sin x\,dx = 1 - \cos t \).

Can a calculator decide convergence?

Numerical calculators approximate integrals over finite bounds and may misinterpret slowly divergent integrals as convergent. Always verify convergence analytically using p-tests or comparison tests before relying on numerical computations.

Further reading

Calculators for this topic

Get new calculus guides by email

Free worked examples and new calculators, at most once a day. Unsubscribe with one click.

Leave a comment

Your email address will not be published. Required fields are marked *