Long division for multipolynomial expression, little o notation

69 Views Asked by At

I have this expression:

$$\mathrm{Exp}=\frac{d^3(-12a^4)+d^2(4a^4-16a^3)+d(4a^3-6a^2-a)}{d^3(-12a^4+12a^3)+d^2(4a^4-20a^3+16a^2)+d(4a^3-11a+7a)+(1-2a+a^2)}$$

Is there any way I can take the second term and do long division or something so it becomes

$$\mathrm{Exp}=+f(d)+f(d^2)+o(d^3)$$

where $o(d^3)$ is the little $o$ notation? I can't seem to find a way to do this (Matlab and otherwise). Thank you so much!