17
MATH 551 LECTURE NOTES COMPLEX VARIABLES: A VERY SHORT PRACTICAL GUIDE (FUNDAMENTALS AND CONTOUR INTEGRALS) Topics covered Complex functions Complex differentiability; analytic functions Cauchy-Riemann equations (connection to harmonic functions) Multiple-valued functions and branch cuts Preparing for contour integrals Poles and meromorphic functions Cauchy integral formula, Laurent series Contour integrals; contour deformation (in general) Residue theorem, calculating residues Trick for simple poles Introduction The main goal here is to introduce the fundamentals of complex analysis required to work with contour integrals that arise in the Fourier and Laplace transforms and the nice prop- erties of complex functions that inform the solutions. Our focus will be on these transform methods for solving PDEs, but it will be necessary to first learn the methods for computing contour integrals in general. As such, the treatment here is minimal and is by no means a thorough look at this rather deep subject. We will leave out some topics in favor of having more time to focus on the intended applications. Notation: The following notation will be used (refer back as needed): i = -1 (the imaginary unit) and z = x+iy is a complex number with real/imaginary parts x and y. A point z in the complex plane C is associated with (x, y) in R 2 . A complex function f (z ) with real/imaginary parts u and v can be written f (z )= f (x + iy)= u(x, y)+ iv(x, y) Γ is a contour in the complex plane, often parameterized by z (t)=(x(t),y(t)) R Γ f dz is a contour integral in the complex plane and H Γ f dz is a contour integral over a closed contour (or ‘closed loop’) 1. Review of complex numbers Complex numbers: C is the space of complex numbers z = x + iy where i = -1 is the ‘imaginary unit’ and x = Re(z ) = ‘real part’, y = Im(z ) = ‘imaginary part’. 1

