AP Calculus AB and BC

Derivative of x arctan x: Answer, Proof, Mistakes

The derivative of x arctan x with respect to x is arctan x + x/(1 + x^2). The product rule differentiates x to 1 and arctan x to 1/(1 + x^2), so both terms survive and nothing cancels. The derivative is zero only at x = 0, where the function has its absolute minimum.

ddx[xarctanx]=arctanx+x1+x2\frac{d}{dx}\left[x\arctan x\right] = \arctan x+\frac{x}{1+x^2}

The proof: product rule on x arctan x

Both factors depend on xx, so the product rule applies: differentiate each factor in turn while holding the other fixed, then add.

ddx[f(x)g(x)]=f(x)g(x)+f(x)g(x)\frac{d}{dx}\left[f(x)g(x)\right] = f'(x)g(x) + f(x)g'(x)

Take f(x)=xf(x) = x and g(x)=arctanxg(x) = \arctan x, so f(x)=1f'(x) = 1 and g(x)=11+x2g'(x) = \frac{1}{1 + x^2} by the inverse trig rule of Topic 3.4.

ddx(xarctanx)=1arctanx+x11+x2=arctanx+x1+x2\frac{d}{dx}\left(x\arctan x\right) = 1\cdot\arctan x + x\cdot\frac{1}{1 + x^2} = \arctan x + \frac{x}{1 + x^2}

Unlike xlnxx\ln x, where the second term collapses to 1, nothing simplifies here. An answer with one term in it is missing half the rule. Two units of the course meet in this one derivative: Topic 2.8 (The Product Rule) sets up the two terms, and Topic 3.4 (Differentiating Inverse Trigonometric Functions) supplies the second one.

What the derivative says about the graph

Both factors are odd, so xarctanxx\arctan x is even and symmetric about the yy axis. The derivative vanishes only at x=0x = 0, where arctan0=0\arctan 0 = 0 and 01=0\frac{0}{1} = 0.

Differentiating a second time gives a tidy result.

d2dx2(xarctanx)=11+x2+1x2(1+x2)2=2(1+x2)2\frac{d^2}{dx^2}\left(x\arctan x\right) = \frac{1}{1 + x^2} + \frac{1 - x^2}{(1 + x^2)^2} = \frac{2}{(1 + x^2)^2}

That second derivative is positive for every xx, so the graph is concave up everywhere and the critical point at the origin is the absolute minimum, with value 0.

The integration by parts mirror

The integral of arctanx\arctan x is found by parts with u=arctanxu = \arctan x and dv=dxdv = dx, and the result is built out of this exact product.

arctanxdx=xarctanx12ln(1+x2)+C\int \arctan x\,dx = x\arctan x - \frac{1}{2}\ln(1 + x^2) + C

Differentiate the right side: the first piece gives arctanx+x1+x2\arctan x + \frac{x}{1 + x^2}, and the correction term gives x1+x2-\frac{x}{1 + x^2}, which cancels the second half and leaves arctanx\arctan x. The derivative and the integral are one statement read in opposite directions.

Common mistakes

  • Answering x1+x2\frac{x}{1 + x^2} alone and dropping the arctanx\arctan x term.
  • Answering 11+x2\frac{1}{1 + x^2} by multiplying the two derivatives. A derivative of a product is never a product of derivatives.
  • Using 11x2\frac{1}{\sqrt{1 - x^2}}, the arcsin\arcsin derivative, in place of the arctan\arctan derivative.
  • Cancelling x1+x2\frac{x}{1 + x^2} down to 11+x\frac{1}{1 + x}. The denominator is a sum, so the xx does not cancel.

Check yourself, not just the answer

Type derivatives and get graded on mathematical equivalence, with rule-level hints when you miss, in the Derivative Practice Checker.

Frequently asked questions

What is the derivative of x arctan x?

It is arctanx+x1+x2\arctan x + \frac{x}{1 + x^2}, from the product rule.

Where is x arctan x decreasing?

On x<0x < 0, where both terms of the derivative are negative. It increases for x>0x > 0, and the minimum is at x=0x = 0 with value 0.

What is the integral of x arctan x?

It is x2+12arctanxx2+C\frac{x^2 + 1}{2}\arctan x - \frac{x}{2} + C, by integration by parts with u=arctanxu = \arctan x.