Math Help - Integral

1. Integral

$\int \frac{(x^3+x-1)dx}{(x^2+2)^2}$

2. Expand it out and then integrate:

$\int\frac{x}{x^{2}+2}dx-\int\frac{x}{(x^{2}+2)^{2}}dx-\int\frac{1}{(x^{2}+2)^{2}}dx$

3. thank you