<s>[INST] Dividing polynomial by binomial How can I divide this using long division?
$$\frac{ax^3-a^2x^2-bx^2+b^2}{ax-b}$$
Edit
Sorry guys I wrote it wrong... Fixed it now.
 [/INST] $$
\begin{array}{rccccccccccccc}
& &  x^2 & - & ax & - & b \\[12pt]
ax-b & ) & ax^3 & - & (a^2+b)x^2 & + & b^2 \\
& & ax^3 & - & bx^2 \\[12pt]
& & & & -a^2x^2 & + & b^2 \\
& & & & -a^2x^2 & + & abx \\[12pt]
& & & & & & -abx & + & b^2 \\
& & & & & & -abx & + & b^2 \\[12pt]
& & & & & & & & 0
\end{array}
$$
</s>