JonF said:
im not sure if this is right, but this is what i did...
\int\frac{1}{1-x^3}dx
\int\frac{1}{(1-x)(1+x+x^2)}
\int((1-x)(1+x+x^2))^{-1}
No- you've lost the "-1" power in the first term. That should be
\int((1-x)^{-1}(1+x+x^2))^{-1}
and now the substitution doesn't work.
"how evil! what an equation... is it any use to... umm... rememorize the table of integrals?"
Believe it or not, it's actually easier to THINK!
In this case, you use "partial fractions" as you were told to begin with:
1-x
3= (1- x)(1+ x+ x
2 so
\frac{1}{1-x^3}= \frac{A}{1-x}+ \frac{Bx+C}{1+ x+ x^2}
for some numbers A, B, C.
Multiply that equation by 1-x
3 and you get
1= A(x
2+ x+ 1}+ (Bx+ C)(1-x)
Since this is true for all x, in particular if we let
x= 1, 1= 3A so A= 1/3
x= 0 1= A+ C= 1/3+ C so C= 2/3
x= -1 1= A+ (-B+C)(-2)= 1/3+ 2B- 4/3 so 2B= 2 or B= 1
Now we need to integrate
\frac{1/3}{1-x}+ \frac{(2/3)x+ 1}{x^2+x+1}
The first of those is just -(1/3)ln|1-x| (that's in Dr Transport's answer)
To do the second, complete the square: x
2+ x+ 1= x
2+ x+ 1/4+ 3/4= (x+1/2)
2+ 3/4 so we break that into two integrals:
Now make the linear substitution u= x+ 1/2, du= dx, (2/3)x+ 1= (2/3)u- 1/3 and the integral becomes
\frac{(2/3)u}{u^2+ 3/4}- \frac{1/3}{u^2+3/4}
The first of those can be done by the further substitution v= u
2+3/4 and the second is an arctangent. That
might reduce to what Dr Transport gave but it can be difficult to show that!