Let $C_n$ be the rectangle, positively oriented, which sides are in the lines $$x=\pm(N+\dfrac{1}{2})\pi~~~y=\pm(N+\dfrac{1}{2})\pi$$ with $N\in\mathbb{N}$. Prove that $$ \displaystyle\int_{C_N} \dfrac{dz}{z^2\sin(z)}=2\pi i\left[ \frac{1}{6}+2\sum_{n=0}^N \dfrac{(-1)^n}{n^2\pi^2}\right] $$
what I did
If $f(z)=\dfrac{1 }{z^2\sin(z)}$ then $f$ has a pole of order 3 in $z=0$ so the value of the integral is equal to $2\pi i (\text{sum of residues}) $ so, it gives me the factor $\frac{1}{6}$. then every point $z=n\pi, ~~ n=0,\pm1,\pm2,\cdots,\pm N$ are simple poles. my question is:
How i calculate the residues in those points?
What am I missing? Am I doing it wrong?
$$z^2\sin(z)=\displaystyle\sum_{n=0}^{\infty}(-1)^n\dfrac{z^{2n+3}}{(2n+1)!} $$
I have a solution in latex for this but is in spanish, this problems comes from Churchill: Complex Calculus with applications. hope it helps.