Integral of arctan x
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.
How to integrate arctan x
Method: integration by parts.
- 1Choose u = arctan x and dv = dx.
- 2Then du = 1/(1 + x²) dx and v = x.
- 3Integration by parts gives x arctan x − ∫x/(1 + x²) dx.
- 4For the second integral, let w = 1 + x², so x dx = dw/2. It becomes (1/2) ln(1 + x²).
- 5So 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.
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.
| x | arctan x | Slope of the answer |
|---|---|---|
| −3 | −1.24905 | −1.24905 |
| −1 | −π/4 | −π/4 |
| 0 | 0 | 0 |
| 1 | π/4 | π/4 |
| 3 | 1.24905 | 1.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?
What is the integral of arctan x from 0 to 1?
Keep going
It is 1/(1 + x²).
All real inputs, outputs between −π/2 and π/2.
It is x arcsin x + √(1 − x²) + C.
It is x arccos x − √(1 − x²) + C.
It is (x² + 1) arctan x/2 − x/2 + C.
Every standard integral and technique, with examples.
Type your own function into the integral calculator for the steps, the answer and a graph.