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...
Head of Mathematics Department, I.E.S. Sta Teresa, Madrid.
Prof. of Mathematical Methods, Univ. Alfonso X El Sabio, Madrid.
(Up until the 2008/2009 academic year. I am now devoted to investigation).