Material by the IntegralPaso project. Conditions and limits are stated in each guide; external teaching review is pending.
For certain real integrals extended to complex functions, choose a contour and compute enclosed poles. Justify the arc contribution, orientation and analytic hypotheses. This complex-analysis technique is not an automatic calculator method.
Common mistake
Do not treat contour poles as ordinary interior poles.
Step-by-step example
Close 1/(z²+1) in the upper half-plane.
The only enclosed pole is i.
The arc vanishes as its radius grows.