I want to find the derivative of
$$\left(\arctan\left({1+x^2}\right)\right)'$$
From the derivatives table I see that
$$\arctan{u}=\frac 1 {1+u^2}$$
Therefore it is intuitive for me to replace $1+x^2$ (which is the argument of the function above) with the $u$ of the right side:
$$\left(\arctan\left({1+x^2}\right)\right)'=\frac{1}{1+(1+x^2)^2}$$
This is not the right solution (the numerator should be equal to $2x$). I understand that $(1+x^2)'=2x$ though I don't know why we have to put $2x$ at the top. Any hints?
Hint:
$f(g(x))'=f'(g(x))g'(x)$