How do you divide a polynomial function by another polynomial function.

you can play around with these things here, and see all the details.

http://calc101.com/webMathematica/long-divide.jsp