I am practicing complex integration using Cauchy's formula, and I ran into a problem. The following integral:
$$\oint_{L}{\frac{e^{\frac{1}{z-a}}}{z}}dz$$ where $$L=\{z\in\mathbb{C}:|z|=r\}$$ for some $r\neq|a|$.
So the contour is a circle in the origin that can not pass through one of the singularities $a$. The other singularity being $0$. That means it's eather of a greater or lesser radius than $|a|$. If it is of a radius lesser than $|a|$, then by Cauchy's formula: $$\oint_{L}{\frac{e^{\frac{1}{z-a}}}{(z-0)}}dz = \frac{2\pi i}{e^{1/a}}$$ If, however, $r>|a|$ then the integral would be the sum of the integrals of two separate disjunct contours containing only the $0$ singularity and only the $a$ singularity. This is where I'm stuck. I'm not sure how to solve the integral of the contour containing the $a$ singularity (can't get it in Cauchy formula form).
Hint
I would suggest to use Residue theorem here. This theorem is a consequence of Cauchy’s formula.
For a radius $r > \vert a \vert$, you get
$$\oint_{L}{\frac{e^{\frac{1}{z-a}}}{z}}dz =2i\pi \left(\frac{1}{e^{1/a}}+\mbox{Res}(f,a)\right)$$