Simplify

6x - x^2 (x-3)

6x -x^3 -3x^2

I would then factor out an x...

x(6-x^2-3x)