Skip to content
ihateDesmos

Integral of x arctan x

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

The integral of x arctan x is ((x² + 1) arctan x − x)/2 + C. Choose u = arctan x so that the logs disappear, then simplify a fraction.

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

How to integrate x arctan x

Method: integration by parts.

  1. 1
    Choose u = arctan x and dv = x dx.
  2. 2
    Then du = 1/(1 + x²) dx and v = x²/2.
  3. 3
    Integration by parts gives (x²/2) arctan x − (1/2) ∫x²/(1 + x²) dx.
  4. 4
    Rewrite the fraction: x²/(1 + x²) = 1 − 1/(1 + x²).
  5. 5
    Its integral is x − arctan x, so the result is (x²/2) arctan x − x/2 + (1/2) arctan x + C.
  6. 6
    Group the arctan terms: ((x² + 1) arctan x − x)/2 + C.

What it means

x arctan x is even and never negative, and for large x it behaves like (π/2)|x|.

The integral from 0 to 1

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

−3−2.5−2−1.5−1−0.50.511.522.53−5−4−3−2−112345

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
xx arctan xSlope of the answer
−22.21432.2143
−1π/4π/4
000
1π/4π/4
22.21432.2143

Common mistakes

  • Forgetting to rewrite x²/(1 + x²), which can’t be integrated as it stands.

Frequently asked questions

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

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