To establsih the integration formula we use the closed contour shown in the figure, where R>1

Where the legs of the closed contour are as indicated in the figure. Since has parametric representation ,

and can be represented by

we find the singularities

lies inside the closed contour

,

consequently,

furthermore,

as