Ta có:\(x^3-7x-6=\left(x^3-3x^2\right)+\left(3x^2-9x\right)+\left(2x-6\right)\)
\(=\left(x-3\right)\left(x^2+3x+2\right)=\left(x-3\right)\left(x^2+2x+x+2\right)\)
\(=\left(x-3\right)\left(x+2\right)\left(x+1\right)\)
=x3-x-6x-6
=(x3-x)-(6x-6)
=x(x2-1)-6(x-1)
=x(x-1)(x+1)-6(x-1)
=(x-1)(x2+1-6)