i noticed almost immediately that x - 1 was a factor by the factor theorem. performing long division twice will get you the answer you have
coincidentally, (x - 1) is a factor of the second one as well
janvdl's method is still easiest by far though. just make sure you factor correctly. factoring out a -q from the second set changes all the signs inside the bracket
EDIT: Good Job Janvdl. You are the best mathematician in this post!