Given the integral $ I:= \int_0^\infty \frac{1}{x^3+1} dx$.
There are various ways of solving it such as Cauchy's residues theorem, partial fraction. I am interested in solving it using the residues theorem but choosing a different contour than the ones i was able to find here (Integrating $\int_0^{\infty} \frac{dx}{1+x^3}$ using residues.). In addition, I would focus only in the part in which i can spot i made the mistake. Now lets jump into the problem:
The contour i want to use is half circle centered at z=R and let R approach infinity as shown in the picture.
The integral over the contour is equal to the sum of the integrals over $c_1$ and $c_2$ as shown in the picture. The integral over $c_1$ is simply I as defined above. For the integral over $c_2$ lets use z=R+R$e^{i\theta}$, $\theta$ goes from 0 to $\pi$ ,dz=$Rie^{i\theta}d\theta$ hence the integral over $c_2$ (lets name it $I_2$) becomes $I_2=\int_0^\pi \frac{Rie^{i\theta}}{R^3(1+e^{i\theta})^3+1} d\theta$ , as R approaches infinity $I_2$ approaches zero leaving us with the integral over the contour equals I. Now lets use the residues theorem to obtain I=$2{\pi}iRes(\frac{1}{z^3+1})$.
I have calculated the residues and used it in a different calculation using a different contour and got the correct answer which means the mistake is somewhere in my contour choosing but i dont know where. I would like to know what i did wrong.
Thanks in advance.
https://www.wolframalpha.com/input?i=integrate+100*I*exp%28I*theta%29%2F%281000000*%281%2Bexp%28I*theta%29%29%5E3%2B1%29+from+theta%3D0+to+theta%3DPI
– GEdgar Dec 07 '23 at 21:05