Source TeX:
\left(\dfrac{1}{x+2}-\dfrac{1}{x}\right)\div\left(1+\dfrac{1}{x^2}\right)