This is LaTeX code:

[latex]
f'(x)=\frac{x^2+1 - 2x(x + 1)}{(x^2+1)^2} = \frac{- x^2 -2x + 1}{(x^2+1)^2}
[/latex]