a)\(f\left(x\right)=x^4+2x^3-x-2\)
\(=x^4+2x^3+x^2-x^2-x-2\)
\(=\left(x^2+x\right)^2-\left(x^2+x\right)-2\)
Đặt \(x^2+x=t\) ta có:
\(=t^2-t-2\)\(=\left(t-2\right)\left(t+1\right)\)
\(=\left(x^2+x-2\right)\left(x^2+x+1\right)\)
\(=\left(x-1\right)\left(x+2\right)\left(x^2+x+1\right)\)