Final answer to the problem
$x^{2}-x+2+\frac{-1}{x+1}$
Got another answer? Verify it here!
Step-by-step Solution
1
Divide $x^3+x+1$ by $x+1$
$\begin{array}{l}\phantom{\phantom{;}x\phantom{;}+1;}{\phantom{;}x^{2}-x\phantom{;}+2\phantom{;}\phantom{;}}\\\phantom{;}x\phantom{;}+1\overline{\smash{)}\phantom{;}x^{3}\phantom{-;x^n}+x\phantom{;}+1\phantom{;}\phantom{;}}\\\phantom{\phantom{;}x\phantom{;}+1;}\underline{-x^{3}-x^{2}\phantom{-;x^n}\phantom{-;x^n}}\\\phantom{-x^{3}-x^{2};}-x^{2}+x\phantom{;}+1\phantom{;}\phantom{;}\\\phantom{\phantom{;}x\phantom{;}+1-;x^n;}\underline{\phantom{;}x^{2}+x\phantom{;}\phantom{-;x^n}}\\\phantom{;\phantom{;}x^{2}+x\phantom{;}-;x^n;}\phantom{;}2x\phantom{;}+1\phantom{;}\phantom{;}\\\phantom{\phantom{;}x\phantom{;}+1-;x^n-;x^n;}\underline{-2x\phantom{;}-2\phantom{;}\phantom{;}}\\\phantom{;;-2x\phantom{;}-2\phantom{;}\phantom{;}-;x^n-;x^n;}-1\phantom{;}\phantom{;}\\\end{array}$
$x^{2}-x+2+\frac{-1}{x+1}$
Final answer to the problem
$x^{2}-x+2+\frac{-1}{x+1}$