Cauchy's Integral Formula states that if is analytic in and the point is not on C, then:

Ok, and that's analytic in C. Don't confuse the ENTIRE integrand with the expression for when using this formula.

So plugging in , then the integral is just:

right?

Try and get good at calculating these in Mathematica so that you can check your results. For example (where I used an equivalent circle of radius 2 via deformation of path theorem):

Code:

In[111]:=
NIntegrate[(Exp[-z]/(z - Pi*(I/2)))*2*I*
Exp[I*t] /. z -> 2*Exp[I*t],
{t, 0, 2*Pi}]
N[2*Pi*I*Exp[(-Pi)*(I/2)]]
Out[111]=
6.283185307179801 -
2.708944180085382*^-14*I
Out[112]=
6.283185307179586