how does become
The slightly more difficult trick is to work it the other way around. You do this by algebraic long division, starting with
, remainder something.
It's not very easy to set out the working using LaTeX, but it looks something like this:
When you divide by , then, the quotient is and the remainder is . So the answer can be written: