原式=2004x^3+2005x^2-2004x-2x+2005+2
=2004x^3-2004x+2005x^2+2005-2x+2
=2004x(x^2-1)+2005(x^2-1)-2(x-1)
=2004x(x+1)(x-1)+2005(x+1)(x-1)-2(x-1)
=(2004x^2+2004x+2005-2)(x-1)
=2004(x^2+x-2)(x-1)
=2004(x+2)(x-1)(x-1)
原式=2004x^3+2005x^2-2004x-2x+2005+2
=2004x^3-2004x+2005x^2+2005-2x+2
=2004x(x^2-1)+2005(x^2-1)-2(x-1)
=2004x(x+1)(x-1)+2005(x+1)(x-1)-2(x-1)
=(2004x^2+2004x+2005-2)(x-1)
=2004(x^2+x-2)(x-1)
=2004(x+2)(x-1)(x-1)