TeX source:
\begin{array}{rcl}\left(x^2-3x-40\right)\cdot(x-4) &=& x^3-4x^2-3x^2+12x-40x+160 \cr &=& x^2-7x^2-28x+160\end{array}