I am trying to solve the following integral:
$$\int \:\frac{3x^2+1}{x^3+2}dx$$
I am not sure how to do it. I tried using partial fractions but you can not factor $x^3+2$, and changing the variable with $u$ does not seem to work either. Anyone has any ideas?
Hint: write your integral in the form
$$\int \frac{3x^2+1}{(x+\sqrt[3]{2})(x^2-\sqrt[3]{2}x+2^{2/3})}dx$$