Check the final answer first, then review the worked steps.
x^3 + 6x^2 - 40x = x(x^2 + 6x - 40) = x(x + 10)(x - 4)