x^4+2008x^2+2007x+2008
=x^4+2008x^2+2008x+2008-x
=x(x^3-1)+2008(x^2+x+1)
=x(x-1)(x^2+x+1)+2008(x^2+x+1)
=(x^2+x+1)(x^2-x+2008)
x4+2008x2+2007x+2008
=(x4+x2+1)+(2007x2+2007x+2007)
=(x4+2x2+1-x2)+2007(x2+x+1)
=(x2+1)2-x2+2007(x2+x+1)
=(x2+1-x)(x2+1+x)+2007(x2+x+1)
=(x2+x+1)(x2+1-x+2007)=(x2+x+1)(x2-x+2008)