Professional Documents
Culture Documents
Gordon R Complex Integration A Compendium of Smart and Littl
Gordon R Complex Integration A Compendium of Smart and Littl
Ron Gordon
Complex
Integration
A Compendium of Smart and
Little-Known Techniques
for Evaluating Integrals and Sums
Undergraduate Lecture Notes in Physics
Series Editors
Neil Ashby, University of Colorado, Boulder, CO, USA
William Brantley, Department of Physics, Furman University, Greenville, SC, USA
Matthew Deady, Physics Program, Bard College, Annandale-on-Hudson,
NY, USA
Michael Fowler, Department of Physics, University of Virginia, Charlottesville,
VA, USA
Morten Hjorth-Jensen, Department of Physics, University of Oslo, Oslo, Norway
Michael Inglis, Department of Physical Sciences, SUNY Suffolk County
Community College, Selden, NY, USA
Barry Luokkala , Department of Physics, Carnegie Mellon University, Pittsburgh,
PA, USA
Undergraduate Lecture Notes in Physics (ULNP) publishes authoritative texts
covering topics throughout pure and applied physics. Each title in the series is
suitable as a basis for undergraduate instruction, typically containing practice
problems, worked examples, chapter summaries, and suggestions for further reading.
ULNP titles must provide at least one of the following:
• An exceptionally clear and concise treatment of a standard undergraduate subject.
• A solid undergraduate-level introduction to a graduate, advanced, or non-standard
subject.
• A novel perspective or an unusual approach to teaching a subject.
ULNP especially encourages new, original, and idiosyncratic approaches to physics
teaching at the undergraduate level.
The purpose of ULNP is to provide intriguing, absorbing books that will continue to
be the reader’s preferred reference throughout their academic career.
Ron Gordon
Complex Integration
A Compendium of Smart and Little-Known
Techniques for Evaluating Integrals and Sums
Ron Gordon
Northborough, MA, USA
© The Editor(s) (if applicable) and The Author(s), under exclusive license to Springer Nature
Switzerland AG 2023
This work is subject to copyright. All rights are solely and exclusively licensed by the Publisher, whether
the whole or part of the material is concerned, specifically the rights of translation, reprinting, reuse
of illustrations, recitation, broadcasting, reproduction on microfilms or in any other physical way, and
transmission or information storage and retrieval, electronic adaptation, computer software, or by similar
or dissimilar methodology now known or hereafter developed.
The use of general descriptive names, registered names, trademarks, service marks, etc. in this publication
does not imply, even in the absence of a specific statement, that such names are exempt from the relevant
protective laws and regulations and therefore free for general use.
The publisher, the authors, and the editors are safe to assume that the advice and information in this book
are believed to be true and accurate at the date of publication. Neither the publisher nor the authors or
the editors give a warranty, expressed or implied, with respect to the material contained herein or for any
errors or omissions that may have been made. The publisher remains neutral with regard to jurisdictional
claims in published maps and institutional affiliations.
This Springer imprint is published by the registered company Springer Nature Switzerland AG
The registered company address is: Gewerbestrasse 11, 6330 Cham, Switzerland
This book is dedicated to the memory of my
eleventh grade math teacher, Ms. Effie Vellios.
Preface
Conrad Wolfram, in his book The Math(s) Fix: An Education Blueprint for the AI
Age, lays out not only a case for abandoning the traditional math curriculum in which
we teach concepts involving hand calculations, but also a proposed all-computer
computation curriculum. Wolfram is related to Stephen Wolfram who gifted the
computational system Mathematica to us all since the 1980s.
You might think this Preface and this book are meant to be a broadside against
Wolfram, and I am going to furnish arguments as to why he is dead wrong and we
should keep teaching traditional hand computation to everyone. But it isn’t, and I am
not. Dr. Wolfram (the author) is largely correct: We need to teach math differently to
ready students for dealing with concepts such as machine learning, Kalman filters,
graphs, and networks, which have become the backbone of the problems of our
society today.
So am I saying that a book dedicated to hand calculations is a complete waste of
time.
No. The opposite, actually.
The problems requiring hand calculation have never really gone away. We still
generate models of things like imaging detailed objects in turbulent media, or return
on European put options, or knocking in an automotive engine. These problems
are solved, others will replace them. Mr. Wolfram will tell us simply to fire up
Wolfram|Alpha or Mathematica and whatever integral or sum or differential equation
that needs to be solved will be solved by the computer. And, again, he isn’t wrong
about it.
Much of the time, anyway.
vii
viii Preface
The truth is the systems behind the computers we use as substitutes for hand
calculations rely on algorithms written by human beings. Human beings that make
mistakes, a lot.
Quis custodiet ipsos custodes?
So we will always need people who know how to do the hand calculations. I doubt
Dr. Wolfram would disagree—otherwise, why would the other Dr. Wolfram need to
hire all of those people to keep Mathematica running?
I suppose this has always been my calling. When I worked for IBM Microelec-
tronics, I was in a group that did lithographic process design and did so by running
interminable simulations of the lithography process on vendor-provided software.
(Previously, I worked for such a vendor.) One of my projects was to design test
cases that we could model by hand, so we could evaluate the simulation results.
This was my favorite part of my job, and we were able to find numerous issues to
take to the software vendors. My enthusiasm spilled out to my management, and I
was allowed to teach a short course to the engineers running the simulations about
how to do simple hand calculations of the lithography models—a sort of Conrad
Wolfram-in-reverse, if you will.
Even Mathematica itself—and by extension, Wolfram|Alpha—are not perfect. I
myself can point to a specific example Mathematica got wrong. The problem was to
compute the following sum (which will be considered in the book):
∞
1 13π 3
√ =− √
n=1 n 3 sin 2π n 360 2
2
When I checked the result, Mathematica returned− 360 13π√
2
. π squared, not cubed.
When I convincingly established that the cube was correct, the good staff at Wolfram
Research eventually fixed the error. But it took someone who did hand calculations
to fix a presumed bug in their code.
Again, this is not to disparage the Dr. Wolfram’s point about math education.
In fact, I think he would agree with me that there is a fundamental need to have
people who know the basics very well to be making sure the computer models we
are running are accurate.
But this is all a very long way of answering the question, why do we want to work
out these crazy integrals and sums when we have great computer software that can do
it for us? But even if there were no need for custodes, even if the likes of Mathematica
were perfect and needed no checking, there is a more important, overrriding reason
to work out these integrals and sums by hand:
It is fun!
If you are perusing through this book, it is not likely because you have calculus
homework due tomorrow. It is because you have a curiosity as to how really difficult
problems in calculus can be solved using complex integration. It is because you want
to learn these methods for yourself. There is a power behind them that is addictive.
It is like the classic line, “amuse your friends, confound your enemies” taken in a
whole new direction.
Preface ix
I think we have answered the question of why evaluate these integrals and sums by
hand in general. But unanswered is the question, why are we focusing on complex
integration techniques?
The origin of the complex integration techniques is a result of my work on the Math
StackExchange website. On this website, there are lots of people asking other people
like me how to evaluate various integrals and sums. In fact, there would be several
of us working on these problems at once, which would result in very similar, good
answers being offered at roughly the same time. Most of the time, these answers
would use fundamentally real techniques—“Feynman’s trick” of differentiating a
parameter under the integral sign, Taylor expansion, orthogonal function decompo-
sition, for example. I started evaluating integrals using the Residue Theorem just as
a way to put down a different answer.
It occurred to me, however, that the Residue Theorem as I had learned it in school
was not really a great arrow in my quiver of integration techniques I could bring
to the table—yet. The examples I had learned in school—and the same examples I
was working out in the StackExchange problems—were extremely limited to a few,
scientifically selected examples. For example, we are taught to evaluate the following
integral using analysis of branch cuts in a multivalued integrand:
1
d x x p (1 − x)q
0
It turns out, however, that the techniques we are taught only work when
p + q is an integer. So many times we would be taught to perform inte-
1
grals such as 0 d x x −1/3 (1 − x)−2/3 , but not something more interesting like
1
0 dx x
−1/3
(1 − x)−2/3 log x. (Note that the factor of log may be treated as the limit
of the derivative of x a as a → 0.) The reason why this is so and the evaluation of
the more difficult integral using complex integration will be provided in this book.
How would we go about attacking these new problems? By doing them correctly!
For example, in the branch cut integrals above, the usual way to approach them is
to consider something called a “dog-bone” contour formed by the branch cuts above
and below the integration interval. We would then need to consider a “residue at
infinity” to handle the effect of integrating out to infinity—the residue at infinity
was simply a formula derived from an integral about a large circle. But what if the
integral about the large circle didn’t converge as the radius became infinite? What if,
instead, there was a singular piece that had to cancel another similar piece elsewhere
on the contour? By “the contour,” I no longer mean the dog-bone contour but the
logical extension of it to the large circle.
The cancelations of divergences formed the impetus for attacking whole new
classes of problems using complex integration. This is one of the main themes
throughout this book.
x Preface
1
1 1+x 1 + 2x + 2x 2
dx log = 4π Cot−1 φ
x 1−x 1 − 2x + 2x 2
−1
where φ is the golden ratio. I attacked this problem by transforming the integral into
the following form.
1 ∞
1 1+x 1 + 2x + 2x 2
dx log = dy p(y) log y
x 1−x 1 − 2x + 2x 2
−1 0
where p is a rational function of y. I did this because I knew that integrals of this
form, where the poles of p are determined exactly, could be evaluated using the
Residue Theorem. In this case, even though the denominator of p was degree eight,
I was able to find the poles because of the high degree of symmetry of p.
Goals
What are the goals one should expect to achieve by reading this book? Generally,
to appreciate whole new types of integrals that may be evaluated using complex
integration techniques. Specifically, however, there are several goals.
1. Appreciate that poles and branch points may be treated in a unified manner when
it comes to evaluating real integrals using complex integration.
2. Gain perspective on the types of integrals that may be evaluated using complex
integration.
3. Learn how to construct even reasonably sophisticated contours in evaluating real
integrals using complex integration.
4. Become comfortable with Cauchy principal values and canceling divergences as
part of evaluating integrals with combined pole/branch points.
5. Appreciate transform techniques such as Parseval’s Theorem and the Convolution
Theorem for evaluating integrals.
6. Gain facility with asymptotic techniques and how they may be used to evaluate
real integrals and sums exactly.
Preface xi
Prerequisites
As this is an informal book, there are no real prerequisites for understanding the
material other than an enthusiasm for evaluating integrals and sums. In this respect,
obviously the reader will have had to have at least two semesters of calculus to
appreciate the nature of the problems being solved.
That said, I feel that the scope of the book is best focused on examples of solutions
of difficult calculus problems via complex integration. Accordingly, more than a
passing familiarity with the concept of an analytic function, complex integration,
and Laurent series at the level of an undergraduate Complex Analysis course (a la
Churchill and Brown) would be the best preparation for the material in the book.
Nevertheless, not having such familiarity with this material is hardly a barrier to the
enthusiastic student.
The reader may notice that I place my differentials (“d x”) next to the integral sign
rather than after the integrand as is the practice in most places. I do this because of my
background in Optics, where we regularly evaluate two-dimensional integrals, and
some of us felt that it was less confusing to place the differential next to its own inte-
gral. We merely extended the practice to one-dimensional integrals for consistency.
I make one exception to this—two-dimensional path integrals where the integrand is
of the for Pd x + Qdy in the introductory material. Otherwise, the differentials are
next to their integral signs in this book.
xiii
xiv Acknowledgements
My family has stood behind me every step of the way, even though the writing
of this book impacted my two children, Eli and Josh, and my wife Laura most of
all. One of my children (Josh) took a Complex Analysis course at his university just,
so he would be able to give feedback on some of the problems. Laura never once
complained about the time I put into making this book a reality. I am an incredibly
lucky nerd.
1 2
1 1+x 2x + 2x + 1
I = dx log
x 1−x 2x 2 − 2x + 1
−1
Well, you could try a number of substitutions. Probably, the one substitution that
makes sense from the get-go would be t = 1+x 1−x
. Some manipulations later, we find
that our integral is equal to the following.
∞
t −1/2 5 − 2t + t 2
I =2 dx log
1 − t2 1 − 2t + 5t 2
0
∞
dy p(y) log y
0
are perfect candidates for such evaluation. Knowing this form as an end for substitu-
tion is a major milestone in solving this problem. We will encounter this form—and
others—that may be evaluated using the techniques taught in this book.
xv
Contents
xvii
xviii Contents
Epilogue . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 237
Chapter 1
Review of Foundational Concepts
Sequences
The basic building block in any evaluation of integrals is the lowly sequence. Here,
we define sequences of real numbers. To realize an integral, we will need to construct
sums of sequences, or series.
A sequence of real numbers is a mapping from the integers (or a subset thereof)
to the real numbers a : Z → R.
Sequences have their own notation apart from the usual function notation. For
example, a sequence may be denoted as an , where n ∈ Z is denoted as an index. That
said, other notations are common, e.g., a[n] or even a(n).
The following are examples of sequences defined explicitly:
an = n
an = n! = (n + 1)
cos 2n−1 arccos (a1 ) |a1 | ≤ 1
an =
cosh 2n−1 arccosh(a1 ) |a1 | > 1
an = c1 + c2 n + c3 n 2 2n
an+1 = an + 1 a0 = 0
an+1 = nan a0 = 1
an+1 = 2an2 − 1
an+1 = 6an − 12an−1 + 8an−2
1
an =
1 + n2
π
an = cos
2n
Series
We may define a series as a sum over a sequence. A series formed from terms of a
sequence form a new sequence; for example consider the sequence An defined as the
following series of a sequence ak as follows:
n
An = ak (1.1)
k=0
A finite series such as the above geometric series may be referred to as a partial
series. For example, you may know of a geometric sequence an = ar n and a partial
geometric series
n n
r n+1 − 1
An = ak = a rk = a (1.2)
k=0 k=0
r −1
We may also define infinite series as the limit of a sequence of partial series, if the
limit exists. If the limit exists then we say the infinite sum converges, and if the limit
doesn’t exist we say the infinite sum diverges. For example, the geometric series
above converges and has a limiting value of 1−r a
when |r | < 1. This may be proven
as before using the definition of a limit:
n+1
An − a = ar < (1.3)
1−r 1−r
1.1 Sequences and Series 3
for all > 0 and n > N , which means that this inequality holds when
log a
1−r
N () = −1 (1.4)
log r
With the limit concept, one may define an infinite series to be the limit of a partial
sum as the number of terms increases without limit. Accordingly, as with sequences,
series may be convergent or divergent. For example, the above geometric series is
convergent when |r | < 1 and divergent otherwise. Another example is the so-called
harmonic series:
n
1
Hn = (1.5)
k=1
k
1 1 1 1
H2n = 1 + + + ··· + n +
2 3 2 − 1 2n
1 1 1 1 1 1 1
=1+ + + + + + + + ···
2 3 4 5 6 7 8
1 1 1
+ + + · · ·
2n−1 + 1 2n−1 + 2 2n
1 1 1 1 1 1 1
>1+ + + + + + + + ···
2 4 4 8 8 8 8
1 1 1
+ + + · · ·
2n 2n 2n
2n−1 terms
1 1 1
= 1 + + + ···
2
2
2
n terms
n
=1+ (1.6)
2
i.e.,
1
Hn > 1 + log2 n (1.7)
2
This proof is nifty because not only does it demonstrate that the harmonic series
diverges but it also indicates how it diverges, i.e., logarithmically. Along these lines,
one may prove that
Hn ∼ γ + log n, (n → ∞) (1.8)
4 1 Review of Foundational Concepts
n−1
An = ak (1.9)
k=0
If each term in the sequence may be expressed as the difference between successive
terms of another sequence bn —that is, ak = bk+1 − bk , then the series Ak becomes
easy to evaluate:
n−1
An = (bk+1 − bk ) = (b1 − b0 ) + (b2 − b1 ) + · · · + (bn − bn−1 )
k=0
= bn − b0 (1.10)
N
2
SN = arctan (1.11)
n=1
n2
This old chestnut looks impossible but it is really a simple problem in disguise
because of the following convenient fact.
2
arctan = arctan (n + 1) − arctan (n − 1) (1.12)
n2
Then we have a telescoping series and accordingly,
∞
2 3π
S= arctan 2
= (1.14)
n=1
n 4
As another example, consider the less simple problem of evaluating the following
sum.
∞
sin 2πn
S= arctan 2−n (1.15)
n=1
2 + cos 2πn
The issue with using the Fundamental Theorem sometimes is that it takes a very
good guess to get the antidifference. In this case, we go with the deus ex machina
and let
sin 2πn
an = arctan 2−n (1.16)
2 − cos 2πn
Then
( ) − sin ( 2π
sin 2πn 2n )
( 2πn ) 221−n −cos ( 2π
−n
2 −cos
2
2n )
tan (an − an−1 ) = (1.17)
sin ( 2πn ) sin ( 2π
2n )
1 + 22−n −cos π 221−n −cos 2π
( 2n ) ( 2n )
−n
1−n −n
22 22 − 22 +1 cos π 2−n + 1 + cos π 2−n
1−n −n
22 − 22 +1 cos π 2−n + 1 (1.20)
where
a∞ = lim an (1.23)
n→∞
Now, π
sin π/2n π
2n
π ∼ = (1.24)
2−n − cos log 2
2 2n 1+ 2n
−1 log 2
The “method” of finding an antidifference works well when we can make a very
good guess that an antidifference exists. But in most cases, there is no such antidif-
ference and we will have to find other ways to evaluate the sums we come across.
Summation By Parts
For example, we may recognize certain sums as not exactly telescoping but having
terms that are a product of a first sequence and a difference of a second sequence.
This is similar to integration by parts in which the integrand is a product of a first
function and a derivative of a second function.
n
n
ak (bk+1 − bk ) = an bn+1 − am bm − bk (ak − ak−1 )
k=m k=m+1
n
n
n
ak (bk+1 − bk ) = (ak bk+1 − ak−1 bk ) − bk (ak − ak−1 ) (1.27)
k=m k=m k=m
Note that the first sum on the RHS is a telescoping sum and is therefore easy to
evaluate by the Fundamental Theorem of Discrete Calculus. The first term may also
1.1 Sequences and Series 7
n
n
ak (bk+1 − bk ) = an bn+1 − am−1 bm − bm (am − am−1 ) − bk (ak − ak−1 )
k=m k=m+1
(1.28)
The result follows.
As an example, let’s compute the following sum.
∞
Hk
S= (1.29)
k=1
k(k + 1)
1 1
S= Hk − (1.30)
k=1
k k+1
Hk 1 1
=− Hk −
k=1
k(k + 1) k=1
k+1 k
N
1 1
= − lim Hk −
N →∞
k=1
k+1 k
∞
HN H1 1
= − lim + + (Hk − Hk−1 ) (1.31)
N →∞ N + 1 1 k
k=2
We will find that many sums involving harmonic numbers may be evaluated using
summation by parts because the difference of harmonic numbers is very simple.
8 1 Review of Foundational Concepts
for a > 1. We can convert this to a sum we can work with by recognizing that
a −(k+1)
a −k = − a − a −k (1.35)
a−1
Accordingly,
∞
a −(k+1)
S=− k a − a −k
a − 1 k=1
∞
a 1 a −k
=− − + a
a−1 a a − 1 k=2
1 a 1 1
= +
a − 1 a − 1 a 2 1 − a1
1 1
= +
a − 1 (a − 1)2
a
= (1.36)
(a − 1)2
Standard Sums
We may also recognize some standard sum formulae we will be using along the way.
For example, we should all be very familiar with and have already encountered the
geometric sum.
n−1
1 − rn
rk = (1.37)
k=0
1−r
S = r + 2r 2 + 3r 3 + 4r 4 + . . .
r S = r 2 + 2r 3 + 3r 4 + . . .
(1 − r )S = r + r 2 + r 3 + r 4 + . . .
r
=
1−r
Geometric sum formulae may apply to complex trigonometric sums; for example,
for |r | ≤ 1
∞
1
r k eikθ = (1.40)
k=0
1 − r eiθ
∞
1 1 − r cos θ
r k cos (kθ ) = Re = (1.41)
k=0
1 − re iθ 1 − 2r cos θ + r 2
∞
1 r sin θ
r sin (kθ ) = Im
k
= (1.42)
k=0
1 − re iθ 1 − 2r cos θ + r 2
We can derive higher powers recursively using the binomial theorem and the
Fundamental Theorem of Discrete Calculus. For example,
n
n
n
(k + 1)3 − k 3 = 3 k2 + 3 k+n
k=1 k=1 k=1
n
3
(n + 1)3 − 1 = 3 k 2 + n(n + 1) + n
k=1
2
n
3 5
3 k 2 = n 3 + 3n 2 + 3n − n 2 − n
k=1
2 2
3 1
= n3 + n2 + n
2 2
1
= n(2n 2 + 3n + 1) (1.44)
2
10 1 Review of Foundational Concepts
n
1
S2 = k2 = n(n + 1)(2n + 1) (1.45)
k=1
6
m+1
m+1
(n + 1)m+1
−1= Sm + Sm+1−k (1.46)
1 k=2
k
Products
Let’s briefly discuss products. Products are easily seen to have an equivalence to
sums via the logarithm:
n
n
log (1 + an ) = log (1 + an ) (1.47)
k=1 k=1
∞
1 n+1 n
(1.48)
n=2
e2 n − 1
N
1 n+1 n
PN = (1.49)
n=2
e2 n − 1
By writing out the terms of PN , we can easily find a simple expression for it:
N N −1 (N + 1) N
PN = e−2(N −1) (1.50)
2(N − 1)!2
1.2 Integrals
The integral is the basis of what we will study in this book. At a very high level, an
integral is a number we give to a set that is indicative of some measure of the set.
The simplest example—and the one we will study here exclusively—is the Riemann
integral, which when taken over a simple 1D interval represents the area under a curve
representing a function defined on the interval. The Riemann integral, however, may
be defined over sets of any number of dimensions and we will study two-dimensional
sets in the next section. For now, and for the majority of this book, we will limit
ourselves to one-dimensional complexes or manifolds.
We define a definite integral of a function over an interval [a, b] as the following
limit.
b
b−a
n
k
d x f (x) = lim f a + (b − a) (1.52)
n→∞ n k=0 n
a
As an example,
1
1 2
n
d x x = lim 3
2
k
n→∞ n
0 k=1
1 1
= lim n(n + 1)(2n + 1)
n→∞ n 3 6
1
= (1.53)
3
It will be an exercise to show that
1
1
dx xm = (1.54)
m+1
0
1
1 k/n
n
d x e x = lim e
n→∞ n
0 k=1
1
1 e1+ n − 1
= lim 1
n→∞ n e n − 1
e−1
= lim 1
n→∞
n en − 1
= e−1 (1.55)
12 1 Review of Foundational Concepts
1
1 1
n
dx
= lim
1 + x2 n→∞ n k2
k=1 1 + n 2
0
∞
1 (−1)m k 2 m
n
= lim
n→∞ n
k=1 m=0
n2 m
∞
1 k2 m
n
= (−1)m lim
m=0
n→∞ n
k=1
n2 m
1
0 d x x m =1/(2 m+1)
∞
(−1)m
=
m=0
2m +1
π
= (1.56)
4
n
f k = gn+1 − g0 (1.57)
k=0
Equivalently,
b − a gk+1 − gk
n
b−a
= gn+1 − g0 (1.58)
n k=0 n
b
d x g (x) = g(b) − g(a) (1.59)
a
b − a gk+1 − gk
n
lim fk b−a
= f (b)g(b) − f (a)g(a)
n→∞ n k=0 n
b − a f k − f k−1
n
− lim gk b−a
(1.60)
n→∞ n k=1 n
b b
d x f (x)g (x) = f (b)g(b) − f (a)g(a) − d x g(x) f (x) (1.61)
a a
We note that we may define certain improper integrals by setting the lower limit
a to −∞ or b to ∞ by taking the respective limits
b b
d x f (x) = lim d x f (x) (1.62)
a→−∞
−∞ a
∞ b
d x f (x) = lim d x f (x) (1.63)
b→∞
a a
Other improper integrals are defined by a weak singularity of the integrand in the
region of integration. For example,
b
I = d x x −c f (x) (1.64)
0
where f is finite at x = 0 and 0 < c < 1. We can avoid sampling the integrand at
x = 0 by using a substitution x = u −1/c , which transforms the integral into
∞
1
I = du u −1/c f u −1/c (1.65)
c
b−c
We will frequently come to situations in which we will see double sums of the form
m
n
S= ak (1.66)
k=1 =1
14 1 Review of Foundational Concepts
For such finite sums, we may reverse the order of summation, i.e.,
n
m
S= ak (1.67)
=1 k=1
When one or both of the upper limits are infinite, then we may still reverse the
order of summation under certain conditions of convergence. Reversing the order of
summation is an interesting tool to use in evaluating sums. This is true even when n
depends on k, as we will see in the next example. This asks that we evaluate
∞
Hk
S= (1.68)
k=1
(k + 1)2
One way to attack this sum is to express as a double sum using the definition of
Hk , as follows:
∞ k
1 1
S= (1.69)
k=1
(k + 1) 2
=1
It is not trivial how one can reverse the order of summation. The solution lies in
examining the lattice points sampled by the sum. This lattice is illustrated in Fig. 1.1.
Note that, in the above double sum, the sampling of the terms goes to the right for each
k. To reverse the order of summation, we sample vertically for each . Accordingly,
it should be clear that the above double sum is equal to
∞
∞
1 1
S=
=1
k=
(k + 1)2
∞ ∞
1 1
= (1.70)
=1
k=+1 k 2
∞ ∞
1 ue−u
= du (1.71)
k=+1
k2 eu − 1
0
(The reader is invited to derive this as an exercise.) The sum then becomes
∞
∞
1 ue−u
S= du (1.72)
=1
eu − 1
0
∞ ∞
u e−u
S= du
e − 1 =1
u
0
∞
−u log 1 − e−u
=− du ue (1.73)
1 − e−u
0
This is the sort of integral we will be seeing in later chapters on complex inte-
gration. But we can evaluate this integral using familiar techniques we will review
later this chapter. As a preview of coming attractions, we will Taylor expand the
log (1 − x) term and again reverse the order of integration and summation to get
∞
1 1
S=− d x x m−1 log x (1.75)
m=1
m 0
16 1 Review of Foundational Concepts
The reader will be able to integrate by parts and demonstrate that the sum is
∞
1
S= (1.76)
m=1
m3
or
∞
Hk
= ζ (3) (1.77)
k=1
(k + 1)2
1 1
x3
I = dx dy (1.78)
1 − y6
0 x2
We change the order of integration. We can do this by drawing the region of integration
and seeing that the integral is just
√
1 y
dy
dx x3 (1.79)
1 − y6
0 0
which is
1
1 y2
dy (1.80)
4 1 − y6
0
or
1
1 du π
√ = (1.81)
12 1−u 2 24
0
While this example does not seem too difficult, it can illustrate how dangerous it can
be to simply rely on computer algebra systems (CASs) such as Maple or Mathematica.
For example, one version of Maple returned the following result.
The interesting part is that the above answer returned by that version of Maple is not
incorrect! Rather, it is in such an intimidating form that it might seem impossible to
understand or study any further, which would be a shame.
1.3 Two Dimensions 17
In two dimensions, we have another concept: a contour integral in the plane, i.e.,
an integral of a two-dimensional function F(x, y) = (P(x, y), Q(x, y)) defined on
the boundary of and within a region D. If the components P and Q have gradients
defined within D, then we may use Green’s Theorem to express an integral over R
in terms of an integral over C, the boundary of R.
Theorem 1.2 Let P : R2 → R and Q : R2 → R be defined and have continuous
partial derivatives throughout an open region D having a boundary C that is oriented
in a counterclockwise direction. Then
∂Q ∂P
d xd y − = (Pd x + Qdy) (1.83)
∂x ∂y C
D
One of the immediate joys of Green’s Theorem comes with computing the area
of a region bounded by a contour C.
1
d xd y = (xdy − yd x) (1.84)
2 C
D
This formula allows us to compute the area of complex regions such as arbitrary
polygons with ease. As an example, consider the following problem. A goat is tied
by a rope to a post at the edge of a circular plot of grass. What percentage of the
grass will the goat be able to eat if the length of the rope is L and the radius of the
plot of grass is R?
The situation is shown in Fig. 1.2. The grass that the goat can eat is enclosed
within the region D bounded by the thick arcs. The region D subtends an angle 2θ0
from the center of the plot of grass and an angle 2φ0 from the post to which the
rope (and goat) is attached. The equation of the arc C R associated with the plot of
grass is x = R cos θ , y = R sin θ ; the equation of the arc C L associated with the rope
is x = R + L cos φ, y = L sin φ. Plugging this into Eq. (1.84) reveals that the area
within the region D is
d xd y = R 2 θ0 + L 2 φ0 − R L sin φ0 . (1.85)
D
The integration needed to get to this result was trivial once expressions for the angles
θ0 and φ0 were determined. To get the area fraction avaailable to the goat, we divide
this area by π R 2 . Letting β = L/R, we get the following expression for the area
fraction:
1 1 1 2 1 2 β 1 β2
d xd y = arccos 1 − β + β arccos − β 1−
πR 2 π 2 π 2 π 4
D
(1.86)
18 1 Review of Foundational Concepts
Fig. 1.2 Geometry for determining how much grass a goat tied to the edge of a circular plot can
eat
For example, if the fraction of grass available to the goat is 0.5, then β ≈ 1.15873,
i.e., the length of the rope is about 15.9% longer then the radius of the plot of grass.
It is assumed that the reader has had at least a semester of introductory Complex
Analysis. Accordingly, we will not be going through analytic function theory in any
depth here except to review some interesting results we will need later.
A complex function f : C → C of a complex variable z = x + i y may be split
into real and imaginary parts as in f (x + i y) = u(x + i y) + iv(x + i y). As for real
functions, we may define derivatives and integrals of the complex function f , but
these are complicated by the fact that we are considering the behavior of f in the
complex plane rather than on a line as in the reals. For example, consider the definition
of the derivative of f :
f (z + h) − f (z)
f (z) = lim (1.87)
h→0 h
Here, h is a complex number and is thus defined in the complex plane. It is then
unclear from which direction we would take the limit of h in the plane. (The right?
The left? Up? Down? From an angle of 23◦ ?)
1.4 Analytic Functions 19
For real functions, we note that when a limit of a function at a value x from the
left and the right agree, that function is continuous at x. And when the limit defining
the derivative agree from the left and right at x, then the derivative of that function
exists at x. (For example, the derivative of |x| does not exist at x = 0 because the
limits from the left and right do not agree.)
It would then seem, analogously, that the derivative of f should be independent
of the direction of h; that is, the derivative of f should be the same regardless of
whether h goes to zero parallel to the real or imaginary axis or along whatever line
on the complex plane. This would seem to pose a much higher burden on f than in
the real case where the agreement is merely between the left and right directions.
And this is true: there are only a very small number of functions from all possible
functions in the complex plane that satisfy this requirement for its derivatives. These
are the analytic functions.
To see what analyticity implies, consider partial derivatives of f with respect to
the real and imaginary variables.
∂f ∂u ∂v
= +i (1.88)
∂x ∂x ∂x
∂f ∂u ∂v
= +i (1.89)
∂y ∂y ∂y
Then if h = h r + i h i
∂u
f (z + h) − f (z) ∂x
+ i ∂∂vx h r + ∂u
∂y
+ i ∂v
∂y
hi
≈ (1.90)
h hr + i hi
Put this way, it is clear that in order for the derivative to be independent of the slope
h i / h r , i.e., the direction of approach in the limit, the Cauchy-Riemann equations must
hold:
∂u ∂v
= (1.92)
∂x ∂y
∂u ∂v
=− (1.93)
∂y ∂x
20 1 Review of Foundational Concepts
That is, all analytic functions must satisfy the Cauchy-Riemann equations by this
very definition.1 We will be dealing mainly with analytic functions in this book.
A consequence of a function being analytic at a point z is that it has derivatives of
all orders, not just a first derivative, at z. Thus an analytic function may be defined
using a Taylor series about the point z, as its derivatives of all orders are defined there.
√
Examples of functions that are not analytic at points include, for example, f (z) = z
at z = 0, because the derivative at 0 is not defined (or infinite); or f (z) = log z at
z = 0 for the same reason. For these functions, those singularities are called branch
points as opposed to poles.
Integration is also complicated by the fact that integration is in the complex plane
and integration between two points can take on an infinite number of paths between
the two points, rather than the one path offered by the real line. Again, analytic
functions are the key to providing order in the potential chaos of the complex plane.
Consider a closed contour in the complex plane defined as a first arbitrary path
from z 1 to z 2 , and then a second, different arbitrary path from z 2 back to z 1 . If the
value of the integral between z 1 and z 2 is to be independent of path, then the closed
loop integral over the net contour C must be zero. Consider the real and imaginary
part of the contour integral.
dz f (z) = (d x + idy)(u + iv)
C C
= (ud x − vdy) + i (vd x + udy) (1.94)
C
C
We may now apply Green’s Theorem to these contour integrals and we get the
following double integrals over the region D interior to the contour C.
∂v ∂u ∂u ∂v
dz f (z) = − d xd y + +i d xd y − (1.95)
∂x ∂y ∂x ∂y
C D D
And lo and behold, by the Cauchy-Riemann equations the integrals are indeed zero.
Thus, we can say that, because the paths we used were arbitrary, that for any closed
contour C, t e contour integral about C of an analytic function is zero.
Actually, this is not quite right because Green’s Theorem requires that the deriva-
tives of u and v be continuous within the region D. This is a stronger condition than
what is necessary for an integral of an analytic function defined within and on a
closed contour C to vanish. With this weaker condition, we have the fundamental
result we will be using in this book: Cauchy’s Theorem (which we will not prove
here).
1This is a necessary but not sufficient condition as noted in P. Morse and H. Feshbach, Methods of
Theoretical Physics, Feshbach Publishing LLC (2005), Sec. 4.2.
1.4 Analytic Functions 21
Theorem 1.3 A function analytic on and within a closed contour C satisfies the
following.
dz f (z) = 0 (1.96)
C
The converse is also true: if an integral of a function over a closed contour vanishes,
then the function is analytic; this is Morera’s Theorem and is also not proven here.
As an example, note that the real (or imaginary) part of an analytic function is not
analytic. For example,
2π
dz x = i dθ eiθ cos θ
|z|=1 0
2π 2π
=− dθ sin θ cos θ + i dθ cos2 θ
0 0
= iπ = 0 (1.97)
To see why, deform the contour C into a small circle of radius about a; the the
contour integral is
2π
f (z)
dz = i dθ f a + eiθ (1.99)
z−a
C 0
f (z) Nz Np g (z)
= − + (1.102)
f (z) z − z0 z − z1 g(z)
The Argument Principle follows from application of Cauchy’s Theorem to the last
two terms and the Cauchy Integral Formula to the first two terms. Note that the
analysis with distinct zeroes and poles follows in a similar fashion.
The Argument Principle may be used to prove Rouché’s Theorem, which may be
stated as follows.
Theorem 1.6 If f and g are analytic in and on a contour C, and if |g| < | f | on C,
then f and f + g have the same number of zeroes inside of C.
A proof of Rouché’s Theorem will not be given here. We will, however, demonstrate
its use. For example, the number of roots of the function h(z) = z 8 + 15z 4 + 7z + 1
within |z| < 2 is eight, because the function f (z) = z 8 has an absolute value on
|z| = 2 (256) that is greater than the maximum absolute value of the function g(z) =
15z 4 + 7z + 1 (255) on |z| = 2, and obviously z 8 has eight zeroes within |z| = 2.
Problems
∞
(2k + 1)Hk
2
k=1 k + k2
1.4 Analytic Functions 23
(b) Can you state and demonstrate a pattern from the above problem and the sum-
mation by parts example in the text?
1.4 Use Green’s Theorem to find the area of an arbitrary polygon, specified by
N vertices (x1 , y1 ), (x2 , y2 ),…,(x N , y N ). (This is sometimes called the "Shoelace
Theorem.")
Chapter 2
Evaluation of Definite Integrals I: The
Residue Theorem and Friends
Abstract Many students cite using the residue theorem to evaluate real definite
integrals and sums as the main factor in their interest in Complex Analysis. This
chapter will review the residue theorem of course. But the residue theorem is only
useful in the presence of poles and no branch points. To attack very difficult integrals,
we will need to consider integrands with poles and branch points, and occasionally
the poles may be essential. Accordingly, we seek a more methodical treatment of
applying complex integration to evaluation of real definite integrals and sums. Such
a treatment is presented here. We will then present several examples. Ultimately,
we will demonstrate a unified approach to using complex integrals to evaluate real
definite integrals and sums, regardless of the type of singularities occurring in the
complex integrand.
2.1 Poles
The point of this section is to develop a unified framework for thinking about the
evaluation of contour integrals in the presence of any sort of singularity, whether a
pole or a branch point. (We will deal with essential singularities, which are simply
poles of arbitrarily large order, in another section.) In a first course on complex
analysis, branch points in contour integrals are treated as something weird and alien
and, well, other. We can include the poles inside the contour and use the Residue
Theorem, but we have to resort to deforming the contour (somehow) to deal with
branch points.
Here, we are going to take things a bit differently. And slowly. We will slow down
the process of integrating in the complex plane so we can learn a little more about the
meaning of the Residue Theorem. For example, we will examine a very well-known
integral commonly seen in an application of the Residue Theorem in a first treatment.
Here, however, we will construct a contour that avoids the pole usually included in
the contour so we can learn details about the Residue Theorem that are neglected in
a first treatment. These details will not only enable us to understand the mechanisms
behind the Residue Theorem, but they will also put branch point singularities into
a new focus. The result will be a unified treatment of any singularity using contour
integration.
© The Author(s), under exclusive license to Springer Nature Switzerland AG 2023 25
R. Gordon, Complex Integration, Undergraduate Lecture Notes in Physics,
https://doi.org/10.1007/978-3-031-24228-1_2
26 2 Evaluation of Definite Integrals I …
After that, we will not only see old friends in a new light, but we will also attack new
problems to which many would not think to apply complex integration techniques.
∞
dx
=π (2.1)
1 + x2
−∞
Yes, this is almost trivially evaluated using the substitution x = tan θ . And applying
the Residue Theorem using a semicircular contour in the upper (or lower) half plane
is about as trivial. But these are almost robotic, not even semiconscious, evaluations.
What else needs to be said?
A lot.
Rather than draw a simple semicircle around the pole and state the Residue The-
orem to evaluate the integral—you know, like zombies, we will exclude the pole at
z = i with a detour. We will use Cauchy’s Theorem to evaluate the integral on the
LHS of Eq. (2.1). To do so, we will need to express the contour integral in Eq. (2.2)
parametrically at each portion of the contour C R .
We will find that evaluating definite integrals like that in Eq. (2.1) by complex
integration involves the following steps:
1. Determine an analytic integrand based on a contour, and
2. determine a contour based on the analytic integrand,
such that the contour and integrand that result produce the definite integral to be
evaluated. Easy, right?
In this spirit, we should define a contour integral that will produce the integral in
Eq. (2.1). In this case, obviously if we use the integrand of the definite integral in
Eq. (2.1), simply expanded to the complex plane, then that definite integral falls out
if part of the contour coincides with the real axis.
On the other hand, we need to exclude any singularities from inside the contour so
the integrand is analytic in and on the contour C. Again, rather than simply assume the
Residue Theorem is true, we should deform the contour around the singularity, i.e.,
pole at z = i. Because Cauchy’s Theorem requires a closed contour, the deformation
must be continuous.
2.1 Poles 27
γ1 x ∈ [−R, − A ]
γ2 y ∈ − A , − A + i 1 − 2R − 2A
A A π
γ3 φ ∈ 3π2 − arcsin R , arcsin R − 2
γ4 y ∈ A + i 1 − 2R − 2A , A
γ5 x ∈ [ A , R]
γ6 θ ∈ [0, π ]
dz
(2.2)
1 + z2
CR
From Table 2.1, we may express the integral over each contour segment in terms
of its parametrizing variable:
− A
dz dx
= (2.3)
1 + z2 1 + x2
γ1 −R
√2 2
1−
R − A
dz dy
=i (2.4)
1 + z2 1 + (− A + i y)2
γ2 0
− π2 +arcsin ( A / R )
dz eiφ
= i R dφ
2 (2.5)
1 + z2 1 + i + R eiφ
γ3 3π
−arcsin ( A / R )
2
0
dz dy
=i (2.6)
1 + z2 √2 1 + ( A + i y)2
γ4
1− R − 2A
R
dz dx
= (2.7)
1 + z2 1 + x2
γ5 A
π
dz eiθ
= iR dθ (2.8)
1 + z2 1 + R 2 ei2θ
γ6 0
Perhaps it is unclear why Eq. (2.9) is written that way, rather than that which
simply reproduces the integral on the LHS of Eq. (2.1). Of course, in this case the
RHS of Eq. (2.9) is equal to the LHS of Eq. (2.1). We will see later, however, that
this is not necessarily the case. For example, when the contour C passes through
a simple pole, the limit in Eq. (2.9) may exist. In that case, the limit is called the
Cauchy principal value of the integral. We will revisit this concept many times in
examples that follow.
Next, combining the integrals in Eqs.(2.4) and (2.7) produces the following:
√2 2
1−
R − A
dz 1 1
=i dy −
1 + z2 1 + ( A − i y)2 1 + ( A + i y)2
γ2 +γ4 0
√2 2
R − A
1−
y
= −4 A dy
2 (2.10)
1 − y 2 − 4 2A y 2
0
where δ = 2R − 2A . That said, it should be clear that, as A → 0, the RHS of Eq.
(2.11) approaches zero, independent of the value of R . That is, the integrals along
the paths leading to and from the contour portion that encircles the pole is zero. This
is not always the case, as we will see later when we discuss branch points.
30 2 Evaluation of Definite Integrals I …
Let’s pause again. Why bother with any analysis of the integrals up and back along
the detours when it is clear they will vanish? The answer lies in the idea of unifying
the way we treat poles and branch point singularities. While it is clear that, for an
isolated pole, the integrals up and back along the detour will cancel each other out,
we will see that for branch point singularities, they will not. So, it is prudent to set
up the framework we will need to understand how the analysis to follow works for
branch points.
We may also show that the integral over the contour portion γ6 vanishes in the limit
as R → ∞. This is because of the following fact that should have been encountered
in a first treatment:
where
In keeping with the informal tone, we will not prove the ML Inequality here
although reviewing the proof from that first course is a good idea. (A good way to
think about the validity of the ML Inequality is to think about applying the Cauchy-
Schwartz inequality to the integral over γ6 .) In the case of the integral
over γ6 in
Eq. (2.8), the maximum
absolute
value of the integrand 1/ 1 + z 2
over γ6 occurs
at z = i R and is 1/ R 2 − 1 . The length of γ6 is π R. Accordingly,
π
dz eiθ
= iR dθ
1 + z2 1 + R 2 ei2θ
γ6 0
πR
≤ 2 , (2.13)
R −1
Per Eq.(2.5):
− π2 +arcsin ( A / R )
dz eiφ
= i R dφ
2
1 + z2 3π
2 −arcsin ( A / R ) 1 + i + R eiφ
γ3
− π2 +arcsin ( A / R )
eiφ
= i R dφ
i2 R eiφ + 2R ei2φ
3π
2 −arcsin ( A / R )
−π
+arcsin ( A / R )
2
1 dφ
= dφ (2.14)
2 1 − i 21 R eiφ
3π
2 −arcsin ( A / R )
We do not set R → 0 here, or even take the limit as R → 0. First, in the limit as
A → 0, the ratio A / R goes to zero. Next, imagine Taylor expanding the integrand
in Eq. (2.14) in powers of R . For the zeroth order term, the integral is equal to 2π .
Higher powers, however, are simply integrals of some power of eiφ over a complete
cycle, or zero. Accordingly,
π
− 2
dφ
= −2π (2.15)
1 − i 21 R eiφ
3π
2
The integral in Eq. (2.15) is negative because the path γ3 is traversed clockwise.
Putting together the above results, we find that
∞
dz dx
= −π (2.16)
1 + z2 1 + x2
C −∞
Let’s pause once more. We have reduced the original contour integral in Eq. (2.2)
to the very nice and simple expression in Eq. (2.16) by taking limits as R → ∞ and
A → 0. Note that we did not need to take R → 0; rather, the only restriction on R
is that | R | < 1. There are two reasons for this restriction: (1) we need to be able to
imagine a Taylor series expansion of the integrand in Eq. (2.15), and (2) otherwise,
the geometry would become ridiculous. Does this fact have any useful implications
for us? It is not immediately clear right now, but perhaps we will gain more insight
from the next example.
The final step is, of course, applying Cauchy’s Theorem. Because the contour C
enclosed no poles and the integrand is analytic on and inside C, the contour integral
is zero. Accordingly, we reproduce the result in Eq. (2.1).
Perhaps we set a record for the longest derivation of the arctangent integral in the
history of mathematics. Again, as stated earlier, the point is not the result which we
32 2 Evaluation of Definite Integrals I …
knew already but the precise story told on the journey to the result. For example, we
learned that the entire contribution to the contour integral in the various limits came
from the integral over the circular arc around the pole, γ3 and the integral over the
real axis γ1 and γ5 . The contributions from the detour to the arc around the pole, γ2
and γ4 , canceled each other out. Let’s take a look at this in general.
Again, the key step in the above evaluation of the integral in Eq. (2.1) is the can-
cellation of the integrals over the contour portions γ2 and γ4 in Eqs. (2.4) and (2.6),
respectively, as expressed via Eq. (2.11). That is, the detour introduced in the real
integral needed to avoid including the pole at z = i did not generate a contribution
to the contour integral in Eq. (2.2).
This is true in general. Consider a closed contour enclosing a pole of a meromor-
phic (i.e., analytic except at a finite set of poles) function. To use Cauchy’s Theorem
in evaluating the contour integral, we need to exclude the pole which means including
a detour to and around the pole. For example, the detour to the pole can include of a
pair of lines, each a distance A from a normal to the contour that includes the pole.
An important thing to note is that the integrals over the lines segments of the detour to
the pole (e.g., the straight lines in Fig. 2.1) cancel each other out and hence contribute
nothing to the contour integral. We will see, however, that this non-contribution to
the contour integral of such a detour is only true for poles. For poles, the contribution
to the contour integral occurs at the detour around the singularity.
This is why the Residue Theorem works. Consider a contour integral over a
contour C of a meromorphic function f having poles z k , k ∈ 1, 2, . . . , N inside C.
Then because the detours out to the poles contribute nothing to the contour integral,
we may write
N
2π
dz f (z) = i R dφ eiφ f z k + R eiφ (2.17)
C k=1 0
Note that in Eq. (2.18), there is a separate set of Laurent expansion coefficients
an(k) corresponding to each pole z k . That is, the (k) indicates the pole to which the
Laurent expansion corresponds. We may write, in the neighborhood of each pole,
z − z k = R eiφ , which brings us to the pièce de résistance:
2.1 Poles 33
N
2π ∞
dz f (z) = i dφ an(k) (n+1)
R ei(n+1)φ
k=1 0 n=−∞
C
∞
N 2π
=i an(k) (n+1)
R dφ ei(n+1)φ (2.19)
k=1 n=−∞ 0
It should be crystal clear that the integrals on the RHS of Eq. (2.19) are all zero
except when n = −1, and we obtain the much-simplified expression
N
(k)
dz f (z) = i2π a−1 (2.20)
C k=1
(k)
Look familiar? It should be apparent that the coefficient a−1 represents the residue
of f at the pole z k . Equation (2.20) is accordingly an expression of the Residue
Theorem:
(k)
Res f (z) = a−1 (2.21)
z=z k
Theorem 2.2 The integral of a function f over a closed contour C is equal to i2π
times the sum of the residues of function f at the poles z k that are located in the
interior of C.
For the case exhaustively analyzed above, the residue of the integrand about the
pole inside the contour C at z = i is computed by expanding the integrand in a
Laurent series about that pole. Letting ζ = z − i:
1 1 1 1
= = .
1+z 2 1 + (i + ζ )2 i2ζ 1 − iζ /2
Accordingly,
1 1
Res = .
z=i 1 + z2 i2
There is a simple expression for the residue of a function with a simple pole. Let
f (z) = p(z)/q(z), with p being analytic in the interior of a contour C and q having
a set of zeroes z k , k ∈ 1, 2, ..., N in the interior of C. Then
34 2 Evaluation of Definite Integrals I …
p(z) p (z k )
Res = . (2.22)
z=z k q(z) q (z k )
There is a similar, albeit more complicated, formula when there is a double pole.
In general, however, experience has shown that for poles that are nonsimple, the
residues are best computed by expansion into a Laurent series.
We have demonstrated that the Residue Theorem is in effect a shortcut because of the
cancellation of the integrals up and back along the detour to a pole. This cancellation
allows us to replace a single contour integral over a contour in which poles are located
with small, simple contours about each pole. When the singularities are poles only,
the Residue Theorem allows us to focus only on the pieces contributing to the contour
integral.
Nevertheless, as we have been more than hinting, poles are just one case of a
singularity and the cancellation along the detour is only true for poles. Branch point
singularities, as well as the cuts defined to keep integrands single-valued, need to be
√
kept from the interior of closed contours. But why? Surely z, for example, is finite
at z = 0, right?
√
As discussed in the previous chapter, z is not analytic at z = 0 because its
derivative
√ is not finite there. And, as also discussed, functions are multivalued; e.g.,
−1 can be i when we represent −1 = eiπ or −1 when −1 = e−iπ
Multivaluedness is a weird problem that baffles a lot of students. Multivalued
√
functions can be represented by Riemann surfaces which in the case of z looks like
a two-level Lazy Susan that joins back with itself after two laps around the origin.
For functions like z α , α irrational and log z, the Lazy Susan just keeps spiraling
around the origin, up or down, forever, unlike city garages. Riemann surfaces are
really cool ways of visualizing multivaluedness in general but are utterly useless for
our purposes here.
Instead, we deal with multivaluedness in a way that is kind of unsatisfying but
is perfect for our purposes: a branch cut extending from a branch point out in some
direction. Generally, a branch cut can be any curve extending out from a branch
point but here we will only need a line. The use of a branch cut is to enforce a
single-valuedness to being a multivalued function to analyticity. To go back to the
√
z example, if we make the negative real axis a branch cut, then away from that
branch cut, arg z ∈ [−π, π ). Note we will only need a single branch cut to define an
analytic function outside the branch point and branch cut.
With respect to branch point singularities, we will discover a very interesting fact:
the integrals up and back along the detour to the singularity on the contour—usually
along the branch cut—do not cancel. The difference between those integrals pro-
vides the contribution to the contour integral while the detour around the singularity
2.2 Branch Points 35
contributes nothing. Looked at it this way, poles and branch point singularities are a
ying and yang, complements to each other.
Of course, some singularities are both poles and branch points. We will visit
examples of this, but first, let’s recall the evaluation of contour integrals having
integrands with poles. Because for poles the detour to a pole contributes nothing to
the contour integral, we now have reason in everyday evaluation to simply ignore
the detour to the pole. In doing so, we may consider the contribution to the contour
integral by integrating a full circle of radius R about the pole. This artificial construct
is merely a shortcut: we do not need to break up a contour for a detour to a pole, as
the detour contributes nothing to the contour integral.
So, let’s take a look at an example of computing the value of an integral whose
complex counterpart has integrand with a branch point singularity. Let’s compute
the value of the following integral:
∞
log 1 + x 2
dx (2.23)
(1 − i x)2
−∞
If we had to guess the form of the contour integral from which we may determine
the integral in Eq. (2.23), we may try the following:
log 1 + z 2
dz (2.24)
(1 − i z)2
C
Note that the integrand in Eq. (2.24) has branch point singularities at z = ±i.
So a first guess would have us consider the contour C to be that defined in Fig. 2.1
and Table 2.1. Unfortunately,
that contour will not work here. The reason is that the
function log 1 + z 2 has a branch cut over {z : z = it, t ∈ [1, ∞)}: the contour C
as defined in Fig. 2.1 and Table 2.1 will cross the branch cut.
So let’s approach the branch point along either side of that branch cut; our contour
C is the defined in Fig. 2.2 and Table 2.2.
In Table 2.2, each segment is defined by a variable of integration having values
within the respective interval. Accordingly,
γ1 x ∈ [−R, R]
A
γ6 θ ∈ [π/2 + arcsin R , π]
6
log 1 + z 2 log 1 + z 2
dz = dz
(1 − i z)2 k=1
(1 − i z)2
CR γk
From Table 2.1, we may express the integral over each contour segment in terms of
its parametrizing variable:
R
log 1 + z 2 log 1 + x 2
dz = dx (2.25)
(1 − i z)2 (1 − i x)2
γ1 −R
( A /R)
π/2−arcsin
log 1 + z 2
log 1 + R 2 ei2θ
dz = iR dθ
2 (2.26)
(1 − i z)2 1 − i Reiθ
γ2 0
√2 2
1+
R − A
log 1 + z 2 log 1 + ( A + i y)2
dz =i dy (2.27)
(1 − i z)2 (1 − i ( A + i y))2
γ3 R
2
2 +arcsin ( A / R )
− 3π
log 1 + z 2 log 1 + i + R eiφ
dz = i R dφ eiφ
2 (2.28)
(1 − i z)2 1 − i i + R eiφ
γ4 π
2 −arcsin ( A / R )
R
log 1 + z 2
log 1 + (− A + i y)2
dz =i dy (2.29)
(1 − i z)2 √ (1 − i (− A + i y))2
γ5
1+ 2R − 2A
π
log 1 + z 2
log 1 + R 2 ei2θ
dz = iR dθ
2 (2.30)
(1 − i z)2 π/2+arcsin ( A /R) 1 − i Reiθ
γ6
2.2 Branch Points 37
The integrals over γ2 and γ6 lead to the following integral when we take A → 0:
π
log 1 + R 2 ei2θ
iR dθ
2 (2.31)
1 − i Reiθ
0
In contrast with the situation involving a pole, we take R → 0 for the branch
point singularity so that the contribution, i.e., the integral over γ4 , vanishes. If we do
not take R → 0, then the evaluation of the remaining integrals becomes a bit more
complicated than many of us care for. (NB: we could have taken R → 0 for the
pole but we didn’t have to do that.) In the situation with the pole, the integral over
γ4 is determined by the residue of the integrand at that pole. With a branch point,
in contrast, the integral over a contour around the branch point merely serves as a
connection between paths along either side of the associated branch cut.
How do we evaluate the integrals over γ3 and γ5 , i.e., the detour to the branch
point? We first consider the limit as A → 0:
R
1+
log 1 + z 2 log 1 − y 2
dz →i dy (2.33)
(1 − i z)2 (1 + y)2
γ3 R
Note that 1 − y 2 < 0 in the integration interval. This is the source ofthe branch
point z = i. So on γ3 , log 1 − y =
2
cut along
2the imaginary
axis above the
2 branch
log − y − 1 = log (−1) + log y − 1 . The question is, what is log (−1)?
The answer by itself it doesn’t really matter. We could set −1 = eiπ along γ3 or
−iπ
e or ei3π . What does matter, however, is what log (−1) is on γ5 , because log (−1)
on γ5 differs from log (−1) on γ3 by −2π , as mentioned before. The reason for this
38 2 Evaluation of Definite Integrals I …
∞
log 1 + z 2 log y 2 − 1 − iπ log y 2 − 1 + iπ
dz =i dy −
(1 − i z)2 (1 + y)2 (1 + y)2
γ3 +γ5 1+ R
∞
dy
= 2π
(1 + y)2
1
=π (2.34)
That is, the contribution to the original contour integral in Eq. (2.24) comes from
the detour to the branch point and not from the detour around the branch point. This
is the complement of the situation with poles that led to the Residue Theorem. With
branch points, however, we do not have an analogy to the Residue Theorem because
of the lack of a Laurent expansion with respect to a branch point. As we will see in
the following sections, evaluating definite integrals that involve a branch point in the
generating contour integral produces—hopefully—other integrals that are easier to
evaluate, as happened above.
Let’s put the above together to finally evaluate the original integral in Eq. (2.23).
We set R → ∞ and let A → 0 then R → 0. The result for the contour integral is
∞
log 1 + z 2 log 1 + x 2
dz = d x +π (2.35)
(1 − i z)2 (1 − i x)2
C −∞
Of course, this result can be derived in other, real-based ways. But it works in
this book as an example of contour integration in the presence of a branch point
singularity. There will be other examples of this—integrals that are readily evaluated
using real methods that are not quite so readily evaluated using complex methods—
presented unapologetically. The point is to explore the possibilities of complex inte-
gration rather than find snappy solutions to integral evaluation.
The next few sections will go through examples of several types of integrals that
may be attacked using the sort of thinking outlined in this section. No, we will not
go through analyses as painstaking as those presented here. But we will begin to
understand the types of contours—and integrands—that may be used to evaluate
some definite integrals and sums.
2.3 Poles and Branch Points 39
a > b In this case, we encounter the branch point first before we encounter the pole.
This could make the computation of the integral in Eq. (2.38) a little tricky because
we will have to monitor the phase of the integrand carefully as we traverse the pole
at z = ib. And while we will soon see circumstances where we will have to perform
such monitoring, we have an out: the shortcut that is the Residue Theorem.
Accordingly, we instead define the contour C to be that shown in Fig. 2.2 instead
of Fig. 2.3. As we did in the previous section, let’s set up the contour integral in
detail.
R
log a 2 + z 2 log a 2 + x 2
dz = dx (2.39)
b2 + z 2 b2 + x 2
γ1 −R
π/2 2
log a 2 + z 2 iθ log a + R e
2 i2θ
dz = i R dθ e (2.40)
b2 + z 2 b2 + R 2 ei2θ
γ2 0
√2 2
R − A
a+
log a 2 + z 2 log a 2 + ( A + i y)2
dz =i dy (2.41)
b2 + z 2 b2 + ( A + i y)2
γ3 R
2
( A / R )
−3π/2+arcsin
log a 2 + z 2 log a 2 + ia + R eiφ
dz = i R dφ eiφ
2
b2 + z 2 b2 + ia + R eiφ
γ4 π/2−arcsin ( A / R )
(2.42)
R
log a 2 + z 2 log a 2 + (− A + i y)2
dz =i dy (2.43)
b2 + z 2 √2 b2 + (− A + i y)2
γ5
a+ R − 2A
π 2
log a 2 + z 2 iθ log a + R e
2 i2θ
dz = iR dθ e (2.44)
b2 + z 2 b2 + R 2 ei2θ
γ6 π/2
As we did in the previous section (and pretty much from here on in), we consider
the limits A → 0 and R → ∞. In this limit, the sum of the integrals over γ2 and γ6
vanishes as 2π log R/R as R → ∞. The sum of the integrals over γ3 and γ5 is
∞
∞
log y 2 − a 2 + iπ log y 2 − a 2 − iπ dy
i dy − = −2π
y −b
2 2 y −b
2 2 y − b2
2
a+ R a+ R
(2.45)
We may now consider the limit as R → 0. The integral over γ4 , around the branch
point, may be shown to vanish as i2π R log R /(a 2 − b2 ) in this limit. The contour
2.3 Poles and Branch Points 41
∞
∞
log a 2 + z 2 log a 2 + x 2 dy
dz = dx − 2π (2.46)
b +z
2 2 b +x
2 2 y − b2
2
C −∞ a
The contour integral above is also equal to, by the Residue Theorem, the residue
of the integrand at the pole z = ib. Evaluating the second integral on the RHS, we
have
∞
log a 2 + x 2 π a+b log a 2 + z 2
dx − log = i2π Res (2.47)
b2 + x 2 b a−b z=ib b2 + z 2
−∞
Because the pole of the integrand within the contour C is simple, the residue
computation is straightforward:
log a 2 + z 2 1
Res = log a 2 − b2 (2.48)
z=ib b +z
2 2 i2b
Actually, this result is only valid when a > b > 0. Clearly, when a and/or b is
negative, the result does not change. Therefore we may write, for all real a, b:
∞
log a 2 + x 2 2π
dx = log (|a| + |b|) (2.50)
b +x
2 2 |b|
−∞
a<b
In this case, we encounter the pole first before we encounter the branch point. We
unfortunately cannot use the Residue Theorem as we did in the case a > b, as the
pole comes before the branch point.
Now, some wiseguy in the back may retort that we could approach the branch
point from the real axis, as in Fig. 2.1. If we could use the contour in Fig. 2.1, then
we could apply the residue theorem as we did for the case a > b. Unfortunately,
and if that wiseguy paid attention to the previous example, they would know that the
integrand of the contour integral has a branch cut along the imaginary axis z = i y
for |y| > a. The contour in Fig. 2.1 is away from the branch cut and accordingly that
contour is of no use in determining the integral.
42 2 Evaluation of Definite Integrals I …
So we will evaluate the contour integral based on the contour in Fig. 2.3. And
as can be imagined at this point, there are a lot of moving parts and it’s gonna get
messy:
R
log a 2 + z 2 log a 2 + x 2
dz = dx (2.51)
b2 + z 2 b2 + x 2
γ1 −R
( A /R)
π/2−arcsin
log a 2 + z 2 log a 2 + R 2 ei2θ
dz = iR dθ e iθ
(2.52)
b2 + z 2 b2 + R 2 ei2θ
γ2 0
√
2
b+ 2R − 2A
log a + z 2
log a 2 + ( A + i y)2
dz =i dy (2.53)
b2 + z 2 b2 + ( A + i y)2
γ3 R
2
( A / R )
−π/2+arcsin iφ 2
log a + z 2 log a 2
+ ib + R e
dz = i R dφ eiφ
2
b2 + z 2 b2 + ib + R eiφ
γ4 π/2−arcsin ( A / R )
(2.54)
√2 2
2
R − A
a+
log a + z 2
log a 2 + ( A + i y)2
dz =i dy (2.55)
b2 + z 2 √2 2 b2 + ( A + i y)2
γ5
b− R − A
2
( A / R )
−3π/2+arcsin
log a 2 + z 2 log a 2 + ia + R eiφ
dz = i R dφ eiφ
2
b2 + z 2 b2 + ia + R eiφ
γ6 π/2−arcsin ( A / R )
(2.56)
√
b− 2R − 2A
log a 2 + z 2 log a 2 + (− A + i y)2
dz =i dy (2.57)
b2 + z 2 √ b2 + (− A + i y)2
γ7
a+ 2R − 2A
2
( A / R )
−3π/2+arcsin
log a 2 + z 2 log a 2 + ib + R eiφ
dz = i R dφ eiφ
2
b2 + z 2 b2 + ib + R eiφ
γ8 −π/2−arcsin ( A / R )
(2.58)
R
log a 2 + z 2 log a 2 + ( A + i y)2
dz =i dy (2.59)
b2 + z 2 √2 b2 + ( A + i y)2
γ9
b+ R − 2A
π
log a 2 + z 2 log a 2 + R 2 ei2θ
dz = iR dθ e iθ
(2.60)
b2 + z 2 b2 + R 2 ei2θ
γ10 π/2+arcsin ( A /R)
2.3 Poles and Branch Points 43
R
b+
R
a+
log y 2 − a + iπ2 log y 2 − a 2 + iπ
=i dy +i dy
b2 − y 2 b2 − y 2
∞ b− R
(2.61)
Similarly, the sum of the integrals along the opposite side of the imaginary axis
is the sum of γ7 and γ9
∞
R
b−
log a 2 + z 2 log y 2 − a 2 − iπ log y 2 − a 2 − iπ
dz =i dy +i dy
b2 + z 2 b2 − y 2 b2 − y 2
γ7 +γ9 b+ R a+ R
(2.62)
Combining Eqs. (2.61) and (2.62), we find the log terms in the integrand disappear
and we get a fairly easy integral we can evaluate.
R
b− ∞
log a 2 + z 2 dy dy
dz = 2π − 2π (2.63)
b2 + z 2 b2 − y 2 y 2 − b2
γ3 +γ5 +γ7 +γ9 a+ R b+ R
Didn’t that happen last time: when adding the contributions up and back along a
branch cut, logarithms in the integrand cancel and we are left with a much simpler
integral to evaluate. This is not guaranteed, but generally speaking when we add
integrals up and back along each side of a branch cut we turn a set of difficult
integrals into a much easier one.
What we see here is the integration intervals skipping over the pole; the integral
near the pole is treated separately. The astute reader will notice that we have not
set R → 0 and we are not ready to do so yet. We can however evaluate the above
integrals and get
log a 2 + z 2
π 2b − R b + a + R π R
dz = log − log + log
b2 + z 2 b R b − a − R b 2b + R
γ3 +γ5 +γ7 +γ9
π (2b − R )(b − a − R )
= log (2.64)
b (2b + R )(b + a + R )
44 2 Evaluation of Definite Integrals I …
While this portion results in a finite limit as R → 0, one can see that the intermediate
steps produced terms in log R , which canceled during simplification. This sort of
thing where potentially divergent terms are generated and canceled will be a theme
later, where the cancellation is less trivial.
The integral over γ6 , i.e., around the branch point, clearly vanishes as R → 0:
−3π/2
iφ log i2 R aeiφ + 2R ei2φ
i R dφ e (2.65)
b2 − a 2 + i2 R aeiφ + 2R ei2φ
π/2
−π/2 2
log a 2 + z 2 iφ log a − b + i2 R be + R e
2 iφ 2 i2φ
dz = i R dφ e
b2 + z 2 i2 R beiφ + 2R ei2φ
γ4 π/2
−π/2
log b2 − a 2 − i2 R beiφ − 2R ei2φ + iπ
=i dφ
i2b + R eiφ
π/2
π
π2
=− log b2 − a 2 − i ( R → 0) (2.66)
2b 2b
−3π/2 2
log a 2 + z 2 iφ log a − b + i2 R be + R e
2 iφ 2 i2φ
dz = i R dφ e
b2 + z 2 −π/2 i2 R beiφ + 2R ei2φ
γ8
−3π/2
log b2 − a 2 − i2 R beiφ − 2R ei2φ − iπ
=i dφ
i2b + R eiφ
−π/2
π
π2
=− log b2 − a 2 + i ( R → 0) (2.67)
2b 2b
Adding these, we see that the terms ±iπ from either side of the branch cut vanish.
Accordingly,
log a 2 + z 2 π
dz = − log b2 − a 2 (2.68)
b +z
2 2 b
γ4 +γ8
2.3 Poles and Branch Points 45
and the contour integral results from putting all this together:
∞
log a 2 + z 2 log a 2 + x 2 π b+a π
dz = dx − log − log b2 − a 2
b +z
2 2 b +x
2 2 b b−a b
C −∞
∞
log a 2 + x 2 2π
= dx − log (a + b) (2.69)
b +x
2 2 b
−∞
The assumption above was that b > a > 0. To make the result valid for a, b < 0,
we replace with absolute values in the final result, by Cauchy’s Theorem:
∞
log a 2 + x 2 2π
dx = log (|a| + |b|) (2.70)
b +x
2 2 |b|
−∞
So after all that, we ended up with the exact same result derived for the case a > b.
The reason for this is that the phase shifts of the branch cuts cancel. Of course, we
will see that this result holds up for a = b, because...well, it’s pretty plain at this
point. But since we are math enthusiasts, we are going to work that case on its own
separate merits. And in the process, we are going to encounter some new animals in
our zoo.
a = b In this case, the pole and branch point coincide at z = ia. This will separate
the wheat from the chaff.
Again, we define the contour C to be that shown in Fig. (2.2). Along these lines,
R
log a 2 + z 2 log a 2 + x 2
dz = d x (2.71)
a2 + z2 a2 + x 2
γ1 −R
π/2 2
log a 2 + z 2 iθ log a + R e
2 i2θ
dz = iR dθ e (2.72)
a2 + z2 a 2 + R 2 ei2θ
γ2 0
a+ 2R − 2A
log a 2 + z 2 log a 2 + ( A + i y)2
dz =i dy (2.73)
a2 + z2 a 2 + ( A + i y)2
γ3 R
2
−3π/2+arcsin
( A / R )
log a 2 + z 2 log a 2 + ia + R eiφ
dz = i R dφ eiφ
2 (2.74)
a2 + z2 a 2 + ia + R eiφ
γ4 π/2−arcsin ( A / R )
R
log a 2 + z 2 log a 2 + (− A + i y)2
dz =i dy (2.75)
a2 + z2 a 2 + (− A + i y)2
γ5
a+ 2R − 2A
π 2
log a 2 + z 2 iθ log a + R e
2 i2θ
dz = i R dθ e (2.76)
a2 + z2 a 2 + R 2 ei2θ
γ6 π/2
46 2 Evaluation of Definite Integrals I …
∞
log a 2 + z 2 log y 2 − a 2 + iπ
dz = i dy (2.77)
a2 + z2 y2 − a2
γ3 a+ R
∞
log a 2 + z 2 log y 2 − a 2 − iπ
dz = −i dy (2.78)
a2 + z2 y2 − a2
γ5 a+ R
∞
log a 2 + z 2 dy π 2a + R
dz = −2π = − log (2.79)
a2 + z2 y2 − a2 a R
γ3 +γ5 a+ R
Note here that this contribution up and back along wither side of the branch cut
diverges in the limit as R → 0. If we hold any hope that our contour integration
technique will produce the expected result, we expect the integral over γ4 to include
a divergent term that will cancel the divergent term in Eq. (2.79). While it may
seem weird to be working with divergent quantities, we will find that working with
divergent portions of the contour integral has certain benefits. The main benefit of
working with divergent pieces is that it provides an automatic check on the results:
if after evaluation the contour integral we still have divergent pieces, we know there
is a mistake somewhere.
We expect the cancellation to occur in the evaluation of the integral over γ4 , which
we evaluate here in the limit as A → 0.
−3π/2
log a 2 + z 2 iφ log i2a R e + R e
iφ 2 i2φ
dz = i R dφ e
a2 + z2 i2a R eiφ + 2R ei2φ
γ4 π/2
−3π/2
1
= dφ log i2a R eiφ
2a
π/2
−3π/2
π
1
= dφ i + log (2a R ) + iφ
2a 2
π/2
π2 π i 1 9π 2 π2
= −i − log (2a R ) + −
2a a 2a 2 4 4
π
= − log (2a R ) (2.80)
a
2.3 Poles and Branch Points 47
And hopefully it is clear now that the divergences, in fact, do cancel! This happened
for us in the case a < b except that the divergences canceled within the integrals along
either side of the branch cut, so it was not as apparent. Accordingly, the contour
integral is now equal to
∞
log a 2 + z 2 log a 2 + x 2 2π
dz = d x − log (2a) (2.81)
a2 + z2 a2 + x 2 a
C −∞
Applying Cauchy’s Theorem and then adjusting for the case a < 0, we arrive at
the expected result:
∞
log a 2 + x 2 2π
dx = log (2|a|) (2.82)
a2 + x 2 |a|
−∞
This section, it is hoped, has brought to the fore a couple of concepts that are
not completely clear from a first treatment of complex integration techniques of
evaluating real definite integrals.
• Cauchy’s Theorem does not distinguish between singularites, and neither do we.
If we attack problems with poles or branch points in the same way, then using
Cauchy’s Theorem to evaluate definite integrals becomes easier to contemplate:
all we need do is think about ways to construct closed contours that detour around
the singularities.
• The Residue Theorem, then, is essentially a shortcut we can take once we under-
stand the structure of the singularities enough to construct a contour. In the case
a > b, we were able to use the simpler contour once we determined that the pole
could be treated as “inside” the contour. This shortcut works because we realize
that there is no contribution to the contour integral along the detour portions of the
contour. But by default, contours should detour around all singularities the same.
In the chapter that follows, we will apply the teachings of this chapter to explore
different types of definite integrals that may be evaluated using complex integration.
Many of these will not be encountered on a first treatment of the subject.
Problems
∞
log x 2 + a 2
dx
(a − i x)2
−∞
48 2 Evaluation of Definite Integrals I …
2.4 Evaluate the following integrals using the contour-based analysis detailed in
this chapter.
(i)
∞
log x 2 + a 2
dx
2
x 2 + b2
−∞
for a > 0,
Chapter 3
Evaluation of Definite Integrals II:
Applications to Various Types of
Integrals
Abstract In the previous section, we demonstrated that poles and branch points,
rather than being two completely different cases that must be treated differently, are
actually complementary in the contributions they provide to a contour integral. In
this sense, the Residue Theorem is simply a shortcut because the integrals over the
detours to the pole cancel. In the presence of branch points, these integrals do not
cancel. This point of view allows us to consider cases avoided in first treatments
of contour integration, namely, singularities that are both poles and branch points
simultaneously. We now get to apply this point of view to some familiar types of
integrals. This point of view also enables us to treat integrals that are usually not
considered ones that anyone would want to evaluate using contour integration. In
fact, the thought of using contour integration on some of these integrals may send
chills down the spine. But using results from the previous chapter, we will see how
this point of view pays dividends to those who treasure new ways of evaluating
integrals. We will also illustrate applications to the evaluation of sums.
Many times we are asked to evaluate integrals having the following form:
∞
dx f (x)
0
where f : [0, ∞) → R is integrable over its domain. Note that f is usually not even
and is therefore not continued over the negative reals. Accordingly, contours such
as those in Figs. 2.2 and 2.3 will not be appropriate for this case. The contour we
will be using for all of the integrals evaluated in this section is known as a keyhole
contour and is defined as follows.
Let’s begin with an example that isn’t particularly difficult but which result of its
evaluation will leave us a bit bemused.
∞
xα
dx (3.1)
x2 + 2x cos (πβ) + 1
0
It should not be difficult to show that α ∈ (−1, 1) for the integral to converge. For
reasons that will be appreciated later, we will also restrict β ∈ (−1, 1). We consider
the following contour integral over the contour C in Fig. 3.1. We will be assuming
that A can be set to zero.
zα
dz 2
z + 2z cos (πβ) + 1
C
where
R
zα xα
dz 2 = dx (3.2)
z + 2z cos (πβ) + 1 x2 + 2x cos (πβ) + 1
γ1 R
2π
zα Rα eiαθ
dz 2 = iR d θ eiθ (3.3)
z + 2z cos (πβ) + 1 R2 ei2θ + 2Reiθ cos (πβ) + 1
γ2 0
R
zα xα ei2πα
dz = dx (3.4)
z 2 + 2z cos (πβ) + 1 x2 + 2x cos (πβ) + 1
γ3 R
3.1 Integrands Defined Over [0, ∞) 51
0
zα Rα eiαφ
dz 2 = iR d φ eiφ
z + 2z cos (πβ) + 1 R2 ei2φ + 2R eiφ cos (πβ) + 1
γ4 2π
(3.5)
We could have provided detours for the two poles we will find, but as we have seen
it is far easier to take the shortcut the Residue Theorem provides.
There is an important point we must make here: we have implicitly defined arg z ∈
[0, 2π ) for all z in a disk that contains the contour C. We set this up when we defined
log z such that the branch cut is alone the positive real axis. We could have defined
the log term such that the branch cut is along the negative real axis, but we would
have had to perform some mathematical gymnastics to get the definite integral we
seek. This definition of arg z will have direct implications on the computation of the
definite integral.
Back to the contour integral. Clearly, the integral over γ4 vanishes as R → 0
because α > −1. Regarding the integral over γ2 , the integral vanishes as R → ∞
because in this limit the integral behaves as Rα−1 , and α < 1. This leaves the integral
over γ1 and γ3 , and we get that the contour integral is
∞
zα xα
dz 2 = 1 − ei2πα dx (3.6)
z + 2z cos (πβ) + 1 x2 + 2x cos (πβ) + 1
C 0
This is a lovely, simple expression for the contour integral in terms of the definite
integral; it is pretty much what we will always see with a factor of z α in the contour
integral. By the Residue Theorem, the contour integral is also equal to i2π times the
sum of the residues at the polesinside the
contour C. The poles of the integrand are
where z 2 + 2z cos (πβ) + 1 = z + eiπβ z + e−iπβ = 0
zα eiπα eiπαβ
Res = (3.7)
z=−eiπβ z 2 + 2z cos (πβ) + 1 −i2 sin (πβ)
α
z eiπα e−iπαβ
Res = (3.8)
z=−e−iπβ z 2 + 2z cos (πβ) + 1 i2 sin (πβ)
It should be clear that we take the minus sign to be eiπ because, as we stated,
arg z ∈ [0, 2π ); this accounts for the factor eiπα in both of the residues.
By the Residue Theorem, we get the following equality.
∞
xα eiπα sin (π αβ)
1 − ei2πα dx = i2π (3.9)
x2 + 2x cos (πβ) + 1 sin (πβ)
0
52 3 Evaluation of Definite Integrals II: Applications to Various Types of Integrals
∞
xα π sin (π αβ)
dx = (3.10)
x + 2x cos (πβ) + 1
2 sin (π α) sin (πβ)
0
What a nice symmetric result! Here’s a question: can the nice result on the RHS
symmetric in α and β can be deduced from the integral on the LHS without evaluating
the integral? That is,
∞ ∞
xα xβ
dx 2 = dx (3.11)
x + 2x cos (πβ) + 1 x2 + 2x cos (π α) + 1
0 0
Note that α and β are both ∈ (−1, 1) and are accordingly interchangeable. The
origin of the symmetry seems be a mystery.
It’s log, log, log!
For our next integral, we will look at something that outwardly has no branch points,
nor any symmetry:
∞
dx
1 + x3
0
Those who have taken a first course in Complex Analysis have likely seen the trick
we will be using here. Because the integrand is meromorphic, a consideration of a
contour integral using this integrand will not produce anything meaningful over the
keyhole contour defined in Fig. 3.1. What we need to do is introduce a factor of log z
in the contour integral. As we saw in the previous section, a log in the presence of
a branch point effectively becomes a factor of −i2π . Accordingly, we consider the
following contour integral:
log z
dz (3.12)
1 + z3
C
R
log z log x
dz = dx (3.13)
1 + z3 1 + x3
γ1 R
2π
log z log Reiθ
dz = iR dθ e iθ
(3.14)
1 + z3 1 + R3 ei3θ
γ2 0
3.1 Integrands Defined Over [0, ∞) 53
R
log z log x + i2π
dz = dx (3.15)
1 + z3 1 + x3
γ3 R
0
log z log R eiφ
dz = iR dφ e iφ
(3.16)
1 + z3 1 + R3 ei3φ
γ4 2π
∞
log z dx
dz = −i2π (3.17)
1 + z3 1 + x3
C 0
By the Residue Theorem, the contour integral is also equal to i2π times the sum
of the residues of the poles of the integrand
of the contour
integral inside the contour
C. In this case, the poles are at z ∈ eiπ/3 , eiπ , ei5π/3 .
Before computing the residues, it is important for the reader to understand why
we chose the poles to be the set above and not something differing in phase by some
multiple of 2π . The reason those values for the phase are used for these poles is
because we have already specified that each z on and in the contour C must satisfy
arg z ∈ [0, 2π ). Note, for example, that arg z = 0 on γ1 and arg z = 2π on γ3 .
The residues at these poles are as follows.
log z iπ/3
Res = i2π/3 (3.18)
z=eiπ/3 1 + z3 3e
π
= e−iπ/6 (3.19)
9
log z iπ
Res = i2π (3.20)
z=eiπ 1+z 3 3e
π
=i (3.21)
3
log z i5π/3
Res = i10π/3 (3.22)
z=ei5π/3 1+z 3 3e
5π
= − eiπ/6 (3.23)
9
Adding the residues, we arrive at the following result:
∞ √
dx 2 3
= π (3.24)
1 + x3 9
0
54 3 Evaluation of Definite Integrals II: Applications to Various Types of Integrals
This result is fairly standard and we should make sure the trick exploiting the mul-
tivaluedness of the logarithm in the complex plane is understood. We will study many
examples of such an introduction of multivaluedness to evaluate definite integrals.
The Universal Polynomials
Let’s discuss a class of definite integrals that are easily evaluated from the quantities
we have already computed. We begin by evaluating an integral similar to the one we
just computed:
∞
log x
dx (3.25)
1 + x3
0
We introduce the following contour integral for computing the definite integral:
log2 z
dz (3.26)
1 + z3
C
What should be clear to the reader is that the poles are the same as for the previous
integral. In fact, we could write the previous result for the log-less definite integral as
∞ 3
dx
− i2π = i2π Rk log zk
1+x 3
0 k=1
∞ 3
dx
=⇒ =− Rk log zk (3.27)
1+x 3
0 k=1
∞ m
log2 z log2 x − (log x + i2π )2
dz = dx = i2π Rk log2 zk (3.29)
1 + z3 1+x 3
C 0 k=1
That is,
∞ ∞
m
log x dx
− i4π dx + 4π 2 = i2π Rk log2 zk (3.30)
1 + x3 1 + x3
0 0 k=1
3.1 Integrands Defined Over [0, ∞) 55
where
∞ m
dx
− i2π = i2π Rk log zk (3.31)
1+x 3
0 k=1
∞
1
m
log x
dx =− Rk log zk (log zk − i2π ) (3.32)
1+x 3 2
0 k=1
The reader can use the information we have already derived regarding the poles zk
2
and their residues Rk in Eq. (3.32) to see the sum on the RHS is − 2π
27
.
The analysis we did above on the integrals with factors of log in the integrand
hopefully gave the reader some ideas about the general integrals of meromorphic
functions times a power of log. It should be clear that the form of Eq. (3.32) is
independent of the meromorphic function in the integrand. We will demonstrate
below and in the problems the following relation:
∞
1
m
dx f (x) logm x = − Rk log zk Pm (log zk ) (3.33)
m+1
0 k=1
with Rk = Resz=zk f (z). That is, when the poles of f are simple, we need only compute
the residue of f at the poles. In contrast, when f has a repeated pole, the sum on
the RHS of Eq. (3.33) is complicated by derivatives of f and accordingly there is no
universal polynomial with repeated poles.
The derivation of the universal polynomials is straightforward and involves
generating a recurrence relation for, say, Pm (log zk ) in terms of Pm−1 (log zk ),
Pm−2 (log zk ),..., P0 (log zk ).
To give a taste:
P0 ( ) = 1 (3.34)
P1 ( ) = − i2π (3.35)
P2 ( ) = 2 − i3π − 2π 2 (3.36)
We will leave the derivation of further universal polynomials and their applications
to the exercises.
Contributions from Infinity
In the previous examples we were able to show that any contributions from the large
arcs of the contour vanish as a radius R as the large arcs increase without bound.
Here is an example in which we need to be super careful about how we treat the
contributions of the contour integral as R → ∞.
56 3 Evaluation of Definite Integrals II: Applications to Various Types of Integrals
Moreover, the previous examples did not require a transformation before we intro-
duced a contour integral. In this example, we will be performing transformations on
the definite integral before determining the best contour integral representation. Note
that this example will not be using the usual contour for this class of integrals.
Consider evaluating the following definite integral:
∞
x
dx (3.37)
x2 + 1 (eπx + 1)
0
where C is the keyhole contour from Fig. (3.1). Nevertheless, it turns out that the
evaluation of the integral over the large arc of radius R as well as the sum of the
residues involves challenges that we will not encounter until the final chapter on
asymptotics. Instead, we are going to exploit some symmetry in the integrand to
derive an interesting representation of the integral. We begin with the observation
that
1 1 1 π
= − tanh z (3.39)
eπz +1 2 2 2
We will be breaking the integral up into odd and even portions so the integral we
want to evaluate becomes
⎡ R ⎤
∞ R π
x 1 x 1 x
dx 2 = lim ⎣ dx 2 − dx 2 tanh x ⎦
x + 1 (eπ x + 1) R→∞ 2 x +1 2 x +1 2
0 0 0
⎡ ⎤
R
1 ⎢ x eπ x − 1 ⎥
= lim ⎣log R2 + 1 − dx 2 ⎦
4 R→∞ x + 1 eπ x + 1
−R
We will be using the exponential form of the tanh function for this analysis.
Clearly, the log term will diverge as R → ∞; accordingly, we expect the integral
to have a similar divergent quantity. Accordingly, consider the following contour
integral
z eπz − 1
dz 2 (3.40)
C z + 1 eπz + 1
where C is the semicircular contour of radius R in the upper half plane. Accordingly,
this contour integral is equal to
3.1 Integrands Defined Over [0, ∞) 57
R π
x eπx − 1 eπRe − 1
iθ
Reiθ
dx 2 + iR d θ eiθ (3.41)
x + 1 eπx + 1 R2 ei2θ + 1 eπReiθ + 1
−R 0
The second integral vanishes as R → ∞; this will be shown in the exercises. The
contour integral is then equal to the original integral, and is also equal to i2π times
the sum of the residues at the poles within C. This is where things get interesting.
The poles of the integrand within C are at zk = i(2k + 1) for k ∈ {0, 1, 2, ...}.
The pole for k = 0 is a double pole while the poles for k ≥ 1 are simple. To compute
the pole for k = 0, we expand in a series for z = z0 + ζ = i + ζ :
z eπz − 1 1
Res πz
= (3.42)
z=z0 z +1e +1
2 i2π
R
N (R)
x eπx − 1 z eπz − 1
dx 2 = i2π Res (3.44)
x + 1 eπx + 1 z=i(2k+1) z 2 + 1 eπz + 1
−R k=0
N (R)
1 1
= 1+ + (3.45)
k k +1
k=1
1
= 2HN (R) + (3.46)
N (R) + 1
N (R) is the number of poles within the semicircle of radius R, which is N (R) =
1
2
(R − 1); HN is the N th harmonic number. Recall that
HN ∼ log N + γ (N → ∞) (3.47)
58 3 Evaluation of Definite Integrals II: Applications to Various Types of Integrals
R
x eπx − 1
dx 2 (log N (R) + γ ) (3.48)
x2 + 1 eπx + 1
−R
= −2 (log 2 − γ ) + 2 log (R − 1) (3.49)
∞
x
dx
x2 + 1 (eπx + 1)
0 (3.50)
1
= lim log R2 + 1 − 2 log(R − 1) + 2 (log 2 − γ )
4 R→∞
At this point the reader should see that the divergent logs cancel in the limit as
R → ∞. This should be fully expected and provides a natural check on the evaluation.
Accordingly,
∞
x 1
dx 2
πx
= (log 2 − γ ) (3.51)
x + 1 (e + 1) 2
0
So this particular case led to an alternative to the keyhole contour when we broke
the integrand up into odd and even components. In this way, we were able to express
the contributions of the residues to the integral, including the divergent piece, using
a much simpler sum than what we would have gotten through the keyhole contour.
If we are to take any lesson from this book, it is to recognize when the usual way
of attacking problems leads to a dead end and be creative.
φ
0 +2π
dz z + z −1 z − z −1
dx ρ(cos x, sin x) = −i ρ , (3.52)
|z|=1 z 2 i2
φ0
Review Preview
For the review, let’s see how we use the Residue Theorem to evaluate the following
definite integral:
π
dθ
a2 cos2 θ + b2 sin2 θ
0
2π
dθ (3.53)
=
a2 + b2 − a2 − b2 cos θ
0
dz
= i2
|z|=1 a2 − b2 z 2 − 2 a2 + b2 z + a2 − b2
And therefore
π
dθ π
= (3.54)
a2 cos2 θ + b sin θ
2 2 ab
0
This is valid when ab > 0. But what happens when ab < 0? The result in Eq. (3.54)
is negative despite the integrand being strictly positive. We could simply declare that
the result should be enclosed in an absolute value sign, and such a declaration would
be correct. But let’s answer the question a little more definitively.
Note that, when a > 0 and b < 0, the pole z1 may be expressed as z1 = (a +
b)/(a − b) = (a − |b|)/(a + |b|) < 0; accordingly, z2 is now > 0. So in this case, it
is z2 that has zero residue, while
i2 i2
Res 2 =
z=z1 a −b z −2 a +b z+ a −b
2 2 2 2 2 2 2 a − b z1 − 2 a2 + b2
2 2
i
=
ab
which produces as the result for the integral −π/(ab), which is positive. Accordingly,
we may now state that, for all real a, b,
60 3 Evaluation of Definite Integrals II: Applications to Various Types of Integrals
π
dθ π
= (3.55)
a2 cos2 θ + b sin θ
2 2 |ab|
0
π 2π
θ 1 θ
dθ 2 = dθ (3.56)
a cos2 θ + b2 sin2 θ 2 p − q cos θ
0 0
and we note that both poles are real and positive, with |z+ | > 1 and |z− | < 1. So we
have a pole on the branch cut within the unit circle. Whoa. As with any other pole,
we will need to form a detour—for convenience, circular detours—around the pole
at z = z− . The resulting contour C is pictured in Fig. (3.2).
Before we proceed, let’s take stock of what just happened. In conventional eval-
uations of definite integrals using complex integration, we usually select a contour
that was taught to us in a first course: a semicircle, a keyhole, a unit circle. We
will see other standard contours such as wedges and rectangles. But here, we have
designed a custom contour based on the singularities of the integrand of the complex
representation of the definite integral on the RHS of Eq. (3.56). Using such a contour
construction, the range of definite integrals that may be evaluated using complex
integration may be expanded significantly from those learned in a first course.
What will happen is that, even though we have derived a contour integral based
on the definite integral, the contour integral when broken apart will have other con-
tributions from the parts of the contour that avoid the branch cut, branch point, and
pole. Accordingly, we will see that the contour integral is equal to the sum of the
definite integral and other contributions from the detours.
Let us break apart the contour integral on the RHS of Eq. (3.57). The terms are
arranged counterclockwise beginning at θ = 0 on the large circular arc.
2π
log z 1 θ
dz 2 = dθ (3.59)
qz − 2pz + q 2 p − q cos θ
γ1 0
z
− +R
log z log x + i2π
dz = dx (3.60)
qz 2 − 2pz + q qx2 − 2px + q
γ2 1
62 3 Evaluation of Definite Integrals II: Applications to Various Types of Integrals
π
log z log z− ei2π + R eiφ
dz 2 = iR dφ e
iφ
2
qz − 2pz + q q z− + R eiφ − 2p z− + R eiφ + q
γ3 2π
(3.61)
R
log z log x + i2π
dz = dx (3.62)
qz 2 − 2pz + q qx2 − 2px + q
γ4 z− −R
0
log z log R + i2π
dz 2 = iR dφ (3.63)
qz − 2pz + q qR2 ei2φ − 2pR eiφ + q
γ5 2π
z
− −R
log z log x
dz 2 = dx (3.64)
qz − 2pz + q qx2 − 2px + q
γ6 R
0
log z log z− + R eiφ
dz 2 = iR dφ e
iφ
2
qz − 2pz + q q z− + R eiφ − 2p z− + R eiφ + q
γ7 π
(3.65)
1
log z log x
dz = dx (3.66)
qz 2 − 2pz + q qx2 − 2px + q
γ8 z− +R
Before we combine and simplify the above terms, we should note that we defined
the branch cut such that arg z = 2π below the cut and arg z = 0 above. Note that
these values of the phase of z are applied to the detours above and below the branch
cut. This should be apparent in the third integral where the reader may have been a
bit puzzled at the z− ei2π term. That factor is needed because of the log. It will turn
out that this factor will be crucial to the evaluation of the definite integral.
We have encountered the Cauchy principal value for integrals earlier. Let’s provide
a definition:
Definition 1 The Cauchy principal value of a definite integral of a function f over
an interval in which f has a simple pole at x = x2 is defined as follows.
⎛ x − ⎞
x1 2 R x1
PV dx f (x) = lim ⎝ dx f (x) + dx f (x)⎠ (3.67)
→0
x0 x0 x2 +R
As we have seen, the Cauchy principal value is very useful and we will be seeing
this many more times over the rest of this book. It is useful because it allows us to
define integrals in terms of cancellations of divergent quantities, as we will see soon.
3.2 Integration Over the Unit Circle 63
Let’s get the following question out of the way: what does the Cauchy principal
value represent?
With Definition 1 in mind, let’s combine the integrals along the lines below and
above the branch cut, i.e., the second, fourth, sixth, and eighth integrals above as
R → 0:
+R
z−
log z log x + i2π
dz = dx
qz 2 − 2pz + q qx2 − 2px + q
γ2 +γ4 +γ6 +γ8 1
R
log x + i2π
+ dx
qx2 − 2px + q
z− −R
−R
z−
log x
+ dx
qx2 − 2px + q
R
1
log x
+ dx
qx2 − 2px + q
z− +R
⎛ ⎞
−R
z− 1
⎜ dx dx ⎟
= −i2π ⎝ + ⎠
qx2 − 2px + q qx2 − 2px + q
R z− +R
1
dx
= −i2π PV (3.68)
qx2 − 2px + q
0
As for the integrals around the pole, we may combine them and let R → 0. For
example, the integral over γ3 is
π
log z log z− ei2π + R eiφ
dz = iR d φ eiφ 2
qz 2 − 2pz + q q z− + R eiφ − 2p z− + R eiφ + q
γ3 2π
0
log z log z− + R eiφ
dz 2 = iR dφ e
iφ
2
qz − 2pz + q q z− + R eiφ − 2p z− + R eiφ + q
γ2 π
π log z−
=i (R → 0) (3.70)
2 p − qz−
64 3 Evaluation of Definite Integrals II: Applications to Various Types of Integrals
Now let’s evaluate the Cauchy principal value in Eq. (3.68). As usual, we break
the integrand up into partial fractions.
1 1
dx 1 1 1
PV = PV dx − (3.71)
qx2 − 2px + q q(z+ − z− ) x − z+ x − z−
0 0
Now, the Cauchy principal value of the integral of the first term is simply the usual
integral as the pole at x = z+ is outside of the integration interval.
1
dx z+ − 1
PV = log (3.72)
x − z+ z+
0
In contrast, the pole at x = z− is in the integration interval so we will have to use the
definition of the Cauchy principal value.
⎛ z− −R ⎞
1 1
dx dx dx ⎠
PV = lim ⎝ +
x − z− R →0 x − z− x − z−
0 0 z− +R
R 1 − z−
= lim log + log
R →0 z− R
1 − z−
= log
z−
1
dx
PV = log z− (3.73)
qx2 − 2px + q
0
Finally, we determine the value of the integral using Cauchy’s theorem and using
the fact that q(z+ − z− ) = 2 p2 − q2 and p − qz− = p2 − q2 . The terms with
log z− cancel and we have that
2π
θ 2π 2
dθ = (3.75)
p − q cos θ p2 − q2
0
3.2 Integration Over the Unit Circle 65
and accordingly
π
θ π2
dθ = (3.76)
a2 cos2 θ + b2 sin2 θ 2|ab|
0
where we added in absolute values for similar reasons as for the previous example
and the result in Eq. (3.76) is valid for all a, b ∈ R and
= 0. Hopefully it is clear that
the result is correct at least for a = b. How else could we check the result?
The important point of this example is that we are expanding the types of integrals
that may be attacked using complex integration. Let’s do an even more challenging
example, one that is quite surprising in its difficulty. Along the way, we will meet a
new friend.
Dilog die!
Sometimes polynomial-times-trig-rational integrands are actually a lot simpler than
we might expect. And sometimes, we can be led into a rabbit hole—although, isn’t
that why this book is so much fun?
Consider the following integral.
π
x sin x
I1 = dx (3.77)
1 + cos2 x
0
If one wanted to evaluate this integral without any of the hassle of setting up weird
contours as in the previous example, they might think about integration by parts. Or
at least until they realize that the result will be an integral over arctan cos x which
does not lend itself to the desired complexity avoidance.
Nevertheless, there is a nifty trick that leads to a quick evaluation: substitute
x → π − x.
π
(π − x) sin (π − x)
I1 = dx
1 + cos2 (π − x)
0
π π
sin x x sin x
=π dx − dx
1 + cos2 x 1 + cos2 x
0 0
π
sin x
=π dx − I1 (3.78)
1 + cos2 x
0
66 3 Evaluation of Definite Integrals II: Applications to Various Types of Integrals
and accordingly
π
π sin x
I1 = dx
2 1 + cos2 x
0
π
= [− arctan (cos x)]π0
2
π2
= (3.79)
4
Like most of the results we derive using Cauchy’s Theorem or the Residue Theorem,
this is an elegant result in which we find the integral by algebraically solving for it.
Aren’t these fantastic? So, one should expect that a very similar integral
π
x cos x
I2 = dx (3.80)
1 + sin2 x
0
This is a case of what many refer to as “Feynman’s trick,” which may have origi-
nated with a story about how the Nobel-winning physicist Richard Feynman used
differentiating under the integral as a nice, simple alternative to complex integration.
1
The idea, of course, is to convert the integral over [0, π ] into an integral over a full
cycle so we may integrate over a unit circle in the complex plane. So it makes sense
to play around with the following:
2π π 2π
sin (αx) sin (αx) sin (αx)
dx = dx + dx
1 + sin2 x 1 + sin2 x 1 + sin2 x
0 0 π
π π
sin (αx) cos (αx)
= (1 + cos (π α)) dx + sin (π α) dx
1 + sin2 x 1 + sin2 x
0 0
(3.82)
So what we have here is not one but a pair of integrals over the unit circle. The first,
π π
cos (αx) 1 cos (αx)
dx = dx (3.83)
1 + sin x
2 2 1 + sin2 x
0 −π
is over θ ∈ [−π, π ]. In this case the associated contour integral will have a branch
cut along the negative real axis. The second,
2π
sin (αx)
dx (3.84)
1 + sin2 x
0
is over θ ∈ [0, 2π ]. In this case the associated contour integral will have a branch
cut along the positive real axis.
By subbing z = eiθ in each of the integrals in Eqs. (3.83) and (3.84), we get the
following contour integrals:
z 1+α
i4 dz (3.85)
C± z 4 − 6z 2 + 1
Then with regard to the contour C+ , the following are its components (some of which
are combined):
68 3 Evaluation of Definite Integrals II: Applications to Various Types of Integrals
z 1+α
i4 dz = I (α) (3.87)
z4 − 6z 2 + 1
γ1
1
z 1+α x1+α
i4 dz = i4 1 − ei2π α PV dx (3.88)
z − 6z + 1
4 2 x4 − 6x2 + 1
γ2 +γ4 +γ6 +γ8 0
π i2π 1+α
z 1+α z0 e + R eiφ
i4 dz = −4R d φ eiφ 4 2
z 4 − 6z 2 + 1 z0 + R eiφ − 6 z0 + R eiφ + 1
γ3 2π
(3.89)
0 iφ 1+α
z 1+α R e
i4 dz = −4R dφ e
iφ
4 2 (3.90)
z 4 − 6z 2 + 1 R e iφ − 6 R eiφ + 1
γ3 2π
0 1+α
z 1+α z0 + R eiφ
i4 dz = −4R d φ eiφ 4 2
z 4 − 6z 2 + 1 z0 + R eiφ − 6 z0 + R eiφ + 1
γ5 π
(3.91)
The contour
√ integral
over C+ is equal to i2π times the residue at the pole z =
−z0 = − 2 − 1 , where the negative is taken to be eiπ (why?):
z 1+α z 1+α
i4 dz = i2π(i4) Res
C+ z 4 − 6z 2 + 1 z=z0 eiπ z 4 − 6z 2 + 1
Applying the residue theorem and rearranging the furniture a little, we get the
following expression for I (α):
1
x1+α π 2
I (α) = i4 ei2πα − 1 PV dx + √ z0α eiπα + 1 (3.93)
x − 6x + 1 2 2
4 2
0
As we are only interested in the imaginary part of I (α), we may simplify this result
for I and obtain
2π
sin αx
dx = Im [I (α)]
1 + sin2 x
0
1
x1+α π
= −8 sin2 π αPV dx + √ z0α sin π α (1 + cos π α)
x4 − 6x2 + 1 2
0
(3.94)
3.2 Integration Over the Unit Circle 69
That takes care of one of the integrals we need. Now we need the other: define
π
eiαx
J (α) = dx (3.95)
1 + sin2 x
−π
π
cos αx
dx = Re [J (α)]
1 + sin2 x
−π
1
x1+α (3.96)
= −8 sin π αPV dx
x4 − 6x2 + 1
0
π
+ √ z0α (1 + cos π α)
2
So combining Eqs. (3.82), (3.94), and (3.96), we finally arrive at the following expres-
sion:
π 1
sin αx π π x1+α
dx = √ z0α sin π α − 8 sin2 αPV dx (3.97)
1 + sin x
2
2 2 2 x4 − 6x2 + 1
0 0
To get the original integral we want to evaluate, we differentiate both sides with
respect to α and set α = 1:
70 3 Evaluation of Definite Integrals II: Applications to Various Types of Integrals
π 1
x cos x π 2 √
x2 log x
dx = − √ 2 − 1 − 8PV dx (3.98)
1 + sin2 x 2 2 x4 − 6x2 + 1
0 0
Whew! We have now expressed the original integral in terms of a Cauchy principal
value of an integral over a log times a rational. Rest assured, this is progress! It’s just
that it is hard to see unless we know that integrals of logs times rationals are usually
expressed in terms of dilogarithms.
The dilogarithm is not commonly taught at the undergraduate or even graduate
level in most coursework. Until recently, the dilogarithm was discussed in hushed
tones among only the most devoted integro-philes. But recent studies of the integrals
in Bose-Einstein and Fermi-Dirac statistics have provided an appreciation of dilog-
arithms beyond the esoteric. What we are going to see is that the dilogarithm has
some really amazing properties we can exploit to derive new results.
Before we discuss those properties, let’s simplify the principal value integral a
bit. Decomposing the integrand, we get
⎛ ⎞
8x2 1 ⎝ 1 1
= 1+ √ √
− √
⎠
x4 − 6x2 + 1 2 x− 2+1 x+ 2+1
⎛ ⎞ (3.99)
1 ⎝ 1 1
− 1− √ √
− √
⎠
2 x− 2−1 x+ 2−1
1
log x
PV dx √
(3.100)
0
x− 2+1
1
log x
PV dx √
(3.101)
0
x+ 2+1
1
log x
PV dx √
(3.102)
0
x− 2−1
1
log x
PV dx √
(3.103)
0
x+ 2−1
3.2 Integration Over the Unit Circle 71
The only one of the four that actually requires a Cauchy principal value to define
the integral is in Eq. (3.102). We will now express these integrals in terms of dilog-
arithms. To begin, when y ∈ / [0, 1], we have
1
log x 1
dx = Li2 (3.104)
x−y y
0
1
log (1 − zt)
Li2 (z) := − dt (3.105)
t
0
This is but one of many representations of the dilogarithm. The reader might
know that the dilogarithm has a series expansion that looks almost like that for
the...monologarithm (?) − log (1 − z):
∞
zk
Li1 (z) = − log (1 − z) = (3.106)
k
k=1
∞
zk
Li2 (z) = (3.107)
k2
k=1
···
∞
zk
Lis (z) = (3.108)
ks
k=1
We will leave derivation of these results to the exercises. In the meantime, the Cauchy
principal value integral in Eq. (3.102) and the other integrals in Eqs. (3.100), (3.101),
(3.103) are as follows
72 3 Evaluation of Definite Integrals II: Applications to Various Types of Integrals
1 √
√
log x π2 1
PV dx √
= − log2 2 + 1 − Li2 2−1
x− 2−1 3 2
0
(3.110)
1 √
log x
dx √
= Li2 2−1 (3.111)
0
x− 2+1
1 √
log x
dx √
= Li2 − 2−1 (3.112)
0
x+ 2+1
1 √
log x
dx √
= Li2 − 2+1 (3.113)
0
x+ 2−1
Accordingly,
1
x2 log x 1 √
√ 1
8PV dx = 1+ √ Li2 2 − 1 − Li2 − 2−1 − 1− √
x4 − 6x + 1
2
2 2
0
2 √
√
√
π 1
− log2 2 + 1 − Li2 2 − 1 − Li2 − 2+1
3 2
(3.114)
π2 1 √
π 2 1 √
π2 √
π
x cos x 1
dx = 1 − √
1 + sin2 x 2
0
√
π2
1 (3.120)
log 2
2+1 −
2 8
√
π2
1 1
+ 1+ √ log2 2+1 −
2 2 8
Recall there was an additional term beside the Cauchy principal value integral in
Eq. (3.98). We finally have arrived at our destination:
π √
π2
x cos x
dx = log2
2 + 1 − (3.121)
1 + sin2 x 4
0
It is amazing how simple the result is given how much mathematics has been
involved. Is there a simpler way? Probably. But again, the point of this exercise is to
apply complex integration methods to integrals to which such methods have not been
traditionally applied. Moreover, interestingly, by adding the two integrals discussed
here we get a nontrivial result:
74 3 Evaluation of Definite Integrals II: Applications to Various Types of Integrals
π √
The reader is challenged to evaluate this integral using purely real methods. (Note:
like the two component integrals, one can seem to make progress using integration
by parts but you then run into integrating an arctangent of some rational combination
of trig functions.)
Essentially singular
We have mentioned essential singularities; these are those singularities that blow up
faster than any power of z. For example, many trig or exponential functions of 1/z
will have an essential singularity at z = 0. We occasionally are tasked with evaluating
residues at essential singularities, and these pose some problems for those relying
on formulae for residues of low-order poles.
But still, how to evaluate such residues? The answer, as in all cases of nonsim-
ple poles, is to analyze Laurent series and pluck out coefficients of 1/z. It really
is straightforward conceptually; the real problems may lie in computation, which
frequently involves summing infinite series. Let’s look at an integral over the unit
circle as an illustrative example.
We seek the value of the following integral.
2π 2π
a cos θ
dθ e cos (sin θ ) = Re d θ ea cos θ+i sin θ (3.123)
0 0
To write as a complex integral, make the same substitution as above and, after a
little manipulation, get
dz 1 1 −1
−i exp (a + 1)z + (a − 1)z (3.124)
|z|=1 z 2 2
∞
k
1 k
(a + 1)m (a − 1)k−m z 2m−k (3.126)
2k k! m=0 m
k=0
3.3 Residue Reduction Contours 75
We get the coefficient of z 0 in the sum, for each k, when m = k/2. This only
works for even values of k. The result is that the coefficient of z 0 is, when |a| > 1:
∞ 2
k
a +1
= I0 a2 − 1 (3.127)
2 (k!)
2k 2
k=0
The integral is the real part of, by the residue theorem, i2π times the residue of
the essential singularity at z = 0. Therefore
2π
where I0 is the modified Bessel function of the first kind of order zero. It should be
clear what the result is when |a| ≤ 1.
Many times we are faced with evaluating contour integrals in which the integrand has
many poles inside the contour. The value of the integral would then be expressed as
a sum over the residues of each pole. Frequently, this can be unwieldy. The purpose
of this section, then, is to explore ways to reduce the number of residues needed to
evaluate an integral. Mostly, this involves using a different contour than one might
normally use. And many times, the change in contour also requires a change in
integrand.
Someone once said that evaluating definite integrals using the Residue Theorem is
an art. Based on a first course in Complex Analysis, this is mostly true. The intention
here, however, is to introduce what we need based on some logic and deduction.
Wedge
The first example here is one that is more or less standard and perhaps which with
the reader is familiar. The problem is to evaluate the following integral:
∞
xm
dx (3.129)
1 + xn
0
where C is the usual keyhole contour in Fig. (3.1). I leave the demonstration that the
integrals over the small and large arcs vanish as R → ∞ and → 0 to the reader.
The contour integral is accordingly equal to
∞
zm xm
dz log z = −i2π dx (3.131)
1 + zn 1 + xn
C 0
By the Residue Theorem, the contour integral is equal to i2π times the sum of the
residues at the poles inside C. Note that the the interior of C includes a large circle with
the origin and positive real axis excluded as a branch cut. Note that arg z ∈ [0, 2π )
because of the way we defined the branch cut. C contains all of the n poles of the
integrand; the reader may verify that the poles are at zk = exp (i(2k + 1)π/n). The
contour integral is then
n−1
zm
i2π Res log z
z=zk 1 + zn
k=0
i2π i2π(m+1−n)( 2k+1 ) iπ(2k + 1)
n−1
= e n (3.132)
n n
k=0
! n−1 "
2π 2 iπ m+1 m+1
n−1
m+1
= 2 e n 2 ke i2π n k
+ e i2π n k
n
k=0 k=0
It will be an exercise for the reader to demonstrate that, upon setting the expression
in Eq. (3.131) equal to Eq. (3.132), the integral is found to be
∞
xm π m+1
dx = csc π (3.133)
1 + xn n n
0
Was that really as bad as it may have been implied? If the reader has as much
expertise with geometric series as one may assume in profiting from the subject
matter of this book, then the above sums should not pose that much of a challenge.
That said, even for someone practiced in this area, the evaluation of the above sums
can be a messy affair. And such a messy affair—providing such a relatively simple
result—makes one wonder of there is a more efficient way at arriving at that result.
If you have been exposed to the Residue Theorem already, then you likely know
where this is going. Rather than blindly applying the Residue Theorem as we did
above, we find a contour that satisfies the following:
In this case, the reader may be familiar with a wedge contour that encloses only
a single pole. Figure 3.4 illustrates such a wedge for the case n = 7.
Let’s denote the wedge contour by W and evaluate the contour integral over W .
Note that, due to the nature of the wedge, the factor of log z is not needed in the
integrand. This contour is relatively simple and has only three components:
R
2π/n
zm xm ei(m+1)θ
dz = dx + iRm+1 dθ
1 + zn 1 + xn 1 + Rn einθ
W 0 0
(3.134)
0
tm
+ ei2π(m+1)/n dt
1 + tn
R
Note that, on the third piece of W —the sloped line—we set z = exp i2π m+1 n
, as
m+1
2π n is the wedge angle. Also note how fortuitous it is that the denominator of the
integrand in the third integral matches that in the first integral. Actually, “fortuitous”
is not the right word—the denominators match by design. Let’s estimate the second
integral using the ML-lemma:
# #
#
2π/n #
# m+1 e i(m+1)θ # m+1
#iR d θ # ≤ 2π R (3.135)
# 1 + Rn einθ ## n Rn − 1
#
0
∞
zm xm
dz = 1 − ei2π(m+1)/n dx (3.136)
1 + zn 1 + xn
W 0
78 3 Evaluation of Definite Integrals II: Applications to Various Types of Integrals
The contour integral is also equal to i2π times the residue at the pole at z = eiπ/n ;
accordingly we may write
∞
xm 1
1 − ei2π(m+1)/n dx = −i2π eiπ(m+1)/n (3.137)
1+x n n
0
∞
sinh ax sinh bx
dx (3.138)
cosh cx
−∞
where |a| + |b| < |c|. (Why?) Let’s first try our go-to semicircular contour of radius
R in the upper half plane. Clearly there will be an infinite set of poles along the
imaginary axis. But before we trouble ourselves with that, let’s write out the usual
contour integral. (The astute reader, and the non-astute reader probably can see that
this is not going to end well.)
R
sinh az sinh bz sinh ax sinh bx
dz = dx
cosh cz cosh cx
C −R
(3.139)
π iθ
iθ sinh aRe sinh bReiθ
+ iR dθ e
cosh cReiθ
0
and parallel to the imaginary axis that are fixed in length. In this way, we obtain the
original definite integral without having to deal with the awful behavior at sufficient
distance from the origin along the imaginary axis.
A good part of this is we can define the height of the rectangle parallel to the
imaginary axis such that the rectangle encloses only a single pole of the integrand.
We will find, however, that a change in contour may necessitate a change in integrand
to get the desired definite integral.
So let’s consider the following contour integral over C, where C is a rectangle
with vertices at the points −R, R, R + iπ/c, −R + iπ/c. Note this rectangle encloses
the pole at z = iπ/(2c) and no others.
R
sinh az sinh bz sinh ax sinh bx
dz = dx
cosh cz cosh cx
C −R
π/c
sinh a(R + iy) sinh b(R + iy)
+ i dy
cosh c(R + iy)
0
(3.141)
R
sinh a(x + iπ/c) sinh b(x + iπ/c)
− dx
cosh(cx + iπ/c)
−R
π/c
sinh a(−R + iy) sinh b(−R + iy)
− i dy
cosh c(−R + iy)
0
The reader should be able to see that the second and fourth integrals, over the vertical
sides of C, vanish in the limit as R → ∞ because |a| + |b| < |c|. The contour integral
in this limit is then
∞
sinh az sinh bz sinh ax sinh bx
dz = dx
cosh cz cosh cx
C −∞
∞
sinh a(x + iπ/c) sinh b(x + iπ/c)
− dx
cosh (cx + iπ/c)
−∞
πa
∞
πb sinh ax sinh bx
= 1 + cos cos dx
2c 2c cosh cx
−∞
πa
∞
πb cosh ax cosh bx
− sin sin dx (3.142)
2c 2c cosh cx
−∞
80 3 Evaluation of Definite Integrals II: Applications to Various Types of Integrals
Well, who saw that coming? The contour integral is a linear combination of
the integral we seek and an integral we never asked for. The usual reaction to a
complication like this is to figure out another way to evaluate the integral.
Nevertheless, it turns out that the extra integral can be evaluated just like we
outlined for the integral we intend to evaluate. That is, we consider the contour
integral
∞
cosh az cosh bz cosh ax cosh bx
dz = dx
cosh cz cosh cx
C −∞
∞
cosh a(x + iπ/c) cosh b(x + iπ/c)
− dx
cosh(cx + iπ/c)
−∞
πa
∞
πb sinh ax sinh bx (3.143)
= − sin sin dx
2c 2c cosh cx
−∞
πa
πb
+ 1 + cos cos
2c 2c
∞
cosh ax cosh bx
dx
cosh cx
−∞
Hopefully the reader can see where this is going. We need the residues of the
respective integrands at the poles. By the Residue Theorem,
sinh az sinh bz sinh az sinh bz
dz = i2π Res
cosh cz z=iπ/(2c) cosh cz
C
πa
−2π πb
= sin sin (3.144)
c 2c 2c
cosh az cosh bz cosh az cosh bz
dz = i2π Res
cosh cz z=iπ/(2c) cosh cz
C
πa
2π πb
= cos cos (3.145)
c 2c 2c
∞
sinh ax sinh bx
I1 := dx (3.146)
cosh cx
−∞
∞
cosh ax cosh bx
I2 := dx (3.147)
cosh cx
−∞
∞
sinh ax sinh bx π π(a + b) π(a − b)
dx = sec − sec . (3.149)
cosh cx 2c 2c 2c
−∞
The algebra is not trivial and should be verified. But we can simplify the algebra
in the first place by considering different contours and integrands. For example, we
can also derive the result in Eq. (3.149) by shifting the contour downward so that the
center of the rectangle is at the origin rather than at z = iπ/(2c). Let’s briefly walk
through this.
Now C is a rectangle with vertices at −R − iπ/(2c), R − iπ/(2c), R + iπ/(2c),
and −R + iπ/(2c). So nominally, we may consider the following contour integral
sinh az sinh bz
dz (3.150)
cosh cz
C
A little thought renders this integrand problematic. Note that there are poles of this
integrand on C. We will deal with such poles in the next chapter. We would rather
maintain the pole at the rectangle center, as we did in the example above. So we can
make a minor change to the integrand and now consider the contour integral
sinh az sinh bz
dz (3.151)
sinh cz
C
As the reader can see, at least this integrand has a single pole at the origin within
C. Moreover, the fact that the integrals parallel to the real axis are symmetrically
situated with respect to the real axis will make the algebra somewhat simpler than
what we just experienced. This of course begs the question: why did we go with
the messy algebra first? Because it is a lot easier to understand the reasoning behind
changing the integrand when the context of the straightforward solution has been
provided.
82 3 Evaluation of Definite Integrals II: Applications to Various Types of Integrals
Verification that this contour integral provides the solution in Eq. (3.149) is left
as an exercise.
Chirped!
We’ve talked plenty about having to define integrands and contours to evaluate a
definite integral, and that sometimes the integrand of the contour integral is not the
same as that of the definite integral. Here we will go through a detailed example that
should give the reader an idea of how we determine a combination of integrand and
contour.
The task is to evaluate the following integral:
∞
cos π x2
dx
(3.152)
0
1 + 2 cosh √ 2π
3
x
(N.B. The title of this subsection refers to the quadratic argument of the cosine in
the numerator of the integrand.)
Again, no reason to not try the usual semicircular contour in the UHP. Note that
we may have a better chance of success by converting the cosine into an exponential.
2 R 2
eiπx eiπz
dz
= dx
C
1 + 2 cosh 2π
√
3
z −R
1 + 2 cosh 2π
√
3
x
(3.153)
π iπR2 ei2θ
e
+ iR d θ eiθ
0
1 + 2 cosh 2π
√
3
Reiθ
It is far from clear that the second integral vanishes—or even converges—as R →
∞. For example, in the neighborhood of θ = π/2, the numerator and denominator
become oscillatory and as R → ∞, highly oscillatory, with poles along the imaginary
axis. To
make
matters worse,
the poles of the integrand in the contour integral are at
z = i √3 and z = i √3 for k = 0, 1, 2, .... As a result, the contour integral is
3k+1 3k+1
equal to
2 ∞
√ √
eiπz −i π3
e−i3πk e−i3
2
dz
= 2e 3πk
cos 3π k (3.154)
C
1 + 2 cosh 2π
√
3
z k=0
Maybe we could evaluate the sum in closed form. But we still have to contend with
the integral over the arc of radius R. This is enough to justify finding another way to
solve the problem.
So in the spirit of the previous subsection, let’s contain a few poles within a
rectangular contour. And as we discovered there, rectangles symmetric about the
origin may make things easier. (This of course is not a guarantee but seems like at
least a rule of thumb for a first try.)
3.3 Residue Reduction Contours 83
But of course, we have no idea what the width of the rectangle should be nor the
integrand of the contour integral. So let’s define the contour as a rectangle R with
vertices −R − ib, R − ib, R + ib, R − ib, where we hope to determine the value of
b. So without any other data, let’s see what the following contour integral tells us.
2
eiπz
dz
(3.155)
C
1 + 2 cosh 2π
√
3
z
which, as R increases without bound, becomes (as the integrals over the sides parallel
to the imaginary axis vanish)
⎛ ⎞
∞ iπ(x−ib)2 iπ(x+ib)2
e e
dx ⎝
−
⎠ (3.156)
−∞
1 + 2 cosh √ 2π
3
(x − ib) 1 + 2 cosh 2π
√
3
(x + ib)
Now,
2π 2π 2π 2π 2π
cosh √ (x ± ib) = cosh √ x cos √ b ∓ i sinh √ x sin √ b
3 3 3 3 3
√ (3.157)
It appears b = 3/2 would get rid of the imaginary√ part of the cosh; in that case
the rectangle is centered at the origin and has width 3. Accordingly, the contour
integral as expressed in Eq. (3.156) becomes
√
2 ∞ eiπx sinh
2
3π x
eiπz
dz
= −2e−i3π/4 dx
(3.158)
C
1 + 2 cosh 2π
√
3
z −∞
−1 + 2 cosh √2π
3
x
The integral on the RHS is unfortunately a far cry from the one we actually want
to evaluate in Eq. (3.152). But that’s OK: this is precisely the sort of progress we
need to try again.
For example, note that the resulting definite integral has a factor of
√
sinh 3π x in the numerator of the integrand and a difference instead of a sum in
the denominator. Along these lines, maybe the following contour integral will work:
2
eiπz
dz √
(3.159)
C
sinh 3π z 2 cosh √2π
3
z −1
The cosh would look like trouble except the reader should note the change in sign
because sin (3π/2) = −1. Building on the previous observations, we find that
2 ∞ 2
eiπz −i3π/4 eiπx
dz √
= i2e dx
C
sinh 3π z 2 cosh 2π
√
3
z − 1 −∞
2 cosh 2π
√
3
x +1
(3.161)
And there we have it—the contour integral of Eq. (3.159) is equal to some factor
times the definite integral we seek. Before we go ahead and finish off the calculation
via the Residue Theorem, let’s briefly review how we got here.
1. First, we tried the most obvious way to attack the given integral in the complex
plane by using a semicircular contour in the UHP with an unchanged integrand.
The result was a messy sum over the infinite set of residues and an integral over
the semicircle that oscillates wildly as a function of R. Not ideal to say the least.
2. Next, we determined a rectangular contour that would help, still using the original
integrand. There we found the resulting definite integral wasn’t what we sought
but the integrand might be used to guide us to an integrand that would return the
desired definite integral.
3. Finally, taking a cue from the previous integrand, we defined a contour integral
with a new integrand over the rectangle, and this indeed got us what we wanted.
Now that we have established a contour integral that returns the original definite
integral, we may now apply the Residue Theorem to the contour integral: the contour
integral in Eq. (3.161) is equal to i2π times the sum of the residues of the poles inside
C. Of course, we need to find those poles and residues. Fortunately √ it is not terribly
√
difficult in this case. The poles within C are at z = 0, z = ±i 3/3, and z = ±i 3/6.
The residues are as follows:
⎡ ⎤
iπz 2
e 1
Res ⎣ √
⎦ = √ (3.162)
z=0
sinh 3π z 2 cosh √ 2π
3
z − 1 3π
⎡ ⎤
e−iπ/3
2
iπz
⎣ e
Res
√ √
⎦ = √ (3.163)
z=±i 3/3 sinh 3π z 2 cosh √ 2π
3
z −1 2 3π
⎡ ⎤
⎣ e iπz 2
⎦ e−iπ/12
Res
√ √
= − (3.164)
z=±i 3/6 sinh 3π z 2 cosh √ 2π
z −1 2π
3
Accordingly,
∞
e−iπ/3 e−iπ/12
2
−i3π/4 eiπx 1
i2e dx
= i2π √ + √ − (3.165)
2 cosh √2π
x + 1 3π 3π π
−∞ 3
3.4 Definite Integrals Evaluated Between Branch Points 85
At this point, the reader can work out the arithmetic for themself. The value of
the original integral in Eq. (3.152) is then simply the real part of the result of that
arithmetic:
∞ √ √
cos π x2 2+ 2− 6
= (3.166)
1 + 2 cosh 2π
√ x 8
0 3
We may as well show the integral we get for free by taking the imaginary part of the
arithmetic in Eq. (3.165):
∞ √ √ √
sin π x2 2+ 6−2 3
= (3.167)
1 + 2 cosh √ 2π
x 8
0 3
It is the intent of this book to demonstrate more systematic ways to use complex
integration to evaluate difficult integrals, and it is hoped that the reader can apply the
thinking provided in this section to other difficult integrals. How difficult? It turns
out that the results in Eqs. (3.166) and (3.167) still cannot be reproduced by various
computer algebra systems as of the time of this writing.
Frequently we are faced with integrals whose upper and lower limits are branch
points of an integrand. One example that comes to mind is an evaluation of a Beta
Function for non-integer values. If this topic is treated at all in a first course, one is
told to use a “dog bone” contour that avoids a branch cut between the branch point
integration limits. Then, one is told to consider the Residue at Infinity and given a
formula for such a residue, which contributes to the value of the definite integral as
any other residue.
The reality is that the branch cuts of the integrands of contour integrals used in
evaluating integrals between branch points extend beyond the integration limits. If
we limit ourselves to those limits and an additional residue, we cheat ourselves of
an ability to evaluate ever more integrals using complex integration. In this Section,
we will look at a few simple examples. We will see even more interesting examples
when we study asymptotic techniques.
A dogged approach to branch point integrals
Let’s begin, as usual, by considering an integral that is commonly encountered:
1
dx x3/2 (1 − x)−1/2 (3.168)
0
86 3 Evaluation of Definite Integrals II: Applications to Various Types of Integrals
The usual way one is taught to evaluate this integral using complex integration
methods is to set up a dog bone contour extending over the branch cut between the
branch points at x = 0 and x = 1. We consider the following integral
dz z 3/2 (z − 1)−1/2 (3.170)
C
where C represents a “dog-bone” contour as in Fig. 3.5. The reader may have seen
this sort of contour before and may have been bothered by the fact that this contour,
rather than exclude the branch points at z = 0 and z = 1, it instead seems to go out
of its way to include them.
The cure for this is to stress that the contour C is oriented outward rather than
inward. Accordingly, if the contour is oriented outward, we need to consider the
residue at infinity. For example, if we are evaluating the contour integral about C of
a function analytic within C, f (z), then the residue at infinity is given by
1 1
Res f (z) = − Res f (3.171)
z=∞ z=0 z2 z
The astute student should be able to see that the relation defined in Eq. (3.171) is
based on the substitution z = 1/w, dz = −dw/w2 .
We evaluate the integral in Eq. (3.168) by evaluating the following contour integral
clockwise—recall, this is because the contour in oriented outward rather than inward.
dz z 3/2 (z − 1)−1/2 (3.172)
C
We chose z − 1 to induce the different arguments over each side of the branch cut.
The reader should understand that each factor in the integral has its own branch cut.
For example, z 3/2 has a branch cut over (−∞, 0), while (z − 1)−1/2 has a branch cut
3.4 Definite Integrals Evaluated Between Branch Points 87
over (−∞, 1). In light of these branch cuts, if it seems a bit strange that C intersects
both branch cuts in the neighborhood to the left of z = 0, it is because it is strange.
The contour C is merely an abbreviation for the contour that is really intended. We
can ignore this curious detail because in this case, the integrals over the arcs around
the branch points vanish as their radius R → 0. Moreover, it turns out that, in this
case—and virtually all cases shown in first treatments—the difference in arguments
between either side of the branch cut to the left of the integration interval is a multiple
of 2π . This practically renders the integrand as analytic over that portion of the branch
cut. In the end, the crossing of the branch cut to the left of the integration interval is
not as strange as it appears in this case.
So with that discussion behind us, let’s evaluate the contour integral. Note that
above the real axis in the integration interval, arg z = 0 and arg (z − 1) = π and
below the real axis arg z = 0 and arg (z − 1) = −π . (Note that z 3/2 has no branch
cut in the integration interval so its argument does not change going from one side
of the real axis to the other there.) Accordingly,
R
1− R
1−
−1/2 3/2 −iπ/2 −1/2
dz z 3/2
(z − 1) = dx x e (1 − x) − dx x3/2 eiπ/2 (1 − x)−1/2
C R R
R
1−
The contour integral is also equal to i2π times the residue at infinity:
−1/2
−1/2 1 −3/2 1
dz z 3/2
(z − 1) = −i2π Res 2 z −1
z=0 z z
C
1 −1/2
= −i2π Res 3 (1 − z)
z=0 z
3
= −i2π (3.174)
8
Accordingly, letting R → 0:
1
3π
dx x3/2 (1 − x)−1/2 = (3.175)
8
0
This is all well and good and the reader may find such problems worked out
like we did above in many textbooks. But let’s work the same problem without
any abbreviations. Let’s compute the same contour integral but with C as follows
(Fig. 3.6).
88 3 Evaluation of Definite Integrals II: Applications to Various Types of Integrals
0
−1/2
dz z 3/2
(z − 1) =e iπ
dx ei3π/2 x3/2 e−iπ/2 (x + 1)−1/2
C R
1
+ dx x3/2 e−iπ/2 (1 − x)−1/2
0
1
− dx x3/2 eiπ/2 (1 − x)−1/2
0
R
−iπ
+e dx e−i3π/2 x3/2 eiπ/2 (x + 1)−1/2
0
π
−1/2
+ iR dx eiθ R3/2 ei3θ/2 Reiθ − 1 (3.176)
−π
The reader should see that the integrals about either side of the branch cut to the left
of the integration interval cancel in this case. The reason is that the exponents in the
integral, i.e., the arguments of the beta function sum to an integer. Accordingly,
1 π
1 −1/2
dz z 3/2 (z − 1)−1/2 = −i2 dx x3/2 (1 − x)−1/2 + iR2 d θ ei2θ 1 − iθ (3.177)
Re
C 0 −π
3.4 Definite Integrals Evaluated Between Branch Points 89
The integral over θ provides the residue at infinity. To see this, assume R > 1 and we
may Taylor expand with respect to R. The reader should note that the only integrated
term that is nonzero is that which cancels out the factor of ei2θ in the integrand, i.e.,
the 1/R2 term in the expansion:
1 −1/2 1 1 1 1 3 1 1
1 − iθ =1+ iθ
+ − − 2 i2θ
+ O (3.178)
Re 2 Re 2! 2 2 R e R3
1
All we care about is the coefficient of R2
, which is 38 . Accordingly,
1
−1/2 3π
dz z 3/2
(z − 1) = −i2 dx x3/2 (1 − x)−1/2 + i (3.179)
4
C 0
which provides the result seen in Eq. (3.175). That said, it is interesting to note that
the above evaluation does not require that we take R → ∞; rather, only that R > 1.
Generally speaking, if the difference in argument of the integrand about either
side of the branch cut is a multiple of 2π , the integrals out to the large circle cancel
and we can use the dog-bone and residue at infinity.
At this point, the reader should expect that this not always the case.
Easier than falling off a log
So the natural next step to take is to consider p + q that is not an integer in Eq.
(3.168). We are ready to develop the general case based on the contour in Fig. (3.6).
That said, we do not yet possess all of the tools we will need for evaluation of some
of the more general cases. For that, we will need some very interesting methods of
approximating the integrals along the branch cuts which we will develop later.
But do not be disappointed! We will work out an example in full right here that is
not reliant on the more advanced techniques we will explore in the chapters to come.
This example is fairly close to the beta function example we have been studying.
Without further ado, let’s evaluate the following integral using the complex inte-
gration techniques described here:
1
log x
dx √ (3.180)
x(1 − x)
0
Truthfully, this integral is simply a derivative of a beta function. But that’s not the
point. Rather, we are testing out a new idea on a relatively simple case so we can
focus on the idea rather than excessively messy algebra. So we begin by defining the
usual contour integral:
log z
dz √ (3.181)
z(z − 1)
C
90 3 Evaluation of Definite Integrals II: Applications to Various Types of Integrals
where C is the contour in Fig. (3.6). Let’s write this out; because the singularities
have exponent > −1, it is safe to ignore the contributions about the small arcs and
let their radius R → 0. Accordingly,
0 1
log z log x + iπ log x
dz √ = eiπ dx √ √ + dx √ √
z(z − 1) eiπ/2 xeiπ/2 x + 1 xeiπ/2 1 − x
C R 0
0 R
log x log x − iπ
+ dx √ √ + e−iπ dx √ −iπ/2 √
xe −iπ/2 1−x e−iπ/2 xe x+1
1 0
π
log R + iθ
+ iR d θ eiθ √ √
Reiθ Reiθ − 1
−π
R 1
dx log x
= −i2π √ − i2 dx √
x(x + 1) x(1 − x)
0 0
π π
1 −1/2 1 −1/2
+ i log R d θ 1 − iθ − d θ θ 1 − iθ
Re Re
−π −π
(3.182)
dx du √
√ =2 √ = 2 log R+ R+1 (3.183)
x(x + 1) 1 + u2
0 0
1
log z log x
dz √ = −i2π (log R + 2 log 2) − i2 dx √ + i2π log R
z(z − 1) x(1 − x)
C 0
(3.184)
We note that, of course, the divergent log R terms cancel. By Cauchy’s Theorem, the
contour integral is zero; accordingly,
3.5 Sums 91
1
log x
dx √ = −2π log 2 (3.185)
x(1 − x)
0
To review, the integral over the portion of the contour usually ignored in conven-
tional treatments is that which provides the value we seek. Moreover, the divergent
behavior of the integral over this portion is canceled by the divergent behavior of the
integral about the circle of radius R. In the more complicated examples we will see
later, the contributions will come from both of these integrals.
3.5 Sums
Well, we did advertise evaluating integrals and sums, so it is time to uphold that end of
the bargain. Some first treatments will see the Residue Theorem be applied to infinite
sums—infinite over all integers, not just the nonnegative ones. We will not deviate
from that requirement here; there are places that treat such sums using residues.
Rather, we will be expanding, after a review and some general musing, the class of
sums that may be evaluated using the Residue Theorem. This is made possible, as has
been virtually everything else discussed in this chapter, by reconsidering the basics.
Poles at the integers
The problem generally is to evaluate the following:
∞
f (n)
n=−∞
where f is meromorphic in C and has poles that are not real integers and has behavior
for | Re z| → ∞ such that the sum converges. The idea is to express the sum in terms
of a contour integral which may be evaluated using Cauchy’s Theorem or, more
specifically, the Residue Theorem. So nominally, we may consider a contour integral
of the following form:
dz H (z)f (z) (3.186)
C
Of course, the other requirement is that the contour integral vanishes as the contour
encompasses all of the poles of the integrand. A contour that works here is the square
with vertices N ± 21 (1 ± i). The contour integral is then
N + 21
1 1
π dz f (z) cot (π z) = π dx f x−i N + cot π x − i N +
2 2
C −N − 21
N + 21
1 1
+ iπ dy f N + + iy cot π N + + iy
2 2
−N − 21
N + 21
1 1
−π dx f x+i N + cot π x + i N +
2 2
−N − 21
N + 21
1 1
− iπ dy f −N − + iy cot π −N − + iy (3.188)
2 2
−N − 21
And here is another major reason we chose H (z) = π cot (π z): the magnitude of the
cotangent approaches unity as N → ∞:
# # # #
# # # eπ (N + 21 )(1+i) + e−π (N + 21 )(1+i) #
#cot π N + 1 (1 + i) # = # #
# # # π N + 1 (1+i) #
2 #e ( 2) −e −π (N + 21 )(1+i) #
# #
# #
< #1 + 2e−π (N + 2 )(1+i) #
1
≤ 1 + 2e−π (N + 2 )
1
(3.190)
in this limit, and accordingly the contour integral vanishes in this limit. Of course,
the contour integral is also equal to the sum of the residues at its poles. As the contour
integral is zero, then the following must hold:
∞
M
i2π f (n) + i2π π Res f (z) cot (π z) = 0 (3.193)
z=zm
n=−∞ m=1
where M is the number of poles {zm } of f in the complex plane away from the real
integers. This brings us to the following well-known result:
∞
M
f (n) = −π Res f (z) cot (π z) (3.194)
z=zm
n=−∞ m=1
It should not surprise the reader that H (z) = π csc (π z). The requirement for the
behavior of f as N → ∞ is that α > −1; we leave the proof of this for the exercises.
We will work through a standard example for review. Then we will go through
examples that do not quite fit this framework but still benefit from a complex inte-
gration treatment.
An example made from whole coth
We will be concerned with the following sum:
∞
∞
1 1 1 1
= − 2 (3.196)
n=1
n2 + a2 2 n=−∞ n2 + a2 2a
−1
If we let f (z) = z 2 + a2 , we can apply the relation in Eq. (3.194) to evaluate the
infinite sum on the RHS:
94 3 Evaluation of Definite Integrals II: Applications to Various Types of Integrals
∞
1 cot (π z)
= −π Res 2
n=−∞
n2 + a2 z=k z + a2
k∈±ia
cot (iπ a) cot (−iπ a)
= −π +
i2a −i2a
−i coth (π a) i coth (π a)
= −π +
i2a −i2a
π
= coth (π a) (3.197)
a
Accordingly,
∞
1 π 1
= coth (π a) − 2 (3.198)
n=1
n2 +a 2 2a 2a
Similarly,
∞
(−1)n+1 1 π
= − csch (π a) (3.199)
n=1
n2 + a2 2a 2 2a
To set up a discussion we will have later, we can look at the behavior of these
sums as a → 0 and a → ∞. We note that
2
cosh z 1 + z2 + ... 1 z
coth z = = z3
= + + ...
sinh z z + 6 + ... z 3
1 1 1 z
csch z = = 3 = − + ... (3.200)
sinh z z + 6 + ...
z z 6
∞
1 π2
= (3.201)
n=1
n2 6
∞
(−1)n+1 π2
= (3.202)
n=1
n2 12
We will have a chance to revisit behaviors like these later when we discuss asymptotic
expansions of integrals and sums.
Poles up, down, left, and right
The problem is to evaluate the following sum:
∞
(−1)n+1
n=1
n3 sinh (π n)
While we can apply the formula in Eq.(3.194), let’s take a step back and formulate
a contour integral that will produce the sum we want. So let’s start with the contour
integral we used to derive the formula in Eq.(3.194):
π
dz (3.205)
z 3 sinh (π z) sin (π z)
C
We have simple poles at z = ±1, ±2, ... and z = ±i, ±i2, as well as a fifth-order
pole at z = 0. By the residue theorem, the contour integral is equal to i2π times the
sum of the residues at the poles inside C. Let’s compute the residues. Let n ∈ Z:
π (−1)n
Res 3 = 3 (3.206)
z=n z sinh (π z) sin (π z) n sinh (π n)
π (−1)n
Res 3 = 3 (3.207)
z=in z sinh (π z) sin (π z) n sinh (π n)
So we have four-fold symmetry of the residues; that is, the residues are equal at
z = ±n, ±in. Accordingly,
N
π (−1)n+1 π
dz = −4 + Res
z 3 sinh (π z) sin (π z) n=1
n3 sinh (π n) z=0 z 3 sinh (π z) sin (π z)
C
(3.208)
We have to compute that residue at z = 0, a fifth-order pole. Again, trying to derive
a simple formula for such a high-order pole is pointless. Rather we will perform a
Laurent expansion about the pole:
π 1 1
=
The reader may fill in the gaps of the above derivation as an exercise. Accordingly,
π π3
Res 3 = (3.210)
z=0 z sinh (π z) sin (π z) 90
We need to show that the contour integral vanishes (or is equal to a constant, but here
it is zero). The reader may show in the exercises that, when C is the square of side
2N + 1 centered at the origin, the magnitude of the contour integral is bounded as
N → ∞ as follows:
# #
# # −(2N +1) π2
# π #
# dz #≤ e (3.212)
# z 3 sinh (π z) sin (π z) ## (2N + 1)2
#
C
While we could have derived this result using the formula in Eq. (3.194), referring
back to the original contour integral will prepare us for evaluation of sums using
residues that are not shown in a first treatment.
An irrational approach to summation
We want to evaluate the following sum:
∞
1
√ (3.214)
n=1 n3 sin ( 2π n)
√
This is an interesting sum. The 2 term in the sine guarantees that the sine is never
zero.
In the meantime, let’s write down a contour integral that will produce the value
of the above sum. So as before we write the following contour integral:
π cot (π z)
dz √ (3.215)
z3 sin ( 2π z)
C
3.5 Sums 97
Well, if we just think about it √ before scribbling residues, we not only have poles
at z = n ∈ Z but also at z = n/ 2. This will produce another sum—a pretty scary-
looking sum—that we would have to figure out before we compute the sum of interest.
So, to our utter surprise, the formulation that led to a Eq. (3.194) is not much use
here.
What can we do? We could just give up and try to find some other way to compute
the sum. But the reader can figure out if that were the case, we would not be discussing
this problem.
Obviously, the key here is finding a contour integral that will produce the sum of
interest alone, along with a constant term. Because we have no solid ideas of what
this contour integral should look like, let’s look somewhere close by. For example,
the reason the usual cotangent factor we use in the contour integral fails us here is
because it produces yet another sum we will have to deal with, and frankly we have
no way of dealing with that sum yet. We could use the cosecant in an attempt to avoid
that nasty second sum, but the reader should be able to anticipate the problem: we
will end up with the alternating sum which in this case is no help.
In a situation like this in which we are our path to a solution seems blocked at every
turn, we are forced to be a little creative. For example, one way to make progress is
to introduce a parameter a whose value is to be determined. For example, let’s try
the following.
π cot (π z)
dz 3 (3.216)
z sin (aπ z)
C
Unfortunately, this contour integral has the same problem as that in Eq. (3.215) in
that the residues at z = n/a produce a whole other sum, even nastier than the original.
Nevertheless, we can learn from this. For example, the residues of the integrand at
z = n/a contain a factor of (−1)n . What this tells us is that the integrand we seek
should produce another factor of (−1)n to cancel this out. So let’s try the following
contour integral,
π
dz 3 (3.217)
z sin (aπ z) sin (π z)
C
The stroke that will move us forward is shockingly mundane: observe that (−1)n =
cos (π n). This allows us to play around to get us something plausible without any
more significantly creative effort:
Comparing this result to the analogous term in the original sum gives us a first crack
at a: √
sin ((a ± 1) π n) = sin ( 2π n) (3.220)
√
which implies that a = 2 ± 1. Note that the ±1 eliminates the factor of (−1)n in
the sum we never wanted in the first place, i.e., the residue of the csc (π z) term in the
contour integral. This
√ of course is by design but that doesn’t make it uninteresting.
Let’s take a = 2 − 1. We still have yet to deal with the second sum on the RHS
of Eq. (3.218). What happens when we plug in this value of a?
∞
(−1)n √
2 ∞
(−1)n
a2
πn
= 2 − 1 √
n=−∞
n3 sin a n=−∞ π n sin
3 2 + 1 πn
√
2
∞
1
= 2−1 √ (3.221)
n=1 n3 sin ( 2π n)
It’s a miracle! The two sums may be combined into the one sum we sought. We may
now write out the contour integral we needed the whole time:
1 π
dz √
z=0 3
z sin 2 − 1 π z sin(π z)
π 13π 3 √
Res √
= 2−1 (3.223)
z=0
z 3 sin 2 − 1 π z sin (π z) 90
And we can finally produce an exact result for the sum of interest:
3.5 Sums 99
∞
1 13π 3
√ =− √ (3.224)
n=1
n3 sin ( 2π n) 360 2
This is an amazing result, and we derived it using a theme common to all of the
boundary-pushing results we obtained throughout this chapter: by going back to the
basics rather than relying on formulae derived in first treatments. In the chapters to
follow, we will continue to take similar hard looks at topics the reader may have
encountered in advanced undergraduate or graduate math or physics courses.
Problems
m
N
m+1
(i2π )m−k Ik = − Rn logm+1 zn
k n=1
k=0
where
∞
Ik = dx f (x) logk x
0
and
Rn = Res f (z)
z=zn
with f : C → C has N isolated simple poles in the complex plane away from the
positive real axis.
(b) As defined in Eq. (3.33) and based on the recurrence relationship in (a), find the
universal polynomials P3 , P4 , and P5 .
(c) Evaluate the following integrals:
∞
log2 x
(i) dx β ∈ [−1, 1]
x2 + 2x cos (πβ) + 1
0
∞
log4 x
(ii) dx β ∈ [−1, 1]
x2 + 2x cos (πβ) + 1
0
Can you find a way to provide an independent check on your answer to (i)?
3.2 Show that the second integral in Eq. (3.41) vanishes as R → ∞. Hint: break
up into real and imaginary parts.
100 3 Evaluation of Definite Integrals II: Applications to Various Types of Integrals
where p ∈ (0, 1) and x > 0. Carefully consider the contour to be drawn and the
branch cuts from each term in the integrand.
(b) Evaluate
∞
log (1 + x3 )
dt
(1 + x)2
0
Carefully consider the contour to be drawn and the branch cuts from each term
in the integrand.
(b) Evaluate
π
x3 sin x
dx
1 + a2 − 2a cos x
0
3.5 Evaluate
π
x2
dx
p − q cos x
0
where p > q.
3.7 Evaluate
∞
xm
dx log x
xn + 1
0
3.8 Laplace’s equation may be used in any variety of physical situations; for exam-
ple steady-state temperature over a particular domain. The solution to the problem
of finding the steady-state temperature φ(x, y) over a strip of width 2a as follows:
∂ 2φ ∂ 2φ
+ = 0 ∀x > 0 and |y| < a
∂x2 ∂y2
such that
∞
2 sin kx cosh ky
φ(x, y) = dk
π k cosh ka
0
Evaluate the integral on the RHS by setting up a contour and integrand to produce a
closed form for φ.
The challenge is to find a proper integrand; the contour should be clear. The
pole(s) result from the integrand; you should prove that the pole(s) you found
are the only ones within the contour. This last task may be accomplished via
Rouche’s Theorem.
(b) Evaluate
∞
cosh π x
dx cos π x2
sinh2 π x
0
3.10 Evaluate
(a)
1
dx x−2/3 (1 − x)−1/3 log x
0
(b)
1
dx x−1/3 (1 − x)−2/3 log x
0
102 3 Evaluation of Definite Integrals II: Applications to Various Types of Integrals
(c)
1
dx x−3/4 (1 − x)−1/4 log x
0
(d)
1
dx x−1/4 (1 − x)−3/4 log x
0
3.11 Evaluate
(a)
∞
coth π n
n=1
n3
(b)
∞
1
√
n=1 n5 sin 2π n
(c) √
∞ cot
2π n
n=1
n3
3.12 Set up a contour integral for a sum in which the summand has a branch point
singularity. For example, describe in as much detail as possible how one would go
about evaluating
∞
f (n)
√
n=1 n2 + a2
Chapter 4
Cauchy Principal Value
© The Author(s), under exclusive license to Springer Nature Switzerland AG 2023 103
R. Gordon, Complex Integration, Undergraduate Lecture Notes in Physics,
https://doi.org/10.1007/978-3-031-24228-1_4
104 4 Cauchy Principal Value
To illustrate the shpiel above, let’s begin by evaluating the following integral:
∞
log x
dx (4.1)
x2 − 1
0
It’s fairly simple to evaluate the integral using a mapping from x → 1/u and Taylor
expanding the denominator to see that the integral is equal to π4 . But that’s not the
2
R
log2 z log2 x
dz 2 = dx (4.3)
z −1 x2 − 1
γ1 R
2π
log2 z (log R + iθ )2
dz 2 = iR dθ eiθ (4.4)
z −1 R 2 ei2θ − 1
γ2 0
R
log2 z (log x + i2π )2
dz 2 =− dx (4.5)
z −1 x2 − 1
γ3 R
0
log2 z (log R + iφ)2
dz 2 = i R dφ eiφ (4.6)
z −1 2R ei2φ − 1
γ4 2π
...and before we even try to estimate the integrals over γ1 and γ3 , we find trouble
upon combining the integrals over γ1 and γ3 :
R R
log2 z log x dx
= −i4π dx 2 + 4π 2 (4.7)
z2 − 1 x −1 x2 − 1
γ1 +γ3 R R
4.1 Removable Singularities 105
The second integral on the RHS blows up when R ≥ 1 and 0 < R < 1. But...wait!
Can’t we just call the integral a Cauchy principal value and make the integral finite?
Well, yes and no. No, because the Cauchy principal value has a specific meaning:
it is the result of a detour around a pole. Here, we have not presented any detour
because there isn’t really a pole; rather the “pole” is a removable singularity. But as
we see from Eq. (4.7), even if the singularity is removable, we still have to treat that
singularity as we would any pole and provide a detour around it.
So it looks like we will need to use the contour in Fig. 3.2 to get the Cauchy
principal value integral we need, even though the singularity is removable. So let’s
go ahead and list the eight contour segments.
2π
log2 z (log R + iθ )2
dz 2 = iR dθ eiθ (4.8)
z −1 R 2 ei2θ − 1
γ1 0
R
log2 z (log x + i2π )2
dz 2 =− dx (4.9)
z −1 x2 − 1
γ2 1+ R
π 2
log2 z log 1 + R eiφ + i2π
dz 2 = i R dφ e iφ
2 (4.10)
z −1 1 + R eiφ − 1
γ3 2π
R
1−
log2 z (log x + i2π )2
dz 2 =− dx (4.11)
z −1 x2 − 1
γ4 R
0
log2 z (log R + iφ)2
dz 2 = i R dφ eiφ (4.12)
z −1 2R ei2φ − 1
γ5 2π
R
1−
log2 z log2 x
dz = dx (4.13)
z2 − 1 x2 − 1
γ6 R
0
log2 z log2 1 + R eiφ
dz 2 = i R dφ e iφ
2 (4.14)
z −1 1 + R eiφ − 1
γ7 π
R
log2 z log2 x
dz = dx (4.15)
z2 − 1 x2 − 1
γ8 1+ R
Before we continue, a brief word. Yes, it sure seems like a lot of work to verify
that a definite integral is equal to zero when real techniques provide that result in a
fraction of a second in one’s head. But we are not verifying the value of that integral.
Rather, we are using this very simple case to demonstrate how we can deal with
106 4 Cauchy Principal Value
tricky situations that include removable singularities. This will be to our benefit in
more complex cases.
So let’s begin combining some of these integrals. Remember, we want to recover
some Cauchy principal value integrals to prevent things from blowing up on us. For
example, if we combine γ6 and γ8 and take the limit as R → 0 we get:
⎛ 1− ⎞
R R
log2 z log2
x log2
x
dz 2 = lim ⎝ dx 2 + dx 2 ⎠
z −1 R →0 x −1 x −1
γ6 +γ8 R 1+ R
R
log2 x
= PV dx (4.16)
x2 − 1
0
Similarly, combining the integrals over γ2 and γ4 results in another Cauchy prin-
cipal value in the limit as R → 0:
R
log2 z (log x + i2π )2
dz 2 = −P V dx (4.17)
z −1 x2 − 1
γ2 +γ4 0
And accordingly the sum of the Cauchy principal value integrals puts us where
we wanted to be in the original (and incorrect) approach:
R
log2 z log2 x − (log x + i2π )2
dz 2 = PV dx
z −1 x2 − 1
γ2 +γ4 +γ6 +γ8 0
R R
log x dx
= −i4π P V dx 2 + 4π 2 P V (4.18)
x −1 x2 − 1
0 0
Note that, because of the removable singularity, we can remove the P V from the
first integral on the RHS but not the second. This is what we wanted:
R R
log2 z log x dx
dz 2 = −i4π dx 2 + 4π 2 P V (4.19)
z −1 x −1 x2−1
γ2 +γ4 +γ6 +γ8 0 0
And because we generated Cauchy principal value integrals, we will need to deal
with the detours around the poles. We add the contributions of integrating over γ3
and γ5 , keeping in mind that the integral over γ3 has an extra i2π term resulting from
being on the side of the branch cut where 1 = ei2π . Accordingly, as R → 0:
4.1 Removable Singularities 107
π 2
log2 z log 1 + R eiφ + i2π
dz 2 = i R dφ eiφ
2
z −1 1 + R eiφ − 1
γ3 2π
π
1
=i dφ (−4π 2 )
2
2π
= i2π 3 (4.20)
∞ ∞
log2 z log x dx
dz 2 = i2π 3 − i4π dx 2 + 4π 2 P V (4.24)
z −1 x −1 x2 − 1
C 0 0
OK, so we’re done, right? Apply Cauchy’s Theorem by setting the contour integral
to zero and abracadabra, we have verified the contour integral to be equal to... π2 ...?
2
No, we forgot the additional pole at z = −1, which is within the contour C. So
instead, the contour integral is equal to i2π times the residue at z = −1. This of
course, should be easy for us as the pole at z = −1 is simple. The residue there is
then (iπ )2 /(2(−1)) and accordingly
log2 z π2
dz = i2π = iπ 3 (4.25)
z2 − 1 2
C
108 4 Cauchy Principal Value
And combining Eqs. (4.24) and (4.25), and equating real and imaginary parts, we
get
∞
log x π2
dx = (4.26)
x2 − 1 4
0
∞
dx
PV =0 (4.27)
x2 −1
0
∞
log2 x
dx 2 (4.28)
x2 − 1
0
The integrand is the square of the previous integrand. But the evaluation of this
integral will lead us into new areas that might have seemed as signs that we should
quit. Spoiler: we won’t quit. Another point is that the real evaluation of this integral
is far from trivial so we are on more solid ground to use complex integration in the
evaluation.
We begin by writing down the contour integral we will need to evaluate the integral
we want:
log3 z
dz 2 (4.29)
z2 − 1
C
Armed with the knowledge we learned about removable singularities in the previ-
ous example, we begin by writing down the integrals over the eight contour segments
from Fig. 3.2.
2π
log3 z (log R + iθ )3
dz 2 = i R dθ eiθ 2 (4.30)
z2 − 1 R 2 ei2θ − 1
γ1 0
R
log3 z (log x + i2π )3
dz 2 = − dx 2 (4.31)
z2 − 1 x2 − 1
γ2 1+ R
4.1 Removable Singularities 109
π 3
log3 z log 1 + R eiφ + i2π
2 = i R
iφ
dz dφ e
2 2 (4.32)
z2 − 1 1 + R eiφ − 1
γ3 2π
R
1−
log3 z (log x + i2π )3
dz 2 = − dx 2 (4.33)
z2 − 1 x2 − 1
γ4 R
0
log3 z (log R + iφ)3
dz 2 = i R dφ eiφ 2 (4.34)
z2 − 1 2R ei2φ − 1
γ5 2π
R
1−
log3 z log3 x
dz 2 = dx 2 (4.35)
z2 − 1 x2 − 1
γ6 R
0
log3 z log3 1 + R eiφ
2 = i R
iφ
dz dφ e
2 2 (4.36)
z2 − 1 1 + R eiφ − 1
γ7 π
R
log3 z log3 x
dz 2 = dx 2 (4.37)
z2 − 1 x2 − 1
γ8 1+ R
So more for reasons of having a really cool narrative, let’s first observe that the
integral over γ7 vanishes as R → 0. The integral over γ3 , however, is interesting.
Expanding the numerator and denominator of the integrand, we see that two of the
terms vanish while the other two do not. What remains is
π
log3 z −12π 2 log 1 + R eiφ − i8π 3
dz 2 = i R dφ eiφ 2
z2 − 1 2 R eiφ + 2R ei2φ
γ3 2π
and as R → 0
⎡ ⎤
3 2 π π
log z 2π ⎣
dz 2 = −i3π (−π ) +
2
dφ e−iφ + dφ (− R )⎦
z −1
2 R
γ3 2π 2π
3
4π
= i3π 3 + 2π 4 − i (4.38)
R
R R
log2 x log x
= −i6π 2 + 12π P V
dx 2
dx 2
−1 x2 x2 − 1
0 0
⎡ 1− ⎤
R R
+ i8π 3 ⎣ + ⎦ dx (4.39)
2
x2 − 1
0 1+ R
Let’s pause here and take stock. We now have three terms: the original integral that is
finite because of the removable singularity, a Cauchy principal value integral, and...is
that third term a Cauchy principal value too? Well, the idea is that a c.p.v. is finite, the
answer is...probably not. Generally speaking, the pole should be simple in a c.p.v.,
and the third term has a double pole. A bit of thought, though, gets us to realize that
this third term should include the divergent term we need to cancel the divergent term
from the detour. That’s OK, but we are going to see that we will need to maintain
a fine level of precision to make everything work. So let’s consider the following
integral.
R
1− (1− R )
arcsin
dx
2 = dθ sec3 θ
x2 −1
0 0
1 arcsin (1− R )
= sec θ tan θ + log (sec θ + tan θ ) 0
2
1 − R 1 2 − R
= + log (4.40)
2 R (2 − R ) 4 R
R arcsin
(1/(1+ R )
dx
2 = dθ sec3 θ − sec θ
x2 − 1
1+ R arcsin (1/R)
1 arcsin (1/(1+ )
= sec θ tan θ − log (sec θ + tan θ ) arcsin (1/R) R
2
1 + R 1 2 + R 1
= − log +h (4.41)
2 R (2 + R ) 4 R R
only expanding for small R —is typical when we are canceling divergences in the
presence of Cauchy principal value integrals.
We may combine the expressions in Eqs. (4.40) and (4.41) to produce
⎡ 1− ⎤
R ∞
⎣ ⎦ dx = 1 − R 1 2 − R
+ + log
x2 − 1
2 2 R (2 − R ) 4 R
0 1+ R
1 + R
+
2 R (2 + R )
1 2 + R
− log
4 R
1 2 − 2R 1 2 − R
= + log (4.42)
R 4 − 2R 4 2 + R
What’s interesting about the expression in Eq. (4.42) is that there is no constant
term; rather there is just the divergent term and then terms that vanish as R → 0.
Accordingly, as R → ∞:
R
log3 z log2 x
dz 2 = −i6π dx 2
z2 − 1 x2 − 1
γ2 +γ4 +γ6 +γ8 0
R
log x
+ 12π P V2
dx 2
x2 − 1
0
4π 3
+i (4.43)
R
And there it is! The divergent term in Eq. (4.43) cancels out the divergent term in
Eq. (4.38), as we predicted. It should be stressed again that an advantage of working
problems out that require canceling divergent terms is the built-in check on the
answer: if the divergent terms do not cancel then there is a mistake somewhere.
With the integrals over γ1 , γ5 , and γ7 vanishing as R → ∞ and R → ∞, we may
write the contour integral as
∞
log3 z log2 x
dz 2 = −i6π dx 2
z2 − 1 x2 − 1
C 0
∞
log x
+ 12π P V
2
dx 2 + 2π + i3π
4 3
(4.44)
x2 − 1
0
112 4 Cauchy Principal Value
We’re not done because, like the previous example, we need to consider the pole
at z = eiπ . In this case, however, that is a double pole so we are probably better off
expanding the integrand into a Laurent series about z = eiπ . Let z = eiπ + ζ ; then
log3 z log3 eiπ + ζ
Res = Res
z=eiπ z 2 − 1 2 ζ =0 (−1 + ζ )2 − 1 2
∞
log2 x
− i6π dx 2
x2 − 1
0
∞
log x
+ 12π P V
2
dx 2 + 2π + i3π
4 3
x2 − 1
0
π4 3π 3
= +i (4.46)
2 2
And, finally, all of this analysis gets us to our destination:
∞
log2 x π2
dx 2 = (4.47)
x2 − 1 4
0
∞
log x π2
PV dx 2 = − (4.48)
x2 − 1 8
0
That was lovely! That said, we would not be completely honest with ourselves
without acknowledging that there may be an easier way of attacking this problem
with contour integration.1 That easier way is addressed in the problems. So why dd
we do it the hard way? Three reasons: (1) to illustrate the canceling of divergences
that is so useful and (2) to allow us to generalize this problem in cases where the
reduction contour won’t work so well.
∞
log x log (1 + x)
dx (4.49)
x2 − 1
0
R
1−
log2 z log (1 + z) log2 x log (1 + x)
dz = dx (4.51)
z2 − 1 x2 − 1
γ1 R
0
log2 z log (1 + z) log2 1 + R eiφ log 2 + R eiφ
dz = i R dφ eiφ 2 (4.52)
z2 − 1 1 + R eiφ − 1
γ2 π
114 4 Cauchy Principal Value
R
log2 z log (1 + z) log2 x log (1 + x)
dz = dx (4.53)
z2 − 1 x2 − 1
γ3 1+ R
π
log2 z log (1 + z) (log R + iθ )2 log 1 + Reiθ
dz = iR dθ e iθ
(4.54)
z2 − 1 R 2 ei2θ − 1
γ4 0
R
1+
log2 z log (1 + z) (log x + iπ )2 (log (x − 1) + iπ )
dz = eiπ dx (4.55)
z2 − 1 x2 − 1
γ5 R
−π 2
log2 z log (1 + z) log 1 − R eiφ + iπ (log R + iφ)
dz = i R dφ eiφ 2
z2 − 1 −1 + R eiφ − 1
γ6 π
(4.56)
R
log2 z log (1 + z) (log x + iπ )2 (log (x − 1) − iπ )
dz = e−iπ dx (4.57)
z2 − 1 x2 − 1
γ7 1+ R
2π
log2 z log (1 + z) (log R + iθ )2 log 1 + Reiθ
dz = iR dθ e iθ
(4.58)
z2 − 1 R 2 ei2θ − 1
γ8 π
R
1+
log2 z log (1 + z) (log x + i2π )2 log (1 + x)
dz = dx (4.59)
z2 − 1 x2 − 1
γ9 R
π 2
log2 z log (1 + z) log 1 + R eiφ + i2π log 2 + R eiφ
dz = i R dφ e iφ
2
z2 − 1 1 + R eiφ − 1
γ10 2π
(4.60)
R
log z log (1 + z)
2
(log x + i2π ) log (1 + x)
2
dz = dx (4.61)
z2 − 1 x2 − 1
γ11 1− R
0
log2 z log (1 + z) iφ (log R + iφ)2 log 1 + R eiφ
dz = i R dφ e 2 (4.62)
z2 − 1 1 + R eiφ − 1
γ12 2π
R 2
log2 z log (1 + z) log x − (log x + i2π )2 log (1 + x)
dz = PV dx
z2 − 1 x2 − 1
γ1 +γ3 +γ9 +γ11 R
R
log x log (1 + x)
= −i4π dx
x2 − 1
R
R
log (1 + x)
+ 4π P V
2
dx (4.63)
x2 − 1
R
Four down, four to go. We may combine γ5 and γ7 and note that the log (x − 1)
terms cancel:
R
log2 z log (1 + z) (log x + iπ )2
dz = i2π dx
z2 − 1 x2 − 1
γ5 +γ7 1+ R
R
log2 x
= i2π dx
x2 − 1
1+ R
R
log x
− 4π 2
dx
x2 − 1
1+ R
R
dx
− i2π 3
(4.64)
x2 −1
1+ R
Let’s evaluate from most to least simple. The third integral on the right is easy;
we consider the limit as R → ∞:
∞
dx 1 2 + R
= log (4.65)
x2 − 1 2 R
1+ R
For the second integral from the right we may also take R → 0 and see that the
integral is one-half of the value of the integral we considered at the beginning of this
section:
∞ ∞
log x 1 log x π2
dx 2 = dx 2 = (4.66)
x −1 2 x −1 8
1 0
116 4 Cauchy Principal Value
And the for the first integral, we will find that contour integration methods do not
help much as
∞
log2 x
dx 2 =0 (4.67)
x −1
0
Rather, we map from [1, ∞) → [0, 1] and Taylor expand the denominator:
∞ 1
log2 x log2 x
dx 2 =− dx
x −1 1 − x2
1 0
∞
1
=− d x x 2k log2 x
k=0 0
∞
1
=2
k=0
(2k + 1)3
7
= ζ (3) (4.68)
4
where ζ (3) is the Riemann zeta function ζ (s) evaluated at s = 3.
Putting these all together as R → 0:
log2 z log (1 + z) 7π π4
dz = i ζ (3) − iπ 3
log 2 − + iπ 3 log R (4.69)
z2 − 1 2 2
γ5 +γ7
A-ha! We have canceled out the divergent term in Eq. (4.69). 11 down, 1 to go.
Finally, let’s evaluate the integral over γ10 . This one is structurally the same as the
integral over γ6 , in which the first log term will only provide vanishing contributions
as R → 0. Accordingly, in this limit:
log2 z log (1 + z)
dz = i2π 3 log 2 (4.71)
z2 − 1
γ10
4.2 Poles on Contours 117
Whew. Now we can write an expression for the contour integral as R → 0 and
R → ∞:
∞
log2 z log (1 + z) log x log (1 + x)
dz = −i4π dx
z2 − 1 x2 − 1
C 0
∞
log (1 + x)
+ 4π 2 P V dx
x2 − 1
0
7π π4
+i ζ (3) + iπ 3 log 2 − (4.72)
2 2
The reward for dealing with such a complicated contour is that the expression for
the contour integral excludes any pole and accordingly, the contour integral is zero.
Accordingly, we can write down the result, and as usual, get a Cauchy principal value
integral for free.
∞
log x log (1 + x) 7 π2
dx = ζ (3) + log 2 (4.73)
x2 − 1 8 4
0
∞
log (1 + x) π2
PV dx = (4.74)
x2 − 1 8
0
Making it through these three examples should be enough to understand the cau-
tion needed to deal properly with removable singularities. Now let’s move onto
singularities that are not so removable.
Sometimes we have to deal with poles on contours in places other than the real line.
These are more insidious because they may arise in complex-integration evaluations
of real integrals when we may not expect it. The point of this section is to learn when
to expect them through a few examples. We will then realize what we have been
seeing all along: when we take a detour around a pole on a contour and integrate
around the pole over a fraction of a full circle, the residue theorem scales by that
fraction. Let’s begin with a relatively simple example.
A Dimple in a Box
Let’s evaluate the following integral:
∞
x
dx (4.75)
1 + ex
0
118 4 Cauchy Principal Value
But what will happen is, the factor of z in the numerator of the integrand will cancel
when the integrals along γ1 and γ3 (Fig. 4.2) are combined. Of course, we know what
to do in such scenarios by now: increase the exponent of z in the denominator by
one, so we work with the contour integral
z2
dz (4.77)
1 + ez
C
To this end, let’s write out the integrals over the various contour segments:
R
z2 x2
dz = dx (4.78)
1 + ez 1 + ex
γ1 0
2π
z2 (R + i y)2
dz =i dy (4.79)
1 + ez 1 + e R ei y
γ2 0
0
z2 (x + i2π )2
dz = dx (4.80)
1 + ez 1 + ex
γ3 R
R
π+
z2 (i y)2
dz =i dy (4.81)
1 + ez 1 + ei y
γ4 2π
−π/2 2
z2 iπ + R eiφ
dz = i R dφ (4.82)
1 + ez 1 − e R eiφ
γ5 π/2
0
z2 (i y)2
dz =i dy (4.83)
1 + ez 1 + ei y
γ6 π− R
It should be clear how this will proceed, but before we do, a comment. In the
previous section in which we dealt with removable singularities on the real axis, we
had contributions to the integral from a semicircle about the removable singularity;
that, however, was a result of the integral along that segment coinciding with a side of
a branch cut. But here, there is no branch cut; rather, the semicircle appears from the
asymmetry of the integrand. Note that in the section in which we introduced residue
reduction contours, we dealt with symmetric integrands and had no need to close the
rectangle at Im z = 0.
With that said, we can combine the integrals along γ1 and γ3 , and as R → ∞:
∞
z2 x 2 − (x + i2π )2
dz = dx
1 + ez 1 + ex
γ1 +γ3 0
∞ ∞
x dx
= −i4π dx + 4π 2 (4.84)
1 + ex 1 + ex
0 0
2π
z2 y2
dz = i PV dy
1 + ez 1 + ei y
γ4 +γ6 0
2π
y2
= i PV dy (1 + cos y − i sin y)
(1 + cos y)2 + sin2 y
0
2π
2π
y 2 (1 + cos y) y 2 sin y
= i PV dy + PV dy
0 2 + 2 cos y 2 + 2 cos y
0
2π 2π
y
1 1
=i dy y 2 + PV dy y 2 tan
2 2 2
0 0
2π
y
4π 3 1
=i + PV dy y 2 tan (4.85)
3 2 2
0
−π/2
z2 (iπ )2
dz = i R dφ
1 + ez − R eiφ
γ5 π/2
= −i(−π 2 )(−π )
= −iπ 3 (4.86)
∞
x π2
dx = (4.88)
1+e x 12
0
There is another way to look at the derivation of this result in Eq. (4.88). The integral
over γ5 would appear to be just another residue calculation, except for the fact that
the integral is over a semicircle rather than a full circle. Just for laughs, let’s compute
the residue of the integrand at the pole z = iπ :
4.2 Poles on Contours 121
z2
Res = π2 (4.89)
z=iπ 1 + ez
This is interesting, because if set the contour integral sans the integral over γ5 , equal
iπ (rather than i2π ) times this residue, we reproduce the result in Eq. (4.88). Sort of
like a half-residue theorem! We will see such half-residues appear in several places.
As usual, let’s look at the other (real) part and we get
∞ 2π
y
dx 1
= − 2 PV dy y 2 tan (4.90)
1 + ex 8π 2
0 0
In the exercises, we will relate the integral on the RHS to a sort-of well-known
integral and show that the RHS is equal to log 2.
Poles on vertices
Because of the Cauchy principal value integral, we can extend the shortcut that is the
Residue Theorem to semicircles. In the previous section, we had a pole on an edge
of a contour and that resulted in a semicircular detour. What happens when a pole
lies on a contour vertex? Well, we’re about to find out.
Let’s consider the following integral:
∞
sin x −αx
dx e (4.91)
sinh x
0
Nominally, we require that Re α > 0, but for reasons that will be apparent soon, we
will restrict α to positive integer values, i.e., α = n ∈ N.
We consider the following contour integral:
sin z −nz
dz e (4.92)
sinh z
C
where C is the contour illustrated in Fig. 4.3. Wait! How on earth did we come to
this contour, with a quarter-dimple on the upper-left vertex?
Nominally, the function sinh z has zeroes on the imaginary axis at integers times
π . Nominally we might draw a rectangle with vertices at −R, R, R + iπ, −R + iπ ,
which would leave us with a half-dimple. (Note, drawing the rectangle between the
poles will result in unnecessary complication.) But the exponential destroys that
symmetry, so we are stuck with the rectangle at 0, R, R + iπ, iπ . The pole at z = 0
is mitigated by the zero of sin z there, i.e., the singularity at z = 0 is removable
and, as we learned in the previous section, we need not deal with it because the
removable singularity is not along a branch cut. So we will have a rectangle with just
a quarter-dimple at z = iπ .
122 4 Cauchy Principal Value
But let’s take this a step further. We learned in the previous example that we can
replace a semicircular dimple with a half-residue at the pole. In the same vein, there’s
no reason we can’t simply replace the quarter-dimple with a quarter-residue! It will
at least simplify things a little.
So we ignore γ5 in Fig. 4.3 and write out the integrals over the other contours.
R
sin z −nz sin x −nx
e = dx e (4.93)
sinh z sinh x
γ1 0
π
sin z −nz sin (R + i y) −n(R+i y)
e =i dy e (4.94)
sinh z sinh (R + i y)
γ2 0
R
sin z −nz sin (x + iπ ) −n(x+iπ)
e = −P V dx e (4.95)
sinh z sinh (x + iπ )
γ3 0
π
sin z −nz sin (i y) −iny
e = −i P V dy e (4.96)
sinh z sinh (i y)
γ4 0
It should be noted that the “P V ” in integrals over γ3 and γ4 are to be meant loosely
because the pole is at an endpoint of the integration interval.
It should be clear that as R → ∞, the integral over γ2 goes to zero. We note that
∞
sin z −nz sin x −nx
e = (−1)n cosh π dx e
sinh z sinh x
γ3 0
∞
cos x −nx
+ i(−1) sinh π P V n
e (4.99)
sinh x
0
4.2 Poles on Contours 123
We were able to take the “P V ” out of the real part because the singularity became
removable.
The integral over γ4 is a little tricky because it is easy to lose track of the signs.
If we do everything right, we get for that integral
π π
sin z −nz sinh y sinh y
e =− dy sin ny − i P V dy cos ny (4.100)
sinh z sin y sin y
γ4 0 0
Again, we were able to to take the “P V ” out of the real part because the singularity
became removable. We can write down an expression for the contour integral, but
let’s delay that for a second and instead, let’s apply the fractional Residue Theorem
for lack of a better name: remember the pole at z = iπ is on a vertex of the contour
C and accordingly, as C is a rectangle the arc around it sweeps out an angle π/2.
Accordingly, by the fractional Residue Theorem:
sin z −nz π sin z −nz
dz e = i Res e
sinh z 2 z=iπ sinh z
C
π
= (−1)n sinh π (4.101)
2
The contour integral is real. So let’s just pluck out the real parts of the integrals
along the contour segments above and we get the following equation:
∞ π
sin x −nx sinh y π
1 + (−1)n cosh π dx e − dy sin ny = (−1)n sinh π
sinh x sin y 2
0 0
(4.102)
There are a couple of observations here worth mentioning. First, it’s kind of nice that
all of the integrals we plucked out have integrands finite at z = iπ . Second, it seems
less than nice that the integral we seek is in terms of another integral that looks just
as difficult.
On that second point, it will turn out not to be the case and the integral we need
to evaluate will be quite easy and will lead us to a result that would seem immensely
difficult to obtain without complex analysis. We just need to remember a very cool
trig identity that can be proven easily using, e.g., induction:
⎧ m−1
⎪
⎪
⎪
⎪2 cos (2k + 1)y n = 2 m
sin ny ⎨
= k=0
(4.103)
sin y ⎪
⎪
m−1
⎪
⎪
⎩1 + 2 cos 2ky n = 2m −1
k=0
where m ≥ 1.
124 4 Cauchy Principal Value
Note that if n were instead a more general positive real number we would not
be able to get a nifty expression for the integral and you’d likely be better off using
real-type analysis to express the integral in terms of some horror like a complex
digamma. But we are all about using complex analysis here and integral values of n
make using our methods viable. To simplify the discussion going forward, we will
only discuss the cases where n is even, i.e., n = 2m. (Don’t worry, the other case
where n is odd will be in the exercises.)
For n = 2m, the integral we want is as follows:
∞
m−1 π
sin x −2 mx π π 2
dx e = tanh + dy sinh y cos (2k + 1)y
sinh x 2 2 1 + cosh π k=0
0 0
(4.104)
The integrals on the RHS are all quite easy:
π π
dy sinh y cos (2k + 1)y = Re dy sinh (1 + i(2k + 1)) y
0 0
cosh (1 + i(2k + 1)) π − 1
= Re
1 + i(2k + 1)
1 + cosh π
=− (4.105)
1 + (2k + 1)2
∞
π
m−1
sin x −2 mx π 1
dx e = tanh − 2 + 2k + 1
(4.106)
sinh x 2 2 k=0
2k
0
This is a lovely expression for which a CAS has yet to do for arbitrary integer values
of m. To appreciate this amazing expression, let’s churn out a few values:
∞
sin x −2x π π
dx e = tanh − 1 (4.107)
sinh x 2 2
0
∞
sin x −4x π π 6
dx e = tanh − (4.108)
sinh x 2 2 5
0
∞
sin x −6x π π 83
dx e = tanh − (4.109)
sinh x 2 2 65
0
∞ ∞
sin x −2(m+1)x sin x −2 mx 1
dx e = dx e − (4.110)
sinh x sinh x 2 m2 + 2 m + 1
0 0
We are going to shift gears somewhat and talk a little about Physics, and specifically,
electromagnetism (although this discussion applies to many areas of Physics). The
reason for this is to motivate our discussion about the next chapter on Transforms,
an important topic in its own right but one we will need in the final chapter on
Asymptotics which will allow us to extend some of our integration techniques in
frankly stunning ways.
When we consider Maxwell’s Equations in a linear and isotropic medium, we
consider the relationship between the electric field E and the displacement field D
as a function of frequency ω, D(ω) = f (ω)E(ω). The quantity f (ω) is known as
the permittivity of the medium in which the fields are measured. Generally, f (ω) is
complex.
One of the main concerns with such relations in frequency space is that the fields
obey causality in the time domain. The concept of causality in the time domain
is related to analyticity in the frequency domain in that, by Titchmarsh’s Theorem
causality is equivalent to the permittivity f being analytic in the upper half plane.
Because f is analytic in the upper-half plane, let’s consider the following contour
integral:
f (z)
dz (4.112)
z−ω
C
R π
f (ω ) f Reiθ
PV dω +iR iθ
dθ e = iπ f (ω) (4.113)
ω − ω Reiθ − ω
−R 0
Assuming f satisfies Eq. (4.114), we may write down the following equation satisfied
by f :
∞
f (ω )
PV dω = iπ f (ω) (4.115)
ω − ω
−∞
The significance of Eq. (4.115) is seen when we consider the real and imaginary
parts of f , i.e., f (ω) = u(ω) + iv(ω), then we may find a relationship between
these real and imaginary parts. To make things a little more concrete, the complex
permittivity is equal to n 2 (ω) − 1, where n(ω) is the complex index of refraction of
the medium, where the imaginary part of the index represents a degree of attenuation
of an amplitude of an electric field propagating into the medium. When we take the
real and imaginary parts of Eq. (4.115), we have the following equations.
∞
1 v(ω )
u(ω) = P V dω (4.116)
π ω − ω
−∞
∞
1 u(ω )
v(ω) = − P V dω (4.117)
π ω − ω
−∞
4.3 The Hilbert Transform 127
Equations (4.116) and (4.117) are collectively known as Hilbert Transforms (or, in
more commonly in Physics, Kramers-Krönig relations). They allow us to determine
the imaginary part of a complex function analytic in the upper half plane on the real
line in terms the imaginary part of such a function on the real line, and vice-versa.
We refer to such a complex function as an analytic signal of the quantity represented
by the real or imaginary part along the real line.
Note that we may assume that the permittivity in the time domain is real so that
in the frequency domain it satisfies
i.e., u(−ω) = u(ω) and v(−ω) = −v(ω). We will see why this is in the next chapter.
A concrete example of Hilbert transform pairs
We can compute an imaginary part of a function analytic in an upper half plane,
alone the real line, given the real part along the real line using the Hilbert transform.
As we are discussing Physics, it may be a little weird that we have negative values
of the frequency. While in the abstract we may provide some interpretation to such
negative values, it is better in many cases to just deal with positive frequencies. This
is easy to do and involves a trick we have employed before: map the interval from
(−∞, ∞) to [0, ∞). So, for example,
∞
1 u(ω )
v(ω) = − P V dω
π ω −ω
−∞
⎛ ⎞
0 ∞
1⎝ u(ω ) u(ω ) ⎠
=− PV dω + P V dω
π ω −ω ω −ω
−∞ 0
⎛ ⎞
∞ ∞
1 u(−ω ) u(ω ) ⎠
= − ⎝−P V dω + P V dω
π ω +ω ω −ω
0 0
⎛ ⎞
∞ ∞
1 u(ω ) u(ω ) ⎠
= − ⎝−P V dω + P V dω
π ω +ω ω −ω
0 0
∞
2ω u(ω )
=− PV dω (4.119)
π ω2 − ω2
0
So with that out of the way, we can move on a provide an example of a real
computation. For example, let’s compute the imaginary part of a permitivitty, i.e.,
the imaginary part of the square of the index of refraction minus 1, given its real part.
In this example, we will work with, for a > 0,
u(ω) = Re n 2 (ω) − 1 = e−aω
2
(4.121)
∞
e−aω
2
2ω
v(ω) = − PV dω 2
(4.122)
π ω − ω2
0
We evaluate the integral, how else?, using a contour in the complex plane. In this case,
the Cauchy Principal Value integral sort of forces our hand; otherwise, this would
be a fairly straightforward integral using real methods. Since we are in slightly new
territory, the contour C will simply be presented as follows. We evaluate
e−az
2
dz (4.123)
z 2 − ω2
C
where C is the following contour illustrated in Fig. 4.5 where the wedge angle is
π/4. As has become our practice, we will combine the integrals over γ1 + γ3 into a
single Cauchy PV integral and use the fractional Residue theorem. Accordingly,
R
e−az e−aω
2 2
dz 2 = PV dω (4.124)
z − ω2 ω2 − ω2
γ1 +γ3 0
π/4
e−az e−a R e
2 2 i2θ
dz = iR dθ eiθ (4.125)
z 2 − ω2 R 2 ei2θ − ω2
γ4 0
R
e−az e−iat
2 2
dz = −eiπ/4 dt (4.126)
z − ω2
2 it 2 − ω2
γ5 0
∞ ∞
e−iat e−a (it −ω )
2 2 2
= −eiπ/4 e−aω
2
− eiπ/4 dt dt (4.127)
it 2 − ω2 it 2 − ω2
0 0
We define a function F as
∞
e−a (it −ω )
2 2
F(a) = dt (4.128)
it 2 − ω2
0
We note that since ω > 0, the denominator is never zero. Accordingly, we may
differentiate F and get
∞
aω2
dt e−iat
2
F (a) = −e
0
1 π
= e−iπ/4 eaω
2
(4.129)
2 a
The proof that the integral converges and is equal to the value in Eq. (4.129) is left
to the exercises. So now we must integrate over a to get back F(a):
√ a
π −iπ/4 2
F(a) = F(0) + e da a −1/2 eω a
2
0
√
a
√ −iπ/4
du eω u
2 2
= F(0) + πe
0
√
√ a
ω
π
= F(0) + e−iπ/4 dv ev
2
ω
0
π −iπ/4 √
= F(0) + e erfi aω (4.130)
2ω
130 4 Cauchy Principal Value
x
2
dv ev
2
erfi (x) = √ (4.131)
π
0
∞
1
F(0) = dt
it 2 − ω2
0
∞
1
= −i dt
t 2 + iω2
0
1 1
= 2π Res
2 z=ei3π/4 ω z2 + iω2
π
= −eiπ/4 (4.132)
2ω
So the integral over γ5 is then
e−az √
2
π −aω2 π −aω2
dz 2 =i e − e erfi aω (4.133)
z − ω2 2ω 2ω
γ5
∞
e−az e−aω √
2 2
π −aω2 π −aω2
dz 2 = PV dω 2 +i e − e erfi aω
z − ω2 ω − ω2 2ω 2ω
C 0
(4.134)
By the fractional Residue Theorem, the contour integral is also equal to
e−az e−az
2 2
dz = iπ Res
z 2 − ω2 z=ω z 2 − ω2
C
e−aω
2
= iπ (4.135)
2ω
Putting this all together, the imaginary pieces cancel (whew!) and we finally get,
for the imaginary part of the permittivity,
√
v(ω) = −e−aω erfi
2
aω (4.136)
2 √
f (ω) = e−aω 1 − ierfi aω (4.137)
∞
1 v(ω )
u(ω) = P V dω
π ω − ω
−∞
∞
1 u(ω )
v(ω) = − P V dω
π ω − ω
−∞
Here we assume that the reversal of integration can be carried out. For these Cauchy
principal value integrals it is not trivial to show this, and we will have to resort to a
trick to keep this together, a trick with which you may be utterly familiar. For now,
let’s just play along.
The effect of the Cauchy PV integral in the parentheses in the RHS in Eq. (4.138)
is to sift values of ω from all values of ω to produce the LHS. This is a common
phenomenon in transforms in general and in this case, we have
∞
u(ω) = P V dω u(ω )δ(ω − ω) (4.139)
−∞
where
∞
1 dω
δ(ω − ω) = − 2 P V
π (ω − ω )(ω − ω )
−∞
∞
1 dω
= PV (4.140)
π2 ω (ω − (ω − ω))
−∞
132 4 Cauchy Principal Value
In other words,
∞
1 dω
δ(x) = 2 P V (4.141)
π ω (ω − x)
−∞
Before we continue, let’s review a few facts about the delta function we may
remember from Physics:
0 x
= 0
δ(x) = (4.142)
∞ x =0
∞
d x δ(x) = 1 (4.143)
−∞
Does the definition in Eq. (4.141) match that in Eqs. (4.142) and (4.143)? Looking
directly at Eq. (4.141), it it should be clear that the condition in Eq. (4.142) is satisfied;
a quick partial fractions expansion should see to that. Verifying whether Eq. (4.143)
is verified is not so trivial and is in fact interesting enough to demonstrate here.
∞
d x δ(x) = d x δ(x) ∀ > 0
−∞ −
⎛ ⎞
∞
1 dω
= dx ⎝ 2 PV ⎠
π ω (ω − x)
− −∞
∞
1 dω dx
= PV
π2 ω ω − x
−∞ −
∞
1 1 ω +
= 2 PV
dω log
π ω ω −
−∞
∞
1 1 ω + 1
= 2 PV
dω log
π ω ω − 1
−∞
∞
2 1 ω + 1
= 2 PV
dω log
π ω ω − 1
0
1 ∞
2 1 1+ω 2 1 ω+1
= 2 PV dω log + 2 P V dω log
π ω 1−ω π ω ω−1
0 1
4.3 The Hilbert Transform 133
∞
4 1 ω+1
= 2 PV dω log
π ω ω−1
1
u= ω+1
ω−1
∞
8 log u
= 2 du
π u2 − 1
1
1
8 log u
= du
π2 1 − u2
0
And we know what to do with this! This is an integral with a removable singularity,
which for this case it is easiest to recognize as half the result we derived earlier in
the chapter. And the result is—surprise surprise!— π8 . And Eq. (4.143) is verified.
2
By verifying that the expression in Eq. (4.141) is indeed a delta function we have
established the pair in Eqs. (4.117) and (4.116) is indeed a transform pair, able to
produce a real part of an analytic signal along the real axis from an imaginary part and
vice versa. This is an important part of our story because much of the work ahead is
related to other transforms which will not only be great applications of the complex
integration we have developed over the past three chapters but will also be the basis
for other techniques we will develop here and will provide many new arrows in our
quivers.
Before we transition, let’s think about the energy in a signal. Typically, if the real
part of an analytic signal u(ω) represents an electric field amplitude, then under some
conditions, u(ω)2 is proportional to an energy density. Accordingly, let’s evaluate an
integral over the energy density.
⎛ ⎞⎛ ⎞
∞ ∞ ∞ ∞
1 v(ω ) ⎠ ⎝ 1
v(ω ) ⎠
PV dω u(ω) = P V
2
dω ⎝ P V
dω PV dω
π ω −ω π ω −ω
−∞ −∞ −∞ −∞
∞ ∞ ∞
1 dω
= PV dω v(ω )P V dω v(ω ) PV
π2 (ω − ω )(ω − ω )
−∞ −∞ −∞
This is assuming we can make the change in order of integration, and here we assume
we can. An important thing to note is that when we square an integral, we write the
product out twice using different dummy variables over which to integrate; in this
case we used ω and ω . It is easier to use simple distinctions in situations like this.
(Remember, notation is how we understand mathematics and is accordingly of great
practical importance to our work.) So, that said we may realize thet the rightmost
integral above is, by Eq. (4.141), the beloved delta function, and applying the sifting
property we get a really cool result.
134 4 Cauchy Principal Value
∞ ∞
PV dω u(ω) = P V
2
dω v(ω)2 (4.144)
−∞ −∞
We will see relations like this in the next chapter, where the integral of a square of
an amplitude is equal to the integral of the square of its transform. We will refer to
such relations here as Parseval’s equalities.
Problems
∞
log x
(a) dx n∈N n>2
xn − 1
0
∞
log2 x
(b) dx n∈N n>2
xn − 1
0
∞
log2 x
(c) dx n∈N n>2
(x n − 1)2
0
4.2 (a) For the integral in Eq. (4.28), find a residue reduction contour that will get
us to the same answer.
(b) For the integrals in Prob. 1.1, for what values of n will a residue reduction contour
work?
∞
log x log (1 + x)
(a) dx n∈N n>2
x 2n − 1
0
∞
log x log (a + x)
(b) dx a>0
(x − 1)(x + a)
0
∞
log x log2 (1 + x)
(c) dx
x2 − 1
0
∞
log2 x log (1 + x)
(d) dx 2
x2 − 1
0
4.3 The Hilbert Transform 135
∞
sin x −(2 m+1)x
dx e
sinh x
0
∞
sin π x 2 cosh (π x)
dx
sinh2 (π x)
0
by defining a proper integrand and contour for a contour integral. As a hint, keep in
mind the contours we have studied in this chapter.
4.6 Evaluate the following integral for k ∈ R and |a| < π .
∞
sinh (ax) ikx
dx e
sinh (π x)
−∞
by defining a proper integrand and contour for a contour integral. As a hint, keep in
mind the contours we have studied in this chapter.
4.7 Show that the integral used in the derivation of Eq. (4.129),
∞
dt e−iat
2
Also verify that the real and imaginary parts of f (ω) satisfy Parseval’s equality,
i.e., Eq. (4.144).
136 4 Cauchy Principal Value
(b) Determine the analytic signal f (ω) when its real part on the real line is given by
sin ω
u(ω) =
ω
We will have the tools to verify Parseval’s equality in the next chapter.
(c) Determine the analytic signal f (ω) when its real part on the real line is given by
1 |ω| ≤ 1
u(ω) =
0 |ω| > 1
Also verify that the real and imaginary parts of f (ω) satisfy Parseval’s equality.
Chapter 5
Integral Transforms
Abstract Our study of Hilbert transforms was part of a natural progression of our
deep dive into complex integration and the Cauchy principal value integrals that
frequently result from poles on contours. We are now at a stage where we can study
other useful integral transforms and use what we learn to attack other integrals and
sums. In this chapter, we will explore Fourier, Laplace, and Mellin transforms. We
will be taking a unified approach to these transforms and will demonstrate that these
three integral transforms are outgrowths of one another, even though they have vastly
different properties and accordingly different benefits for us. The Fourier transform
has properties much like the Hilbert transforms but has a usefulness to us that is
transcendent. The Laplace transform also brings its own set of techniques and we
will see that the computation of its inverse is a perfect fit for this book. Finally,
the Mellin transform will provide one of the most shocking and satisfying uses for
our goal of expanding the class of integrals that may be attacked using complex
integration.
In this chapter we will be studying the common integral transforms of Mathematical
Physics: Fourier, Laplace, and Mellin. Our discussion will be at once unifying but
also a deep dive into some aspects of them that illustrate the techniques we have
developed in the previous chapters. Remember, the point of the book is to have some
fun by going places people generally don’t go.
To motivate the discussion, let’s sort-of-kind-of review what we did with Hilbert
transforms, but at a higher level. When we spoke of an integral transform pair, we
defined relations like the following for functions u(x ), x ∈ I and U (x), x ∈ J :
U (x) = PV dx K(x , x)u(x ) (5.1)
I
© The Author(s), under exclusive license to Springer Nature Switzerland AG 2023 137
R. Gordon, Complex Integration, Undergraduate Lecture Notes in Physics,
https://doi.org/10.1007/978-3-031-24228-1_5
138 5 Integral Transforms
where L is the inverse transform kernel. For example, in the Hilbert transform,
L(x, x ) = − π(x1 −x) .
By combining the transform and inverse transform, we get a delta-function rela-
tion:
⎡ ⎤
⎣ ⎦
u(x ) = PV dx L(x, x ) PV dx K(x , x)u(x )
J I
= PV dx u(x )PV dx K(x , x)L(x, x )
I J
= PV dx u(x )δ(x − x )
(5.3)
I
and we may associate the delta function with the following integral:
δ(x − x ) = PV dx K(x , x)L(x, x ) (5.4)
J
Keep in mind that we are glossing over the fact of whether it makes any sense to
reverse the order of integration, etc., but then again delta functions are not exactly
rigorous-math-friendly concepts anyway. The important thing is, for our purposes,
they work well enough.
We can also get some insight into Parseval-type equalities by considering, for
example,
2
PV dx u(x ) = PV dx PV dx L(x, x )U (x) PV
I I J
dx L(x , x )U (x )
J
= PV dx U (x) PV dx U (x )PV
J J
dx L(x, x )L(x , x ) (5.6)
I
5.1 The Fourier Transform 139
Most people who are reading this book have likely come across the Fourier transform
in some shape or form. A facile way of going about introducing it is to simply use the
notation above and let K(x, k) = Aeikx and L(k, x) = Be−ikx , where AB = 1/(2π ).
We would take I = J = R and we can just take off from there.
The truth is more subtle than this. The Fourier transform is not simply an integral
over the real line of a function times eikx . This subtlety will provide the Fourier
transform with the ability to help us tackle whole new classes of integrals, whether
via a Parseval equality, a convolution relation, or considerations of the analyticity of
the Fourier transform in regions of the complex plane. The goal here is two-fold: (1)
To be able to attack new classes of integrals and sums, and (2) to segue into other
transforms where we will develop whole new arrows for our quivers.
Plancherel’s Theorem and Jordan’s Lemma
Let’s begin by just writing down The Formula for a Fourier transform of a function
f :R→R
∞
F(k) = dx f (x)eikx (5.7)
−∞
There are of course any number of conventions that are used in Mathematics and
Electrical Engineering, but we will use this terribly asymmetric and inconvenient
Physics convention because, well, it is how we make sense of the world as physicists.
Before we plow ahead, we should address the subtlety of Eqs. (5.7) and (5.8).
What do we mean by the infinite integration limits? What sort of functions can f and
F be? Generally speaking, we can write such an integral as a limit:
140 5 Integral Transforms
∞ M
dx f (x)e ikx
= lim dx f (x)eikx (5.9)
M ,N →∞
−∞ −N
The problem with this definition is that the function f must be absolutely conver-
gent. This unnecessarily restricts the sort of functions we can work with to evaluate
cool integrals. Rather, we require the Fourier transform to approach its infinite inte-
gration limits at the same rate; this forms the basis of Plancherel’s theorem. To this
effect, define
M
FM (k) = dx f (x)eikx (5.10)
−M
If we can establish the existence of the inverse Fourier transform F(k) as follows:
M
1
f (x) = lim dk F(k)e−ikx (5.11)
2π M →∞
−M
then
M
lim dk |FM (k) − F(k)|2 = 0 (5.12)
M →∞
−M
That is, F is defined in the limit of a mean-square, rather than pointwise, con-
vergence. Consequently, f belongs to the class L2 (−∞, ∞) of functions square-
integrable over the real line, i.e.
∞
dx |f (x)|2 < ∞ (5.13)
−∞
To illustrate this, let’s work out an example. Consider the contour integral
eikz
dz (5.14)
C z
R π
eikx
PV dx +i d θ eikR cos θ e−kR sin θ = iπ (5.15)
x
−R 0
5.1 The Fourier Transform 141
Keeping this in mind, let us write down our finding for k > 0 as R → ∞:
∞
eikx
PV dx = iπ (5.17)
x
−∞
This is a lovely result but by no means complete. Recall that we subjected ourselves
to the restriction k > 0. Note that if this were not the case, the integral over the
large arc in the contour integral would not converge and the result is accordingly
meaningless for k < 0. What do we do in this case? This should not be much of a
mystery: we instead close the contour below the real axis, as shown in Fig. 5.2.
The difference here is in the orientation of the contour C: if C is to be oriented
positive, as is required for the Residue theorem, then we must traverse the real axis
from right to left. This will induce a sign change in the result; that is, for k < 0:
∞
eikx
PV dx = −iπ (5.18)
x
−∞
Accordingly, we can combine this into a single, much more useful result for all
values of k.
∞
eikx
PV dx = iπ sgn(k) (5.19)
x
−∞
where sgn is the signum function, which is just ±1 according to the sign of its
argument.
There is some really neat stuff coming ahead that will allow us to evaluate tricky
integrals and provide new context to some of the stuff we did in the last chapter back
here. But first, let’s go back and discuss Jordan’s lemma but maybe in a different
way than is usually taught in a first, more formal treatment.
As stated throughout this book (and likely, the back cover, the Preface, any ads
Springer Nature in all its wisdom may put out in attempts to sell this book,...), we
are far less interested in making sweeping, formal statements that are the domain of
professional mathematicians. This book is instead aimed at those who enjoy messing
5.1 The Fourier Transform 143
around with integrals and sums and like to learn things through examples. And in
the spirit of this book, let’s explore the practical difference between the integrals we
encounter in taking Fourier transforms (aka, Fourier integrals) and the integrals with
which we have been monkeying up until now.
OK, Jordan’s lemma. Let’s consider the general Fourier integral. Consider a func-
tion f meromorphic in the complex plane. As we did in the previous example, we
will consider the following contour integral for k > 0
dz f (z)eikz (5.20)
C
As usual, we consider the limit as R → ∞. The first term obviously becomes the
Fourier transform of f when k > 0. As we did in the previous example, we bound
the magnitude of second term in this limit. To do this, we assume that f is bounded
over the large arc as follows.
Max f Reiθ = M (R) (5.22)
θ∈[0,π]
It isn’t completely clear that we made things better by making the substitution
x → x2 . But as anyone who has worked out the solution to Prob. 4.7 knows, to
evaluate the integral on the RHS we consider the following contour integral for
k > 0.
2
dz eikz (5.25)
C
in which C is the wedge contour shown in Fig. 5.3 which wedge has an angle of
π/4. The contour integral segments are
R
ikz 2 2
dz e = dx eikx (5.26)
γ1 0
π/4
ikz 2 2 i2θ
dz e = iR d θ eiθ eikR e (5.27)
γ2 0
0
ikz 2
dt e−kt
2
dz e =e iπ/4
(5.28)
γ3 R
5.1 The Fourier Transform 145
π/2
1
d θ e−kR sin θ
2
= R
2
0
π/2
1
≤ R d θ e−2kR θ/π
2
2
0
π
≤ (5.29)
4kR
Then by Cauchy’s Theorem,
∞ ∞
ikx2
dt e−kt
2
dx e =e iπ/4
0 0
1 π
= eiπ/4 (5.30)
2 k
∞ √
π
dx |x|−1/2 eikx = √ k −1/2 (5.31)
2 2
−∞
for k > 0. The case k < 0 has a similar result and its evaluation is left to the exercises.
The final result for all values of k
= 0 is
∞ √
−1/2 ikx π
dx |x| e = √ |k|−1/2 (5.32)
2 2
−∞
The result in Eq. (5.32) is really interesting: it says that the Fourier transform of
an inverse square root function is a constant times an inverse square root function.
If we look at the Fourier transform as an operator in a Hilbert space L2+a (−∞, ∞)
(i.e., square-integrable functions) for any a > 0, then the function |x|−1/2 is an eigen-
function of the Fourier transform operator in that Hilbert space.1
1The notion of Hilbert space is not discussed in this book, but is not as esoteric as it appears. For
details about differential and integral operators in Hilbert space and their eigenfunctions, please see
S. Holland, “Applied Analysis by the Hilbert Space Method,” Dover (2007).
146 5 Integral Transforms
Then we can also express the function h(z) = f (z)g(z) as a Maclurin series as
well:
h(z) = f (z)g(z)
∞
∞
= fm z m gn z n
m=0 n=0
∞
∞
= fm gn z m+n
m=0 n=0
∞
= hk z k (5.33)
k=0
where
k
hk = f gk− (5.34)
=0
That is, a product of a pair of functions, each with a Maclurin series expansion hav-
ing respective series coefficients, has a Maclurin series expansion which coefficients
is a convolution of the respective series coefficients.
Similarly, we can define a convolution between two functions f and g, each
∈ L2 (−∞, ∞). Analogous to Eq. (5.34), we may state the Convolution Theorem for
Fourier transforms:
5.1 The Fourier Transform 147
∞
F(k) = dx f (x)eikx
−∞
∞
G(k) = dx g(x)eikx
−∞
∞ ∞
1
dx f (x )g(x − x ) = dk F(k)G(k)e−ikx (5.35)
2π
−∞ −∞
a 1
fa (x) = (5.36)
π a + x2
2
∞
a eikx
Fa (k) = dx
π a2 + x2
−∞
eikz
= i2a Res
z=ia a 2 + z2
−ak
=e (5.37)
where a > 0. When k < 0, the result is the same except we close below the real line
and use the pole at z = −ia. The result is, for all values of k,
∞
ab dx
fa ∗ fb = 2
π a2 + x2 b2 + (x − x )2
−∞
2ab 1
=i Res 2
π z=ia a + z b2 + (x − z)2
2
1
+ Res 2
z=x+ib a + z 2 b2 + (x − z)2
2ab 1 1
=i
+
π x − a − b − i2ax π x + a − b2 + i2bx
2 2 2 2 2
a+b 1
= (5.39)
π x2 + (a + b)2
While the Residue Theorem simplifies the evaluation of the convolution integral,
the algebra leading to Eq. (5.39) is far from trivial and it is left as a challenge to work
it out by hand.
Now compare the mess above leading to Eq. (5.39) to its equivalent in frequency
space via the Convolution Theorem:
∞
1
fa ∗ f b = dk e−a|k| e−b|k| e−ikx
2π
−∞
0 ∞
1 ak bk −ikx 1
= dk e e e + dk e−ak e−bk e−ikx
2π 2π
−∞ 0
⎛ ⎞
∞
1
= Re ⎝ dk e−(a+b+ix)k ⎠
π
0
1 1
= Re
π a + b + ix
a+b 1
= (5.40)
π x + (a + b)2
2
That was a lot easier, but it is satisfying to see the Convolution Theorem verified
like that. This example also illustrates an amazing bit of mathematics supporting a
rather intuitive result in Physics: that the convolution of Lorentzians of a first width
and a second width is a Lorentzian of a width equal to the sum of the widths. The
Lorentzian is an example of a stable distribution: a Gaussian is another. (Although
interestingly, the convolution of a Lorentzian and a Gaussian, known as a Voigt
distribution, is not similarly stable.)
5.1 The Fourier Transform 149
Fig. 5.4 Illustrating the computation of the convolution integral in Eq. (5.43) for T = 1
The above example with the Lorentzians illustrated analysis involving functions
that stretched out to infinity. The Convolution Theorem is equally valid with functions
of finite support, i.e., that are zero outside of an interval. It will turn out that the ease
of computing convolution integrals in such cases are more in the eye of the beholder.
Another example will illustrate why.
Let’s take the convolution of a rectangular impulse f with a triangular impulse g.
Note here we will use time/temporal frequency (t, ω).
T t ∈ [0, T ]
f (t) = (5.41)
0 t ∈ {t t < 0} ∪ {t t > T }
t t ∈ [0, 2 T ]
g(t) = (5.42)
0 t ∈ {t t < 0} ∪ {t t > 2 T }
We will compute f ∗ g both directly and using the Convolution Theorem. First,
directly.
∞ ∞
f ∗g= dt f (t )g(t − t ) = dt f (t − t )g(t ) (5.43)
−∞ −∞
These problems can be tricky and it always helps to draw a picture, as in Fig. 5.4.
We can then write down the following.
T t ∈ [t − T , t]
f (t − t ) = (5.44)
0 t ∈ {t t < t − T } ∪ {t t > t}
150 5 Integral Transforms
t
1 2
f ∗ g(t) = dt T · t = Tt (5.45)
2
0
The next transition occurs at t = T , when the left corner of the rectangle intersects
the triangle. For t ∈ [T , 2T ], the convolution is
t
1
f ∗ g(t) = dt T · t = T 2 t − T 3 (5.46)
2
t−T
The next transition occurs at t = 2T , when the rectangle is sticking out of the
triangle to the right. For t ∈ [2T , 3T ], the convolution is
2 T
1 2
3 1
f ∗ g(t) = dt T · t = T 4 T − (t − T )2 = T 3 + T 2 t − Tt 2 (5.47)
2 2 2
t−T
The convolution is clearly zero for t ≥ 3T . Note that the width of the convolution
is the sum of the widths of the two pulses convolved. The final result is, for all t ∈ R:
⎧
⎪
⎪0 t<0
⎪
⎪
⎪
⎪ 1 2
0<t<T
⎨2t
f ∗ g(t) = T 2 t − 21 T 3 T < t < 2T (5.48)
⎪
⎪
⎪ 3 T 3 + T 2 t − 1 Tt 2
⎪ 2T < t < 3T
⎪
⎪ 2 2
⎩0 t > 3T
A good check on the results is, as mentioned above, that the final result is contin-
uous at the transitions. This may be seen in the plot shown in Fig. 5.5.
And now, let’s do the computation via the Convolution Theorem. As it might be
apparent, this one is going to be fun!
The Convolution Theorem states that
∞
1
f ∗g = d ω F(ω)G(ω)e−iωt (5.49)
2π
−∞
5.1 The Fourier Transform 151
∞
F(ω) = dt f (t)eiωt
−∞
T
= dt Teiωt
0
eiωT − 1
=T (5.50)
iω
∞
G(ω) = dt g(t)eiωt
−∞
2 T
= dt teiωt
0
1 2T 1
= −i ei2ωT − (5.51)
ω2 ω ω2
T
∞ 1 2T
1 2T
i(3 T −t)ω
f ∗g= dω −i 2 e − − i 2 ei(2 T −t)ω
i2π ω3 ω ω3 ω
−∞
1 1
− 3 ei(T −t)ω + 3 e−iωt (5.52)
ω ω
152 5 Integral Transforms
Equation (5.52) is very revealing. First of all, it should be plain from looking at this
equation where the transitions in the temporal space, direct convolution computation
came from. It should be apparent that the integrand in Eq. (5.52) is finite at ω = 0
due to delicate cancellation of singularities. Because we have worked so hard at
manipulating Cauchy principal value integrals, we should be quite comfortable with
dealing with each piece of this integral separately and having faith that in the end
the divergences will all cancel. So let’s do that now.
To attack the first piece of the integral in Eq. (5.52), we first consider the following
contour integral:
1 2T
dz 3
− i 2 ei(3 T −t)z (5.53)
C z z
where, for t < 3T , C is that in Fig. 5.1 and for t > 3T , C is that in Fig. 5.2. For
t < 3T , we may write as the contour integral
∞
1 2T i(3 T −t)z 1 2T
dz −i 2 e = PV dω −i 2 ei(3 T −t)ω
C z3 z ω3 ω
−∞
0
1 2T
ei(3 T −t)R e
iφ
+ iR dφ e iφ
− i 2 i2φ
R e
3 i3φ
R e
π
(5.54)
We of course are ignoring the integral over the large arc which by definition
vanishes as its radius becomes sufficiently large. By Cauchy’s Theorem the contour
integral vanishes and we then have the following.
∞
1 2T
PV dω −i 2 ei(3 T −t)ω
ω 3 ω
−∞
0
1 2T
ei(3 T −t)R e
iφ
= −iR d φ eiφ − i 2 i2φ (5.55)
R e
3 i3φ
R e
π
The first term in the integral on the RHS of Eq. (5.59) is evaluated as R → 0 as
follows. Note that we expand the exponential in the integral in this limit.
5.1 The Fourier Transform 153
0 0
1 i(3 T −t)R eiφ i
−iR d φ e 3 i3φ e
iφ
=− 2 d φ e−i2φ
R e R
π π
1
1 + i(3 T − t)R e − (3 T − t) R e + . . .
iφ 2 2 i2φ
2
i2(3 T − t) π
= − i (3 T − t)2 (5.56)
R 2
The integral corresponding to the first term in the expansion of the exponential
vanishes. The terms having powers of R3 and higher also vanish in the limit as R → 0
because there is a term −i/R2 multiplying the integral.
The second term in the integral on the RHS of Eq. (5.59) is evaluated as R → 0
as follows.
0 0
2T i(3 T −t)R eiφ 2T
−iR dφ e −i 2 i2φ e
iφ
=− d φ e−iφ
R e R
π π
1 + i(3 T − t)R eiφ + . . .
4T
= −i + iπ 2 T (3 T − t) (5.57)
R
Adding the results in Eqs. (5.56) and (5.57), we get the following result for t < 3T .
∞
1 2T 2(T − t) π
PV dω −i 2 ei(3 T −t)ω = i + i (3 T − t)(T + t) (5.58)
ω3 ω R 2
−∞
OK, that was one-half of one of the four cases! Don’t worry: as we tell our
struggling kids, it gets better. Let’s consider the case where t > 3T . It looks almost
the same as the case we just did, expect now the contour integral is in the opposite
direction. The effect is that the integration limits of the integral we evaluate are
different:
∞
1 2T
PV dω −i 2 ei(3 T −t)ω
ω3 ω
−∞
2π
1 2T
ei(3 T −t)R e
iφ
= −iR dφ e iφ
− i 2 i2φ (5.59)
R e
3 i3φ
R e
π
In essence, the end result of repeating the analysis we just did for the case t < 3T
is that the sign of the second term changes. That’s it. So then end result for all t ∈ R
is, once and for all:
154 5 Integral Transforms
∞
T 1 2T 2 T (T − t) 1
PV dω −i 2 ei(3 T −t)ω = + (3 T 3 + 2 T 2 t − Tt 2 ) sgn (3 T − t)
i2π ω3 ω 2π R 4
−∞
(5.60)
Similarly, we may write down the results for the other pieces, the derivations of
which are exercises and are quite similar to what we saw above.
∞
T 1 2T 2 Tt 1 3
1 3
1 3
∞
1 v(ω )
u(ω) = PV d ω
π ω − ω
−∞
∞
1
= dt V (t)iπ sgn (t)eiωt
π
−∞
⎡∞ ⎤
∞
= i ⎣ dt V (t)eiωt − dt V (−t)e−iωt ⎦
0 0
⎡ ⎤
∞ ∞
= i⎣ dt V (t)eiωt − dt V (t)e−iωt ⎦
0 0
∞
= −2 Im dt V (t)eiωt (5.65)
0
where
∞
1
V (t) = d ω v(ω)e−iωt (5.66)
2π
−∞
is the temporal signal corresponding to the imaginary part of the analytic signal.
Because V (−t) = V (t), it follows - as asserted in the previous chapter - that the real
part of the analytic signal depends only on the temporal signal (F.T.of the imaginary
part of the analytic signal) for t > 0. That is, the Hilbert transform is the result of a
causal relationship in the analytic signal, and now we can appreciate why.
Parseval’s Equality
It should be plain that the inverse Fourier transform kernel is the conjugate of the
Fourier transform kernel (to within a constant) so that the Fourier transform satisfies
a Parseval’s equality. If f ∈ L2 (−∞, ∞) and F is the Fourier transform of f , then
∞ ∞
1
dx |f (x)| = 2
dk |F(k)|2 (5.67)
2π
−∞ −∞
∞ 1
sin2 x 1
dx 2 = dk π 2
x 2π
−∞ −1
=π (5.69)
∞ ∞ ∞
sin2 x ikx 1 e2ix ikx e−i2x ikx
dx 2
e = − PV dx e + PV dx e
x 4 x2 x2
∞ ∞ ∞
∞
eikx
− 2PV dx (5.70)
x2
∞
where C is shown in Fig. 5.1 for k > 0 and Fig. 5.2 for k < 0. We can then deduce
that for k > 0,
∞ 0 iφ
eikx eikR e
PV dx 2 = −iR d φ eiφ
x R2 ei2φ
−∞ π
0
i
=− d φ e−iφ 1 + ikR eiφ + . . .
R
π
2
= − πk (5.72)
R
5.1 The Fourier Transform 157
Again, for k < 0 the effect is to simply change the integration limits over φ ∈
[π, 2π ]. So we then have the following:
∞
eikx 2
PV dx = − π |k| (5.73)
x 2 R
−∞
where, as expected, we carry the divergences and expect them to cancel when we
tally the net integral. The result is as follows.
∞
sin2 x ikx π
dx e = (|k + 2| + |k − 2| − 2|k|)
x2 4
∞
!
π 1 − |k| k ∈ [−2, 2]
= 2
(5.74)
0 {k k < −2} ∪ {k k > 2}
∞ 2
sin4 x 1 |k| 2
dx 4 = dk π 1 −
2
x 2π 2
−∞ −2
2π
= (5.75)
3
While the above integrals evaluated using Parseval may be nifty - and likely seen
before by many here - we can do so much more. For example, we may generalize
Parseval for functions f and g ∈ L2 (−∞, ∞) with respective Fourier transforms F
and G:
∞ ∞
1
dx f (x)g(x) = dk F(k)G(k) (5.76)
2π
−∞ −∞
As Eq. (5.77) is valid for all values of θ , then each term in brackets is separately
zero.
We can now evaluate a whole slew of new integrals by computing some Fourier
transforms. So let’s start simple:
∞ 1
sin3 x 1 |k|
dx 3 = dk π 2 1 −
x 2π 2
−∞ −1
1
k
=π dk 1 −
2
0
3π
= (5.78)
4
We can perform some odd integrals where Parseval may be applied after a little
manipulation:
∞ ∞ 1 1
arctan ax arctan bx a b
dx = dx du dv
x2 1 + a 2 x 2 u2 1 + b2 x2 v2
−∞ −∞ 0 0
1 1 ∞
dx
= ab du dv
1 + a2 u2 x2 1 + b2 v2 x2
0 0 −∞
1 1 ∞
1 du dv
= dk π e−|k|/(au) π e−|k|/(bv)
2π u v
0 0 −∞
1 1 ∞
du dv
dk e−( au + bv )k
1 1
=π
u v
0 0 0
1 1
1
= π ab du dv
au + bv
0 0
1
b
= π a du log 1 +
au
0
b a!
= π a log 1 + + π b log 1 + (5.79)
a b
Note that it appears this example could be done with just the plain old Residue
Theorem, and that can be an exercise. But the algebra is a bit more involved than
that we see using Parseval. Nevertheless, it is always a good idea to be aware of all
5.1 The Fourier Transform 159
of the arrows in our quivers when attacking any integration or summation problem:
if we hit a roadblock using Parseval, it is nice to know that the Residue theorem may
apply, for example.
Here is a rather complicated example to illustrate that, like integration by parts,
it takes a little experience to know how to split things up. Consider the following
integral.
∞
sin x √
where, again,
y
2 2
erfi (y) = √ dt et (5.81)
π
0
The hope here is that by now we recognize that a factor of sin x/x inside of an
integral simply becomes finite support in the frequency domain. Accordingly, we
want to see if we can compute the FT of the rest of the integrand, i.e., (NB
(x) is
the Heaviside step function, zero when x < 0 and one when x > 0.)
⎡ 1 ⎤
∞ ∞
√
2 √
dx erfi x e−sx
(x)eikx = √ dx x ⎣ dt ext ⎦ e−sx eikx
2
π
−∞ 0 0
1 ∞
2 √
xe−(s−t −ik )x
2
= √ dt dx
π
0 0
1
−3/2
= dt s − ik − t 2
0
1
= √ (5.82)
(s − ik) s − 1 − ik
All things considered, this is a delightfully simple form! And now the integral we
seek is simply the integral of this simple function over [−1, 1]:
1
1 dk
J (s) = π √
2π (s − ik) s − 1 − ik
−1
√
s−1+i
dv
= −i (5.83)
√
1 + v2
s−1−i
160 5 Integral Transforms
The latter step was achieved by the substitution v2 = s − 1 − ik. The integration
limits are complex but because the integrand is analytic along any path of integration
that avoids v = ±i, we can simply integrate using the Fundamental Theorem of
Calculus. We will leave the resulting algebra (which admittedly is a little messy) to
the exercises and produce the final result.
⎛ # ! $ # ⎞
∞ (1 + (s − 1)2 + 1 + 2 (s − 1)2 + 1 − 2(s − 1)
sin x √
−sx 1 ⎜ ⎟
dx erfi x e = log ⎝ # ! $ # ⎠
x 2
0 (1 + (s − 1)2 + 1 − 2 (s − 1)2 + 1 − 2(s − 1)
(5.84)
Parsevel’s Equality gives us a hugely useful way to evaluate integrals. Note that,
when the functions involved are periodic, we have Fourier series rather than Fourier
integrals. In this case, Parseval’s equality may be used to evaluate sums in terms of
simple integrals. Some such sums will be in the exercises.
Analyticity of the Fourier Transform in the Complex Plane2
We have played around with Fourier transforms for k ∈ R, but happens when k ∈ C?
That is, does the Fourier transform still have its very nifty convergence properties per
Plancherel’s Theorem, and if so, how much more useful can it be for us? The answer
is, sometimes, and extremely useful. In fact, so useful it will help us shepherd in the
super-useful Laplace and Mellin transforms.
So let us now consider a Fourier transform of a function f : C → C, where z =
x + iy. When f was a real function, we considered the behavior of f over the real
line. In contrast, let us assume that f is analytic in a strip S = {z y ∈ (y− , y+ )},
parallel to the real axis, where y− < 0 and y+ > 0.
Our analysis is guided by the following theorem.
Theorem 5.2 Let A, B, C, D ∈ R. If the function f analytic in the strip S = {z
y ∈ (y− , y+ )} satisfies the asymptotic relation
lim |f (z)|e−τ− x = A
x→∞
lim |f (z)|e−τ+ x = B
x→−∞
2 The main gist of the following two subsections may be found in passages from P. Morse & H.
Feshbach, Methods of Theoretical Physics, Feshbach Publishing LLC (2005), Sect. 4.8, pp. 459–
461 and 466–467. The author is grateful to the Sylvia Feshbach Trust and Mrs. Andrea Feshbach
in particular for permission to use the passages herein.
5.1 The Fourier Transform 161
lim |F(k)|ey+ σ = C
σ →∞
lim |F(k)|ey− σ = D
σ →−∞
To see why Theorem 5.2 is true, consider the behavior of F along the real axis:
∞
F(σ + iτ ) = dx f (x)eiσ x e−τ x (5.85)
−∞
Uniform convergence at the upper limit of integration requires that eτ− x e−τ x decays
exponentially so that it must be that τ− < τ ; same at the lower limit of integration
requires that eτ +−x e−τ x decays exponentially so that is must be that τ+ > τ .
Now consider F(k) in the strip Ŝ and the convergence of the integral representing
F(k). Because f is analytic in the strip S, we may take a path of integration along a
line parallel to the real axis within S. In this case, for some y ∈ (y− , y+ ),
∞
−σ y
F(σ + iτ ) = e dx f (x + iy)ei(σ x−τ y) e−τ x (5.86)
−∞
∞
sinh 2y
dx |f (x + iy)|2 = π (5.87)
2y
−∞
∞
−τ0 x 1
g(x) = f (x)e = dk G(k)e−ikx (5.88)
2π
−∞
162 5 Integral Transforms
so that
∞
1
f (x) = dk G(k)e−(k+iτ0 )x
2π
−∞
0
∞+iτ
1
= d κ G(κ − iτ0 )e−iκx (5.89)
2π
−∞+iτ0
And because
∞
1
G(k) = dx f (x)e−τ0 x eikx (5.90)
2π
−∞
then
∞
1
G(κ − iτ0 ) = dx f (x)eiκx = F(κ) (5.91)
2π
−∞
So we if we think about this a little, we can conclude that, despite f not being in
L2 (−∞, ∞) on the real axis, on the line τ = τ0 on which it is in L2 (−∞, ∞) , we
can write the following inverse Fourier relation.
0
∞+iτ
1
f (x) = dk f (k)e−ikx (5.92)
2π
−∞+iτ0
Let’s pause and take a little stock before moving on. A function f needs to be
square integrable, i.e., in L2 (−∞, ∞) on the real axis for it to have an inverse FT
by Plancherel’s Theorem. But while some functions f may not be square integrable
on the real axis, its transform be square integrable on a line parallel to the real axis
in the complex plane, e.g., along a line τ = τ0 when k = σ + iτ . In that case, the
inverse transform is defined along that line Im k = τ0 and is determined through Eq.
(5.92).
The above discussion assumed that there was a single value of τ0 along which the
inverse transform existed. This may not always be the case. For example, it may be the
case that f is square integrable over x ∈ (0, ∞) at τ = τ0 , but f is square integrable
over x ∈ (−∞, 0) at τ = τ1 . Along this line, define the following functions for τ0 > 0
and τ1 < 0.
5.1 The Fourier Transform 163
0 x<0
f+ (x) = −τ0 x
(5.93)
f (x)e x>0
f (x)e−τ1 x x < 0
f− (x) = (5.94)
0 x>0
∞
F+ (k) = dx f+ (x)eikx
−∞
∞
= f (x)e−τ x eiσ x (5.95)
0
∞
F− (k) = dx f− (x)eikx
−∞
0
= f (x)e−τ x eiσ x (5.96)
−∞
0
∞+iτ
1
f+ (x) = dk F+ (k)e−ikx (5.97)
2π
−∞+iτ0
1
∞+iτ
1
f− (x) = dk F− (k)e−ikx (5.98)
2π
−∞+iτ1
0
∞+iτ 1
∞+iτ
1 −ikx 1
f (x) = dk F+ (k)e + dk F− (k)e−ikx (5.99)
2π 2π
−∞+iτ0 −∞+iτ1
We note that F+ is analytic in the upper half-plane above k = iτ0 and F− is analytic
in the lower half-plane below k = iτ1 . We stress that this is a special case in which
164 5 Integral Transforms
the function f is square integrable along two separate lines in the complex plane,
according to whether x is positive or negative. This special case, however, will be
very useful to us in deriving the amazing Poisson sum formula.
The Amazing Poisson Sum Formula
We have used the Residue Theorem to evaluate sums of meromorphic functions
to great and in some case dramatic effect. But given the above (admittedly dry)
discussion, we will now have an opportunity to evaluate sums of (piecewise) square-
integrable functions.
Let’s consider the problem of evaluating the following sum.
∞
P= f (αn)
n=−∞
0
∞+iτ
1
f+ (x) = dk F+ (k)e−ikx
2π
−∞+iτ0
1
∞+iτ
1
f− (x) = dk F− (k)e−ikx
2π
−∞+iτ1
The Fourier transform F+ is analytic for τ > τ0 , τ0 > τ0 , as shown in Fig. 5.6.
The Fourier transform F− is analytic for τ < τ1 , τ1 < τ1 , as shown in Fig. 5.6.
where
0
∞ ∞+iτ
1
P+ = dk F+ (k)e−ikαn (5.102)
2π n=0
−∞+iτ0
0
∞+iτ ∞
1
P+ = dk F+ (k) e−ikαn
2π n=0
−∞+iτ0
0
∞+iτ
1 F+ (k)
= dk (5.103)
2π 1 − e−iαk
−∞+iτ0
Again, because F+ is analytic in the upper half-plane above the line of integration,
we can consider a contour integral
1 F+ (z)
dz (5.104)
2π C 1 − e−iαz
We further may set τ0 < 0 so that the contour C encloses poles of the integrand
along the real axis, i.e., at z = 2π m/α for m ∈ Z. Accordingly,
∞
F+ (z)
P+ = i Res
m=−∞
1 − e−iαz
z=2πm/α
∞
1 2π m
= F+ (5.105)
α m=−∞ α
166 5 Integral Transforms
For F− we close below the line of integration but we end up with a similar result:
∞
F− (z)
P− = i Res
z=2πm/α 1 − e−iαz
m=−∞
∞
1 2π m
= F− (5.106)
α m=−∞ α
The amazing Poisson sum formula results from simply adding P+ and P− :
∞
∞
1 2π m
f (αn) = F (5.107)
n=−∞
α m=−∞ α
To evaluate S1 using the Poisson sum formula, we need to evaluate the Fourier
transform F1 of f1 , which as we know is π when k ∈ [−1, 1] and zero otherwise.
The sum on the RHS of Eq. (5.107) is over the Fourier transform of argument 2π n.
Note that when n
= 0, F1 (2π n) = 0. Therefore, S1 = F1 (0) = π .
Boom.
What about
∞ ∞
sin2 n
S2 = f2 (n) = (5.109)
n=−∞ n=−∞
n2
∞ ∞
sinp n sinp x
Sp = = dx (5.110)
n=−∞
np xp
−∞
5.1 The Fourier Transform 167
The infinite sum is equal to the infinite integral for these values of p. So from our
previous examples we have S3 = 3π/4 and S4 = 2π/3. To compute S5 and S6 , we
will need the Fourier transform of f3 (x), which will be derived in the exercises as
⎧
⎪
⎪ k < −3
⎪0
⎪
⎪
⎪ π
∞
sin3 x ikx ⎨ 8 (3
+ k)2
−3 < k < −1
F3 (k) = dx e = π4 3 − k 2 −1 < k < 1 (5.111)
x3 ⎪
⎪
−∞ ⎪ π (3 − k)2
⎪ 1<k<3
⎪
⎪ 8
⎩0 k>3
Then we can use the generalized Parseval equality to derive the desired sum:
∞
sin5 n
S5 =
−∞
n5
∞
sin5 x
= dx
x5
−∞
∞
sin3 x sin2 x
= dx
x3 x2
−∞
1 2
π k
π k
= dk 1− 3−k +
2
dk 1 − (3 − k)2
4 2 8 2
0 1
The integrals are simple and we should be able to do them out with little problem;
the result is
∞
sin5 n 115π
5
= (5.112)
n=−∞
n 192
Similarly,
∞
sin6 n
S6 =
−∞
n6
∞
sin6 x
= dx
x6
−∞
∞
sin3 x sin3 x
= dx
x3 x3
−∞
1 !2 3
π π
= dk 3 − k2 + dk (3 − k)4
16 64
0 1
168 5 Integral Transforms
∞
sin6 n 11π
6
= (5.113)
n=−∞
n 20
∞
sin7 x ikx π
F7 (k) = dx e = (k + 7)6 sgn (k + 7) − 7(k + 5)6 sgn (k + 5)
x7 92120
−∞
In this case it is easier to express the transform in terms of the signums rather
than rearrange as we just seek a few values from it rather than the entire shape of the
resulting curve. Given this expression, we may simply write down (OK, after some
nontrivial manipulation) the exact expression for S7 :
∞
sin7 n 5887π π
S7 = 7
= + (7 − 2π )6 (5.115)
n=−∞
n 11520 23040
Just for the record, we derived all of the above expressions by hand, only using a
CAS to verify the derived results.
We will stop here for now and leave additional discussion to the exercises. Taking
stock, we see that the Poisson Sum formula allows us to express complicated sums
in terms of another sum just having one or a few terms in certain cases, i.e., when
the summand has a Fourier transform of finite support. In these case, the algebraic
nature of the formula explains some bizarre behavior for sums of powers of sincs.
We now proceed to a wholly different application of the Poisson sum formula,
but the theme is similar: we replace a nasty-looking sum with one only having very
few terms.
5.1 The Fourier Transform 169
x
2
dt e−t
2
erf x = √ (5.116)
π
0
In discussions of what a closed-form is, it has been proposed that a closed form
is an expression the value of which requires fewer computing resources to generate
than an integral or summation representation. In that respect, the error function is a
closed form because of the various simple expressions that may be used to compute
its value to arbitrary precision over any interval on the real line.
What about values in the complex plane?
In the complex plane, we may define
z
2
d ζ e−ζ
2
erf z = √ (5.117)
π
0
Because e−ζ is analytic everywhere, the above integral is independent of the path
2
used between ζ = 0 and ζ = z. Consider, then, the special case where is the
path that runs from 0 to x along the real axis, then from x to z = x + iy parallel to
the imaginary axis. Seen this way, the error function of a complex number is equal
to
y y
2 2
erf (x + iy) = erf x + i √ e−x du e cos 2xu + √ e−x
2
u2 2 2
du eu sin 2xu
π π
0 0
(5.118)
Keep in mind that we consider erf x a given closed form, and we are seeking erf z
for z = x + iy.
So to compute the complex erf, we need to evaluate these integrals in some form.
What we will find is...we can’t, exactly. But we can get as close as we’d like, and to
do that we will be using the Poisson sum formula.3
First, we will need the Poisson sum formula in a shifted form:
∞
∞
f (n + x) = ei2πmx F(2π m) (5.119)
n=−∞ m=−∞
3 This stems from an idea taken from H. E. Salzer, “Formulas for calculating the error function of
a complex variable,” Math. Comp. 5, 67–68 (1951).
170 5 Integral Transforms
√ & '
u!
∞
∞
−(u+na)2 π −m2 π 2 /a2
e = 1+2 e cos 2π m (5.120)
n=−∞
a m=1
a
The key observation here is that we can choose any value of a we wish and this
equation holds true. In fact, we can choose a value of a such that the sum on the RHS
may be ignored. Let’s call this sum (u):
∞
! ∞
u
e−n π /a cos 2π n ≤ e−n π /a
2 2 2 2 2 2
|(u)| = 2 (5.121)
a
n=1 n=1
So what we essentially did was use the Poisson sum formula applied to Gaussians
2
in order to replace the factor eu in the integrals in Eq. (5.118). Admittedly, this was
far from trivial but in hindsight, it is clear that this factor was troublesome and would
need replacement if we were to make any progress.
It is noted that, when a = 1/2, |(u)| ≤ e−4π + e−16π + · · · ≈ 5 × 10−17 . Thus,
2 2
while the result we attain will not be exact, it will achieve double precision for any
value of z in the complex plane and will be, for all intents and purposes, a formula
for the complex error function.
To get the value of an integral, we multiply both sides of Eq. (5.122) and integrate
to get
y y & ∞
'
2 2 2 2 a 2 2
√ e−x du eu sin 2xu ≈ √ du √ 1+2 e−a n cosh 2nau sin 2xu
π π π
0 0 n=1
1 − cos 2xy
= 2a
2π x
∞ y
4a −a2 n2
+ e du cosh 2anu sin 2xu
π
n=1 0
1 − cos 2xy
= 2a
2π x
∞
2a −a2 n2 x(1 − cos 2xy cosh 2any) + an sin 2xy sinh 2any
+ e
π x 2 + a 2 n2
n=1
(5.123)
5.2 Laplace Transforms 171
Similarly,
y
2 2 sin 2xy
√ du eu cos 2xu ≈ 2a
π 2π x
0
∞
2a −a2 n2 x sin 2xy cosh 2any + an cos 2xy sinh 2any
+ e
π n=1 x2 + a2 n2
(5.124)
Putting this all together and plugging in a = 1/2, we get the following result:
where
fk (x, y) = 2x(1 − cos 2xy cosh ky) + k sin 2xy sinh ky (5.126)
gk (x, y) = 2x sin 2xy cosh ky + k cos 2xy sinh ky (5.127)
and |(x, y)| ≤ 5 × 10−17 . We can of course adjust the maximum relative error
throughout by adjusting the value of a, but here is a formula that provides the error
function everywhere in the complex plane out to double precision. Not exact for
analytical purposes but exact for numerical purposes.
We note here that, as in the since sum formulae in the previous section, we only
used one term in the sum from the Poisson sum formula here. The rest of the terms
were used to define the relative error in approximating the integrals in Eq. (5.120).
We also note here that we only considered one possible integration path in deriving
the exact result in Eq. (5.120). Another integration path is considered in the exercises.
∞
F(s) = dt f (t)e−st (5.128)
0
172 5 Integral Transforms
F is the boundary value on the real line of a meromorphic function in the complex
plane. Note that the Laplace transform is an expression of causality and is a special
case of a Fourier transform. To see this, define the following function.
f (t) t > 0
f+ (t) = (5.129)
0 t<0
∞
F+ (ω) = dt f+ (t)eiωt (5.130)
−∞
∞
1
f+ (t) = d ω F+ (ω)e−iωt (5.131)
2π
−∞
From our work with the Fourier transform in the complex plane, we can accord-
ingly write
0
∞+iτ
1
f (t) = d ω F+ (ω)e−iωt (5.132)
2π
−∞+iτ0
Let ω = is. That is, the parameters s is seen as an imaginary frequency, or better
yet an attenuation parameter. Then we may define the Laplace transform in terms of
a one-sided Fourier transform as
τ0+i∞
1
f (t) = ds F(s)est (5.134)
i2π
τ0 −i∞
5.2 Laplace Transforms 173
OK, let’s take a little stock here. Recall that for the inverse Fourier transform,
τ0 > 0 was the minimum value above the real axis for which the Fourier transform
was square integrable. Since we are only concerned with t > 0, we will not need
to consider F− or τ1 . With the Laplace transform, we are rotating the axis by π/2.
We will discuss the role of τ0 in more detail when we compute inverse Laplace
transforms.
The expression in Eq. (5.134) seems a bit odd and it is worth examining how the
Laplace transform and its inverse cancel each other out, i.e., how we form a delta
function.
τ0+i∞
1
f (t) = ds F(s)est
i2π
τ0 −i∞
τ0+i∞
⎡ ⎤
∞
1
ds ⎣ dt f (t )e−st ⎦ est
=
i2π
τ0 −i∞ 0
∞ τ0+i∞
1
= dt f (t ) ds es(t−t ) (5.135)
i2π
0 τ0 −i∞
τ0+i∞
1
δ(t) = ds est (5.136)
i2π
τ0 −i∞
Before we move on, it is worth noting that the inverse Laplace transform kernel is
not a Hermitian conjugate of the Laplace transform kernel. Accordingly, we cannot
expect a Parseval equality for Laplace transforms.
Convolution, or Nobody’s Faltung But Mine
Now that we know what a delta function looks like, we can answer the question,
what does convolution look like? Or better yet, what is the inverse Laplace transform
of the product of two Laplace transforms F(s) and G(s)?
174 5 Integral Transforms
τ0+i∞ τ0+i∞
⎡∞ ⎤
1 1
ds ⎣ dt f (t )e−st ⎦
ds F(s)G(s)est =
i2π i2π
τ0 −i∞ τ0 −i∞ 0
⎡∞ ⎤
⎣ dt g(t )e−st ⎦ est
0
τ0+i∞
⎡ ∞ ⎤
1
ds ⎣ dt f (t )
(t )e−st ⎦
=
i2π
τ0 −i∞ −∞
⎡ ∞ ⎤
⎣ dt g(t )
(t )e−st ⎦ est
−∞
∞ ∞
1
= dt f (t )
(t ) dt g(t )
(t )
i2π
−∞ −∞
τ0+i∞
ds es(t−t −t )
τ0 −i∞
∞ ∞
= dt f (t )
(t ) dt g(t )
(t )δ(t − t − t )
−∞ −∞
∞
= dt f (t )
(t )g(t − t )
(t − t )
−∞
t
= dt f (t )g(t − t ) (5.137)
0
The RHS of Eq. (5.137) defines a convolution of two inverse Laplace transforms.
This will be of fundamental usefulness to us.
Ode to an ODE
Laplace transforms are frequently used to solve ordinary differential equations. More
to the point, Laplace transforms convert ODEs to algebraic equations. For example,
consider the general second-order equation
∞ ∞
˙ −st = x(t)e−st ∞ + s
dt x(t)e dt x(t)e−st
0
0 0
= X (s) − x0 (5.139)
∞ ∞
¨
dt x(t)e −st ˙ −st ∞ + s
= x(t)e ˙ −st
dt x(t)e
0
0 0
= s2 X (s) − sx0 − ẋ0 (5.140)
Accordingly, taking Laplace transforms of both sides, we get the algebraic equa-
tion: 2
Then
F(s) + As + B
X (s) = (5.142)
as2 + bs + c
τ0+i∞
1
x(t) = ds X (s)est (5.143)
i2π
τ0 −i∞
We may compute this integral by forming a contour integral. Let’s form a contour
as illustrated in Fig. 5.7, which is called a Bromwich contour. Here, we closed the
contour with a circle of radius R to the left of the integration line.
Note that we can write the inverse Laplace transform as
√ 2 2
τ0 +i
R −τ0
ω0 F(s) + As + B st
x(t) = lim ds e (5.144)
i2π R→∞ √ 2 2 as2 + bs + c
τ0 −i R −τ0
Let’s first take homogeoneous the case f (t) = 0 which means F(s) = 0.
To compute the inverse Laplace transform, we consider the contour integral
1 Az + B
dz ezt (5.145)
i2π C az 2+ bz + c
√ 2 2
τ0 +i
R −τ0
Az + B As + B
dz ezt = ds 2 est (5.146)
az 2+ bz + c √ 2 2 as + bs + c
γ1
τ0 −i R −τ0
τ0
3π/2−arcsin R
Az + B AReiθ + B
dz ezt = iR d θ eiθ eRt cos θ
az 2 + bz + c aR2 ei2θ + bReiθ + c
γ2 τ0
π/2+arcsin R
(5.147)
We can estimate the integral over γ2 by the ML-inequality as R → ∞.
τ0
3π/2−arcsin R
Az + B AReiθ + B Rt cos θ
dz e zt
≤R d θ e
az + bz + c
2 aR e + bRe + c
2 i2θ iθ
τ0
γ2 π/2+arcsin R
3π/2
AR2 + BR
≤ d θ eRt cos θ
aR2 − bR + c
π/2
AR + BR 2
= 2 π/2d θ e−Rt sin θ
aR2 − bR + c
0
∞
AR + BR 2
≤2 d θ e−2RT θ/π
aR2 − bR + c
0
π AR + B
= (5.148)
t aR2 − bR + c
5.2 Laplace Transforms 177
τ0+i∞
1 Az + B 1 F(s) + As + B st
dz 2 ezt = ds e (5.149)
i2π az + bz + c i2π as2 + bs + c
γ1 τ0 −i∞
Note that closing the contour to the left is equivalent to indicating t > 0 because on
the left, i.e., when θ ∈ [π/2, 3π/2], cos θ < 0 and the integral over γ2 only converges
when t > 0. Accordingly, closing to the right is equivalent to indicating t < 0.
The contour integral is then equal to the sum of the residues of the poles inside
C. And this is where we can make sense of the value of τ0 : we define τ0 such that for
t > 0 all of the poles of the integrand lie within C. That way we achieve causality,
because for t < 0, where we close the contour C to the right rather than the left, none
of the poles will lie within C and the inverse Laplace transform is accordingly zero
for t < 0. In other words, we require for causality
Az+ + B Az− + B
x(t) = ez+ t + 2 ez− t (5.151)
2
az+ + bz+ + c az− + bz− + c
τ0+i∞
1 F(s)
f (t) = ds est (5.153)
i2π as2 + bs + c
τ0 −i∞
We can express the solution directly as an integral over time by the convolution
−1
theorem. Let G(s) = as2 + bs + c . Then by the Residue Theorem, for t > 0,
178 5 Integral Transforms
τ0+i∞
1 est
g(t) = ds
i2π as2 + bs + c
τ0 −i∞
z+ t
e ez− t
= + (5.154)
2
az+ + bz+ + c az−
2
+ bz− + c
By the convolution theorem, we can write down the solution to the ODE for t > 0
as
t
x(t) = dt g(t − t )f (t ) (5.155)
0
The solution to the general equation Eq. (5.138) is the sum of the the homogeo-
neous solution in Eq. (5.151) and the inhomogeoneous solution in Eq. (5.155).
The Heat Equation and Branch Points
Let us now move from an ordinary differential equation to a partial differential equa-
tion. In the former, we used Laplace transforms to convert the ODE to an algebraic
equation, the solution to which we then inverse-Laplace-transformed (what a remark-
able verb) to obtain the solution to the ODE. What happens when we apply LTs to a
PDE?
A very good PDE with which to start is the heat equation. Let’s analyze the
temperature distribution u of a one-dimensional semi-infinite rod as a function of
position x and time t. The equation we will solve that models this physical situation
is as follows.
∂u ∂ 2u
=κ 2 (5.156)
∂t ∂x
where x > 0 and t > 0. κ > 0 is the heat conductivity of the rod.
∞ ∞
∂u −st ∞
dt e = u(x, t)e−st 0 + s dt u(x, t)e−st
∂t
0 0
= −u(x, 0) + sU (x, s)
= sU (x, s) (5.159)
where U (x, s) is the Laplace transform of u(x, t) with respect to time. Note that we
applied the initial condition in Eq. (5.157) here.
5.2 Laplace Transforms 179
∞ ∞
∂ 2u ∂2
dt 2 e−st = 2 dt u(x, t)e−st
∂x ∂x
0 0
∂ U (x, s)
2
= (5.160)
∂x2
We have replaced the PDE in Eq. (5.156) with an ODE as follows. (We replace
the partial derivatives with plain old derivatives because we only have derivatives
with respect to x.)
d 2 U (x, s)
κ = sU (x, s) (5.161)
dx2
U (0, s) = A(s) (5.162)
where
∞
A(s) = dt α(t)e−st (5.163)
0
When we apply the condition in Eq. (5.162), we find that P(s) = A(s). The solution
to Eq. (5.161) is therefore, after inverse-Laplace-transforming
τ0+i∞
1 √ √
u(x, t) = ds A(s)e− sx/ κ st
e (5.166)
i2π
τ0 −i∞
τ0+i∞
α0 ds −√sy st
v(y, t) = e e (5.167)
i2π s
τ0 −i∞
A
π−arcsin
√
R
√
dz −y z tz
e e =i d θ e−y Reiθ/2 tReiθ
e (5.170)
z
γ2 τ0
π/2−arcsin R
5.2 Laplace Transforms 181
√2 2
R −A
dz −y√z tz du −i√uy −ut
e e = e e (5.171)
z √ u
γ3
R2 −A2
A
−π+arcsin
√
R
√
dz −y z tz R eiφ/2 tR eiφ
e e =i d φ ey e (5.172)
z
γ4 A
π−arcsin R
√ 2 2
√
R −A
dz −y z tz du i√uy −ut
e e = e e (5.173)
z √ u
γ5
R2 −A2
τ0
√
3π/2+arcsin R
√
dz −y z tz
e e =i d θ e−y Reiθ/2 tReiθ
e (5.174)
z
γ6 A
π+arcsin R
Here, R is the radius of the arc in segment γ4 , A is the distance between the
segments γ3 and γ5 from the real axis, and R is the radius of the arcs in segments
γ2 and γ6 . We are interested in the integrals over the segments in the limits R → ∞,
R → 0, and A /R → 0.
The √integrals over γ2 and γ6 vanish as R → ∞ because the etz term dominates
the e−y z term in the integrand. For example,
π
dz −y√z tz √
e e ≤ d θ e−y R cos θ/2 etR cos θ
z
γ2 π/2
π/2 √
= d θ e−y R cos (θ/2+π/4) e−tR sin θ (5.175)
0
so that both exponential terms vanish as well R → ∞, but the term e−tR sin θ dominates
so that the other term is irrelevant. This is true with γ6 as well:
3π/2
dz −y√z tz √
e e ≤ d θ e−y R cos θ/2 etR cos θ
z
γ6 π
π/2 √
= d θ e−y R cos (θ/2−3π/4) −tR sin θ
e (5.176)
0
182 5 Integral Transforms
τ0+i∞
dz −y√z tz ds −√sy st
e e = e e (5.177)
z s
γ1 τ0 −i∞
−π
dz −y√z tz
e e =i dφ
z
γ4 π
= −i2π (5.178)
0 ∞
dz −y√z tz du −iy√u −tu du iy√u −tu
e e = e e + e e
z u u
γ3 +γ5 ∞ 0
∞
du √
= i2 sin y u e−tu
u
0
∞
sin yu −tu2
= i4 du e
u
0
∞
sin yu −tu2
= i2 du e (5.179)
u
−∞
∞ y
sin yu −tu2 1 π
dk e−k /(4t)
2
du e = π
u 2π t
−∞ −y
y
√
2 t
2
dw e−w
2
= √ π
π
0
y
= π erf √ (5.180)
2 t
5.2 Laplace Transforms 183
Now that we have evaluated all of the integrals along the segments, we may now
apply Cauchy’s Theorem and state what the inverse Laplace transform and hence the
solution to the PDE is.
τ0+i∞
α0 ds −√sy st y
v(y, t) = e e = α0 − α0 erf √ (5.181)
i2π s 2 t
τ0 −i∞
where erfc is the complementary error function. It is interesting to see what the
temperature curves look like over time; this is shown in Fig. 5.9 for κ = 1.
We now have the tools to examine the effect of a non-constant temperature α(t).
Recall that we would seek the following inverse Laplace transform:
τ0+i∞
1 √
v(y, t) = ds A(s)e−y s est (5.183)
i2π
τ0 −i∞
which we know, by the Convolution Theorem, is the convolution of α(t) and some
function β(t) which is the following inverse Laplace transform:
τ0+i∞
1 √
β(t) = ds e− sy st
e (5.184)
i2π
τ0 −i∞
To evaluate this ILT, we don’t need to go through all of the above analysis again;
we can simply recognize that we may simply differentiate the constant-temperature
expression with respect to t.
184 5 Integral Transforms
⎡ τ0+i∞
⎤
∂ ⎣ 1 ds −√sy st ⎦
β(t) = e e
∂t i2π s
τ0 −i∞
∂ y
= 1 − erf √
∂t 2 t
y
= √ t −3/2 e−y /(4t)
2
(5.185)
2 π
τ0+i∞
1 √ y
ds e− e = √ t −3/2 e−y /(4t)
2
sy st
(5.187)
i2π 2 π
τ0 −i∞
We can use the convolution theorem to generate some pretty nifty integrals. For
example, consider the integral
1
dt [t(1 − t)]−3/2 e−a /t e−b /(1−t)
2 2
(5.188)
0
for a > 0 and b > 0. By the convolution theorem, this is equal to the inverse Laplace
transform
τ0+i∞ τ0+i∞
4π 1 √ √ 4π 1 √
−2a s −2b s s
ds e e e = ds e−2(a+b) s es
ab i2π ab i2π
τ0 −i∞ τ0 −i∞
4π a + b −(a+b)2
= √ e (5.189)
ab 2 π
For any value of a, b we just replace those values with absolute values. Accord-
ingly, we can just write down the value of the integral we sought.
1
√ 1 1
dt [t(1 − t)]−3/2 e−a /t e−b /(1−t)
e−(|a|+|b|)
2 2 2
=2 π + (5.190)
|a| |b|
0
5.2 Laplace Transforms 185
Neat, huh? We will present numerous examples in the exercises of integrals that
may be evaluated in a similar manner. But first, let’s go through some examples of
inverse Laplace transforms that lend themselves to these kind of integrals.
Adventures of the Stretched Exponential
Let’s evaluate the following inverse Laplace transform.
τ0+i∞
1
ds s−(1+a) e−s est
a
f (t) = (5.191)
i2π
τ0 −i∞
where a ∈ (0, 1). This is going to be an adventure as the section title indicates. The
analysis is going to be unconventional and a little creative. At one point, we will seem
to perform the impossible, only made possible by a trick of analytic continuation.
But as with all cases in which we stretch ourselves, the stretched exponential4 is
going to be some messy fun.
We begin by writing down the contour integral
dz z −(1+a) e−z ezt
a
(5.192)
C
where C is that illustrated in Fig. 5.8. We can ignore the integrals over γ2 and γ6
as they will vanish as R → ∞. The integral over γ1 is simply i2π times the inverse
Laplace transform we seek. The rest of the segments are as follows.
R
−(1+a) −z a zt
dx e−iπ(1+a) x−(1+a) e−e e−xt
iπa a
dz z e e =e iπ x
(5.193)
γ3 ∞
∞
−iπa a
−(1+a) −z a zt −iπ
dz z e e =e dx eiπ(1+a) x−(1+a) e−e x
e−xt (5.194)
γ5 R
−π
−(1+a) −z a zt
d φ eiφ R−(1+a) e−i(1+a)φ e−R e e−tR e
a iaφ iφ
dz z e e = iR (5.195)
γ4 π
Let’s evaluate the integral over γ4 first. We can expand the terms e−tR e e−R e
iφ a iaφ
−π
dz z −(1+a) −z a zt
e e = iR−a d φ e−iaφ 1 − Ra eiaφ + . . . 1 − tR eiφ + . . .
γ4 π
sin π a
= −i2R−a + i2π + . . . (5.196)
a
where the ellipses refers to terms that vanish as → 0.
Next, the evaluation of the integral over γ3 + γ5 . We combine and get the following
expression.
⎡ ⎤
∞
dz z −(1+a) e−z ezt = i2 Im ⎣eiπa e−xt ⎦
−iπa a
dx x−(1+a) e−e
a
x
(5.197)
γ3 +γ5 R
This is where things get tricky. In the integral over γ4 , both exponentials were
−iπa −a a
of small arguments and could be expanded. Here, the exponential term e−e t u
−u
may be expanded because it is subdominant to the term e , meaning its variation
inside the integrand is far less significant. Then the integral is as follows upon the
expansion.
∞ ∞
−(1+a) −u −e−iπa t −a ua
It is still unclear how to proceed from here without running headlong into a
divergent integrand at the lower limit. And this is where analytic continuation comes
in handy. Let’s be a bit bold and rewrite the first integral as follows.
∞ ∞ R t
−(1+a) −u −(1+a) −u
du u e = du u e − du u−(1+a) e−u (5.200)
R t 0 0
5.2 Laplace Transforms 187
∞
π 1
du u−(1+a) e−u = − (5.201)
sin π a (1 + a)
0
∞
π 1 t −a −a
du u−(1+a) e−u = − + (5.202)
sin π a (1 + a) a R
R t
(∞ −u
As for the second integral in Eq. (5.199), e−iπa t −a du eu , note that the factor
R t
e−iπa renders the term real, and as we are only interested in the imaginary part, this
term contributes nothing to the integral.
So we finally arrive at the following place.
dz z −(1+a) e−z ezt =
a
γ3 +γ5
⎡ ⎤
∞ !
−(1+a) −u −e−iπa t −a ua t −a −a π 1
i2t Im ⎣eiπ a
a
du u e e −1+e −iπ a −a a
t u + − ⎦
a R sin πa (1 + a)
0
⎡ ⎤
∞ !
sin πa i2πt a ⎣ −(1+a) −u −e−iπa t −a ua −iπ a −a a ⎦
= i2R−a − + i2t Im e
a iπ a
du u e e −1+e t u
a (1 + a)
0
(5.203)
Whew! Note that we subtracted out the two Taylor expanded terms in the integral.
This results in a finite integral in the limit as R → 0, so that the fairly wonky way
we got here is legitimized. It is also a fairly messy-looking result but an example will
illustrate how clean this actually is.
Combining with the integral over γ4 , we see the divergent terms cancel as they
must. We can now write down an expression for the inverse Laplace transform of the
stretched (and scaled) exponential.
188 5 Integral Transforms
τ0+i∞
1
ds s−(1+a) e−s est
a
i2π
τ0 −i∞
⎡ ⎤
a ∞ !
t du −u −e−iπa t −a ua
= Im ⎣eiπa e e − 1 + e−iπa t −a ua ⎦
π u1+a
0
ta
+ −1 (5.204)
(1 + a)
To illustrate that the above expression is actually fairly useful, let’s examine
√ the
case a = 1/2 in detail. That is, we are taking the inverse LT of s−3/2 e− s . Then
plugging a = 1/2 into everything else, we get the following.
τ0+i∞
1 √
ds s−3/2 e− s est
i2π
τ0 −i∞
⎡ ∞ ⎤
√ !
t du
Im ⎣i ⎦
−1/2 1/2
−u −1/2
= e e it u
− 1 − it u 1/2
π u3/2
0
√
t
+ −1 (5.205)
(3/2)
Substitute u = x2 and take the imaginary part of the integral, we will be gobs-
macked to find that we end up with the following beautiful and compact expression:
⎡ ⎤
∞ ! ∞
−x2 sin βx
2
du −u it −1/2 u1/2
Im ⎣i e e − 1 − it −a a ⎦
u = 2 dx e (5.206)
u3/2 x2
0 −∞
where β = 2√ 1
t
. (The details are left as an exercise.) And we know how to handle
integrals like this …right?
∞ 2β
−x2 sin2 βx 2 √ −k 2 /4 |k|
2 dx e = dk πe πβ 1 −
x2 2π 2β
−∞ −2β
2β
√ k
e−k /4
2
= 2 πβ 1−
2β
0
√ !
= 2πβ erf β − 2 π 1 − e−β
2
(5.207)
5.2 Laplace Transforms 189
It is relatively simple to put everything back together for the final result; putting
back β = 2√ 1
t
, we get
τ0+i∞
1 √
−3/2 − s st 2 √ −1 1
ds s e e =√ t e − erfc √
4t (5.208)
i2π π 2 t
τ0 −i∞
Admittedly, other values of a ∈ (0, 1) may not work out so nicely but it is good
to see that the general expression works out to something utterly familiar.
Putting our Bessel foot forward
√
In this example, let’s take the inverse Laplace transform of e− s2 +s
. That is, we wish
to compute
τ0+i∞
1 √
ds e− s +s est
2
f (t) = (5.209)
i2π
τ0 −i∞
What’s interesting about this inverse LT is that the contour integral we will use
to recover this inverse LT has an integrand with two branch points, at z = 0 and
z = −1. That contour integral takes the following form.
√
dz e− z +z ezt
2
(5.210)
C
√
1 √
− z 2 +z zt x(x−1) −xt
dz e e =e iπ
dx, e e (5.212)
γ3 R
√
0 √
− z 2 +z zt
dz e e =e iπ
dx e−i x(1−x) −xt
e (5.213)
γ5 1
√
√
dz e− z 2 +z zt
e = e−iπ 01 dx ei x(1−x) −xt
e (5.214)
γ7
√
R √
− z 2 +z zt −iπ x(x−1) −xt
dz e e =e dx, e e (5.215)
γ9 1
To deal with the integral over γ2 + γ10 , let’s take R → ∞ and sub ζ = eiθ .
√
−i !1/2
− z 2 +z zt −Rζ 1+ Rζ
1
dz e e =R dζ e etRζ
γ2 +γ10 i
−i !1/2
−Rζ 1
1+ Rζ −1
=R dζ e R(t−1)ζ
e
i
−i
−1/2
∼e R d ζ eR(t−1)ζ (R → ∞)
i
sin (R(t − 1))
= −i2π e−1/2 (5.216)
π(t − 1)
sin (R(t−1))
We note here that the term π(t−1)
= δ(t − 1) in the limit as R → ∞. Why?
sin (R(t−1))
Because as R → ∞, = 0. Moreover, at t − 1, the term is equal to R/π ,
π(t−1)
which increases without bound as R → ∞. And finally, because R > 0,
5.2 Laplace Transforms 191
∞
sin (R(t − 1))
dt =π (5.217)
(t − 1)
−∞
Accordingly, √
dz e− z 2 +z zt
e = −i2π e−1/2 δ(t − 1) (5.218)
γ2 +γ10
It is interesting that the integral along γ2 + γ10 does not completely vanish, at
least at t = 1. Note that we will find that the inverse LT is zero for t < 1.
We note that the contributions from the left branch point to the outer circle along
the branch cuts, i.e., along γ3 and γ9 , cancel each other out. Accordingly, the only
other contribution to the inverse LT comes from between the branch points at z = 0
and z = 1, i.e., along γ5 and γ7 .
√
1 #
− z 2 +z zt
dz e e = −i2 dx sin x(1 − x)e−xt (5.219)
γ5 +γ7 0
√
This is an unusual integral. The form x(1 − x) would suggest a substitution
of the form x = cos2 (θ/2); let’s see where that takes us. (Hint: this substitution
wouldn’t be suggested if it would take us nowhere.)
1 # π
−xt 1 1
dx sin x(1 − x)e = e−t/2 d θ sin θ sin sin θ e(t/2) cos θ
2 2
0 0
π
1
= e−t/2 Im d θ sin θ ei 2 sin θ e(t/2) cos θ
1
(5.220)
4
−π
π ! !
i 21 sin θ (t/2) cos θ dz z − z −1 (t/2) z+z −1
(i/2) z−z −1
d θ sin θ e e = −i e 2
e i2
|z|=1 z i2
−π
1 dz
1 −1
z − z −1 e 4 (t+1)z+ 4 (t−1)z
1
=− (5.221)
2 |z|=1 z
We know from previous experience that the contour integral is equal to i2π times
the sum of the residues of the poles inside of the unit circle. In this case, the integrand
has an essential singularity at z = 0. To compute the residue at z = 0, we expand the
192 5 Integral Transforms
∞
−1
1
k
z − z −1 eaz+bz = z − z −1 az + bz −1
k!
k=0
∞ k
−1
1 k
k−m
= z−z (az)m bz −1
k! m=0 m
k=0
a !m 2 m−k
∞
k
1
= z − z −1 bk z (5.222)
m=0
m!(k − m)! b
k=0
To simplify things a bit, we note that only odd values of k will result in a nonzero
coefficient of z 0 . We can then rewrite that last sum as
a !m 2 m−2k−1
∞
−1
k
1
z − z −1 eaz+bz = z − z −1 b2k+1 z
m=0
m!(2k + 1 − m)! b
k=0
(5.223)
We have nonzero coefficients of z 0 when m = k or m = k + 1. Therefore, by the
residue theorem, the integral above is equal to
π ∞
(ab)k √ !
1 1 b−a
d θ sin θ ei 2 sin θ e(t/2) cos θ = − i2π(b − a) = −iπ √ I1 2 ab
2 k!(k + 1)! ab
−π k=0
(5.224)
where I1 is the modified Bessel function of the first kind of order one. Putting this
altogether, we finally have, for t > 1,
5.3 Two-Sided Laplace and Mellin Transforms 193
√ !
τ0+i∞
1 −t/2 I1 2 t − 1
1 2
1 √
− s2 +s st
ds e e = e √ + e−1/2 δ(t − 1) (5.226)
i2π 2 t2 − 1
τ0 −i∞
and 0 for t < 1. Alternatively, if we use a Heaviside function and note that
limt→1 δ(t − 1)
(t − 1) = 0, then we have
√ !
τ0+i∞
1 √ I1 1
2
t2 − 1
− s2 +s st
ds e e = e−t/2 √
(t − 1) (5.227)
i2π 2 t2 − 1
τ0 −i∞
It is always nice to see work we have done being applied elsewhere. All said, we
hope this was a solid introductory foray into Laplace transforms and their inverses.
We go into slightly less familiar territory next as an investment into our integration
quiver.
We have gone through quite a lot of difficult Fourier and Laplace transforms, and the
hope is that we have seen enough that we will know what to do when we encounter
other difficult problems involving those transforms. But now we move to a slightly
more esoteric transform, one which we will need for our complex integration schemes
later. We begin in familiar territory though.
Two-sided Laplace transforms
Recall that the Laplace transform
∞
dt f (t)e−st (5.228)
0
converges for all Re s > s0 when f has a leading exponential behavior of es0 t , i.e.,
f (t) = h(t)es0 t where h has no exponential factor. In the complex plane, this translates
to a region of convergence that is a half-plane to the right of Re s > s0 . To compute
the inverse Laplace transform, the line of integration at Re s = τ0 can be anywhere
in that half-plane.
The Laplace transform we have been considering up until now in Eq. (5.228) is
also known as a one-sided Laplace transform which obeys a causality relation. There
are also two-sided Laplace transforms defined as follows.
∞
dt f (t)e−st (5.229)
−∞
194 5 Integral Transforms
In this case, f need not obey a causality relation. We can express the two-sided
transform in terms of two one-sided transforms.
∞ ∞ ∞
dt f (t)e−st = dt f (t)e−st + dt f (−t)est
−∞ 0 0
= F+ (s) + F− (s) (5.230)
Then
∞
1
F+ (s) = dt eat e−st = (5.231)
s−a
0
∞
1
F− (s) = dt e−bt est = − (5.232)
s−b
0
1 1
F(s) = F+ (s) + F− (s) = − (5.233)
s−a s−b
τ0+i∞
1 1 1
f (t) = ds − est (5.234)
i2π s−a s−b
τ0 −i∞
In this case, however, a < τ0 < b. Moreover, we close to the left when t > 0 and
to the right when t < 0. In this way, we recover the original value of f (t).
5.3 Two-Sided Laplace and Mellin Transforms 195
Mellin Transforms
In Eq. (5.229), we substitute t = − log x, g(x) = f (− log x) and we end up with
∞
G(s) = dx g(x)xs−1 (5.235)
0
Equation (5.235) is a Mellin transform. The integral converges in the strip s0 <
Re s < s1 in the complex plane. Its inverse is as follows.
τ0+i∞
1
g(x) = ds G(s)x−s (5.236)
i2π
τ0 −i∞
1
G(s) = dx xs−1 log x
0
∞
=− dt te−st
0
1
=− (5.238)
s2
This in and of itself is not a very exciting example because it is just a rescaling of
a one-sided Laplace transform. Other examples, however, will better distinguish the
−1/2
Mellin transform. Let’s find the Mellin transform of h(x) = 1 + x2
196 5 Integral Transforms
∞
xs−1
H (s) = dx √
1 + x2
0
π/2
tans−1 θ
= d θ sec2 θ
sec θ
0
π/2
= d θ sins−1 θ cos−s θ
0
π/2
= d θ cos θ sins−1 θ cos−s−1 θ
0
π/2
−(s+1)/2
= d θ cos θ sins−1 θ 1 − sin2 θ
0
1
−(s+1)/2
= du us−1 1 − u2
0
1
1
= dv v−1/2 v(s−1)/2 (1 − v)−(s+1)/2
2
0
1
1
dv v 2 −1 (1 − v)− 2 −1
s s−1
= (5.239)
2
0
2 −1/2 1 s! 1−s
h(x) = 1 + x =⇒ H (s) = √ (5.240)
2 π 2 2
The presence of functions should not surprise us as the Mellin transform def-
inition lends itself to generating functions, but the sheer amount of algebraic
manipulation in this example is a bit surprising. It should also be suspicious that we
will see this example again, as it is so specific.
On that note, let’s do another: find the Mellin transform of h(x) = log (1 + x).
∞
dx xs−1 log (1 + x) (5.241)
0
5.3 Two-Sided Laplace and Mellin Transforms 197
This one is a surprisingly tricky but elegant integral to evaluate in the complex
plane. Of course we have the tools to do the evaluation but as we will see the contour
integral will have two branch points and we must treat each separately.
So we consider the contour integral
dz z s−1 log (1 + z) (5.242)
C
Note here that in this case we do not need the extra factor of log because the factor
z s−1 provides the multivaluedness we can exploit about z = 0. We also have to reckon
with the branch point at z = −1 because of the log (1 + z) factor. Accordingly, the
contour C is as in Fig. 5.11.
It should be clear that the Mellin transform converges when Re s ∈ (−1, 0); this
is what the analysis of γ2 , γ4 , γ6 , and γ8 in the limits of R → ∞ and R → 0 would
tell us. Accordingly, we will only need to consider the integrals along γ1 , γ3 , γ5 , and
γ7 in those limits.
∞
dz z s−1
log (1 + z) = dx xs−1 log (1 + x) (5.243)
γ1 0
1
dz z s−1 log (1 + z) = eiπ(s+1) dx xs−1 log (x − 1) + iπ (5.244)
γ3 ∞
∞
−iπ(s+1)
dz z s−1
log (1 + z) = e dx xs−1 log (x − 1) − iπ (5.245)
γ5 1
198 5 Integral Transforms
0
dz z s−1
log (1 + z) = e i2πs
dx xs−1 log (1 + x) (5.246)
γ7 ∞
Let’s pause here and note that there is a branch cut for x > 0 for the term
xs−1 , while there is a branch cut along x < −1 for the term log (x + 1). More-
over, it is important to note that we applied these branch cuts separately. For
example, Arg z s−1 ∈ [0, 2π ), so that at the branch cut for the log (1 + z) term,
Arg z s−1 = π . Moreover, Arg [log (1 + z)] ∈ (−π, π ], so that at the branch cut for
z s−1 , Arg [log (1 + z)] = 0.
We combine the above integrals and find that the contour integral is equal to the
following.
∞ ∞
dz z s−1
log (1 + z) = 1 − ei2πs dx x s−1
log (1 + x) + i2π e iπs
dx xs−1
C
0 1
(5.247)
As is usually the case, the integral that we end up evaluating is far simpler than the
integral we seek. We apply Cauchy’s Theorem and after sifting through the algebra,
the result is as follows.
∞
π
dx xs−1 log (1 + x) = (5.248)
s sin π s
0
OK, one more Mellin transform: h(x) = log2 (1 + x). For this, we may use the
same contour we used previously in Fig. 5.11. Again, the Mellin transform converges
when Re s ∈ (−2, 0) and we need only deal with the contributions of the integrals
along γ1 , γ3 , γ5 , and γ7 in the limits R → ∞ and R → 0.
∞
dz z s−1
log (1 + z) =
2
dx xs−1 log2 (1 + x) (5.249)
γ1 0
1
2
dz z s−1
log (1 + z) = e
2 iπ(s+1)
dx xs−1 log (x − 1) + iπ (5.250)
γ3 ∞
∞
−iπ(s+1)
2
dz z s−1
log (1 + z) = e
2
dx xs−1 log (x − 1) − iπ (5.251)
γ5 1
5.3 Two-Sided Laplace and Mellin Transforms 199
0
dz z s−1
log (1 + z) = e
2 i2πs
dx xs−1 log2 (1 + x) (5.252)
γ7 ∞
This time, we will have to deal with a log term in the integrand in the integral we
evaluate:
∞
dz z s−1 log2 (1 + z) = i4π eiπs dx xs−1 log (x − 1)
γ3 +γ5 1
1
= i4π e iπs
dx x−(1+s) log (1 − x) − log x (5.253)
0
Now,
1 ∞
1
−(1+s) 1
dx x log (1 − x) = − dx xk−1−s
k
0 k=1 0
∞
1
=
k(s − k)
k=1
∞
1 1 1
= −
s k k −s
k=1
1
= (ψ(1 − s) + γ ) (5.254)
s
where
1 d (z)
ψ(z) = (5.255)
(z) dz
1
1
dx x−(1+s) log x = − (5.256)
s2
0
1
ψ(1 − s) = ψ(−s) − (5.257)
s
Putting this altogether and applying Cauchy’s Theorem, we get
200 5 Integral Transforms
∞
2π (ψ(−s) + γ )
dx xs−1 log2 (1 + x) = − (5.258)
s sin π s
0
Finally, let’s compute an inverse Mellin transform to see what that looks like: let’s
reverse the Mellin transform of log (1 + x) and compute
τ0+i∞
1 π
ds x−s (5.259)
i2π s sin π s
τ0 −i∞
To compute this integral, we set τ0 ∈ (−1, 0) and close the contour to the right. The
integral is then equal to the negative sum of the residues of the poles at z = 0, 1, 2, . . ..
The residue at z = 0 is π
− Res x−z = log x (5.260)
z=0 z sin π z
Then we have
τ0+i∞
1 π 1
ds x−s = log x + log 1 + = log (1 + x) (5.262)
i2π s sin π s x
τ0 −i∞
as expected.
Convolution, or San Andreas’s Faltung
Like the Fourier and Laplace transforms, the Mellin transform satisfies a convolution
relation. Before we determine what that is, let’s derive an expression for the delta
function.
τ0+i∞ τ0+i∞ ∞
1 −s 1 −s
g(x) = ds x G(s) = ds x dy ys−1 g(y)
i2π i2π
τ0 −i∞ τ0 −i∞ 0
∞ τ0+i∞
1
= dy g(y) ds ys−1 x−s (5.263)
i2π
0 τ0 −i∞
5.3 Two-Sided Laplace and Mellin Transforms 201
0
∞ ∞ τ0+i∞
s−1 1
= dx f (x ) dx h(x )x ds xs −1 x−s
i2π
0 0 τ0 −i∞
∞ ∞
= dx f (x ) dx h(x )xs−1 δ(x − x )
0 0
∞
= dx f (x )h(x )xs−1 (5.265)
0
τ0+i∞ ∞
1
ds F(s )H (s − s ) = dx f (x)h(x)xs−1 (5.266)
i2π
τ0 −i∞ 0
τ0+i∞ ∞
1
ds F(s)H (1 − s) = dx f (x)h(x) (5.267)
i2π
τ0 −i∞ 0
Problems
5.1 Find the Maclurin series expansions for the following functions, using the
convolution series.
(a)
f (z) = log2 (1 − z)
(b)
log (1 − z)
f (z) =
1−z
(a)
f (x) = xn e−x /2
2
(b)
x − sin x
f (x) =
x3
(c)
−(1+ν)/2
f (x) = 1 + x2
(d)
1
f (x) =
2 − 2x − x2
5.5 Determine the convolution of f and g for the following, both directly and using
the Convolution Theorem.
(a)
a 1 1
g(x) = √ e−x /b
2 2
f (x) =
π a2 + x2 b π
5.3 Two-Sided Laplace and Mellin Transforms 203
(b) ⎧ ⎧
⎪
⎨T + t t ∈ [−T , 0] ⎪
⎨T + t t ∈ [−T , 0]
f (t) = T − t t ∈ [0, T ] g(t) = T − t t ∈ [0, T ]
⎪
⎩ ⎪
⎩
0 t∈/ [−T , T ] 0 t∈/ [−T , T ]
5.6 (a) Derive Eq. (5.87) directly via the Residue Theorem.
(b) Derive Eq. (5.87) by finding the Fourier transform of
sin (x + iy)
f (x) =
x + iy
5.7 In computing the error function of complex argument, we considered the path
that runs from 0 to x along the real axis, then from x to z = x + iy parallel to the
imaginary axis. This time, perform a similar computation of the error function using
another path that runs from 0 to iy along the imaginary axis, then from iy to x + iy
parallel to the imaginary axis.
ẍ + 2aẋ + a2 x = sin ωt
ẋ(0) = x(0) = 0
5.9 Solve the heat equation as described in the text, but with α(t) = cos ωt in Eq.
(5.158). This is a difficult but rewarding computation. You are better off working in
the Laplace transform domain than using the direct convolution result.
∂ 2 u 1 ∂u ∂u
+ =
∂r 2 r ∂r ∂t
u(1, t) = 1
lim u(r, t) = 0
r→∞
u(r, 0) = 0 r > 1
The answer should be qualitatively similar to the erfc solution we derived in the
text.
204 5 Integral Transforms
(a)
1
dt [t(1 − t)]−1/2 e−a /t e−b /(1−t)
2 2
(b)
1
dt t −3/2 (1 − t)−1/2 e−a /t e−b /(1−t)
2 2
(c)
1
dt log t log (1 − t)
0
√
5.12 Derive the inverse Laplace transform of s−3/2 e− s
directly without reference
to the stretched exponential we derived.
(b) For b ∈ R √
F(s) = s−3/2 e− s(s+b)
5.14 Verify the Mellin transform result in Eq. (5.258) using the Mellin Convolution
Theorem.
∞ ∞ ∞
1
dx f (x)g(x)h(x) = dk F(k) dk G(k )H (k + k ) (5.268)
4π 2
−∞ −∞ −∞
Chapter 6
Asymptotic Methods
Abstract In this final chapter, we will review methods for analyzing the behav-
ior of functions defined by integrals in various neighborhoods, e.g., infinity. We
will review some asymptotic expansions and provide their meaning through log-log
plots. Methods of generating asymptotic expansions including integration by parts,
Watson’s Lemma, and Laplace’s Method will be reviewed. This is all preparation
for the presentation of Bleistein and Handelsman’s h-transform, which generalizes
Laplace’s Method for any nonmonotonic kernel and makes good use of the Mellin
transforms we discussed in Chap. 5. We will apply this h-transform in the service of
one of the key topics in this book: the evaluation of difficult integrals using complex
integration. Finally, we will present the Euler-Maclurin sum formula which provides
an asymptotic relation between the integral and sum of a function. This will provide
new perspectives on some of the results we derived in Chap. 3. More importantly, we
will see that judicious use of these approximate methods are needed occasionally in
derivations of exact results of integrals and sums.
We have been using asymptotic expansions throughout this text, so what we will
say here is more or less a review and possibly a slight formalization. There are far
more comprehensive treatments in the literature and some of them will be listed in
the bibliography. Our interest in the subject here is to provide the language we will
need to study the h-transform and in so doing, we will be able to attack real integrals
using complex integration in an unexpected way.
Expansion and the log-log plot
Rather than go into the formalism, let’s take a simple example. One of the basic and
most magical relations we are taught in Calculus is the following limit.
1 x
lim 1+ =e (6.1)
x→∞ x
© The Author(s), under exclusive license to Springer Nature Switzerland AG 2023 205
R. Gordon, Complex Integration, Undergraduate Lecture Notes in Physics,
https://doi.org/10.1007/978-3-031-24228-1_6
206 6 Asymptotic Methods
example, how big must x0 be so that the difference is 10−3 ? 10−7 ? 10−16 ?. We
answer the question by forming an asymptotic expansion of the function of which
we are taking a limit. x
For example, for sufficiently large x, what is a good estimate of 1 + x1 − e?
x
We can expand 1 + x1 by expressing it as an exponential.
x
1
= e x log (1+ x )
1
1+ (6.2)
x
Accordingly, we have
1 x
= ee− 2x e 3x 2 e− 4x 3 . . .
1 1 1
1+ (6.4)
x
We may now Taylor expand each of the exponentials and group like terms.
1 x 1 1 1 1 1 1
1+ = e 1− + + . . . 1 + + + . . . ...
x 2x 2! (2x)2 3x 2 2! (3x 2 )2
1 11
= e 1− + − . . . (6.5)
2x 24x 2
The ellipses may be replaced with a more precise notation. All along, we have been
using the ellipses to denote higher orders that we are not considering and have no
impact on our analysis. In Eq. (6.5), we may instead use something called the big O:
x
1 e 11e 1
1+ =e− + +O (6.6)
x 2x 24x 2 x3
We write this even though we know what the next term is. We may now answer the
question, how does the difference between the function and the limit behave?
6.1 Asymptotic Expansions 207
x
1 + 1 − e = e + O 1 (6.8)
x 2x x2
The result is represented in the plot in Fig. 6.1. The scale is log-log so we can see the
behavior of the error term. The abscissa is log10 (x) and the ordinate is the log base-10
of the difference between function and limit. The solid curve is the exact difference
on the LHS of Eq. (6.8), while the dashed line is the asymptotic approximation on
the RHS of Eq. (6.8).
Note that the slope of the curves for sufficiently large x is -1 as predicted by the
expansion we did leading up to Eq. (6.8), which implies a behavior of x −1 in this
limit. The log-log plot is a crucial tool of asymptotic analysis in that it provides
no-doubt verification that we got the behavior we seek correct.
Note that we have done enough analysis to also answer the question, how does
the difference between the above difference and the error term behave? That is, did
we get the following correct?
x
1 + 1 − e + e = 11e + O 1 (6.9)
x 2x 24x 2 x3
This is verified in the log-log plot in Fig. 6.2, where the slope of the line is now −2.
We can keep repeating this ad infinitum, one term at a time, and in doing so we
will generate an asymptotic series of terms such that
1 x an a N
N −1
1
1+ − = +O (6.10)
x xn x N x N +1
n=0
It turns out that the series on the LHS converges. This is not always the case for
asymptotic series.
For example, consider the behavior of following integral as x → ∞.
208 6 Asymptotic Methods
∞
e−t
f (x) = dt (6.11)
x +t
0
∞
n!
f (x) = (−1)n n+1 (6.12)
n=0
x
n!
lim √ =1 (6.13)
n→∞ 2π nn n e−n
so that the radius of convergence of the above series, the Steltjes series, is zero.
How on earth could the Steltjes series possibly serve as an asymptotic series for
the integral in Eq. (6.11)? Despite there being a divergent series, the sum serves
as an asymptotic approximation all the same. This is shown in Fig. 6.3, where the
following is illustrated.
∞
−t
6 24
dt e −
1
+
1
−
2
+ = + O
1
(6.14)
+ 2 3 4 5 6
x t x x x x x x
0
Watson’s Lemma
We have assumed that asymptotic series take a particular form, such as
N −1
an 1
f (x) = n
+O N
(6.15)
n=0
x x
6.1 Asymptotic Expansions 209
However, we will find that even in the most familiar of situations, asymptotic series
can take on other forms, such as those with branch
√ points. Consider the problem of
finding the Laplace transform of f (t) = sin t.
∞ ∞
−st
√
du u e−su sin u
2
dt e sin t =2 (6.16)
0 0
The integral may be evaluated via Cauchy’s theorem by considering the contour
integral
dz z e−sz
2
where C is the rectangle having vertices ±R ± i/(2s), and the integral traverses C
in a positive sense. Because the integral is zero, we may then show that, when we
take the limit R → ∞, we get
⎡ ∞ ⎤
∞
1 1/(4 s)
Re ⎣ d x e−s (x− 2s ) ⎦
i 2
du u e−su
2
2 sin u = e (6.17)
s
0 −∞
which may be evaluated via Cauchy’s theorem, again, this time on the integral
dz e−sz = 0
2
C
where C is the rectangle having vertices ±R and ±R − i/(2s). By taking the limit
as R → ∞, we find that
210 6 Asymptotic Methods
⎡ ⎤
∞ ∞
−s ( )⎦=
2 π
Re ⎣ dx e x− 2is
dx e −sx 2
= (6.18)
s
−∞ −∞
Accordingly,
∞
√ 1 √ −3/2 −1/(4 s)
dt e−st sin t= πs e (6.19)
2
0
∞ ∞
√ 1 √ −3/2 (−1)n 1
dt e−st sin t= πs (6.20)
2 n=0
22n n! s n
0
That is, the nth term in the asymptotic series in Eq. (6.20) is s −(n+3/2 rather than s −n .
Interestingly, it turns out that we can derive the asymptotic series in Eq. (6.20) by
Taylor expanding the sine term in the integrand of the Laplace transform.
∞ ∞ ∞
−st
√ √ (−1)n t n
dt e sin t= dt e−st t
n=0
(2n + 1)!
0 0
∞ ∞
(−1)n
= dt e−st t n+1/2
n=0
(2n + 1)!
0
∞
∞
(−1)n 1
= du e−u u n+1/2
n=0
(2n + 1)! s n+3/2
0
∞
(−1) n + 2
n 3
1
= (6.21)
n=0
(2n + 1)! s n+3/2
To evaluate n + 23 , we use the Legendre duplication formula:
1 1
(2z) = √ 22z−1 (z) z + (6.22)
π 2
Theorem 1 Assume the function f (t) has the following asymptotic behavior in a
neighborhood [0, ] near t = 0:
N −1
α
f (t) = t an t βn + O t α+β N
n=0
where α, β ∈ R. Then
∞ N −1
(α + βn + 1) 1
dt f (t)e−st = an +O
n=0
s α+βn+1 s α+β N +1
0
∞ ∞
(α + βn + 1)
dt f (t)e−st = an (6.23)
n=0
s α+βn+1
0
√
For f (t) = sin t, an = (−1)n /(2n + 1)!, α = 1/2, and β = 1.
As another example, let’s look at a result we derived earlier.
√
1 I 1
t 2−1
π 1 2
d x sin x(1 − x) e−t x = e−t/2 √ (6.24)
2 t2 − 1
0
For the LHS, we consider the behavior in a small neighborhood [0, ] near x = 0.
We may Taylor expand the sine term in this neighborhood:
1 1 1
√ sin x(1 − x) = (1 − x)1/2 − x(1 − x)3/2 + x 2 (1 − x)5/2 + O(x 3 )
x 3! 5!
2 2 2
= 1 − x + x + O(x 3 ) (6.25)
3 15
We then note that we may move the upper limit of integration back to x = , and then
out to ∞, with exponentially small errors. Accordingly, the asymptotic behavior of
the integral on the LHS of Eq. (6.24) is, by Watson’s lemma,
1
3 2 25 2 27 1
d x sin x(1 − x) e−t x = 3/22 − + + O
t 3 t 5/2 15 t 7/2 t 9/2
0
1 √ −3/2 1 1 1
= πt 1− + 2 +O 3 (6.26)
2 t 2t t
212 6 Asymptotic Methods
We then would like to show that this expansion is equal to an expansion of the
RHS
of Eq. (6.24) as t → ∞. This is messy to put it mildly. To do this out to O t −7/2 ,
we need to do careful bookkeeping. We also note that, as z → ∞,
ez 3 15 1
I1 (z) = √ 1− − +O 3 (6.27)
2π z 8z 128z 2 z
√
where in this case z = 21 t 2 − 1. Rest assured that if the expansion is done consis-
tently, we indeed reproduce the result on the RHS of Eq. (6.26); this is left as an
exercise. This is verified numerically in Fig. 6.4, where the slope of the dashed line
(and hence the error curve) is indeed − 9/2.
Laplace’s Method
How does one derive the expression in Eq. (6.27), that we used to verify the asymp-
totics in Eq. (6.26)? Well, that modified Bessel function may be defined using an
integral representation.
π
1
I1 (z) = dθ cos θ e z cos θ (6.28)
2π
−π
Clearly, this is not a Laplace integral so at first it is not clear what this integral
representation gets us. But we are interested in z being arbitrarily large, and it is
interesting to see what happens to the exponential term as z increases. This is shown
in Fig. 6.5. Note that for sufficiently large z, the exponential is concentrated in a
small interval [−, ] about θ = 0.
In Laplace’s method, we obtain the leading behavior of the integral in Eq. (6.28)
at the maximum of the exponential term, i.e., at θ = 0. For the cos θ term outside
of the exponential—the “amplitude” term—we replace that term with its value at
the maximum, i.e., θ = 0. For the exponential term, however, we replace the cos θ
6.1 Asymptotic Expansions 213
argument with its quadratic Taylor expansion, i.e., cos θ = cos 0 − 21 θ 2 + O θ 4 .
Accordingly, the leading behavior of the integral is
1 2
dθ 1 + O θ 2 e− 2 zθ +O (zθ )
4
I1 (z) = e z
(6.29)
−
Here we have defined such that z 2 ∼ 1. As with the Laplace integral in Watson’s
Lemma, we may take → ∞ with exponentially small error. Accordingly, we can
then state that, as z → ∞,
ez 1
I1 (z) = √ 1+O (6.30)
2π z z
This is not as precise as the result we used in Eq. (6.27). But we can keep going and
get additional terms. For example, we can include the next order in each the exponent
and the amplitude terms, as follows:
ez 1 2 4 − 1 zθ 2 + 1 zθ 4 +O (zθ 6 )
I1 (z) = dθ 1 − θ + O θ e 2 24 (6.31)
2π 2
−
The second term in the exponent is about 1
24
z 4 = O 2 , which is sufficiently small
to be Taylor expanded:
ez 1 2 4 − 1 zθ 2 1 4 6
I1 (z) = dθ 1− θ +O θ e 2 1 + zθ + O zθ (6.32)
2π 2 24
−
214 6 Asymptotic Methods
and
∞ √
2 − 21 zθ 2 3 2π
dθ θ e = 5/2 (6.34)
z
−∞
We can keep adding terms by expanding each of the amplitude and the exponent
terms into additional terms. The next term for the Bessel is left as an exercise for the
reader.
The next example illustrates how Laplace’s method may be used in integrals that
are not quite in the form of an explicit exponential. For large n, find the asymptotic
behavior of the following sequence of integrals.
π/4
In = d x tann x (6.36)
0
π/4
d x en log tan ( 4 −x )
π
In =
0
π/4
d x en log ( 1+tan x )
1−tan x
= (6.37)
0
Now,
1 − tan x 4
log = −2x − x 3 + O x 4 (6.38)
1 + tan x 3
6.1 Asymptotic Expansions 215
so that with exponentially small error, for sufficiently small , i.e., n ∼ 1, we have
4
In = d x e−2nx 1 − nx 3 + O x 4 (6.39)
3
0
Note that n 3 ∼ 2 , so we were able to Taylor expand the exponential of that argu-
ment. Again, with exponentially small error, we may set → ∞, and we find that
upon evaluating the integrals,
∞ ∞
4 −2nx 1
In = d x e − n d x x 3 e−2nx + O
3 n4
0 0
1 1 1
= − 3 +O (6.40)
2n 2n n4
This result is verified in Fig. 6.6; note that the error has slope −5.
For a final example, let’s look at what appears to be a doozy but is pretty par for
the course here.
∞
erf t M
J (M) = dt t sin (st) (6.41)
t
0
and ask for the behavior of the integral in the limit as M → ∞. Here we will limit
ourselves to the leading behavior and leave the next order to the exercises. We rewrite
the integral as
∞
J (M) = dt t sin (st)e M log ( t )
erf t
(6.42)
0
216 6 Asymptotic Methods
To analyze this integral using Laplace’s method, we Taylor expand to second order
the exponential term about the maximum at t = 0 and to first order the amplitude
term. The leading behavior of the integral is then
M
2
dt t 2 e− 3 Mt +O(t 4 )
1 2
J (M) = s √ (6.43)
π
0
We may then take → ∞ with exponentially small error and get the following result.
M−1 −3/2
1 2 M −5/2
J (M) = s √ +O M (6.44)
2 π 3
−(M−1)
The log-log plot of 2J (M) √2π for s = 1 is shown in Fig. 6.7, which
demonstrates a slope of −5/2 of the error as expected.
Laplace’s method is a fairly straightforward way to obtain the leading asymp-
totic behavior of an integral, and it is not much harder in principle to get subsequent
orders of the behavior although in practice sometimes the bookkeeping can get a little
hairy. Laplace’s method also covers a wide range of integrals exhibiting exponen-
tial behavior in the asymptotic parameter. Nevertheless, there are a lot of integrals,
including many with which we have an interest, that do not exhibit such behavior in
the asymptotic parameter. Fortunately, we have a way to deal with those, and that
way is chock full of delightful surprises.
6.2 The Monotonic h-Transform and a New Complex Integration Technique 217
∞
e−t
f (x) = dt (6.45)
1 + xt
0
∞
H [ f ; λ] = dt f (t)h(λt) (6.46)
0
where the function f and kernel h have respective Mellin transforms F and H . We
may then apply the Mellin Parseval equality:
∞ τ0+i∞
1
dt f (t)h(t) = ds F(1 − s)H (s) (6.47)
i2π
0 τ0 −i∞
This is not the h-transform; we need to rescale the argument of the kernel h. It is
then straightforward to show that the h-transform satisfies
∞ τ0+i∞
1
dt f (t)h(λt) = ds λ−s F(1 − s)H (s) (6.48)
i2π
0 τ0 −i∞
1 The discussion in this subsection relies on the work of N. Bleistein and R. Handelsman, “Asymp-
totic Expansions of Integrals,” Sect. 4.4, New York: Dover Publications, Inc. (1986). The author is
indebted to Dover Books, Inc. for permission to use this material herein.
218 6 Asymptotic Methods
Equation (6.48) defines our approach to obtaining the asymptotic behavior of the
h-transform as λ → ∞.
For this to make any sense, we need to assume that F is analytic in the strip
Re z ∈ (α, β) and that H is analytic in the strip Re z ∈ (γ , δ). Moreover, the line of
integration at Re z = τ0 lies in the strip common to both H (z) and F(1 − z); that is,
it is assumed that these strips have an overlap strip.
The following is not a rigorous derivation of the asymptotic results we will be
using. For a more rigorous analysis, we refer to the Bleistein and Handelsman refer-
ence.
Let G(z) = F(1 − z)H (z), and suppose G is defined in the right half-plane
Re z > τ0 as a meromorphic function (i.e., analytic with a finite number of iso-
lated poles). Also, we assume that the behavior of G is such that we may displace the
line of integration to the right to Re z = R. We may then form a rectangular contour
of integration between Re z = τ0 and Re z = R. By the Residue Theorem, we may
then conclude that
∞
R+i∞
−z 1
dt f (t)h(λt) = − Res λ F(1 − z)H (z) + ds λ−s F(1 − s)H (s)
τ0 <Re z<R i2π
0 R−i∞
(6.49)
The negative residue is used because the rectangular contour is traversed clock-
wise. Moreover, we assume that no poles lies on the line of integration at Re z = R.
We look to estimate the integral on the RHS of Eq. (6.49). Note that we may write
R+i∞ ∞
1 −s 1
ds λ F(1 − s)H (s) = dy λ−R−i y G(R + i y) (6.50)
i2π 2π
R−i∞ −∞
which, as λ → ∞ is O λ−R . We may then conclude the following.
∞
dt f (t)h(λt) = − Res λ−z F(1 − z)H (z) + O λ−R (6.51)
τ0 <Re z<R
0
This derivation is not rigorous at all and leaves a lot of questions, most of which
surround the analyticity of G within the common strip Max (α, 1 − δ) < Re z <
Max (β, 1 − γ ). For example, which poles of G will determine the asymptotic behav-
ior of the h-transform of f ? As is the case throughout this book, we will attempt to
answer these questions through an example.
Before we work the example, however, we should ask the obvious question: does
the h-transform technique reproduce, say, Watson’s Lemma? Recall that we desired
the behavior of the integral
6.2 The Monotonic h-Transform and a New Complex Integration Technique 219
∞
dt f (t)e−xt (6.52)
0
where
N −1
f (t) = an t α+βn + O t α+β N (6.53)
n=0
τ0+i∞ N −1
1 (α + βn + 1)
dz x −z F(1 − z)H (z) = an (6.54)
i2π n=0
x α+βn+1
τ0 −i∞
as in Watson’s Lemma.
Now let’s work through an example: the Steltjies integral in Eq. (6.45). In this
case, we have f (t) = e−t so that F(z) = (z). We also have h(t) = 1/(1 + t), which
means that
∞
t z−1 π
H (z) = dt = (6.55)
1+t sin (π z)
0
This may be found by forming a simple contour integral and using the Residue
Theorem, which should be second nature to us at this point. We must then determine
the leading behavior of
π
− Res x −z (1 − z) (6.56)
τ0 <Re z j <R
z=z j sin (π z)
The question is, which poles z j ? For this, we must consider the regions of analyticity
of the Mellin transforms. For f , F(z) is analytic when Re z > 0, or F(1 − z) is
analytic when Re z < 1. For h, H (z) is analytic when 0 < Re z < 1. This the product
G(z) = F(1 − z)H (z) is analytic when 0 < Re z < 1. Nevertheless, even though
0 < τ0 < 1, we may analytically continue G to the right half-plane Re z > τ0 . Thus,
we may consider poles in this half-plane.
G has poles at the positive integers, and the poles are double poles. Because of
the x −z term, the poles form a decreasing sequence. Accordingly, we consider the
pole at z = 1 first. We note that
(−1)n−1 1
(1 − n + ) = + Hn−1 − γ + O() (6.57)
(n − 1)!
220 6 Asymptotic Methods
where Hn is the nth harmonic number and γ ≈ 0.577 is the Euler-Mascheroni con-
stant. Also,
π (−1)n
= + O() (6.58)
sin π(n + )
So at z = 1,
−(1+) 1 1 1 log x
G(1 + )x = −γ − −
x x
1 log x − γ 1
=− 2 − + O(1) (6.59)
x
so that
log x − γ
− Res G(z)x −z = (6.60)
z=1 x
log x − (1 − γ )
− Res G(z)x −z = (6.61)
z=2 x2
∞
e−t log x − γ log x
dt = +O (6.62)
1 + xt x x2
0
A comparison between the LHS (solid) and RHS (dashed) of Eq. (6.62) is shown
in Fig. 6.8.
1
log2 x
I = dx √ (6.63)
x − x2
0
We previously did out a similar integral, with just a log x in the numerator of the
integrand. But the integrals resulting from the complex integration were simple and
required nothing new. In this case, however, we will be faced with a daunting chal-
lenge: an integral we cannot compute exactly as part of the analysis to compute an
integral we want. This is where the analysis we just did will benefit us greatly.
We begin by forming the following contour integral.
log2 z
dz √ (6.64)
z(z − 1)
C
0 1
log2 z (log x + iπ )2 log2 x
dz √ = eiπ dx √ √ + dx √ √
z(z − 1) eiπ/2 xeiπ/2 x + 1 xeiπ/2 1 − x
C R 0
0 R
log2 x (log x − iπ )2
+ dx √ √ + e−iπ dx √ √
xe−iπ/2 1 − x e−iπ/2 xe−iπ/2 x + 1
1 0
π
(log R + iθ )2
+ iR dθ eiθ √ √
Reiθ Reiθ − 1
−π
R 1
log x log2 x
= −i4π dx √ − i2 dx √
x(1 + x) x − x2
0 0
π −1/2
2 1
+i dθ log R + i2θ log R − θ 2
1− (6.65)
Reiθ
−π
This is remarkable because we don’t really know how to evaluate the integral on
the RHS exactly. On the surface, it is fair to ask what we have gained by using
complex integration to evaluate the integral on the LHS. (Those who are adept at
real evaluations may point out that the integral is essentially a second derivative of a
beta function.) But we have a new tool to deal with the integral on the RHS, so we
won’t need to evaluate the integral on the RHS exactly to extract the information we
need to evaluate the integral on the LHS exactly. This is as weird and wonderful as
it sounds.
We begin by rescaling the integral on the RHS as follows.
R √ 1 √
1
log x 1 log t
dx √ = 2 R log R dt √ + 4 R dt √
x(1 + x) 1 + Rt 2 1 + Rt 2
0 0 0
(6.67)
The first integral on the RHS of Eq. (6.67) may be computed analytically but we will
estimate the integral asymptotically; the second integral will need to be estimated
asymptotically. Consider the first integral
6.2 The Monotonic h-Transform and a New Complex Integration Technique 223
1
1
I1 (R) = dt √ (6.68)
1 + Rt 2
0
The residue calculation is a bit hairy due to the double pole with the function, but
we have seen this to some extent in the previous example. We leave the details for
the exercises; the asymptotic behavior of the first integral is
log R log 2 log R
I1 (R) = √ + √ + O (6.71)
2 R R R 3/2
The second integral on the RHS of Eq. (6.67) is not analytically computable so
we must estimate the integral asymptotically. Consider the second integral
1
log t
I2 (R) = dt √ (6.72)
1 + Rt 2
0
we analytically continue G(z) = F(1 − z)H (z) to the right half-plane Re z > 0. We
accordingly consider poles of G at z = 1, z = 3, . . ., but we will only need to deal
with the pole at z = 1 here as the others are subdominant.
We then seek z
−z/2
1−z 2
Res R √2 (6.73)
z=1 2 π(1 − z)2
224 6 Asymptotic Methods
We again leave the residue calculation for the exercises; in this case, we expand
the functions out to an additional order. The asymptotic behavior of the second
integral is
log2 R log 2 log R π 2 + 6 log2 2 log2 R
I2 (R) = − √ − √ − √ +O (6.74)
8 R 2 R 12 R R 3/2
1
log2 x
dx √
x(1 − x)
0
⎛ ⎞
R
log x π 3
= lim ⎝−2π d x √ + π log2 R − ⎠
R→∞ x(1 + x) 3
0
⎛ ⎡ ⎤
√ 1 √
1
dt log t
= lim ⎝−2π ⎣2 R log R √ + 4 R dt √ ⎦
R→∞ 1 + Rt 2 1 + Rt 2
0 0
3
π
+ π log2 R −
3
√ log R log 2
= lim −2π 2 R log R √ + √
R→∞ 2 R R
√ log2 R log 2 log R π 2 + 6 log2 2 π3
+4 R − √ − √ − √ + π log2 R −
8 R 2 R 12 R 3
= lim −2π log R − 4π log 2 log R + π log R + 4π log 2 log R
2 2
R→∞
2π 3 + 12π log2 2 π3
+ + π log2 R −
3 3
(6.75)
Note that all terms depending on R cancel, and we finally have
1
log2 x π3
dx √ = + 4π log2 2 (6.76)
x(1 − x) 3
0
Let’s take stock. Contour integration is not pursued as an option to evaluate the
integral in Eq. (6.63) because the integrals of the contour integral along either side of
the branch cut do not cancel and must be evaluated. Nevertheless, it turns out that these
6.2 The Monotonic h-Transform and a New Complex Integration Technique 225
integrals can be evaluated asymptotically using the analysis we have developed for
monotonic kernels. This analysis provides the cancellations of the divergences from
the integral over the large circle as well as the next-order behavior that contributes
to the result for the integral. The result is a new methodology for evaluating certain
real integrals—those taken between branch points of an integrand—using complex
integration.
The methodology is as follows.
1. Form the contour integral with the contour as in Fig. 6.9.
2. Form the integrals along each segment, including the integrals along either side
of the branch cut.
3. Combine the integrals along the branch cut to produce the single branch cut
integral.
4. Rescale the branch cut integral to produce rescaled branch cut integrals over
t ∈ [0, 1] that have a kernel h(Rt), where R is the radius of the large circle.
5. Take the Mellin transforms F(1 − z) and H (z) and form G(z) = F(1 − z)H (z).
6. Determine the poles used in the residue calculations of G(z)λ−z , where λ depends
on R.
7. Compute the residues of G(z)λ−z over the poles.
8. The value of the branch cut integral is equal to the negative of the sum of the
residues.
9. The integral we seek is determined in terms of the branch cut integral, the integral
over the large arc, and the residues of any poles of the integrand of the contour
integral.
R
dz log z log (z − 1) = −e
2 iπ
d x (log x + iπ ) (log (x + 1) + iπ )2
C R
0
+ i R dφ eiφ log R eiφ log2 R eiφ − 1
π
R
1−
+ d x log x (log (1 − x) + iπ )2
R
π
+ i R dφ eiφ log 1 + R eiφ log2 R eiφ
−π
R
1−
− d x log x (log (1 − x) − iπ )2
R
π
+ i R dφ eiφ log R eiφ log2 R eiφ − 1
2π
R
−iπ
+e d x (log x − iπ ) (log (x + 1) − iπ )2
R
π
+ iR dθ eiθ log Reiθ log2 Reiθ − 1 (6.79)
−π
We may reduce the above expression by combining like integrals and setting
R → 0.
dz log z log2 (z − 1)
C
R
= d x (log x + iπ ) (log(x + 1) + iπ)2 − (log x − iπ ) (log(x + 1) − iπ )2
0
1
(6.80)
+ d x log x (log(1 − x) + iπ)2 − log x (log(1 − x) − iπ )2
0
π
+iR dθ eiθ log Reiθ log2 Reiθ − 1
−π
6.2 The Monotonic h-Transform and a New Complex Integration Technique 227
These integrals may be simplified so the contour integral takes the following form.
R
dz log z log (z − 1) = i4π
2
d x log x log (x + 1)
C 0
R
+ i2π d x log2 (x + 1) − i2π 3 R
0
1
+ i4π d x log x log (1 − x)
0
π
+ iR dθ eiθ log Reiθ log2 Reiθ − 1 (6.81)
−π
R 1 1
d x log x log (x + 1) = R log R du log (1 + Ru) + R du log u log (1 + Ru)
0 0 0
(6.82)
R 1
d x log (x + 1) = R
2
du log2 (1 + Ru) (6.83)
0 0
There are accordingly three integrals to analyze. We have already computed the
necessary Mellin transforms in the previous chapter, so we can simply list them
here.
We may analytically continue the Mellin transforms to the half plane Re s >
0. Now, note that we need only consider, for the leading asymptotic behavior of
these integrals, the pole at s = 0 and s = 1. (Poles at s = 2 and beyond will have
subdominant behavior—note that it is not trivial that we needed the residue at s = 1.)
Thus, we need to consider three pairs of residues as follows.
π R −s
− Res = log R − 1 (6.84)
s=0 s(1 − s) sin π s
228 6 Asymptotic Methods
π R −s 1
− Res = (log R + 1) (6.85)
s=1 s(1 − s) sin π s R
2π R −s (γ + ψ(−s))
− Res − = log2 R − 2 log R + 2 (6.86)
s=0 s(1 − s) sin π s
2π R −s (γ + ψ(−s)) 1 2
− Res − = log R − 2 (6.87)
s=1 s(1 − s) sin π s R
π R −s
− Res − = − log R + 2 (6.88)
s=0 s(1 − s)2 sin π s
π R −s 1 1 π2
Res − =− log R + log R +
2
+1 (6.89)
s=1 s(1 − s)2 sin π s R 2 6
Now we plug these residues back into Eqs. (6.82) and (6.83) to get the following.
1
i4π R log R du log(1 + Ru)
0
1
+ i4π R du log u log(1 + Ru)
0
1
+ i2π R du log2 (1 + Ru) − i2π 3 R
0
1
= i4π R log R log R − 1 + (log R + 1) (6.90)
R
1 1 π2
+ i4π R − log R + 2 − log2 R + log R + +1
R 2 6
1
+ i2π R log2 R − 2 log R + 2 + log2 R − 2
R
log R
− i2π 3 R + O
R
= i6π R log R − i12π R log R − i2π π 2 − 6 R + i4π log2 R
2
π2 log R
− i4π 2 + +O
6 R
Note that the log R/R comes from the fact that the poles at s = 2 and beyond are
simple and accordingly produce no additional log terms in R. Recall also that these
relations are valid in the limit as R → ∞. As expected, the approximate terms we
6.2 The Monotonic h-Transform and a New Complex Integration Technique 229
are keeping diverge in this limit. This is no problem, because we have more terms to
evaluate that will cancel the diverging terms and leave us with the result we seek.
We now need to evaluate the other integral in this limit as R → ∞.
π
iR dθ eiθ log Reiθ log2 Reiθ − 1
−π
π
2 iθ log R
= iR dθ e log3 Reiθ −
iθ 2
log Re +O
Reiθ R
−π
(6.91)
π
= iR dθ eiθ log3 R + i3θ log2 R − 3θ 2 log R − iθ 3
−π
π
log R
− i2 dθ log2 R + i2θ log R − θ 2 + O
R
−π
The log3 R term in the first integral and the log R term in the second integral vanish.
For the other integrals, we need the following results which are easily derived using,
e.g., integration by parts.
π
dθ θ eiθ = i2π (6.92)
−π
π
dθ θ 2 eiθ = −4π (6.93)
−π
π
dθ θ 3 eiθ = i2π π 2 − 6 (6.94)
−π
With these results, we may then write down the asymptotic expansion of this
integral as R → ∞.
230 6 Asymptotic Methods
π
iR dθ eiθ log Reiθ log2 Reiθ − 1
−π
= (i R)(i3)(i2π ) log2 R
+ (i R)(−3)(−4π ) log R + (i R)(−i)(i2π )(π 2 − 6)
3 (6.95)
2π log R
− i2(2π ) log R + 0 + i2
2
+O
3 R
2
= −i6π R log R + i12π R log R + i2π π − 6 R
2
4π 3 log R
− i4π log R + i
2
+O
3 R
And we are finally ready to write down the expression for the contour integral in
the limit as R → ∞. Note that all terms dependent on R cancel. We should expect
that this happens and the requirement that these terms cancel provides a self-check
on the solution. The result for the contour integral is as follows.
1
π2
dz log z log (z − 1) = i4π
2
d x log x log (1 − x) − i4π 2 − (6.96)
6
C 0
And now we invoke Cauchy’s Theorem: because there are no poles within C, the
contour integral is equal to zero. Accordingly, the value of the integral is as follows.
1
π2
d x log x log (1 − x) = 2 − (6.97)
6
0
Again, while the integral above has been evaluated in the past using real methods,
the evaluation of the integral using complex integration is new. This evaluation with
complex integration has been enabled using the asymptotic techniques discussed in
this section. There will be other examples in the exercises.
So far we have studied methods of analyzing the asymptotic behavior of some inte-
grals (e.g., those with monotonic kernels). Frequently, we also want to analyze the
asymptotic behavior of sums, i.e., with regard to summation limit. For example, we
may wish to study how quickly some sums diverge. In some cases, we may use the
asymptotic behavior of a sum to evaluate the exact value of another sum.
6.3 Euler-Maclurin Summation 231
n+1 n+1
1 1
dx x − n − f (x) = [ f (n) + f (n + 1)] − d x f (x) (6.98)
2 2
n n
We may then sum both sides from (for example) n = M to N − 1 and rearrange to
get the following.
N N N
1 1
f (n) − d x f (x) = [ f (M) + f (N )] + dx x − [x] − f (x)
n=M
2 2
M M
(6.99)
where [x] is the greatest integer less than n. If f is further differentiable p times, a
clever integration by parts scheme produces the following asymptotic series.
N N
1
f (n) − d x f (x) = [ f (M) + f (N )]
n=M
2
M (6.100)
p
B2k (2k−1)
+ f (N ) − f (2k−1) (M) + R p
k=1
(2k)!
where B2k is the (2k)th Bernoulli number and R p is a remainder term. This is the
Euler-Maclurin sum formula.
Alternatively, we may write
N N
1
f (n) − d x f (x) = [ f (N ) − f (M)]
n=M+1
2
M (6.101)
p
B2k (2k−1)
+ f (N ) − f (2k−1) (M) + R p
k=1
(2k)!
It was a particularly simple matter to derive the asymptotic behavior of the sum
from the exact result. How can we derive it without knowing the exact result? Let’s try
Euler-Maclurin: for f (x) = 1/(x 2 + a 2 ), where a → ∞, we have from Eq. (6.100),
232 6 Asymptotic Methods
∞
∞
1 dx 1
= + 2 + R1 (6.103)
n=1
n2 + a2 x 2 + a2 2a
1
where R1 is the remainder term and is subdominant to the other terms. In this case,
we can see that f (x) = −2x/(x 2 + a 2 )2 so that
1
R1 = O (6.104)
a4
∞
dx 1 x ∞ π 1 1
= arctan = − arctan (6.105)
x +a
2 2 a a 1 2a a a
1
We also wish to get the asymptotic behavior of this sum using Euler-Maclurin.
Alternating sums are tricky using Euler-Maclurin. One thing we could do is introduce
a factor of cos (π x) into the integral, but in this case there is an even better way which
maybe we have seen when evaluating special values of the Riemann zeta function:
subtract out twice the even terms and get two non-alternating sums. This works here
as follows.
∞
∞
(−1)n+1 1 1 1
= −2 2 + 2 + ...
n=1
n2 + a2 n=1
n2 + a2 2 + a2 4 + a2
∞
∞
1 1
= − 2
n=1
n +a
2 2
n=1
4n + a 2
2
∞
∞
1 1 1
= − (6.108)
n=1
n2 + a2 2 n=1 n 2 + (a/2)2
6.3 Euler-Maclurin Summation 233
We get two versions of the non-alternating series. To find the asymptotic behavior
as a → ∞, we just plug in what we found in Eq. (6.106) and we find that
∞
(−1)n+1 1 1
= +O (6.109)
n=1
n2 + a2 2a 2 a4
where, again, we found previously using the exact expression. So we have been able
to determine the asymptotic behavior without the exact expression.
Factorial products
An interesting problem that may be treated using Euler-Maclurin is the following:
evaluate the following product for large n.
We can turn this into the evaluation of a sum by taking logs of both sides.
n
n+1
log Pn = log k! = log (k) (6.111)
k=0 k=1
n+1
1
n+1
log (k) = d x log (x) + log (n + 1) − log (1) + R1 (6.112)
k=1
2
0
k+1 1
d x log (x) = d x log (x) + k log k − k (6.113)
k 0
To evaluate the integral over [0, 1] on the RHS, we begin by using Legendre dupli-
cation formula. x x + 1 √
= 21−x π (x) (6.114)
2 2
234 6 Asymptotic Methods
so that
x2 x+1
log (x) = log √ 1−x 2
π2
1 x
= − log π − log 2 + log (6.115)
2 2
x +1
+ log + x log 2
2
Accordingly,
1 1 x 1
1 x +1
d x log (x) = − log (2π ) + d x log + d x log
2 2 2
0 0 0
1/2 1
1
= − log (2π ) + 2 d x log (x) + 2 d x log (x)
2
0 1/2
1
1
= − log (2π ) + 2 d x log (x) (6.116)
2
0
i.e.,
1
1
d x log (x) = log (2π ) (6.117)
2
0
n+1 n
k+1
n(n + 1)
n
n+1
= log(2π ) − + k log k
2 2 k=1
n+1 n(n + 1)
= log(2π ) − + log (11 22 · · · n n )
2 2
n+1 n(n + 1)
= log(2π ) −
2 2
n!n
+ log
(n − 1)!(n − 2)!2 · · · 2n−2 1n−1
n+1 n(n + 1) n−1
= log(2π ) − + n log n! − log k! (6.118)
2 2 k=1
6.3 Euler-Maclurin Summation 235
n
n+1 n(n + 1) 3
2 log k! = log(2π ) − + n log n! + log n! + R1 (6.119)
k=1
2 2 2
From this we can easily deduce the leading asymptotic behavior of the factorial
product we seek. Here, Euler-Maclurin led to an integral that we were able to evaluate
analytically. The result was a little messy but in the end, very satisfying.
An alternating sum of logs
We next seek to evaluate the following sum, exactly.
∞
log2 k
S= (−1)k+1 (6.120)
k=1
k
This is an alternating sum which we will attack in a similar manner as we did for the
alternating sum we attacked earlier in this section. To begin, let’s rewrite the sum as
a limit of a finite sum, i.e., S = limn→∞ Sn , where
2n
log2 k 2n
log2 k n
log2 (2k)
S2n = (−1)k+1 = −2 (6.121)
k=1
k k=1
k k=1
2k
Note that we are using an even index for convenience, i.e., to avoid extra factors of
(−1)n+1 in the second sum on the RHS. We expand the second sum on the RHS and
get the following.
n
log2 (2k)
n
log k
n
log2 k
2 = (log2 2)Hn + 2 log 2 + (6.122)
k=1
2k k=1
k k=1
k
Then
2n
log2 k n
log k
S2n = − (log2 2)Hn − 2 log 2 (6.123)
k=n+1
k k=1
k
We analyze the first sum on the RHS using Euler-Maclurin. In this case, we have the
following.
2n 2n
log2 k log2 x 1 log2 2n log2 n
= dx + − + R1
k=n+1
k x 2 2n n
n
1 3
= log (2n) − log3 (n) + R0
3
1
= log3 2 + log2 2 log n + (log 2) log2 n + R0 (6.124)
3
236 6 Asymptotic Methods
where R0 and R1 consist of terms of vanish as n → ∞. Putting this back into the
equation for S2n , we then have the following.
n
1 log k 1
S2n = log 2 − (log 2)(Hn − log n) − 2 log 2
3 2
− log2 n + R0
3 k=1
k 2
(6.125)
Now we know that
lim (Hn − log n) = γ = γ0 (6.126)
n→∞
The Stieltjes constants are coefficients of the Laurent series of the Riemann zeta
function about s = 1, as follows:
∞
(−1)n
1
ζ (s) = + γn (s − 1)n (6.128)
s − 1 n=0 n!
∞
log2 k 1
(−1)k = γ log2 2 − log3 2 + 2γ1 log 2 (6.129)
k=1
k 3
Going back to the original integral from the Prologue, we are able to manipulate that
integral into the following form that is ripe for the techniques we have discussed in
the book.
∞
(v2 − 1)(v4 − 6v2 + 1)
I =8 dv log v
v8 + 4v6 + 70v4 + 4v2 + 1
0
where C is a keyhole contour about the positive real axis. This contour integral is
equal to
∞
8(v2 − 1)(v4 − 6v2 + 1)
− i4π dv log v
v8 + 4v6 + 70v4 + 4v2 + 1
0
∞
8(v2 − 1)(v4 − 6v2 + 1)
+ 4π 2 dv
0 v8+ 4v6 + 70v4 + 4v2 + 1
It should be noted that the second integral vanishes; this may be easily seen by
exploiting the symmetry about v → 1/v.
On the other hand, the contour integral is i2π times the sum of the residues about
the poles of the integrand. In general, this requires us to find the zeroes of the eight
degree polynomial, which may not be possible analytically. Here, on the other hand,
we have many symmetries to exploit, e.g., if a is a root, then 1/a is a root, −a is a
root, and ā is a root. For example, we may deduce that
© The Editor(s) (if applicable) and The Author(s), under exclusive license to Springer 237
Nature Switzerland AG 2023
R. Gordon, Complex Integration, Undergraduate Lecture Notes in Physics,
https://doi.org/10.1007/978-3-031-24228-1
238 Epilogue
z 8 + 4z 6 + 70z 4 + 4z 2 + 1 = (z 4 + 4z 3 + 10z 2 + 4z + 1)
(z 4 − 4z 3 + 10z 2 − 4z + 1)
Now we have to find the residues of the integrand at these 8 poles. We can break
this task up by computing:
8
8(z 2 − 1)(z 4 − 6z 2 + 1) log2 z
Resz=zk
k=1
z 8 + 4z 6 + 70z 4 + 4z 2 + 1
8
8(z 2 − 1)(z 4 − 6z 2 + 1)
= Resz=zk 8 log2 z k
k=1
z + 4z 6 + 70z 4 + 4z 2 + 1
That is, if the pole has a positive real part, the residue of the fraction is +1; if it has
a negative real part, the residue is −1.
Now consider the log piece. Expanding the square, we get 3 terms:
Summing over the residues, we find that because of the ±1 contributions above, that
the first and third terms sum to zero. This leaves the second term. For this, it is crucial
that we get the arguments right, as arg z k ∈ [0, 2π ). Thus, we have
∞
8(v2 − 1)(v4 − 6v2 + 1)
I = dv log v
v8 + 4v6 + 70v4 + 4v2 + 1
0
1
8
= sgn[cos (arg z k )](arg z k )2
2 k=1
1
= [2(arctan φ)2 + 2(2π − arctan φ)2
2
− 2(π − arctan φ)2 − 2(π + arctan φ)2 ]
= 2π 2 − 4π arctan φ
= 4π arccot φ