m-36-m

Reorder 6 and -m.

m-3-m+6

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

– | m | + | 6 | m | – | 3 |

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

– | 1 | ||||||

– | m | + | 6 | m | – | 3 |

Multiply the new quotient term by the divisor.

– | 1 | ||||||

– | m | + | 6 | m | – | 3 | |

+ | m | – | 6 |

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

– | 1 | ||||||

– | m | + | 6 | m | – | 3 | |

– | m | + | 6 |

After changing the signs, add the last dividend from the multiplied polynomial to find the new dividend.

– | 1 | ||||||

– | m | + | 6 | m | – | 3 | |

– | m | + | 6 | ||||

+ | 3 |

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

-1+3-m+6

Divide (m-3)/(6-m)