x^3+2=(Ax+B)x+C(x^2+1)
sub x=-1, 0, 1 to get:
1=A-B+2C
2=C
3=A+B+2C
-3=A-B
-1=A+B
A=-2, B=1
Integral of (-2x+1)/(x^2+1) + 2/x = - 2x/(x^2+1) + 1/(1+x^2) + 2/x
= -ln(x^2+1)+2lnx+tan<sup>-1</sup>x + C
= ln[x^2/(x^2+1)] + tan<sup>-1</sup>x + C
I think. I haven't covered partial fractions or inverse trig, yet... or integrals of things like 1/x, for that matter.