I'm trying to find $$\text{Res}_{z=\frac{\pi}{2}}\frac{1}{\sin(z)-1}$$
Since I don't know where to begin writing out the Laurent series expansion for $f$ I assume I need to know the order of the pole at $z=\frac{\pi}{2}$. I don't know how this is found, but Wolfram Alpha tells me it's a double pole. Using this info I've tried the formula:
$$\text{Res}\left(f(z),\frac{\pi}{2}\right)=\lim_{z\to \frac{\pi}{2}}\frac{d}{dz}\left(z-\frac{\pi}{2}\right)^2\frac{1}{\sin(z)-1}$$
When I try to differentiate this things go from bad to worse. Any ideas?
You can remark that $\sin$, hence also $f(z) = \frac1{\sin z - 1}$, is symmetric around $z = \pi/2$.
It follows that its Laurent series can not have odd terms, and the residue has to be $0$.