Evaluate the integral:
$$\int x\tan^{-1}x\,\mathrm{d}x$$
What I have so far:
$$u = \tan^{-1}x$$ $$\mathrm{d}u = \frac{1}{1+x^2}\,\mathrm{d}x$$ $$\mathrm{d}v = x\,\mathrm{d}x$$ $$v = \frac{x^2}2$$
$$(*) \int u\ \mathrm{d}v = uv - \int v \ \mathrm{d}u$$ $$\left(\tan^{-1}x\right)\frac{x^2}2 - \frac12\int x^2\cdot\frac{1}{1+x^2}\,\mathrm{d}x$$ $$\left(\tan^{-1}x\right)\frac{x^2}2 - \frac12\int \frac{x^2}{1+x^2}\,\mathrm{d}x$$
The problem I have now is how to integrate the integral $\displaystyle \int \dfrac{x^2}{1+x^2}\,\mathrm{d}x$.
It doesn't look like a U-substitution will get me any further nor can I make a trig substitution.
Notice that $$\frac{x^2}{x^2+1} = \frac{x^2+1-1}{x^2+1} = 1-\frac{1}{1+x^2}$$