3.9 Applications of Residues to Improper Integration
One application of the theory of residues is to improper integrals. Before going into the general theory, let’s do an example.
We have \(\displaystyle \int _0^{\infty } \frac{x^2}{x^6 + 1}\, dx = \frac{\pi }{6}\).
First, let’s recall what the improper integral is. By definition, we have
Now, by symmetry, we have
So, as it will turn out to be easier to deal with, let’s work with the integral on the right-hand-side instead of the one on the left.
For each \(R{\gt}0\), let’s write \(C_R\) for the contour that goes from \(-R\) to \(R\) only the real axis, and the around the top of the circle of radius \(R\) centered about \(0\) from \(R\) back to \(-R\) again. See the picture in Figure 3.1.
Now, let’s write \(C_R^1\) for the portion of \(C_R\) on the bottom, i.e., the part that lies on the real line and goes straight from \(-R\) to \(R\), and \(C_R^2\) for the portion that goes from \(R\) back to \(-R\) along the top half of the circle. We then have
The idea is to carry out the following steps:
Show that \(\displaystyle \lim _{R\to \infty } \int _{C_R^2} \frac{z^2}{z^6 + 1}\, dz = 0\).
Use the Residue Theorem to compute \(\displaystyle \int _{C_R} \frac{z^2}{z^6 + 1}\, dz\).
Conclude that \(\displaystyle \int _0^{\infty } \frac{z^2}{z^6 + 1}\, dz = \frac{1}{2}\lim _{R\to \infty } \int _{C_R} \frac{z^2}{z^6 + 1}\, dz\).
For (a), we use the fact that, for \(R {\gt} 1\), the norm of the integrand is at most \(\displaystyle R^2/(R^6 - 1)\). It follows that
So, by the squeeze theorem, \(\displaystyle \lim _{R\to \infty } \int _{C_R^2} \frac{z^2}{z^6 + 1}\, dz = \lim _{R\to \infty } \frac{\pi R^{3}}{R^6 -1}= 0\).
For (b), set \(f(z) = z^2/(z^6 + 1)\). If \(R {\gt} 1\), then \(f\) has three poles contained in \(C_R\) at \(z_1 = e^{\pi i/6}\), at \(z_2 = i\) and at \(z_3 = e^{5\pi i/6}\). Setting \(p(z) = z^2\) and \(q(z) = z^6 + 1\), we see that
So
For (c), we then get
Here’s another, example.
Compute \(\displaystyle \int _{-\infty }^{\infty } \frac{\sin ^2 x}{x^2}\, dx\).
Here, we have
The idea we want to use here is that, if \(z = x + iy\) is in the upper-half-plane, then \(|e^{2iz}| = e^{-y}\) is small, while, if \(z\) is in the lower-half-plane, then \(|e^{-2iz}| = e^{y}\) is small.
We also want to use the idea that, since \(\displaystyle g(z) := \frac{\sin ^2}{z^2}\) has a removable singularity at \(z = 0\), for any \(r{\gt}0\), \(\displaystyle \int _{-r}^r \frac{\sin ^2}{z^2}\, dz = \int _{L_r} \frac{\sin ^2 z}{z^2}\, dz\) where \(L_r\) is the contour going from \(-r\) to \(r\) around the lower half of the circle of radius \(r\) centered at \(0\).
From this, we see that
Now, for \(z\in L_r\), we have \(\displaystyle |\frac{1-e^{-2iz}}{4z^2}| \leq 2/4r^2\). So
Therefore,
On the other hand, let’s write \(U_r\) for the contour going from \(r\) to \(-r\) along the upper half of the circle of radius \(r\) centered at \(0\), and \(C_r\) for the contour \(L_r\) followed by \(U_r\) or (in other words) the circle of radius \(r\) centered at \(0\). Then, for similar reasons as for 3.48, we see that
So,
Moreover, by the Residue Theorem,
It follows that
But then, putting everything together,