TeX source:
\begin{aligned}x^{2}-9 &=0 \\(x-3)(x+3) &=0 \\(x-3) &=0 \\x &=3 \\(x+3) &=0 \\x &=-3\end{aligned}