Bài 1:
\(\left(a-1\right)^3-4a\left(x+1\right)\left(x-1\right)+3\left(x-1\right)\left(x^2+x+1\right)\)
\(\Leftrightarrow\left(x-1\right)\left[\left(x-1\right)^2-4x\left(x+1\right)+3\left(x^2+x+1\right)\right]\)
\(\Leftrightarrow\left(x-1\right)\left(x^2-2x+1-4x+3x^2-4x+3x^2+3x+3\right)\)
\(\Leftrightarrow\left(x-1\right)\left(-3x+4\right)\)
Thay x= -2 vào biểu thức ta có:
\(\left(-2-1\right)\left(-3.-2+4\right)\)
\(\Rightarrow6\)