(1) Select u and v considering LIATE:

u=tan1xv=1u=11+x2v=xuv=tan1xoriginaluv=x1+x2final

(2) Apply IBP formula uvuv and compute integral:

uvuvxtan1xx1+x2dx(Exp. A)

(3) Perform u-sub with u=1+x2 and du=2xdx:

x1+x2dx122xdx1+x212duu12ln|u|+C12ln|1+x2|+C

(4) Insert result in Exp. (A):

(A)xtan1x12ln(1+x2)+C(Note B)

Note B: We can change |1+x2| to (1+x2) because the inner expression is never negative.