Set up the polynomials to be divided. If there is not a term for every exponent, insert one with a value of .

+ | + | + |

Divide the highest order term in the dividend by the highest order term in divisor .

+ | + | + |

Multiply the new quotient term by the divisor.

+ | + | + | |||||||

+ | + |

The expression needs to be subtracted from the dividend, so change all the signs in

+ | + | + | |||||||

– | – |

+ | + | + | |||||||

– | – | ||||||||

+ |

Pull the next terms from the original dividend down into the current dividend.

+ | + | + | |||||||

– | – | ||||||||

+ | + |

Divide the highest order term in the dividend by the highest order term in divisor .

+ | |||||||||

+ | + | + | |||||||

– | – | ||||||||

+ | + |

Multiply the new quotient term by the divisor.

+ | |||||||||

+ | + | + | |||||||

– | – | ||||||||

+ | + | ||||||||

+ | + |

The expression needs to be subtracted from the dividend, so change all the signs in

+ | |||||||||

+ | + | + | |||||||

– | – | ||||||||

+ | + | ||||||||

– | – |

+ | |||||||||

+ | + | + | |||||||

– | – | ||||||||

+ | + | ||||||||

– | – | ||||||||

+ |

The final answer is the quotient plus the remainder over the divisor.

Divide (x^2+9x+20)/(x+7)