\(x^2\left(x-3\right)+4\left(3-x\right)\)\(=x^2\left(x-3\right)-4\left(x-3\right)\)
\(=\left(x^2-4\right)\left(x-3\right)\)\(=\left(x-2\right)\left(x+2\right)\left(x-3\right)\)
\(x^2\left(x-3+12-4x\right)\)
\(=x^2\left(x-3\right)-4\left(x-3\right)\)
\(=\left(x-3\right)\left(x^2-4\right)\)
\(=\left(x-3\right)\left(x-2\right)\left(x+2\right)\)