The question I'm working on is the following: Let $C_R$ be a contour in the shape of a wedge starting at the origin, running along the real axis to $x=R$, then along the arc $0 \leq \theta \leq 2\pi/3$, then back down to the origin along the ray $\theta=2\pi/3$.
Evaluate the limit as $R$ approaches infinity of $\int_{C_R} \frac{dz}{(1+z^3)^3} dz$.
So far I have the integrals set up using parameterization along $C_1,C_2,C_3$ going anticlockwise from the origin respectively. I know the middle integral approaches $0$ as $R$ approaches infinity. And also the first and third integral can be factorised into $(1-\exp(2i\pi/3)) \int_0^R \frac{dx}{(1+x^3)^3}$. I have found the pole to be $\exp(i\pi/3)$ but I am struggling to compute the residue. Any help would be appreciated. Please show full workings if you can as I am finding it all a bit too confusing at the moment.
As you noted, the only pole within the contour is at $z=e^{i \pi/3}$. The residue at this pole may be computed as follows:
$$\lim_{z\to e^{i \pi/3}} \frac1{2!} \frac{d^2}{dz^2}\frac{(z-e^{i \pi/3})^3}{(z^3+1)^3}$$
Now,
$$z^3+1 = (z-e^{i \pi/3})(z+1)(z-e^{-i \pi/3}) = (z-e^{i \pi/3}) [z^2+(1-e^{-i \pi/3}) z - e^{-i \pi/3} ]$$
Thus, the derivative is
$$\begin{align} \frac1{2!}\frac{d^2}{dz^2} \frac1{[z^2+(1-e^{-i \pi/3}) z - e^{-i \pi/3} ]^3} &= -\frac{3}{2} \frac{d}{dz} \frac{2 z+1-e^{-i \pi/3}}{[z^2+(1-e^{-i \pi/3}) z - e^{-i \pi/3} ]^4} \\ &= -\frac{3}{[z^2+(1-e^{-i \pi/3}) z - e^{-i \pi/3} ]^4} \\ &+ 6 \frac{[2 z+1-e^{-i \pi/3}]^2}{[z^2+(1-e^{-i \pi/3}) z - e^{-i \pi/3} ]^5} \end{align}$$
Now plug in $z=e^{i \pi/3}$. The result is a mess that ultimately simplifies to $(5/27) e^{i 4 \pi/3}$.
The integral over the real line is then
$$-i 2 \pi \frac{5}{27} \frac{e^{i \pi/3}}{1-e^{i 2 \pi/3}} = \frac{5 \pi}{27 \sqrt{3}}$$