Home  18.013A  Chapter 27 


There are functions that are not integrable in general but for which integrals between certain specific endpoints can be evaluated.
These are often integrals that can be rewritten, either by adding a known integral, or by using symmetry, or by some other trick, as an integral over a closed path in the complex plane.
Such integrals can be evaluated by use of the Residue Theorem, which states that the integral of a function $f(z)$ counterclockwise around a simple closed path $C$ is $2\pi i$ times the sum of the residues of $f$ within $C$ .
The residue of a function with an isolated singularity is the coefficient of its minus first power at the singular point.
Thus for example, $\frac{2}{z}$ has residue 2 at $z=0$ . $\frac{1}{\mathrm{sin}z}$ has residue 1 at even multiples of $\pi $ , and residue 1 at the odd multiples of $\pi $ .
We know that the function $\frac{1}{1+{x}^{2}}$ is the derivative of the arctangent, so we can actually integrate it over any range. In particular since we have $\mathrm{tan}\left(\frac{\pi}{2}\right)=+\infty $ and $\mathrm{tan}\left(\frac{\pi}{2}\right)=\infty $ , its integral from $\infty $ to $+\infty $ is $\pi $ .
Here is another way to deduce this fact. We can use partial fractions to write
Thus this function has a singularity at $i$ in the upper half plane and a singularity at $i$ in the lower half plane, with residues $\frac{1}{2i}$ and $\frac{1}{2i}$ respectively. If we make a path $C$ that goes up the real axis from $R$ to $R$ then around a semicircle in the upper half plane from $R$ back to $R$ , for $R1$ this will enclose the singularity at $i$ .
The value of the integral will therefore be $\frac{2\pi i}{2i}$ or $\pi $ , by the residue theorem.
The integrand will behave like
${R}^{2}$
on the large semicircle, and since the length of that semicircle is only
$\pi R$
, the integral around it will go to zero like
$\frac{1}{R}$
does as
$R$
increases.
This tells us that the value of the integral from
$R$
to
$R$
on the real line will go to
$\pi $
as
$R$
increases.
This gives us an integral we know.
However the same technique applies to much more complicated integrands and allows us to do lots of integrals again from $R$ to $R$ as $R$ approaches infinity.
We give two examples.
One is the so called Fourier transform of $\frac{1}{1+{x}^{2}}$
where $C$ is the semicircle of radius $R$ in the upper half plane, and again the integral on $C$ goes to zero as $R$ increases.
Now we use this method to sum a series. The function $\mathrm{cot}x$ is singular at $x=0$ and is periodic with period $\pi $ so it is singular at every multiple of $\pi $ . Its residue at each of these singularities is 1.
Moreover, if you wander far off the real line, it quickly approaches either $i$ or $i$ , since it is
and the second terms in the numerator and denominator will dominate in the upper half plane making the integrand approach $i$ and the first terms will dominate in the lower half plane so that it approaches $i$ as $\lefty\right$ increases there.
This implies that an integral of $\frac{\mathrm{cot}z}{{z}^{2}}$ over a large circle of radius $R$ (with $R$ a half integral multiple of $\pi $ to avoid trouble near the real line) will go to zero as $R$ goes to infinity just as in the previous case.
This further implies that the sum of the residues of this function must go to zero inside this circle. But for each positive or negative integer $j$ the residue of this function at $j\pi $ is ${(j\pi )}^{2}$ .
The residue of this integrand at $z=0$ can be computed as half the second derivative of $z\mathrm{cot}z$ at $z=0$ . (We factor out the singular term which is here ${z}^{3}$ and expand the rest of the integrand in a Taylor series to get ${z}^{1}$ coefficient.)
Since
$\mathrm{sin}z$
goes as
$z\frac{{z}^{3}}{6}$
and
$\mathrm{cos}z$
as
$1\frac{{z}^{2}}{2}$
,
$z\mathrm{cot}z$
behaves as
$\left(1\frac{{z}^{2}}{2}\right)\left(1\frac{{z}^{2}}{6}\right)$
which can be written as
$\frac{1\frac{{z}^{2}}{6}\frac{{z}^{2}}{3}}{1\frac{{z}^{2}}{6}}$
or
$1\frac{{z}^{2}}{3\left(1\frac{{z}^{2}}{6}\right)}$
.
The residue of
$\frac{\mathrm{cot}z}{{z}^{2}}$
at
$z=0$
is therefore
$\frac{1}{3}$
and we obtain the conclusion
or
You can actually sum the first 128 (or 1024) terms of this sum on a spreadsheet and extrapolate by comparing the sum up to different powers of 2. If you extrapolate first forming ${S}_{2}(k)=S\left({2}^{k}\right)S\left({2}^{k1}\right)$ , then ${S}_{3}(k)=\frac{4{S}_{2}\left(k\right){S}_{2}(k1)}{3}$ then ${S}_{4}(k)=\frac{8{S}_{3}\left(k\right){S}_{3}(k1)}{7}$ , etc. You can get this answer to enormous accuracy numerically and verify this conclusion.
