We run through the steps for long division of polynomials. Divide the first term in the divisor into the first term in the divisor.
Multiply this term by the divisor and subtract from the dividend.
Repeat this process with the remainder.
Repeat it again.
At this point, the remainder finally has smaller degree than the divisor, so we strike a fraction by putting the remainder over the divisor and adding it to the quotient.
Multiply the quotient by the divisor and add the remainder.
Return to test