When dividing polynomials, you must arrange the terms so that term with the highest power comes first, then the next highest, etc.
If the remainder of your division is zero, it means the divisor is a factor of the dividend.
If there is a power missing in the dividend, you must add a placeholder, a 0x^a term to properly divide.