Can someone please solve this problem and tell me how to do it. I don't know if I am just missing something small or what, but I just can't see how to do it.

$\int \frac{2x^2+2x+2}{x^2+1}$

$\int \frac{2x^2+2x+2}{x^2+1}$
$\frac{2x^2+2x+2}{x^2+1} = \frac{2x}{x^2 + 1} + 2 \, ....$