The Sokhotski-Plemelj theorem states, $$\lim_{\epsilon\rightarrow 0^+}\int_a^b\frac{f(x)dx}{x+i\epsilon} = \mathcal P \int_a^b \frac{f(x)dx}{x} - i\pi f(0). $$
Is there a numerically stable way to take this limit, without explicitly using the above theorem? I find that if I use $f(x)=1$, $a=-b$, I almost converge to $-i\pi$, but not before things become unstable.
This allows us to avoid integrating $\frac{f(x)}{x+i\epsilon}$ near $x=0$.
– interoception Dec 16 '18 at 01:43Another thing to note is that we cannot assume $f(x)$ can be analytically continued to the complex plane, so the general method must include only integrating along the real line.
– interoception Dec 16 '18 at 16:33I can attempt to solve the Cauchy PV, but that method carries its own complications (namely in the discretization I use), so I wanted to fully explore this route.
– interoception Dec 16 '18 at 20:41