Consider the given integral.
I=∫2xx(x2+1)dx
I=2∫1(x2+1)dx
We know that
∫dxa2+x2=1atan−1(xa)+C
Therefore,
I=2tan−1x+C
Hence, this is the answer.