I can't seem to work out how my textbook got from the denominator($x^2 - x$) in the first line to the divisor below it ($x^2 +2x - 3$). Could anyone explain how they got from one to the other?
Thanks!
Edit: A similar question which I do understand is here, for context: