using Plots, ComplexPhasePortrait, ApproxFun, SingularIntegralEquations,
SpecialFunctions
gr();
Dr Sheehan Olver
Last lecture we saw that integral equation λu(x)+∫∞0K(x−t)u(t)dt=f(x)for0<x<∞.
We now wish to study the solution of this equations, using the Plemelj theorem. But to do this we need to discuss Cauchy transforms on the real line
Outline:
Not surprisingly, the key tool to solving the Riemann–Hilberrt problem is going to be the Cauchy transform over the real line: CRf(z)=12πi∫∞−∞f(s)s−zds
This is no longer analytic at ∞ because the contour of integration passes through there, but we still have Plemelj's theorem under reasonable assumptions:
Theorem (Plemelj on the real line) Assume that f:R→C is continuously-differentiable and both it and its derivatives are absolutely integrable. Then Cf(z) is the unique function satisfying the following properties:
Consider the complementary Error function erfcz=2√π∫∞ze−ζ2dζ.
x = Fun(-10 .. 10)
plot(cumsum(exp(-x^2)/sqrt(π)))
plot!(1-erfc(x)/2)
Note that erfcz is entire (it's complex-derivative is of course 2√πe−z2) but is not nice at ∞:
phaseplot(-3..3, -3..3, z -> erfc(z))
But integrating by parts we see that the dominant behaviour is like e−z2, ∫∞ze−ζ2dζ=∫∞z−2ζe−ζ2−2ζdζ=e−z22z−∫∞ze−ζ22ζ2dζ
phaseplot(-3..3, -3..3, z -> exp(z^2)erfc(z))
Note that 2√π∫z−∞e−ζ2dζ=2√π[∫∞−∞−∫∞z]e−ζ2dζ=2−erfc(z)
phaseplot(-3..3, -3..3, z -> exp(z^2)*(2-erfc(z)))
Now consider the function ϕ(z)={ez2(2−erfc(z))ℜz<0−ez2erfc(z)ℜz>0
φ = z -> real(z) < 0 ?
exp(z^2)*(2-erfc(z)) :
-exp(z^2)*erfc(z)
phaseplot(-3..3, -3..3, φ)
s = im
φ(s-eps())-φ(s+eps())
0.7357588823428849 + 0.0im
2exp(s^2)
0.7357588823428847 + 0.0im
Thus by Plemelj, we have ϕ(z)=2C(−i∞,i∞)[e⋄2](z)
let f = Fun(x -> exp(-x^2), PeriodicLine())
global myerf(z) = -2exp(-z^2)*cauchy(f, -im*z) + (real(z) < 0 ? 2 : 0)
end
myerf (generic function with 1 method)
z = -2.0+2.0im
@time myerf(z)
0.000814 seconds (5.30 k allocations: 266.672 KiB)
2.151310866398069 - 0.12729162946314043im
@time erfc(z)
0.000005 seconds (5 allocations: 192 bytes)
2.151310866398069 - 0.12729162946314082im