x3 - 3x2 - 9x - 5 = (x3 - 5x2) + (2x2 -10x) + (x - 5) = x2 (x - 5) + 2x(x - 5) + (x - 5) = (x - 5)(x2 + 2x + 1) = (x - 5)(x + 1)2
x^3-3x^2-9x-5
=x^3-5x^2+2x^2-10x+x-5
=x^2(x-5)+2x(x-5)+(x-5)
=(x-5)(x^2+2x+1)
=(x-5)(x+1)^2
=x^3-3x+3-1
=(x^3-1)-(3x-3)
=(x-1)(x^2+x+1)-3(x+1)
=(x-1)(X^2+x+1-3)
=(x-1)(x^2+x+2)
=x^3-3x+3-1
=(x^3-1)-(3x-3)
=(x-1)(x^2+x+1)-3(x-1)
=(x-1)(x^2+x+1-3)
=(x-1)(x^2+x-2)