= \(x^4-2x^3-6x^3+12x^2-x^2+2x+6x-12\)
= \(x^3\left(x-2\right)-6x^2\left(x-2\right)-x\left(x-2\right)+6\left(x-2\right)\)
= \(\left(x-2\right)\left(x^3-6x^2-x+6\right)\)
= \(\left(x-2\right)\left(x^2\left(x-6\right)-\left(x-6\right)\right)\)
= \(\left(x-2\right)\left(x-6\right)\left(x-1\right)\left(x+1\right)\)
x4 - 8x3 + 11x2 + 8x - 12
= (x3 - 7x2 + 4x + 12)(x - 1)
= (x3 - 8x + 12)(x + 1)(x - 1)
= (x - 6)(x - 2)(x + 1)(x - 1)