Source TeX:
\dfrac{\frac{1}{x+2}-\frac{1}{x}}{1+\frac{1}{x^2}}