Improper Integral Calculator

Type a function and limits, using inf for infinity, to test convergence.

Use x. Type powers with ^, and functions with brackets: sin(x), e^(2x), ln(x), sqrt(x).

A number such as 0 or 1/2, pi, e, inf or -inf.

A number larger than the lower limit, pi, e, inf or -inf.

Try

Result

You entered∫−∞∞1x2+1 dx\int_{-\infty}^{\infty} \frac{1}{x^{2} + 1}\,dx

∫−∞∞1x2+1 dx=π\displaystyle \int_{-\infty}^{\infty} \frac{1}{x^{2} + 1}\,dx = \pi

Decimal

≈3.141593\displaystyle \approx 3.141593
Show the work
  1. Improper integral

    The integral ∫−∞∞1x2+1 dx\int_{-\infty}^{\infty} \frac{1}{x^{2} + 1}\,dx is improper — a limit is infinite — so it is written as a limit of proper integrals and the limit is taken at the end.

    lim⁡a→−∞, b→∞∫ab1x2+1 dx\lim_{a \to -\infty,\ b \to \infty} \int_{a}^{b} \frac{1}{x^{2} + 1}\,dx
  2. Integral of 1 over x squared plus a squared

    This is one of the basic integrals, so the answer is read straight from the table.

    Using ∫dxx2+a2=1aarctan⁡xa+C\int \frac{dx}{x^2 + a^2} = \frac{1}{a}\arctan\frac{x}{a} + C

    ∫1x2+1 dx=arctan⁡x\int \frac{1}{x^{2} + 1}\,dx = \arctan x
  3. The limit

    Substitute the limits into F(x)=arctan⁡xF(x) = \arctan x, taking each limit by the limit rules, and subtract.

    (π2)−(−π2)=π\left(\frac{\pi}{2}\right) - \left(-\frac{\pi}{2}\right) = \pi
  4. Result

    The integral converges to this value.

    ∫−∞∞1x2+1 dx=π\int_{-\infty}^{\infty} \frac{1}{x^{2} + 1}\,dx = \pi

Worked examples