I have the following question. I know Cauchy's integral formula but I am facing an exercise where I have singularities and I can not solve it directly. The problem is to evaluate the integral $$\int_{C^{+}} \frac{\sin(z)}{z^2(z^2+1)}dz$$ with $C\equiv|z|=2$ and it is clear that $i,-i$ and $0$ are singularities so I can not apply directly the theorem. I am lost with this exercise.
Thank you very much.
The function has three simple poles at $0,i$ and $-i$. The residue at a simple pole $a$ is equal to $\lim_{z \to a} (z-a)f(z)$. I will let you calculate the residues. You should get the residues as $1$, $\frac 1 2 i\sin i$ and $\frac 1 2 i\sin i$. So the given integral equals $2 \pi i(1+\sin i)$