Applying the residue theorem
-
If $f$ has a simple pole at $z=a$, then $\Res_{z=a} f(z) = \lim_{z\to a} (z-a) f(z)$.
-
If $f(z) = g(z)/h(z)$ where $g,h$ are holomorphic at $a$, $g(a)\neq 0$, and $h$ has a simple zero at $a$, then $\Res_{z=a}f(z) = g(a)/h'(a)$.
-
If $f(z) = g(z)/(z-a)^k$ where $g$ is holomorphic at $a$, $g(a)\neq 0$, and $k\in \N$, then $\Res_{z=a} f(z) = g^{(k-1)}(a)/(k-1)!$.