I'm trying to evaluate $\lim_{e\to 0} \, \frac{i}{e}\int_{\pi }^0 \frac{1-\exp (i e \exp (i \theta ))}{\exp (i \theta )} \, d\theta$ with Mathematica 9.0.1.0 on OS X.
However, I get "Undefined" for this input:
Limit[I/e Integrate[(1 - Exp[I e Exp[I θ]])/Exp[I θ], {θ, π, 0}], e -> 0]
We can see numerically that the correct answer is $-\pi$ by using this code:
With[{e = 0.000001}, I/e NIntegrate[(1 - Exp[I e Exp[I θ]])/Exp[I θ], {θ, π, 0}] ] // Chop
What goes wrong in this process? Is it possible to get the correct result?
Limit[ I/eps*Integrate[(1 - Exp[I eps Exp[I \[Theta]]])/ Exp[I \[Theta]], {\[Theta], \[Pi], 0}, Assumptions -> 0 < eps < 1/1000], eps -> 0] Out[329]= -\[Pi]
$\endgroup$