Let,
I=∫212xtan−1xdx........(1)
Now, let x=t1⇒dx=−t21dt
So,
I=−∫221t1tan−1(t1)×t21dt
⇒I=−∫221tan−1(t1)×t1dt
⇒I=∫212cot−1t×t1dt
⇒I=∫212cot−1x×x1dx.......(2)
Now adding (1)&(2), we get,
2I=∫212x1(cot−1x+tan−1x)dx
⇒2I=∫212x1×2πdx
⇒2I=2π[lnx]212
⇒2I=2π[loge2−loge21]
⇒2I=2π[2loge2]
⇒I=2πloge2