Loading [MathJax]/jax/output/HTML-CSS/jax.js
Skip to main content
Library homepage
 

Text Color

Text Size

 

Margin Size

 

Font Type

Enable Dyslexic Font
Physics LibreTexts

9.4: Using Contour Integration to Solve Definite Integrals

( \newcommand{\kernel}{\mathrm{null}\,}\)

The calculus of residues allows us to employ contour integration for solving definite integrals over the real domain. The trick is to convert the definite integral into a contour integral, and then solve the contour integral using the residue theorem.

As an example, consider the definite integral dxx2+1. This integral is taken over real values of x, and in Chapter 3 we solved it using a change of variables. Now let’s see how to solve it using contour integration.

First, generalize the integrand from a function of x to an analytic function of z. (This procedure is called analytic continuation.) Usually, we choose the new (complex) integrand so that it reduces to the old integrand for zR, and is analytic over a broad domain. In this case, let 1x2+11z2+1. This is just the integrand we dealt with in Section 9.3.

We now have to choose the contour. The usual procedure is to define a closed (loop) contour, such that one segment of the loop is the real line (from to +), and the other segment of the loop “doubles back” in the complex plane to close the loop. This is called closing the contour.

Here, we choose to close the contour along an anticlockwise semicircular arc in the upper half of the complex plane, as shown below:

clipboard_ec7b4e98e54fbf17e025d6ecf65865302.png
Figure 9.4.1

The resulting loop contour encloses the pole at z=+i, so dzz2+1=2πiRes[1z2+1]z=+i=π. Note that the loop is counterclockwise, so we take the positive sign for the residue theorem. The loop integral can also be written as a sum of two integrals: dzz2+1=dxx2+1+arcdzz2+1. The first term is the integral we’re interested in. The second term, the contour integral along the arc, goes to zero. To see why, observe that along an arc of radius R, the magnitude of the integrand goes as 1/R2, while the dz gives another factor of R (see Section 9.1), so the overall integral goes as 1/R, which vanishes as R.

We thus obtain the result dxx2+1=π. As an exercise, you can verify that closing the contour in the lower half-plane leads to exactly the same result.

Jordan’s lemma

Before proceeding to more complicated uses of contour integration, we must discuss an important result called Jordan’s lemma:

Theorem 9.4.1

Let I=Cdzeiqzg(z), where q is any positive real constant, and the contour C which is a semi-circular arc of radius R in the upper half-plane, centered at the origin. Then If|g(z)|<gmaxfor allzCI0asgmax0.

In other words, if the factor of g(z) in the integrand does not blow up along the arc contour (i.e., its value is bounded), then in the limit where the bounding value goes to zero, the value of the entire integral vanishes.

Usually, the limiting case of interest is when the radius of the arc goes to infinity. Even if the integrand vanishes in that limit, it may not be obvious that the integral I vanishes, because the integration is taken along an arc of infinite length (so we have a 0× sort of situation). Jordan’s lemma then proves useful, as it provides a set of criteria that can let us instantly conclude that I should vanish.

The proof for Jordan’s lemma is tedious, and we will not go into its details.

For integrands containing a prefactor of eiqz rather than eiqz (again, where qR+), a different version of Jordan’s lemma holds, referring to a contour C in the lower half-plane:

Theorem 9.4.2

Let I=Cdzeiqzg(z), where q is any positive real constant, and the contour C which is a semi-circular arc of radius R in the lower half-plane, centered at the origin. Then If|g(z)|<gmaxfor allzCI0asgmax0.

This is easily seen by doing the change of variable zz on the original form of Jordan’s lemma.

As a convenient way to remember which variant of Jordan’s lemma to use, think about which end of imaginary axis causes the exponential factor to vanish: eiqz|z=i=e=0eiqzvanishes far above the origin.eiqz|z=i=e=0eiqzvanishes far below the origin. Hence, for eiqz (where q is any positive real number), the suppression occurs in the upper-half-plane. For eiqz, the suppression occurs in the lower-half-plane.

A contour integral using Jordan’s lemma

Consider the integral I=dxcos(x)4x2+1. One possible approach is to break the cosine up into (eix+eix)/2, and do the contour integral on each piece separately. Another approach, which saves a bit of effort, is to write I=Redxeix4x2+1. To do the integral, close the contour in the upper half-plane:

