How to find $\frac{f(z)}{z-a}$ I hope that you can help me to find some residues. I know two ways to find the residue in a value $a \in \mathbb{C}$:


*

*Straight forward calculation: $ \int_{C(a,\epsilon)^+} f(z) dz$ 

*Rewriting a function end using the equality $\frac 1{2 \pi i}Res_{z=a}\frac{f(z)}{z-a}\ = \ f(a)$


Now how can I get $Res_{z=0}\frac{e^z}{z^2} $ ? The second trick above doesn't work. So I tried to find the integral:
$$
\int_{C(0,\epsilon)} \frac{e^z}{z} dz \ = \ 
\int_{C(0,\epsilon)} \frac{e^{\epsilon e^{it}}}{\epsilon e^{it}} \cdot i\epsilon e^{it}dz 
\ = \ i \int_{C(0,\epsilon)} e ^ {re^{it}-it}dt
$$
I don't know how to solve this, so I hope that you can give me a trick to do so.

If you have a function holomorphic on some annulus we have a Laurent expansion
$$f(z) = \sum_{n= \infty}^{\infty} a_n (z-z_0)^n$$
where
$$a_n = \frac{1}{2\pi i} \int_{\gamma} \frac{f(z)}{(z-z_0)^{n+1}}dz$$
where $\gamma$ is some closed curve in your annulus.
We have the the residue at $z_0$ is $Res_{z=z_0} f(z) = a_{-1}$. That is the residue is just the coefficient of $z^{-1}$ in our Laurent series. We can thus compute the residue with the integral formula or find the Laurent series and look at the coffient $a_{-1}$.
So remember all the residue is a some coefficient in the Laurent series. Sometimes it is hard to compute the Laurent series center at a given point and the integral computation is better to do. Other times it is easier to just find the Laurent series, which it is in your cases as the other answers have pointed out.
