How do you find int (2x)/(x^2+1)dx?

The answer is: $\ln \left({x}^{2} + 1\right) + c$.
$\int \frac{f ' \left(x\right)}{f} \left(x\right) \mathrm{dx} = \ln f \left(x\right) + c$