Residue theorem: Let be a simply connectedopen subset of the complex plane containing a finite list of points and a function holomorphic on Letting be a closed rectifiable curve in and denoting the residue of at each point by and the winding number of around by the line integral of around is equal to times the sum of residues, each counted as many times as winds around the respective point:
The relationship of the residue theorem to Stokes' theorem is given by the Jordan curve theorem. The general plane curveTemplate:Mvar must first be reduced to a set of simple closed curves whose total is equivalent to for integration purposes; this reduces the problem to finding the integral of along a Jordan curve with interior The requirement that be holomorphic on is equivalent to the statement that the exterior derivative on Thus if two planar regions and of enclose the same subset of the regions and lie entirely in hence
is well-defined and equal to zero. Consequently, the contour integral of along is equal to the sum of a set of integrals along paths each enclosing an arbitrarily small region around a single — the residues of (up to the conventional factor at Summing over we recover the final expression of the contour integral in terms of the winding numbers
In order to evaluate real integrals, the residue theorem is used in the following manner: the integrand is extended to the complex plane and its residues are computed (which is usually easy), and a part of the real axis is extended to a closed curve by attaching a half-circle in the upper or lower half-plane, forming a semicircle. The integral over this curve can then be computed using the residue theorem. Often, the half-circle part of the integral will tend towards zero as the radius of the half-circle grows, leaving only the real-axis part of the integral, the one we were originally interested in.
The left-hand side goes to zero as Template:Math since is uniformly bounded on the contour, thanks to using on the left and right side of the contour, and so the integrand has order over the entire contour. On the other hand,[1]
The same argument works for all where is a positive integer, giving usThe trick does not work when , since in this case, the residue at zero vanishes, and we obtain the useless identity .
Evaluating Eisenstein series
The same trick can be used to establish the sum of the Eisenstein series: