I know the basics of integrals but I am having problems with division with these two problems:

1. indefinite... (x^2+x-2)/(x^2) The answer is x+ln |x| + 2x^-1+C

=x^2+x-2+x^-2

=((x^3/3)+(x^2/2)-(2x)+(x^-1/-1)

=((1/3)(x^3)+(1/2)(x^2)-(2x)-(x^-1) at least my solution. I know I mess this one up.

2. indefinite...((1-x^2)^1/2)-1/(1-x^2)^1/2) The answer is x-(sin(x))^-1+C. Also, I am aware that 1/(1-x^2)^1/2 is (sin x)^-1