Evaluating sums with the residue theorem
The residue theorem (or Cauchy’s residue theorem) is an incredibly powerful tool that can aid in evaluating integrals of analytic functions over closed curves.
Theorem: Let be a meromorphic function; that is, is analytic except at a finite list of singularities, then
where represents the residue of at , and runs over every singularity contained within the curve in the sum.
By equating an integral to a finite sum, the residue theorem can be used to solve many seemingly hard integrals.
Example: Find the value of .
We define the function . Clearly the desired integral is equal to . Now consider the semicircular contour consisting of a segment on the real axis from to , and an arc in the upper half plane connecting the two endpoints as shown below.
Then we have that
and by the residue theorem, , so
As approaches infinity, it can be shown through bounding that vanishes, so
Since the residue theorem also works if there are an infinite number of singularities (as long as they are isolated), we can “work in reverse” and instead find the value of an infinite sum by calculating a contour integral.
Let’s say we wanted to find the value of the sum
through the residue theorem. By the theorem, , so we want to find a function such that
- Every is a singularity of 1
- The residue of at each is
To construct such an , we first consider another function which has set of roots . Then, we can write
where for all .
Now, consider taking the logarithm then the derivative.
We now have a function that has poles at all , with residue equal to , the order of the zero. If all the zeroes have order 1, then will satisfy the conditions for .2
As an example, we can try calculating . Here, , and we can choose . We should first confirm that the zeroes of all have order 1:
Now we can define .
With being a contour that envelopes all singularities of ,
We have a pesky residue at that we will need to take care of. The Laurent expansion of around is
so
and it is plain to see that .
Now, all that is left is to evaluate the contour integral without the residue theorem. As with the example above, a common way to do this is to bound the value of the integral and show that it approaches 0 as the contour expands.
From here onwards, let be a positive integer. Consider the square contour with side length centered at 0. We will bound the value of the integral by bounding the value of along the edges of the square.
On the top and bottom edges,
On the left and right edges,
Therefore,
and as the contour expands to cover all singularities, approaches infinity, so
and we finally get
Similarly, the values of also disappear, so we can calculate the sum of the reciprocals of any even power.
Now, instead of summing over the integers, we can also sum over some less conventional sets. For example, let’s say we want to calculate , the sum of the reciprocal squares of all fixed points of the tangent function. In this case again, and we can set to avoid unnecessary singularities from . We now have the function . As with before,
It can be shown similarly that decreases to 0 as the contour expands to cover all singularities, so we have
Of course, this method will not work for every possible choice of and (for example, you cannot evaluate because the contour integral cannot be evaluated nicely on only the right half), but it’s still cool :)
ideally should be chosen such that the singularities are “nice” enough, because separating the residue of singularities in and not in will become troublesome otherwise
of course, there are more things to consider, like how contributes to the singularities of , but most will not drastically impact the behavior of
