TeX source:
\mathtt{3x^{5}y^{3}-18x^{2}y^{2}+6xy^{4}=3xy^{2}(x^{4}y-6x+2y^{2})}