x^3-5x^2+6
=x^3-5x^2+1+5
=(x^3+1)-(5x^2-5)
=(x^3+1)-5(x^2-1)
=(x+1)(x^2-x+1)-5(x^2-1)
=(x+1)(x^2-x+1)-5(x+1)(x-1)
=(x+1)(x^2-x+1-5x+5)
=(x+1)(x^2-6x+6)
x^3-5x^2+6
=x^3-5x^2+1+5
=(x^3+1)-(5x^2-5)
=(x^3+1)-5(x^2-1)
=(x+1)(x^2-x+1)-5(x^2-1)
=(x+1)(x^2-x+1)-5(x+1)(x-1)
=(x+1)(x^2-x+1-5x+5)
=(x+1)(x^2-6x+6)