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...
Cohen might be a good source for problems, however, for development of the theory, there are likely much better texts dedicated to the topic...that's...