I am revising complex analysis and have come across this example which I want to solve.
Example: Compute the integral $$ \int_\gamma \frac{e^{2z} + \sin z}{z - \pi} \,\text{d}z $$ where $\gamma$ is the circle $|z-2|=2$ traversed counter-clockwise.
I think that it needs to be solved using Cauchy's integral formula, however I am struggling to apply the formula to get a solution. I would appreciate any hints and tips on how to get to the answer.
Here is the formula $f(z)=\frac{1}{2\pi i}\displaystyle\int_\gamma \frac{f(z)}{z-z_0}$
Let us denote $f(z)=e^{2z}+\sin z$ so $f(\pi)\cdot 2 \pi i=\displaystyle\int_\gamma \frac{e^{2z} + \sin z}{z - \pi} \,\text{d}z$
In our case $z_0=\pi$ now $f(\pi)=e^{2\pi}+\sin(\pi)=e^{2\pi}$
So the final answer is $e^{2\pi}\cdot 2\pi i$