I am practicing with the residue calculation and I am having a bit of misunderstanding.
Let $f(z) = \frac{1}{(z^3+1)^2}$. I want to calculate the Res of $f$ in all its singularities which are the poles $-1 , e^{\frac{i \pi}{3}}$ and $ e^{\frac{-i \pi}{3}}$ with order $n =2$ if I am not wrong. I thought of using the formula of residue for poles with order higher than 1, which consists in multiplying $f(z)$ with $(z-z_0)^m$ where $ m \geq n$ and then taking the derivative of the result $ m-1 $ times and dividing it by $(m-1)!$ and calculating the limit as $z$ approaches to $z_0$. Somehow that calculation is not getting simplified or booting to a result. am I doing something wrong here?