I need to show that the series $\sum_{n\geq 0} \frac {(-1)^n} {3n+1}$ is convergent, with the sum, $$\sum_{n\geq 0} \frac {(-1)^n} {3n+1}=\int_0 ^1 \frac {dx}{1+x^3}.$$
I treated first the right hand side. We observe that in the interval $(0,1)$ the function $ \frac {1}{1+x^3}$ can be written as power series, $$ \frac {1}{1+x^3}=1-x^3+x^6-x^9+...$$ But this is obviously equivalent to the geometric series with the ratio $q=-x^3,$ thus $ \frac {1}{1+x^3}= \sum_{k=0} ^{\infty} q^k.$ We get, $\int_0 ^1 \frac {dx}{1+x^3}=\int _0 ^1 (\sum_{k=0} ^{\infty} q^k)\, dx.$ Since the terms under the sum are not all positive, we can not interchange the sum and integral sign unless $$\int _0 ^1 (\sum_{k=0} ^{\infty} |q^k|)\, dx < \infty .$$ One then realizes that $\sum_{k=0} ^{\infty} |q^k|\, dx=1+x^3+x^6+...=\frac {1}{1-x^3}=\frac {1}{1-q}.$ One gets (with $dq=-3x^2 dx $),$$\int _0 ^{-1} \frac {1}{1-q}\, \frac {-1}{3x^2}\,dq.$$ Unfortunately I can not solve this integral.
Can somebody help me out how to proceed by following this way?
Many thanks.