using Plots, ComplexPhasePortrait, ApproxFun
gr();
Dr. Sheehan Olver
This lecture we cover
Integrals on the real line are always to viewed as improper integrals:
∫∞−∞f(x)dx=∫∞0f(x)dx+∫0−∞f(x)dx=limb→∞∫b0f(x)dx+lima→−∞∫0af(x)dx.Definition (Principal value integral on the real line) The (Cauchy) principal value integral on the real line is defined as ∫−∞−∞f(x)dx:=limM→∞∫M−Mf(x)dx
Proposition (Integability ⇒ Prinipal value integrability) If ∫∞−∞f(x)dx<∞ then ∫−∞−∞f(x)dx=∫∞−∞f(x)dx.
The real line doesn't have an inside and outside, rather an above and below, or left and right. Thus we get the following two versions of the Residue theorem:
Definition (Upper/lower half plane) Denote the upper/lower half plane by H+={z:ℜz>0}H−={z:ℜz<0}
Theorem (Residue theorem on the real line) Suppose f:ˉH+∖{z1,…,zr}→C is holomorphic in H+∖{z1,…,zr}, where ℜzk>0, and limϵ→0f(x+iϵ)=f(x) converges uniformly. If limz→∞zf(z)=0
Examples:
f = x -> x^2/(x^4+1)
phaseplot(-3..3, -2..2, f)
This function has poles in the upper plane, but has sufficient decay that we can apply Residue theorem:
z₁,z₂,z₃,z₄ = exp(im*π/4), exp(3im*π/4), exp(5im*π/4), exp(7im*π/4)
res₁ = z₁^2 / ((z₁ - z₂)*(z₁ - z₃)*(z₁ - z₄) )
res₂ = z₂^2 / ((z₂ - z₁)*(z₂ - z₃)*(z₂ - z₄) )
2π*im*(res₁ + res₂), sum(Fun(f, Line()))
(2.221441469079183 + 3.487868498008632e-16im, 2.221441469084968)
We can also apply Resiude theorem in the lower-half plane, and we get the same result:
res₃ = z₃^2 / ((z₃ - z₁)*(z₃ - z₂)*(z₃ - z₄) )
res₄ = z₄^2 / ((z₄ - z₁)*(z₄ - z₃)*(z₄ - z₂) )
-2π*im*(res₃ + res₄), sum(Fun(f, Line()))
(2.221441469079183 + 5.231802747012948e-16im, 2.221441469084968)
An immediate consequence of the Residue theorem is Cauchy's integral formula on the real line:
Theorem (Cauchy's integral formula on the real line) Suppose f:ˉH+→C is holomorphic in H+, and limϵ→0f(x+iϵ)=f(x) converges uniformly. If limz→∞f(z)=0
Examples Here is a simple example of f(x)=x2(x+i)3, which is analytic in the upper half plane:
f = x -> x^2/(x+im)^3
z = 2.0+2.0im
sum(Fun(x-> f(x)/(x - z), Line()))/(2π*im) - f(z)
2.69638478211931e-13 - 3.032296636007459e-13im
Evaluating in lower half plane doesn't work b ecause it has a pole there:
f = x -> x^2/(x+im)^3
z = 2.0-2.0im
sum(Fun(x-> f(x)/(x - z), Line()))/(2π*im) , f(z)
(2.2331966377567175e-13 + 2.0218605967538834e-14im, 0.7040000000000001 - 0.128im)
But does for a function analytic in the lower half plane (with a minus sign):
f = x -> x^2/(x-im)^3
z = 2.0-2.0im
-sum(Fun(x-> f(x)/(x - z), Line()))/(2π*im) , f(z)
(0.03277196176631425 + 0.16750113791564233im, 0.03277196176604461 + 0.1675011379153391im)
It also works for functions with exponential decay in the upper-half plane:
f = x -> exp(im*x)/(x+im)
z = 2 + 2im
sum(Fun(x-> f(x)/(x - z), -500 .. 500))/(2π*im) - f(z)
4.501316791527543e-9 + 5.93330299732131e-7im
This is difficult as a real integral as the integrand is very oscillatory:
xx = -200:0.1:200
plot(xx,real.(f.(xx)))
An equivalent result holds in the negative real axis, but be careful:
z = -2-im
f = x -> exp(im*x)/(x+im)
sum(Fun(x-> f(x)/(x - z), -500 .. 500))/(2π*im)
-4.529525111429054e-9 + 5.865568293152012e-7im
z = -2-im
f = x -> exp(im*x)/(x-im)
sum(Fun(x-> f(x)/(x - z), -500 .. 500))/(2π*im), f(z)
(0.09196985577264773 - 0.09196926921581833im, 0.9007327639404081 + 0.3351305720620013im)
z = -2-im
f = x -> exp(-im*x)/(x-im)
-sum(Fun(x-> f(x)/(x - z), -500 .. 500))/(2π*im), f(z)
(-0.045354995402086956 - 0.1219015148055592im, -0.04535499089125899 - 0.12190092372837213im)
The case of calculating ∫∞−∞eiωxg(x)dx
We can use this to get sharper results than ML inequality:
Lemma (Jordan) Assume ω>0. If g(z) is continuous in on the half circle CR={Reiθ:0≤θ≤π} then |∫CRg(z)eiωzdz|≤πωM
Sketch of proof We have |∫CRg(z)eiωzdz|≤R∫π0|g(Reiθ)eiωReiθeiθ|dθ≤MR∫π0e−ωRsinθdθ=2MR∫π20e−ωRsinθdθ
θ = range(0; stop=π/2, length=100)
plot(θ, sin.(θ); label="sin t")
plot!(θ, 2θ/π; label = "2t / pi")
Hence |∫CRg(z)eiωzdz|≤2MR∫π20e−2ωRθπdθ=πω(1−e−ωR)M≤πMω.
Why is this useful? We can use it to apply Residue theorem to We already know O(z−2) decay gives us the integral via Residue theorem. And if we only have z−1 decay our integral does not converge absolutely:
f = x -> exp(im*x)*x/(x^2+1)
sum(abs.(Fun(f, 0 .. 2000)))
7.600902584542065
However, it does converge conditionally: ∫−∞∞f(x)dx:=limM→∞∫M−Mf(x)dx
f = x -> exp(im*x)*x/(x^2+1)
sum(Fun(f, -30000 .. 30000))
-6.776263578034403e-21 + 1.1557671135433842im
Thus we can construct a Residue theorem for calculating ∫−∞−∞g(x)eiωxdx
2π*im*exp(-1)*im/(im+im) # 2π*im* residue of g(z)exp(im*z) at z = im
0.0 + 1.1557273497909217im