Solution:
We use integration by parts:
∫f(x)g(x)dx=f(x)∫g(x)dx−∫[f′(x)∫g(x)dx]dx
Take tan−1x as the first function and x as the second function.
∫xtan−1xdx=tan−1x⋅2x2−∫1+x21⋅2x2dx
=2x2tan−1x−21∫1+x2x2dx
Writing 1+x2x2=1+x2(1+x2)−1=1−1+x21,
∫xtan−1xdx=2x2tan−1x−21∫(1−1+x21)dx
=2x2tan−1x−21(x−tan−1x)+C
Therefore,
∫xtan−1xdx=2x2tan−1x−2x+21tan−1x+C