You are on page 1of 7

PSI Lectures on Complex Analysis

Tibra Ali
August 14, 2014

Lecture 4

1 Evaluating integrals using the residue theorem


Recall the residue theorem.
If f (z) has singularities at z1 , z2 , . . . , zk which are enclosed by a contour C then

z1

z2

zK+1
z3
zk

z4 zk+2

zk+3

Figure 1: Using the residue theorem

I k
f (z)dz = 2i Res of f (z) at z = zi
C i =1

1
2 Examples
2.1 Trigonometric Integrals
First we consider integrals of the form
Z 2
1
I= d, with a > b > 0 and ( a, b) R.
0 a + b cos
Since this is an integral on the circle we can choose our contour C to be the unit circle on the complex plane.
We set
z = ei
which implies
idz
= d.
z
However, we want as our integrand to be a meromorphic function whose residues are easy to compute. So
let us choose
z + 1/z
cos = .
2
Then our integral becomes
dz
I
I = 2i .
C 2za + b + bz2
So we have to find the zeros of the polynomial

P(z) = bz2 + 2za + b


that lie inside the unit circle. The two zeros are

a a2 b2
z = .
b b
Note that since a > b, we have ba < 1 as well as a2 b2 > 0. Thus we see that z < 1 and hence
outside the unit circle. On the other hand
! !
a a2 b2 a a2 b2
z+ z = +
b b b b
= 1.
This implies
|z+ | < 1.
Thus the residue of I (z) at z+ is given by
2i
lim (z z+ )
zz+ (z z+ )(z z )
2i
=
(z+ z )
ib
= .
a2 b2
Thus we have
2b
I= .
a2 b2

2
2.2 Semi-circular Contours
Before we evaluate integrals that use semi-circular contours let us state a useful theorem:

Suppose we f (z) satisfies

M
| f (z)|
Rk
on a contour parametrized by

z = Rei

for either 0 or 2 and, k > 1 and M are real positive constants. Then
Z
f (z)dz M

(1)
R k 1
and this vanishes as R for k > 1.

2.3 An Application
Integrals of the form
Z
dx
0 ( a2 + x2 )(b2 + x2 )
can be evaluated by using semi-circular contours centred about the origin. Because the integrand is an

R R

Figure 2: Semi-circular contour that closes on the upper half-plane.

even function, this integral is equal to


Z
1 dx
.
2 ( a2 + x2 )(b2 + x2 )
The complex version of the integrand

1 1
2 ( a + z )(b2 + z2 )
2 2

3
has poles in the upper half-plane at
z = ia and ib.
In the limit R the contour integral reduces to real integral that we want to evaluate since the contribu-
tion from the semicircular part goes to zero very rapidly. Thus we have
1 dz
Z
I=
2 (z2 + a2 )(z2 + b2 )
 
1 1 1
= 2i lim + lim
2 zia ( z + ia )( z2 + b2 ) zib ( z2 + a2 )( z + ib )
1
= .
2ab ( a + b)
In the above calculation we assumed that a 6= b. In case a = b we have double poles at z = ia and z = ia.
In this case the integral can be evaluated using the formula for higher order pole that we saw in the last
lecture:
1 d 1
2i lim (z ia)2 = 3.
2 zia dz (z ia)2 (z + ia)2 4a
Note that, care should be taken in taking the limit R . In doing so we are evaluating the Cauchy
principle value of the integral I. If the two sides of the semicircle were taken to infinity in different ways
we would get different results.
Another thing to note is that in the examples above we closed the contour in the upper half-plane, but
we could have easily chosen the contour to close in the lower-half plane and we would have been able
to evaluate the integral. This is because in the Cauchy principle value limit both contours reduce to the
integral that we want to evaluate. In the next example we will see that we have to choose one particular
contour.

2.4 Other applications of semicircular contours


Lets consider the integral
Z
sin x
I= dx.
x2 +x+1
We can consider this integral to be the imaginary part of
Z
eix
dx.
x2 +x+1
So consider
Z
eiz
dz.
z2 + z + 1
We want to choose a contour that closes in the upper half-plane, because

ei( x+iy) = eix ey 0 in the upper half-plane.


= eix ey in the lower half-plane.
z2 + z + 1 has poles at

1 3
z = i.
2 2
So we evaluate the integral by computing the residue at z+ :

2e 3/2 sin 1
2
I= .
3

4
2.5 Mousehole Contours
Mousehole contours are useful for evaluating integrals where the integrand has a simple pole at the origin.
Before we consider a concrete example of an integral let us prove a simple and useful theorem:

\beta \alpha
\epsilon

Figure 3: A theorem for mouse holes

Suppose f (z) has a simple pole at z = a with residue then consider the contour

e = a + eeit , t ,

then
Z
lim f (z)dz = ( )i.
e0 e

Proof: Define the function g(z) which is holomorphic at z = a:



f (z) = g(z) + .
za
Now consider
Z
lim f (z)dz.
e0 e

By continutiy the contribution from the g(z) term is zero and the we have the desired result.

2.6 Example
Consider the integral
Z Z
x sin x 1 x sin x
dx = dx.
0 x3 2 x3
Now consider the function

iz eiz
f (z) = (2)
z3
z2
 
1
= 3 iz 1 iz + (3)
z 2!

The imaginary part f (z) on the real line coincides with our integrand but f (z) has a triple pole at z = 0. So
let us consider instead

iz eiz 1
h(z) = 3
+ 3.
z z
In defineing h(z) we have kept the imaginary part of the function on the real line unchanged but we have
subtracted the triple pole at z = 0. The subleading singularity in (3) is a simple pole and we can use our
theorem above. We choose the contour below:

5
C4

C3
r
C1 C2

Figure 4: A mouse hole contour.

The integral then becomes


Z Z Z Z 
+ + + h(z)dz = 0.
C1 C2 C3 C4

In the limit R the contribution from C4 drops out and we have


Z Z Z
h(z)dz + h(z)dz = h(z)dz
C1 C2 C3
( 0) i
=
2
i
= .
2
So
Z
x sin x
dx = .
0 x3 4

2.7 Integrals involving logarithms


Sometimes we can take advantage of the fact that the log function is mutiple valued to evaluate certain
integrals. For example, we can compute integrals of the form
Z
f ( x )dx (4)
0

if f (z) has no singularities along the positive real axis. Let us consider the integral

I
f (z) log zdz (5)
C

where we choose the contour C to be the one shown in figure. Such contours are often called keyhole
contours. The integrals along C2 and C4 are
Z Z 0
f ( x ) log xdx + f ( x ) (log x + 2i ) dx
0
Z
= 2i f ( x )dx.
0

Let us assume that in the limit


R the contribution from C1 0
r 0 the contribution from C3 0.

6
C1

C4
C3 r
C2

Figure 5: A keyhole contour.

This implies
Z
f ( x )dx = Res of f (z) log z inside C.
0 i

As an example consider
Z
1
dx.
0 x3 + 1
As we saw in class the cube roots of 1 are at
ei/3 , ei and ei5/3 .

On the other hand we have on the unit circle log z = log ei = i = Arg(z). Thus the resiudes of the
function
log z
z3 + 1
on the unit circle will be iArg(z) divided by the derivative of the denominatior:
iArg(z)
Res(z) = .
3z2
You can verify that the three residues at

ei/3 , ei and ei5/3 .


are
 
i i 5i 5
+ , and , respectively.
18 6 3 3 18 6 3
which leads us to the result
Z
1 2
dx = .
0 x3 + 1 3 3

You might also like