TeX source:
\begin{array}{r}-3 x^{3}-5 x^{2}-2 x=0 \\-x\left(3 x^{2}+5 x+2\right)=0\end{array}