Use the rectangular contour for an exponential beta integral. For , integrate counterclockwise around the rectangle with vertices . Its only pole is at , with
The right vertical side is bounded in modulus by , and the left by . Both tend to zero because . On the top edge , and that edge is traversed right to left. The residue theorem therefore gives
Since ,
The same inequalities establish convergence at both real infinities. With , this integral becomes . Taking gives
For a simple pole, the residue is , the coefficient of its Laurent series. On an anticlockwise circle , integration of each Laurent term is zero except , whose integral is . This proves the stated single-pole residue theorem.
For , the only pole inside the rectangle of height is , with residue . The residue theorem therefore gives . The upper edge is traversed from right to left and satisfies , so the two horizontal contributions sum to .
On the right edge the modulus is bounded by , and on the left by . Multiplying by the fixed edge length shows that both contributions tend to zero because . Thus
Using yields
This rectangular contour for an exponential beta integral also gives the ordinary beta integral after the substitution .