# Math Help - Long division problem

1. ## Long division problem

Long division of $x^2+x+3$ into $2x^3+5x^2+8x+2$ yields:

(????)( $x^2+x+3$)+(?????)

i get the answer $2x+3-[(x-7)/(x^2+x+3)]$ but i don't know how to put the answer in the form above?

2. Originally Posted by Jonny-123
Long division of $x^2+x+3$ into $2x^3+5x^2+8x+2$ yields:

(????)( $x^2+x+3$)+(?????)

i get the answer $2x+3-[(x-7)/(x^2+x+3)]$ but i don't know how to put the answer in the form above?
$(2x+3)(x^2+x+3) - (x+7)$