Skip to content
ihateDesmos

Integral of arctan x

Updated 6 November 2026 · Checked numerically by the ihateDesmos engine
The integral of arctan x
∫
arctan(x)
dx =
xarctan(x)−ln(1+x2)2+C

The integral of arctan x is x arctan x − (1/2) ln(1 + x²) + C. As with ln x, integration by parts with dv = dx swaps the function for its much simpler derivative.

−4−2242460
Open in calculator
y=arctan(x)
in blue and its integral
y=xarctan(x)−ln(1+x2)2
(with C = 0) in red.

How to integrate arctan x

Method: integration by parts.

  1. 1
    Choose u = arctan x and dv = dx.
  2. 2
    Then du = 1/(1 + x²) dx and v = x.
  3. 3
    Integration by parts gives x arctan x − ∫x/(1 + x²) dx.
  4. 4
    For the second integral, let w = 1 + x², so x dx = dw/2. It becomes (1/2) ln(1 + x²).
  5. 5
    So the result is x arctan x − (1/2) ln(1 + x²) + C.

What it means

arctan x levels off toward ±π/2, so for large x the integral grows almost like a straight line of slope π/2. It has its minimum at x = 0.

The integral from 0 to 1

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

−6−5−4−3−2−1123456−112345678

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
xarctan xSlope of the answer
−3−1.24905−1.24905
−1−π/4−π/4
000
1π/4π/4
31.249051.24905

Common mistakes

  • Writing 1/(1 + x²), which is the derivative of arctan x, not the integral.
  • Forgetting the factor of 1/2 on the log.

Frequently asked questions

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

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