I am trying to find residues for all singularities of the function: $$f(z)= \frac{\tanh z}{z^2}$$ Here is what I did: $$f(z)= \frac{\sinh z}{z^2\cosh z}$$ when $$\cosh z=0$$ then $z_k =i( \frac{π}{2}+πk)$, for $k \in\mathbb{Z}.$
Let $p(z) = \dfrac{\sinh z}{z^2}$ and $q(z)=\cosh z$
Since $z_k$ is a simple pole, then:
$$\operatorname{Res}(f(z),z_k)= \frac{p(z_k)}{q'(z_k)}= \frac{\sinh z}{z_k^2\sinh z}=\frac{1}{z_k^2}= \frac{1}{(i( \frac{π}{2}+πk))^2}= \frac{-1}{( \frac{π}{2}+πk)^2} $$ Is my solution correct? What about the residue when $z=0$?