TeX source:
\dfrac{x^2-\frac{2}{3}x+\frac{1}{9}}{x^2+\frac{26}{3}x-3} = \dfrac{\left(x-\frac{1}{3}\right)^2}{\left(x-\frac{1}{3}\right)\left(x+9\right)} = \dfrac{x-\frac{1}{3}}{x+9}