clipboard_e512555080bd266c985d13258de9703cf.png
Figure 9.4.2

Then dzeiz4z2+1=dxeix4x2+1+arcdzeiz4z2+1. On the right-hand side, the first term is what we want. The second term is a counter-clockwise arc in the upper half-plane. According to Jordan’s lemma, this term goes to zero as the arc radius goes to infinity, since the rest of the integrand goes to zero for large |z|: |14z2+1|14|z|20as|z|. As for the loop contour, it can be evaluated using the residue theorem: dzeiz4z2+1=Res[eiz4z2+1]enclosedpoles=2πiRes[14eiz(z+i/2)(zi/2)]z=i/2=2πie1/24i. Hence, I=Re[π2e]=π2e. In solving the integral this way, we must close the contour in the upper half-plane because our choice of complex integrand was bounded in the upper half-plane. Alternatively, we could have chosen to write I=Redxeix4x2+1, i.e., with eix rather than eix in the numerator. In that case, Jordan’s lemma tells us to close the contour in the lower half-plane. The arc in the lower half-plane vanishes, as before, while the loop contour is clockwise (contributing an extra minus sign) and encloses the lower pole: dzeiz4z2+1=2πiRes[eiz4z2+1]z=i/2=2πie1/24i=π2e. Taking the real part, we obtain the same result as before.

Principal value integrals

Sometimes, we come across integrals that have poles lying on the desired integration contour.

As an example, consider I=dxsin(x)x. Because of the series expansion of the sine function, the integrand does not diverge at x=0, and the integral is in fact convergent. The integral can be solved without using complex numbers by using the arcane trick of differentiating under the integral sign (see Section 3.6). But it can also be solved straightforwardly via contour integration, with just a few extra steps.

We start by writing I=Im(I),whereI=dxeixx. We want to calculate I with the help of contour integration. But there’s something strange about I: the complex integrand has a pole at z=0, right on the real line!

To handle this, we split I into two integrals, one going over <x<ϵ (where ϵ is some positive infinitesimal), and the other over ϵ<x<: I=limϵ0[ϵdxeixx+ϵdxeixx]Pdxeixx. In the last line, the notation P[] is short-hand for this procedure of “chopping away” an infinitesimal segment surrounding the pole. This is called taking the principal value of the integral.

Note

Even though this bears the same name as the “principal values” for multi-valued complex operations discussed in Chapter 8, there is no connection between the two concepts.

Now consider the loop contour shown in the figure below. The loop follows the principal-value contour along the real axis, skips over the pole at z=0 and arcs back along the upper half-plane. Since it encloses no poles, the loop integral vanishes by Cauchy’s integral theorem. However, the loop can also be decomposed into several sub-contours:

  1. Γ1, consisting of the segments along the real axis.

  2. Γ2, the large counter-clockwise semi-circular arc.

  3. Γ3, the infinitesimal clockwise semi-circular arc that skips around z=0.

clipboard_efcce2e9358680ce01fcb5931cbfe4bc4.png
Figure 9.4.3

The integral over Γ1 is the principal-value integral we are interested in. The integral over Γ2 vanishes by Jordan’s lemma. The integral over Γ3 can be calculated by parameterization: Γ3eizz=limϵ00πeiϵexp(iθ)ϵeiθ(iϵeiθ)dθ=limϵ0i0πdθ=iπ. Intutively, since encircling a pole anticlockwise gives a factor of 2πi times the residue (which is 1 in this case), a clockwise semi-circle is associated with a factor of iπ. Finally, putting everything together, Γ1+Γ2+Γ3f(z)dz= 0 (Cauchy's integral theorem)=Γ1f(z)dz= I+Γ2f(z)dz= 0 (Jordan's lemma)+Γ3f(z)dz.= iπ Hence, I=Im(I)=Im(iπ)=π. This agrees with the result obtained by the method of differentiating under the integral sign from Section 3.6.

Alternatively, we could have chosen the loop contour so that it skips below the pole at z=0. In that case, the loop integral would be non-zero, and can be evaluated using the residue theorem. The final result is the same.


This page titled 9.4: Using Contour Integration to Solve Definite Integrals is shared under a CC BY-SA 4.0 license and was authored, remixed, and/or curated by Y. D. Chong via source content that was edited to the style and standards of the LibreTexts platform.

Support Center

How can we help?