2X^4-X^3+2X^2+1
=2X^4-2X^3+2X^2+x^3+1
=(2X^4-2X^3+2X^2)+(x^3+1)
=2x^2(x^2-x+1)+(x+1)(x^2-x+1)
=(x^2-x+1)(2x^2+x+1)