First,
, and if we multiply
by
we get
![x^3+3x^2](https://img.qammunity.org/2020/formulas/mathematics/middle-school/zqr9b1i91s99odcpbktfqir7a5j38ng4sg.png)
Subtracting this from the numerator gives a remainder of
![-2x^2-2x+14](https://img.qammunity.org/2020/formulas/mathematics/middle-school/bg62rdy17mupf9sais9si8ncw0dj13eqw6.png)
Next,
, and if we multiply
by
we have
![-2x^2-6x](https://img.qammunity.org/2020/formulas/mathematics/middle-school/ezzhhcs68f3uybwhef3h6upmaspk0przey.png)
and subtracting this from the previous remainder, we end up with a new remainder of
![4x+14](https://img.qammunity.org/2020/formulas/mathematics/middle-school/w43hcsrv8g3zaq6yhm8bb237cwo0nfk1d9.png)
Next,
, and if we multiply
by
we get
![4x+12](https://img.qammunity.org/2020/formulas/mathematics/middle-school/grwlthlvzrqc497bnh7c4o0kguxtf8yz4f.png)
Subtracting from the previous remainder, we get a new remainder of
![2](https://img.qammunity.org/2020/formulas/mathematics/high-school/ungpj0wd9ftsqhaos5e4zdvweyb227ctto.png)
which contains no more factors of
, so we're done.
So,
![(x^3+x^2-2x+14)/(x+3)=x^2-2x+4+\frac2{x+3}](https://img.qammunity.org/2020/formulas/mathematics/middle-school/41tjdtl0zrnxaqq2hry50i4j3qhnhjcj2x.png)