Originally Posted by

**Jones** Hi,

Im trying to get my head around how to do polynomial division with undetermined coefficients.

Im trying to divide

into

I run into problems when trying to subtract

from

help appreciated

According to your explanations I assume that the quotient reads:

Use long division: Code:

(z-1)(2a-12)
z^4-2z^3+az^2-8z+8)÷(z^1-2z+2) = z^2+(a-2) + -----------
z^2-2z+2
-(z^4-2z^3+2z^2)
------------------
(a-2)z^2-8z+8
-((a-2)z^2-2(a-2)z+2(a-2)
--------------------------
-12z+2az-2a+12

The remainder can be factored as shown in the final result.