Evaluate $\oint_C \frac{e^\frac{1}{z}}{z^2-1} dz$ where $C$ is the locus of $z$ satisfying $|z-1|<3/2$ (answer: $iπ/e$).
My attempt at an answer comes nowhere close to this given result:
The two residues inside our contour are at $z=0$ and $z=1$. By Cauchy's residue theorem, the value of the integral is $2\pi i$ times the sum of these two residues.
At $z=ε, ε\ll 1$, we have: $$\frac{1}{ε^2-1}(1+1/ε+...) \rightarrow \frac{1}{-1}(1+1/ε+...) \rightarrow \text{Res} = -1$$
At $z=1+ε$, we have: $$ e^\frac{1}{1+ε} \frac{1}{(ε)(2+ε)} \rightarrow \frac{1}{ε} e/2 \rightarrow \text{Res} = e/2$$
So my answer is $2πi (\frac{e}{2}-1)$ - apparently this is completely wrong though! The only way I can see to get the given answer is if we include the resiude at $z=-1$. Have I completely misunderstood something?
The mistake is from here
At $z=0$, do the Laurent series:
$$\frac1{z^2-1}e^{1/z}=-\sum_{k=0}^\infty \frac1{k!}z^{-k}\sum_{n=0}^\infty z^{2n} $$
take the coefficient for the $z^{-1}$ term,
$$\text{Res}(z=0)=-\sum_{k=0}^\infty \frac1{(2k+1)!}=-\sinh1=\frac{1}{2e}-\frac e2$$
So we get
$$\text{Res}(z=0)+\text{Res}(z=1)=\frac{1}{2e}-\frac e2+\frac e2=\frac{1}{2e}$$
which matches the answer.
Best Method is to consider the area enclosed by the contour outside $|z-1|\ge \frac32$, which includes a simple pole at $z=-1$ and the singuarity $z=\infty$. Note that $z=\infty$ is analytic in your case. So the residue at $z=\infty$ is zero. And you immediately get the answer by only computing the residue at $z=-1$. But be careful to add an additional $-$ sign in this case because the contour is clockwise with respect to the area outside $|z-1|\ge \frac32$.