You set this out like an ordinary long division.
It is a bit hard for us to show you here.
If you google "algebraic division" or "algebraic long division " or "synthetic division"
there are a lot of sites that will show you how to do it.
There are also a number of you tube clips that will show you exactly what to do. They are very good. :)
Here is one example that I did for someone else. :)
http://web2.0calc.com/questions/latex#r49