TeX source:
\begin{aligned}-x &=0 \\x &=0 \\3 x+2 &=0 \\x &=-\dfrac{2}{3} \\x+1 &=0 \\x &=-1\end{aligned}