Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
z
1
z
0
, n = 1,
_
z
0
z
1
z
1
dz = [log z]
z
1
z
0
, n = 1.
Contour equation addresses the fact that the first of these integrals is indeed right, and as we expect for path-indepen -
dence, goes to zero as we look at a closed path, but the second integral actually does depend on the path of integration:
(5) Use z = r e
i
; log(z) = log(r) + i .
We have two options: the contour (the technical word for the closed path) either encloses the origin where the singular-
ity resides or not:
In[10]:=
c1 = {0.5, 0.5}; c2 = {1., 1.};
GraphicsRow|
{Show|ParametricPlot|{c1 + {Sin|t], Cos|t]}, c2 + {Sin|t], Cos|t]}}, {t, 0, 2 },
PlotStyle - {Hue|0.1], Hue|0.6]}, AspectRatio - 1, DisplayFunction - Identity,
PlotRange - {{-1, 2.5}, {-1, 2.5}}],
Graphics|{Table|pt = c1 + {Sin|t], Cos|t]}; ang = ArcTan pt;
{Hue|0.1], {Line|{{0, 0}, pt}]},
{Text|NumberForm|ang, 3], pt, Background - White]}}, {t, 0, 2 , 2 [ 11}],
Table|pt = c2 + {Sin|t], Cos|t]}; ang = ArcTan pt;
{Hue|0.6], {Line|{{0, 0}, pt}]},
{Text|NumberForm|ang, 3], pt, Background - White]}}, {t, 0, 2 , 2 [ 11}]}],
DisplayFunction - $DisplayFunction],
Plot|{ArcTan (c1 + {Sin|t], Cos|t]}), ArcTan (c2 + {Sin|t], Cos|t]})},
{t, 0, 2 }, PlotStyle - {Hue|0.1], Hue|0.6]}, AxesLabel - {, Arg}]}]
Out[10]=
1.25
0.911
0.576
0.236
0.123
0.531 1.13
2.6
2.51
1.99
1.6
1.25
1.11
0.874
0.638
0.407
0.194
0.0316 0.0563
0.955
1.56
1.51
1.33
1.11
1.0 0.5 0.5 1.0 1.5 2.0 2.5
1.0
0.5
0.5
1.0
1.5
2.0
2.5
1 2 3 4 5 6
3
2
1
1
2
3
Arg
As we move the around the curve, you notice for the blue curve that the phase (the number plotted on the line connect-
ing to the point for which we calculate the phase) gently oscillates up and down, and thus the answer of the contour
integral is zero; for the orange curve we see a jump at the negative x-axis. This is due to a convention used in mathe-
matica; in principle we can put this jump along any half-line in the complex plane ending at the origin.
If we move the value at the right of the jump down by 2 (making the function contnuous) we realise that the begin and
endpoint differ in pahse by 2 .Thus for any contour enclosing the origin the phase changes by 2 , and thus we expect
that
(6)
_
z
1
dz = 2 i
for a contour enclosing the origin. The sign is positive if we integrate around in the positive sense (anti-clockwise),
and negative if we do the integral along a contour that encircles the origin in a clockwise fashion.
If a function f (z) behaves like
1
z-c
near the point c, we say that the function has a pole at
z = c.
2 Contour.nb
3. Residues
We are now ready to make the general statement:
If a function f (z) has a term
R
zc
in its Laurent series around the point c (i.e., it is not analytic in a region around c, but it
has an "isolated singularity" at c), then for any contour that encloses this and only this pole
(7) }
f (z) dz = 2 i R
Here R is called the residue of f at c, and the sign depends on the orientation of the contour around c.
If multiple singularities are enclosed, we find that (all residues contribute with the same sign, since the contour must
enclose them with the same orientation!)
(8)
_
f (z) dz = 2 i _
k
R
k
We can find the residue by expanding f (z) around c; it is often more useful (quicker) to look at the limit
(9)
lim
zc
(z c) f (z) = R.
This works if there are no higher order singularities, i.e. no terms b
2
(z c)
2
, etc. in the Laurent series.
4. Example 1: Simplest case
Contour integration is most commonly used to calculate integrals along the real axis, by turning them into complex
integrals.
Calculate the integral
(10)
_
o
o
1
1 + x
2
dx
We actually know this one: it is [atan (x)]
o
o
= . This is the simplest example of an integral doable by contour integra-
tion. Rewrite as a complex integral
_
o
o
1
1 + z
2
dz
As z o, the integral over the half circle z = R:
i
(R fixed) gives (dz = d|R:
i
] = R:
i
i d )
(11)
_
R
R
1
1 + z
2
dz = R
_
0
1
1 + R
2
:
2 i
d:
i
e
1
R
0.
This means we can close of the integral by adding a contour from o to o along a half circle. We easily see that
z
2
+ 1 = (z + i) (z i), and thus has poles in the upper and lower half plane. Only the one in the upper half plane is
contained inside the contour, which goes around in positive sense.
The residue is
Contour.nb 3
In[11]:=
Residue_
1
z
2
+ 1
, {z, i}_
Out[11]=
i
2
and thus
(12)
_
o
o
1
1 + x
2
dx =
_
o
o
1
1 + z
2
dz =
_
1
1 + z
2
dz =
i
2
2 i =
as we know should be the case.
Note that in order to work, the ratio of denomiator over numerator should be at least
1
R
2
for large radius.
5. Example 2: Complex exponentials
The most common problem is with complex exponentials (or sines and cosines which can be written as such).
Calculate the integral (which falls slowly for large x!)
(13)
_
o
o
:
i k x
i x
dx
We shall analyse this for k > 0.
If we substitute x = z = R:
i
, we find
4 Contour.nb
In[29]:=
ContourPlot_Abs_
z
i (x+i y)
i - (x + i y)
_, {x, -20, 20}, {y, 0, 4}_
Out[29]=
20 10 0 10 20
0
1
2
3
4
The problem can be seen on substitution of z = R:
i
, for R fixed (as a bove)
In[30]:=
Simplify_ComplexExpand_
z
i k x
i - x
[. x - Rz
i
__
Out[30]=
:
k Rsin()
(cos(k Rcos()) + i sin(k Rcos()))
Rcos() i Rsin() + i
For sin() > 0 the integrand goes to zero very quickly with R, but for =0we enter a grey territory, where the integrand
decays like 1 f R. If we move the original integral up by just a little bit () we are OK, since doesnt become zero.
Thus
(14)
_
o
o
:
i k x
i x
dx =
_
o+i
o+i
:
i k z
i z
dz =
_
:
i k z
i z
dz
Contour.nb 5
In[32]:=
Residue_
z
i k z
i - z
, {z, i}_
Out[32]=
:
k
(15)
_
o
o
:
i k x
i x
dx =
_
o+i
o+i
:
i k z
i z
dz =
_
:
i k z
i z
dz = 2 i |:
k
] = 2 i :
k
(k > 0)
In the same way we can show that for k < 0 we must close the contour in the lower plane (since k sin() must be
negative)
(16)
_
o
o
:
i k x
i x
dx =
_
oi
oi
:
i k z
i z
dz =
_
:
i k z
i z
dz = 2 i (0) = 0 (k < 0)
since no pole is enclosed inside the contour.
6. Final case: poles on the real axis
The techniques shown above fail if a pole occurs on the real axis, since we dont know what side of the contour it lies!
The technique to deal with that is usually based on physics:
Determine whether there are physical conditions that must be satisfied on the quantity you wish to evaluate. Decide
whether these imply that a pole should contribute (which means we needd to move the contour just outside this pole) or
whether it should not contribute (contour just on the inside of this pole). There are even cases where the logical choice
is to assign half on the inside and half on the outside. Clearly, the mathematics decides
6 Contour.nb