When you factor out the expression $x^2+1$, you factor out the term having the smallest exponent (which you did), and then you subtract that exponent...
“To consult the statistician after an experiment is finished is often merely to ask him to conduct a post mortem examination. He can perhaps say what the experiment died of.” - Sir Ronald Fisher.