There is a line integral in a form,
$$\int_\mathrm{arc} \frac{\exp(iz)}{z^2+1} \, dz$$
"arc" is a semi-circular line with radius $R$ on the upper half complex plane. and i know that the integral converges to zero as R goes to infinity.
What about this integral as $R$ goes to infinity? $$\int_\mathrm{arc} \frac{\exp(iz)}{z+1} \, dz$$ I expect that the second integral converges to a fixed constant as $R$ goes to infinity. Am i right? if i am, how can i calculate this constant?