To generalise what he has said to make it clear for all questions, suppose we have two polynomials
fm(x) and
gn(x) of degrees
m,n respectively where
m≥n.
Then we have
gn(x)fm(x)=qm−n(x)+gn(x)rk(x)where
qm−n(x) is the quotient polynomial of degree
m−n, and
rk(x) is the remainder polynomial of degree
k<n.
The highest
k can be is
n−1 therefore we set
gk(x) as a polynomial of degree
n−1 with undetermined coefficients which can determine later and see whether the degree reduces or not.
Example:
x2+4x+1x5+x+1 has the numerator with degree 5 and denominator with degree 2, hence our quotient will have degree 3 hence we gonna have
Ax3+Bx2+Cx+D. Then the remainder will have degree 1 at most hence it will be
Ex+F.
So the form is
x2+4x+1x5+x+1=Ax3+Bx2+Cx+D+x2+4x+1Ex+FIndeed, solving it yields that
x2+4x+1x5+x+1=x3−4x2+15x−56+x2+4x+1210x+57