MATH 551 LECTURE NOTES COMPLEX VARIABLES: A ...jtwong/math551-2019/...fdzis a contour integral in the complex plane and H fdzis a contour integral over a closed contour (or ‘closed

  • Upload
    others

  • View
    7

  • Download
    10

Embed Size (px)

Citation preview

Page 1: MATH 551 LECTURE NOTES COMPLEX VARIABLES: A ...jtwong/math551-2019/...fdzis a contour integral in the complex plane and H fdzis a contour integral over a closed contour (or ‘closed

MATH 551 LECTURE NOTESCOMPLEX VARIABLES: A VERY SHORT PRACTICAL GUIDE

(FUNDAMENTALS AND CONTOUR INTEGRALS)

Topics covered

• Complex functions Complex differentiability; analytic functions Cauchy-Riemann equations (connection to harmonic functions) Multiple-valued functions and branch cuts

• Preparing for contour integrals Poles and meromorphic functions Cauchy integral formula, Laurent series Contour integrals; contour deformation (in general) Residue theorem, calculating residues Trick for simple poles

Introduction

The main goal here is to introduce the fundamentals of complex analysis required to workwith contour integrals that arise in the Fourier and Laplace transforms and the nice prop-erties of complex functions that inform the solutions. Our focus will be on these transformmethods for solving PDEs, but it will be necessary to first learn the methods for computingcontour integrals in general.

As such, the treatment here is minimal and is by no means a thorough look at this ratherdeep subject. We will leave out some topics in favor of having more time to focus on theintended applications.

Notation: The following notation will be used (refer back as needed):

• i =√−1 (the imaginary unit) and z = x+iy is a complex number with real/imaginary

parts x and y. A point z in the complex plane C is associated with (x, y) in R2.• A complex function f(z) with real/imaginary parts u and v can be written

f(z) = f(x+ iy) = u(x, y) + iv(x, y)

• Γ is a contour in the complex plane, often parameterized by z(t) = (x(t), y(t))•∫

Γf dz is a contour integral in the complex plane and

∮Γf dz is a contour integral

over a closed contour (or ‘closed loop’)

1. Review of complex numbers

• Complex numbers: C is the space of complex numbers z = x + iy where i =√−1 is

the ‘imaginary unit’ and

x = Re(z) = ‘real part’, y = Im(z) = ‘imaginary part’.1

Page 2: MATH 551 LECTURE NOTES COMPLEX VARIABLES: A ...jtwong/math551-2019/...fdzis a contour integral in the complex plane and H fdzis a contour integral over a closed contour (or ‘closed

2 COMPLEX VARIABLES

Addition is component-wise as in R2 but i2 = −1 so

z1z2 = (x1 + y1i)(x2 + y2i) = x1x2 − y1y2 + (y1x2 + x1y2)i.

While tempting to compare to the plane R2, the ‘complex plane’ has much more structuredue to the multiplication of complex numbers.

The conjugate (with an overbar) of z = x+ iy and the modulus |z| (‘magnitude’) are

z = x− yi, |z| =√zz =

√x2 + y2.

The conjugate distributes over sums/products (vw = vw etc.) and

Re(z) =1

2(z + z), Im(z) =

1

2(z − z).

• Polar form: A complex number z can be written in rectangular or polar coordinates:

z = x+ iy or z = r cos θ + ir sin θ, r2 = x2 + y2, θ = arg z = tan−1(y/x)

The values r and θ are the modulus and argument, respectively.

Euler’s formula and n-th roots: A critical result is Euler’s formula,

cos θ + i sin θ = eiθ (so z = reiθ in polar form)

In particular, note that this implies that e2πi = 1 and

zn = 1, n ≥ 1 an integer =⇒ z = e2πik/n, k = 0, · · ·n− 1

More generally, solving zn = c is done in polar form:

zn = reiα =⇒ z = r1/neiα/ne2πik/n, k = 0, · · · , n− 1

Other arithmetic is also easy in this form e.g. eiθ = e−iθ and r1eiθ1 · r2e

iθ2 = r1r2ei(θ1+θ2).

• Functions: A general complex function is a function of two variables, typically writtenas f(z, z) or a function of x, y for the input z = x + iy. It can be written in terms ofreal/imaginary components:

f(z, z) = u(x, y) + iv(x, y)

where u, v are real functions from the plane to R. Most real functions f(x) have ‘complexi-fied’ versions f(z) (just a function of z) e.g.

f(x) = x2 =⇒ f(z) = (x+ iy)2 = x2 − y2 + i2xy.

Page 3: MATH 551 LECTURE NOTES COMPLEX VARIABLES: A ...jtwong/math551-2019/...fdzis a contour integral in the complex plane and H fdzis a contour integral over a closed contour (or ‘closed

COMPLEX VARIABLES 3

2. Multi-valued functions, branch cuts

A complex function can be multi-valued due to the formula

e2πik = 1 for all integers k.

Most functions are still single-valued dspite this, e.g.

f(z) = z2 =⇒ f(ze2πik) = z2e4πik = z2.

However, multi-valued functions are also common. For example, consider

f(z) = z1/2.

Evaluating in polar coordinates with z = reiθ,

f(reiθ) = f(reiθ · 1) = f(reiθ+i2πk) = r1/2eiθ/2eiπk, k = 0 or 1.

That is, there are two versions of f that can be defined:f(z) = |z|1/2eiθ/2 (k = 0)

f(z) = −|z|1/2eiθ/2 (k = 1)

The two definitions are the branches of f . We must choose one branch to have a single val-ued function. The k = 0 version is called the principal branch of the function. Regardlessof which branch is chosen, there is a jump across some line (segmaent) in the complex plane:

The location of this line depends on the choice of argument. If we take θ ∈ [−π, π] thenthere is a jump at θ = π since

f(eiθ)→ i as θ increases to π , f(eiθ)→ −i as θ decreases to −πso there is a jump at θ = π. The problem is that the argument θ = arg z is periodic , butei arg z/2 has different values for θ’s separated by 2π. We could also choose θ ∈ [0, 2π], inwhich case the jump is across θ = 0 instead.

The segment across which f is discontinuous is the branch cut and the endpoints arethe branch points. In this case, we have one branch point at 0 and another ‘at ∞’ (at−∞+ 0i with θ ∈ [−π, π] and ∞+ 0i for θ ∈ [0, 2π].

• Logarithms: An important example is the natural logarithm:

ln(z) = ln(reiθe2πik) = ln(r) + iθ + 2πik

= ln |f(z)|+ i arg(z) + 2πik

Page 4: MATH 551 LECTURE NOTES COMPLEX VARIABLES: A ...jtwong/math551-2019/...fdzis a contour integral in the complex plane and H fdzis a contour integral over a closed contour (or ‘closed

4 COMPLEX VARIABLES

with infinite number of branches (one for each integer k). The principal branch is

ln(z) = ln(r) + iθ.

This function has a branch cut where arg(z) jumps and a branch point at the origin, anddiscontinuous across this jump (by a value of 2πi).

• Typically, the branch cut occurs where arg(z) jumps, and the range of θ determines theplacement of the branch cut. For more complicated functions (to be discussed later), branchcuts can be segments or centered at branch points other than the origin.

• Roots in general: Using the natural logarithm we may determine branch cuts for ‘n-throots’ and other powers using the definition

zp = ep ln z.

For example, consider (z − z1)1/m. Using the above and the formula for ln z,

(z − z1)1/m = exp(1

mln(z − z1)) = |z − z1|1/m exp(

2πik

marg(z − z1))

With z − z1 = reiα, this reads

(z − z1)1/m = r1/m exp(2πikα/m).

Each distinct value of exp(2πikα/m) yields a branch; there may be finite or infinitely manydepending on the number of distinct values.

Example (branch cut): Suppose we wish to define a branch of z4 so that

f(z) = z4, f(1) = i, f is continuous along the real axis (except 0).

There are four choices for z4, from the calculation

f(ze2πik) = |z|1/4eiθ/4eπik/2.The one with f(1) = i is (plug in z = ei0)

z4 = |z|1/4eiθ/4eiπ/2.The branch cut occurs at the endpoint of the range for θ = arg z. We needed continuity atθ = 0 and θ = π so the branch cut must be placed somewhere else e.g. by taking [−π/2, 3π/2](any range including 0, π inside). This puts the branch cut at −π/2 .

Page 5: MATH 551 LECTURE NOTES COMPLEX VARIABLES: A ...jtwong/math551-2019/...fdzis a contour integral in the complex plane and H fdzis a contour integral over a closed contour (or ‘closed

COMPLEX VARIABLES 5

3. Analytic functions

A complex function f(z, z) has the form

f(z, z) = u(x, y) + iv(x, y), x =z + z

2, y =

z − z2

. (3.1)

The function is called analytic or holomorphic if it is well-defined and solely a function ofz. The ‘brute force’ meaning of this is that if the expressions for x, y are plugged into (3.1),the z’s cancel, leaving only z (so f = f(z)).

This is equivalent to no dependence on z, written succinctly as

f = f(z) ⇐⇒ ∂f

∂z= 0. (3.2)

The complex derivative of an analytic function is

f ′(z) = lim∆z→0

f(z + ∆z)− f(z)

∆z. (3.3)

The limit can be taken over ∆z = ∆x+ i∆y as ∆x,∆y → 0 in any way. Thus (3.3) is reallytwo partial derivatives. However, when f is analytic, (3.3) is well-defined - the limit in anydirection (∆x,∆y → 0 by any path) will give the same value f ′(z).

To understand why f ′(z) is well defined, let z = x+ iy, let f be analytic and write

f(z) = u(x, y) + iv(x, y)

We can take the derivative along the ‘real’ or ‘imaginary’ directions:

∆z = ∆x+ i∆y → 0 with

∆x→ 0, ∆y = 0 (real)

or

∆x = 0, i∆y → 0 (imaginary)

This gives two values for f ′(z), which are

f ′(z) = lim∆x→0

f(z + ∆x)− f(z)

∆x=∂u

∂x+ i

∂v

∂x

f ′(z) = lim∆y→0

f(z + i∆y)− f(z)

i∆y= −i∂u

∂y+∂v

∂y

Equating the two, we obtain the Cauchy-Riemann equations, which also characterizeanalytic functions. Putting the results in a nice box:

Analytic functions: For f = u(x, y) + iv(x, y), the following are equivalent:

• f is well-defined and ‘a function of z only’ (f = f(z) or equiv. ∂f/∂z = 0)• f(z) is complex differentiable in the sense that (3.3) exists.• The real/imaginary parts u, v satisfy the Cauchy-Riemann equations

∂u

∂x=∂v

∂y,

∂v

∂x= −∂u

∂y. (3.4)

A function with these properties is called (complex) analytic or holomorphic.

Page 6: MATH 551 LECTURE NOTES COMPLEX VARIABLES: A ...jtwong/math551-2019/...fdzis a contour integral in the complex plane and H fdzis a contour integral over a closed contour (or ‘closed

6 COMPLEX VARIABLES

Aside: harmonic functions: Suppose f(z) = u(x, y) + iv(x, y) and u and v are smooth.Letting subscripts denote partial derivatives, we have that

ux = vy, vx = −uy.

Now take ∂/∂x of the first CR equation and ∂/∂y of the second and use the other to simplify:

uxx = (vy)x = (vx)y = −uyyvxx = −(uy)x = −(ux)y = −vxx

so it follows that u, v are both harmonic functions (solutions to Laplace’s equation):

∇2u = 0, ∇2v = 0.

We can use this fact to solve Laplace’s equation ∇2u = 0 (beyond the scope of the discussionhere) by finding the right f(z) whose real part satisfies the desired boundary conditions. Forexample, f(z) = z2 is analytic and, with z = x+ iy,

z2 = x2 − y2 + 2ixy =⇒ u = x2 − y2, v = 2xy solve Laplace’s equation.

4. Contour integrals

The starting point is the regular line integral in R2. Analyticity will provide additionalstructure that we can exploit to evaluate such integrals in C.

Line integrals (review): Let v(x, y) = (p(x, y), q(x, y)) be a vector field in the plane.Let Γ be a path from a point A to a point B with parameterization x(t) = (x(t), y(t)) (fromt0 to t1). Then∫

Γ

v · dx =

∫ t1

t0

v · dxdtdt =

∫Γ

p dx+ q dy =

∫ t1

t0

pdx

dt+ q

dy

dtdt.

A vector field v = (p, q) is conservative if v = ∇φ for a ‘potential’ φ(x, y). We have:

v is conservative ⇐⇒∫

Γ

v · dx is path-independent ⇐⇒ ∂q

∂x=∂p

∂y. (4.1)

Path-independence means the integral depends only on the endpoints of the path:

Γ from A→ B =⇒∫

Γ

v · dx = φ(B)− φ(A).

Green’s theorem’s in the plane (the divergence/Stokes’ theorem) state that∮∂Ω

−q dx+ p dy =

∫Ω

∂p

∂x+∂q

∂ydA

∮∂Ω

p dx+ q dy =

∫Ω

∂q

∂x− ∂p

∂ydA

if p and q do not blow up in Ω. Note that the result does not hold otherwise.

Page 7: MATH 551 LECTURE NOTES COMPLEX VARIABLES: A ...jtwong/math551-2019/...fdzis a contour integral in the complex plane and H fdzis a contour integral over a closed contour (or ‘closed

COMPLEX VARIABLES 7

4.1. Contour integrals (analytic functions). First, some notation:

• Given a path Γ from A to B, we define the ‘reverse’ path −Γ to be the same curve,traversed in the opposite direction. An important rule is that∫

Γ

f(z) dz = −∫−Γ

f(z) dz. (4.2)

• A ‘closed contour’ is a path Γ from A back to itself. We write∮

Γ· · · dz (with a circle)

to denote integrals over closed contours. For a bounded region Ω, the boundarycontour is the boundary traversed counter-clockwise.• This defines the inside of a closed contour Γ. To check, use the ‘right hand rule’: if

the index finger of your right hand points along the path, your thumb points intothe region (the inward normal).

In general, for a complex function f(z, z) = u + iv, the ‘contour integral’ over a path(‘contour’) in the complex plane is a line integral with real and imaginary parts:∫

Γ

f dz =

∫Γ

(u+ iv)(dx+ i dy) =

∫Γ

u dx− v dy + i

∫Γ

u dx+ v dy.

For a general f , there is not much more to say. However, when f is analytic, the contourintegral has much nicer properties due to the Cauchy-Riemann equations.

Theorem (path independence): Let f(z) be analytic in a region Ω with anti-derivativeF (z) =

∫f dz. If Γ is a path in Ω from A to B then∫

Γ

f(z) dz = F (B)− F (A)

which depends only on the endpoints and is independent of the path.

Proof. To see this, use the theorem for conservative vector fields (4.1). By definition,∫Γ

f dz =

(∫Γ

u dx− v dy)

+ i

(∫Γ

v dx+ u dy

)= line int. of (u,−v) + i (line int. of (v, u))

From the Cauchy-Riemann equations, vx = −uy and ux = vy so using theorem (4.1),

∂y(−v) = ∂/∂x(u) =⇒ (u,−v) is conservative

Page 8: MATH 551 LECTURE NOTES COMPLEX VARIABLES: A ...jtwong/math551-2019/...fdzis a contour integral in the complex plane and H fdzis a contour integral over a closed contour (or ‘closed

8 COMPLEX VARIABLES

∂x(u) =

∂u(v) =⇒ (v, u) is conservative.

It follows that both the real/imaginary parts of∫

Γf dz are path-independent.

Contour integrals can thus be computed without dealing with the path, e.g.Γ = any path from 0 to 0 + 2i

f(z) = z2=⇒ I =

∫Γ

z2 dz =1

3z3∣∣∣0+2i

0= 8i3/3 = −8i/3

since f(z) = z2 is analytic on all of C.

Now suppose Γ is a closed contour and f is analytic inside Γ. This curve is the unionof a path Γ1 from A to B and a path ΓB from B to A (see sketch). Because f is analytic, fhas a single anti-derivative F (z). Thus, if the path independence theorem applies,∮

Γ

f dz =

∫Γ1

f dz +

∫ΓB

f dz = ((F (B)− F (A)) + (F (A)− F (B)) = 0. (4.3)

Cauchy’s theorem: Let Γ be a closed contour. If f(z) is analytic inside Γ (no singularities),∮Γ

f dz = 0.

Importantly, the result applies only if f(z) is analytic in the region inside thecontour. For example, let Γ be the circle of radius 1, traversed counter-clockwise:

Γ = z(t) = eit, t ∈ [0, 2π].Then 1/(z − 2) is analytic in the region |z| ≤ 1 , so∮

Γ

1

z − 2dz = 0.

However, 1/z is not analytic inside, and∮Γ

1

zdz =

∫ 2π

0

e−itz′(t) dt =

∫ 2π

0

1 dt = 2π.

The integral Γ is path-independent along any arc: but fails for the full closed contour. Theargument in (4.3) does not apply because f does not have a single anti-derivative in thecircle;

∫1/z dz = ln z is multi-valued. We must place a branch cut somewhere!

Page 9: MATH 551 LECTURE NOTES COMPLEX VARIABLES: A ...jtwong/math551-2019/...fdzis a contour integral in the complex plane and H fdzis a contour integral over a closed contour (or ‘closed

COMPLEX VARIABLES 9

4.2. Deformation. A function can fail to be analytic for two reasons: either it diverges ata point, or there is a branch cut (the multi-valued problem). Recall that we must choose abranch of a multi-valued f(z) to make it uniquely defined. To summarize:

Singularities: A singularity is a point where a complex function fails to be analytic.There are two main types:

• A ‘pole’ of order m at z = z0, where

f(z) ≈ C

(z − z0)mas z → z0.

• A ‘branch cut’, chosen when specifying a branch of f(z) - usually a ray from somepoint (the branch point) out to ∞. The singularity is the entire ray, and f(z) istypically discontinuous across this line.

A function that is analytic except at an isolated set of poles is called meromorphic.

Path independence applies only when f is analytic. If this is the case, a contour ΓA can befreely ‘deformed’ into another contour ΓB with the same endpoints and preserve the value:∫

ΓA

f dz =

∫ΓB

f dz if f is analytic between ΓA and ΓB.

The deformation must avoid any singularity of f . To prove this (see below), observe thatthe contour formed by ΓA and −ΓB is closed and contains no singularities, so

0 =

∫ΓA

f dz +

∫−ΓB

f dz =⇒ 0 =

∫ΓA

f dz −∫

ΓB

f dz

by flipping the direction of the second integral.

For closed contours: Similarly, a closed contour can be deformed freely as long as thedeformation does not make Γ cross a singularity. To be precise, suppose ΓA and ΓB areclosed contours with no singularities between them. Then∫

ΓA

f dz =

∫ΓB

f dz.

The sketch below illustrates the proof. We insert a small ‘bridge’ of width ε between ΓA andΓB, cutting out a bit of the closed loops as well to get a closed contour

Cε = ΓA + L− + (−ΓB) + L+

Page 10: MATH 551 LECTURE NOTES COMPLEX VARIABLES: A ...jtwong/math551-2019/...fdzis a contour integral in the complex plane and H fdzis a contour integral over a closed contour (or ‘closed

10 COMPLEX VARIABLES

as shown below. There are no singularities in this contour (by assumption) so

0 =

∮Cε

f dz =

∫ΓA

f dz −∫

ΓB

f dz +

∫L−f dz +

∫L+

f dz. (4.4)

As ε → 0, the two sides of the bridge approach the same line (but opposite directions) andthe cut out parts of the closed loops shrink in size to zero so we have that

ΓA → ΓA, ΓB → ΓB, L− → −L+.

Taking these limits in (4.4), the contributions along the bridge cancel, leaving

0 =

∫ΓA

f dz −∫

ΓB

f dz.

Key point: In contour integrals over paths where f is analytic, the contour can bedeformed as long as it does not touch/cross a singularity.

In particular, we can deform contours into unions of simple shapes like circular arcsand straight lines, which are nice for computation.

Contour deformation is a powerful tool because if interested in evaluating a contour integral,we can always deform the contour into the simplest form possible:∫

Γ

f dz =

∫Γnice

f dz, Γnice = easiest equivalent contour for evaluating the integral.

With a few more tools, ‘bad’ segments of contours can be dealt with, leaving only niceclosed contours or contours with simple shapes. The only barriers are the singularities of thefunction, that block convenient deformation. For this reason, contour integration is moreabout avoiding singularities than it is about computing integrals.

Page 11: MATH 551 LECTURE NOTES COMPLEX VARIABLES: A ...jtwong/math551-2019/...fdzis a contour integral in the complex plane and H fdzis a contour integral over a closed contour (or ‘closed

COMPLEX VARIABLES 11

5. Laurent series; Cauchy’s formula

If a function f(z) has an isolated pole at z0 like 1/(z − z0), then a contour around f(z)can be deformed to arbitrarily small size around the pole. Thus, local behavior of f(z0 isimportant to know. The basic tool for this is the Laurent series.

Review: Recall that the Taylor series for a real function f(x) around x0 is

f(x) =∞∑n=0

an(x− x0)n, an =1

n!f (n)(x0), (5.1)

which is valid in an interval around x0 of radius ρ (the ‘radius of convergence’)

(5.1) converges for all x such that |x− x0| < ρ.

Complex case: If f(z) is analytic in a disk of radius ρ around z0 it has the Taylor series

f(z) =∞∑n=0

an(z − z0)n, an =1

n!f (n)(z0) (5.2)

which converges in the disk.1 In particular, this means that the radius of convergence of(5.2) is the distance to the nearest singularity of f .

A Laurent series for f generalizes Taylor series, allowing an isolated pole. It has the form

f(z) =∞∑

n=−m

an(z − z0)n

=a−m

(z − z0)m+

a−m+1

(z − z0)m−1+ · · ·+ a−1

z − z0

+ a0 + a1(z − z0) + · · ·︸ ︷︷ ︸analytic part

where m is the order of the pole. While the first term (n = −m) determines the order of thepole, it is the last term (n = −1) that determines the contour integral (as we will see shortly).

Along with the Taylor series formula, we also have a nice integral form for derivatives:

Cauchy’s integral formula: If f is analytic in a closed contour Γ and z0 is inside, then

0 =

∮Γ

f(z) dz (Cauchy’s theorem)

and for n ≥ 0,

f (n)(z0) =n!

2πi

∮Γ

f(z)

(z − z0)n+1dz.

Important case: Most notably, for n = 0 the formula reads

f(z0) =1

2πi

∮Γ

f(z)

z − z0

dz,

which is remarkably like the sifting property of the δ. The formula says that if we know fon the boundary of a loop, then f is known in the entire region!

Page 12: MATH 551 LECTURE NOTES COMPLEX VARIABLES: A ...jtwong/math551-2019/...fdzis a contour integral in the complex plane and H fdzis a contour integral over a closed contour (or ‘closed

12 COMPLEX VARIABLES

6. The residue theorem

The coefficient a−1 is called the residue of f(z) at the pole z0:

Res(f, z0) := a−1 = coeff. of1

z − z0

in the Laurent series of f at z0.

For example,

f(z) =4

(z − 1)2+

3

z − 1=⇒ Res(f, 1) = 3.

At every other z0, this function is analytic so there are no other residues. A key result is thatthis value determines the contour integral of a closed contour around the pole, regardlessof the higher order terms (1/(z − z0)2 etc.):

Residue theorem (one pole): If f is analytic in a closed contour Γ except a pole at z0,∮Γ

f(z) dz = 2πiRes(f, z0).

The integral over the loop only cares about the residue of the pole inside it (nothing else).

Proof. The proof illustrates some useful ideas. We can deform the contour to be a circle ofarbitrarily small size ε 1 around z0:

Γε = z(t) = z0 + ε · eiθ, θ ∈ [0, 2π].In this small region, f(z) is approximately equal to its Laurent series

f(z) ≈−1∑

n=−m

an(z − z0)n + (analytic).

The integral∮· · · dz of the analytic part is zero and∮

Γε

1

(z − z0)mdz = ε1−m

∫ 2π

0

e−imθieiθ dθ = i

∫ 2π

0

ei(1−m)θ) dθ =

0 m 6= 1

2π m = 1.

Thus the contour integral only picks up the n = −1 term, and so∮Γ

f(z) dz ≈∮

Γε

f(z) dz = 2πia−1.

Finally, take ε→ 0 (shrinking the circle to arbitrarily small) to make the ≈ an equality.

Page 13: MATH 551 LECTURE NOTES COMPLEX VARIABLES: A ...jtwong/math551-2019/...fdzis a contour integral in the complex plane and H fdzis a contour integral over a closed contour (or ‘closed

COMPLEX VARIABLES 13

The brute force method to calculate the residue (shortcuts to follow) is to find the Laurentseries around z = 1; this is most easily done by expanding simpler parts and doing ‘powerseries arithmetic’ (products etc. of series). Two examples:

Example 1: Suppose

f(z) =e2z

(z − 1)2

and let Γ be a circle of radius 2 centered at the origin. Then z0 = 1 is inside the contour, so∮Γ

f(z) dz = 2πiRes(f, 1).

The denominator is okay already, so expand the numerator:

e2z = e2e2(z−1) = e2(1 + 2(z − 1) + 2(z − 1)2 + · · · ).This gives the Laurent series

f(z) =e2

(z − 1)2+

2e2

z − 1+ · · ·

=⇒∮

Γ

e2z

(z − 1)2dz = 2πi(2e2) = 4e2πi.

If instead Γ is a a circle of radius 1/2 around 0, then there is no singularity inside, so∮|z|=1/2

e2z

(z − 1)2dz = 0.

Example 2: If there is no residue (no 1/(z − z0) term in the Laurent series) the integral iszero, just like for an analytic function. For example,

f(z) =1

1− cos z=

112z2 − 1

4z4 + · · ·

=2

z2

(1

1− 12z2 + · · ·

)=

2

z2+ 1 + 1 + a2z

2 + · · ·

which has a pole at z = 0 but no 1/z term, so∮|z|=1

1

1− cos zdz = 0.

On the other hand, ∮|z|=1

z

1− cos zdz =

∮|z|=1

2

z+ · · · dz = 4πi,

Page 14: MATH 551 LECTURE NOTES COMPLEX VARIABLES: A ...jtwong/math551-2019/...fdzis a contour integral in the complex plane and H fdzis a contour integral over a closed contour (or ‘closed

14 COMPLEX VARIABLES

6.1. Multiple singularities. Now suppose Γ is a closed contour and f is analytic inside Γexcept at a set of isolated poles z1, z2, · · · zn, e.g.

f(z) =1

(z − 1)(z − 2i)(z + 2).

The contour can be deformed around the singularities into small arcs Ck around each poleand bridges L±k made of straight lines between successive poles. The idea is sketched below.

Because the full contour is closed, each straight part L+k has a ‘return trip’ −k ≈ −Lk.

Since f is analytic in this region, the contributions cancel due to the rule that∫Γ

f dz = −∫−Γ

f dz.

Only the circular parts remain, leaving (after taking the width of the bridges to zero)∫Γ

f dz =n∑k=1

∫Ck

f dz

where Ck is a small circular path containing zk. Applying the theorem for one pole, we get:

Residue theorem: Let Γ be a closed contour and suppose f is analytic inside Γ except atan isolated set of poles z1, · · · , zn. Then∮

Γ

f(z) dz = 2πin∑k=1

Res(f, zk).

The residue theorem is powerful because it asserts that if f is mostly analytic (only sin-gular at isolated points), then closed contour integrals only care about the residues at thepoles and nothing else. Two examples:

Page 15: MATH 551 LECTURE NOTES COMPLEX VARIABLES: A ...jtwong/math551-2019/...fdzis a contour integral in the complex plane and H fdzis a contour integral over a closed contour (or ‘closed

COMPLEX VARIABLES 15

Example 1: Let ΓR is a circle of radius R (counter-clockwise) around the origin. Then∮ΓR

1

z − 1+

3

z + 2idz =

0 R < 1

2πi 1 < R < 2

2πi+ 6πi 2 < R

since the poles are at z = 1 and z = 3 with residues 1 and 3, respectively.

Example 2: Let

I =

∮|z|=1

e2z

sin(3z)dz.

There are singularities at z0 = 0 and z = ±π/3 (plus more). Only z0 = 0 is instead thecontour, so we have

I = 2πiRes(f, 0).

To find the residue, we proceed directly (see later for a shortcut), expanding the numera-tor/denominatory in a Laurent series:

e2z

sin 3z=

1 + 2z + · · ·3z + · · ·

=1

3z

(1 + 2z + · · ·

1 + · · ·

)=

1

3z+ Taylor series

so the residue is 1/3 and thus

I =

∮|z|=1

e2z

sin(3z)dz =

2πi

3.

On the other hand,

I =

∮|z|=2

e2z

sin(3z)dz = 2πi (Res(f,−π/3) + Res(f, 0) + Res(f, π/3))

which would require more work (we really do want the shortcut here; see next page).

Page 16: MATH 551 LECTURE NOTES COMPLEX VARIABLES: A ...jtwong/math551-2019/...fdzis a contour integral in the complex plane and H fdzis a contour integral over a closed contour (or ‘closed

16 COMPLEX VARIABLES

6.2. Simple poles (shortcut): Let f(z) = p(z)/q(z) (a common form). Suppose p(z) andq(z) have no singularities inside a closed contour Γ and

q(z) has a simple zero at z = z0.

Then f has a pole of order 1 (from 1/q(z)) at z0. Because z0 is a simple zero we can write

q(z) = (z − z0)r(z), r(z0) 6= 0

since otherwise the root would be a double root or higher. It follows that

I =

∮Γ

f(z) dz =

∮Γ

p(z)/r(z)

z − z0

dz = 2πip(z0)

r(z0)

since p(z)/r(z) has a Taylor series in z−z0 (no singularities) and the first term is p(z0)/r(z0).

Obtaining r(z) might be a nuisance, but we can shortcut this by observing that

q′(z) = (z − z0)r(z) + r(z) =⇒ q′(z0) = r(z0).

Shortcut (simple pole): If q has a simple zero at z0 (and no others) in Γ and p, q have nosingularities in Γ then ∮

Γ

p(z)

q(z)dz = 2πi

p(z0)

q′(z0)

i.e. the residue of f = p/q at z0 is Res(f, z0) = p(z0)/q′(z0).

Returning to the earlier example of computing∮|z|=2

e2z

sin 3zdz

we have

f(z) =e2z

sin 3z=⇒ p = e2z, q = sin 3z =⇒ Res(f, 0) = p(0)/q′(0) = 1/3.

Similarly, at the two other poles in the contour,

Res(f,±π/3) = p(±π/3)/q′(±π/3) =e±2π/3

3 cos(±π)= −1

3e±2π/3.

It follows that for the circle of radius 2,∮|z|=2

e2z

sin 3zdz = 2πi(

1

3e−2π/3 +

1

3+

1

3e2π/3) =

2πi

3(e−2π/3 + 1 + e2π/3).

6.3. Another approach: We can also use Cauchy’s integral formula,

2πif(z0) =

∮Γ

f(z)

z − z0

dz

to calculate residues (this formula holds if f is analytic inside Γ). For instance,∮|z|=2

sin 2z

z − 1dz = 2πi sin(2).

Page 17: MATH 551 LECTURE NOTES COMPLEX VARIABLES: A ...jtwong/math551-2019/...fdzis a contour integral in the complex plane and H fdzis a contour integral over a closed contour (or ‘closed

COMPLEX VARIABLES 17

This is most useful if the integrand is of the form analytic/(z − z0). More generally,

2πif (n)(z0)

n!=

∮Γ

f(z)

(z − z0)n+1dz

which is useful for higher-order poles in this form, e.g.∮|z|=2

sin 2z

(z − 1)4dz = −2πi

6· 23 sin 2 = −8πi

3sin 2.

If the (z − z0)k factor is not already there, then we must do some work to use Cauchy’sintegral formula since the f(z) (numerator) must be analytic (see below).

General rule: Suppose f(z) = p(z)/q(z), that p(z) is analytic and q has a zero of or-der m at z0. Then

q(z) = (z − z0)mr(z), r(z0) 6= 0.

Letting s(z) = p(z)/r(z) (which is analytic near z0, we have

f(z) =s(z)

(z − z0)m.

Now let Γ be a closed contour around z0, enclosing only the singularity art z0. From theresidue theorem and Cauchy’s integral formula,

2πiRes(f, z0) =

∮Γ

f(z) dz =

∮s(z)

(z − z0)mdz = 2πi

s(m−1)(z0)

(m− 1)!.

This gives the contour integral around z0 and also a formula for the residue:

Res(f, z0) =1

(m− 1)!limz→z0

[dm−1

dzm−1((z − z0)mf(z))

]after plugging in f = p/q = s/(z − z0)m. The limit is there because one may need to applyL’Hopital’s rule to evaluate the expression (can be 0/0 at z0).