1,Ta có :3(x-1)(x2+x+1)+(x-1)3-4x(x-1)(x+1)
=3(x3-1)+(x3-3x2+3x-1)-4x(x2-1)
=3x3-3+x3-3x2+3x-1-4x3+4x
=-3x2-7x-4
Thay x=-2 vào ta được:-3.(-2)2-7.(-2)-4=-2
Câu 2:
\(=\left(x^2-x+2\right)\left(x-1\right)-x^2\left(x-1\right)^2+\left(2x+1\right)\left(x-1\right)^3\)
\(=\left(x-1\right)\left[x^2-x+2-x^2\left(x-1\right)+\left(2x-1\right)\left(x^2-2x+1\right)\right]\)
\(=\left(x-1\right)\left(x^2-x+2-x^3+x^2+2x^3-5x^2+4x-1\right)\)
\(=\left(x-1\right)\left(x^3-3x^2+3x+1\right)\)