3p-68-p

Reorder 8 and -p.

3p-6-p+8

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

– | p | + | 8 | 3p | – | 6 |

Divide the highest order term in the dividend 3p by the highest order term in divisor -p.

– | 3 | ||||||

– | p | + | 8 | 3p | – | 6 |

Multiply the new quotient term by the divisor.

– | 3 | ||||||

– | p | + | 8 | 3p | – | 6 | |

+ | 3p | – | 24 |

The expression needs to be subtracted from the dividend, so change all the signs in 3p-24

– | 3 | ||||||

– | p | + | 8 | 3p | – | 6 | |

– | 3p | + | 24 |

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

– | 3 | ||||||

– | p | + | 8 | 3p | – | 6 | |

– | 3p | + | 24 | ||||

+ | 18 |

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

-3+18-p+8

Divide (3p-6)/(8-p)