\(\left(x-1\right)^3+4\left(x+1\right)\left(1-x\right)+3\left(x-1\right)\left(x^2+x+1\right)\)
\(=x^3-3x^2+3x-1+4\left(1-x^2\right)+3\left(x^3-1\right)\)
\(=x^3-3x^2+3x-1+4-4x^2+3x^3-3\)
\(=\left(x^3+3x^3\right)-\left(3x^2+4x^2\right)+3x+\left(4-1-3\right)\)
\(=4x^3-7x^2+3x\)
:D