Skip to content
ihateDesmos

Integral of 1/(1 + x²)

Updated 6 November 2026 · Checked numerically by the ihateDesmos engine
The integral of 1/(1 + x²)
∫
11+x2
dx =
arctan(x)+C

The integral of 1/(1 + x²) is arctan x + C. It is the derivative of arctan x, read backwards, and a good example of how inverse trig functions arise from simple fractions.

−4−224−110
Open in calculator
y=11+x2
in blue and its integral
y=arctan(x)
(with C = 0) in red.

How to integrate 1/(1 + x²)

Method: standard integral.

  1. 1
    We know that d/dx arctan x = 1/(1 + x²).
  2. 2
    So arctan x is an antiderivative.
  3. 3
    Adding the constant gives arctan x + C.

What it means

The total area under this bell-shaped curve from −∞ to ∞ is exactly π. It is remarkable that π comes out of a function with no circle in it.

The integral from 0 to 1

Using the antiderivative: F(1) − F(0) = π/4, which is about π/4. A direct numerical integration of 1/(1 + x²) gives π/4, which agrees.

−5−4−3−2−112345−2−1.5−1−0.50.511.52

Check by differentiating

The derivative of the answer should give back the original function. The last column measures that slope directly from the answer, and it matches.

Checking the integral
x1/(1 + x²)Slope of the answer
−21/51/5
−11/21/2
011
11/21/2
21/51/5

Common mistakes

  • Writing ln(1 + x²). That is the integral of 2x/(1 + x²), which has an x on top.

Frequently asked questions

What is the integral of 1/(1 + x²)?
The integral of 1/(1 + x²) is arctan x + C.
What is the integral of 1/(1 + x²) from 0 to 1?
π/4, which is about π/4.
What is the integral of 1/(a² + x²)?
(1/a) arctan(x/a) + C.

Keep going

Integrate any function

Type your own function into the integral calculator for the steps, the answer and a graph.

Open the integral calculator