Answer:
( x + 2 ) + ( -3x - 3)/(x + 2)
Explanation:
(x^3+2x^2 -x +1) / (x^2 + 2)
= ( x + 2 ) + ( -3x - 3)/(x + 2)
I solved this problem by long division, so I do know how to explain it here but if you have any questions, you can ask me in the comments.