For this case we have a polynomial division.
A term of the quotient must be found step by step to eliminate the terms of the dividend.
The final result must comply with:

Where:
P (x) is the dividend
Q (x) is the quotient
D (x) is the divisor
R (x) is the remainder
Answer:
See attached image