Summary and question
I am working to clarify my understanding of differences (if any) between the so-called Feynman prescription and contour deformations to evaluate improper integrals. For concreteness, consider the integral $$ J=\int_{-\infty}^{\infty}\phi(x)dx =\int_{-\infty}^\infty \frac{xe^{iAx}}{(x+k)(x-k)}dx, $$ with $A>0$. For context, I encountered integrals of this form when deriving the Green's function for the Helmholtz equation in three dimensions. In such a derivation, it is common to use contour integration in conjunction with the Feymnan prescription to bump the poles off of the real axis. A seemingly equivalent approach would be to use contour integration in conjunction with contour deformations to detour out and around the poles on the real axis. The top-rated answer posted to a related question even states these are equivalent so long as the deformations and pole shifting occur in corresponding directions (link). However, this is seemingly not the case as discussed in another related post (link) and as I'll summarize below.
My question is two-fold:
- Do I have it correct that the contour deformation method will evaluate the principal value $p.v.J$ (regardless the choice of deformation orientations), while the Feynman prescription method (without symmetric averaging) will evaluate $p.v.J$ up to some residue terms as in the Sokhotski-Plemelj Theorem? If so, this seems to contradict various statements in literature about the equivalence of "contour detours" and "pole shifting".
- In the context of Green's functions and causality, what intuition would lead us to choose Feynman prescriptions over contour deformations during derivations? Or is it simply hind-sight? I ask this because only the Feynman prescription method allows for recovery of the (causal) Helmhotz Green's function $G(r)=\frac{1}{4\pi r}e^{ikr}$.
Contour deformations
Consider the contour integral $$ \int_{C}\frac{ze^{iAz}}{(z+k)(z-k)}dz, $$ where $C=\cup_{i=1}^6C_i$ with $$ \begin{aligned} C_1&=\{z\in\mathbb{C}: z=x+0i, x\in(-R,-k-\epsilon)\},\\ C_2&=\{z\in\mathbb{C}: z=-k+\epsilon e^{i\theta}, \theta\in[\pi, 0]\},\\ C_3&=\{z\in\mathbb{C}:z=x+0i, x\in(-k+\epsilon, k-\epsilon)\},\\ C_4&=\{z\in\mathbb{C}: z=k+\epsilon e^{i\theta}, \theta\in[-\pi, 0]\},\\ C_5&=\{z\in\mathbb{C}: z=x+0i x\in(k+\epsilon, R)\},\\ C_6&=\{z\in\mathbb{C}: z=Re^{i\theta}, \theta\in[0,\pi]\}. \end{aligned} $$ This contour closes in the upper half-plane and contains the pole at $z=k$. Taking $R\to\infty$ and $\epsilon\to 0$, invoking appropriate theorems (Jordan's lemma, dominated convergence, residue) and evaluating each contour segment we obtain: $$ \begin{aligned} 2\pi i\text{Res}\left(\phi(z), z=k\right) &= \lim_{\substack{R\to\infty\\\epsilon\to 0}}\int_{C}\phi(z)dz\\ &=\lim_{\substack{R\to\infty\\\epsilon\to 0}}\int_{C_1} + \int_{C_2} + \int_{C_3} + \int_{C_4} + \int_{C_5} + \int_{C_6}\\ &\Updownarrow\\ \pi i e^{iAk} &= p.v.J -\pi i\frac{e^{-iAk}}{2} + \pi i\frac{e^{iAk}}{2} + 0. \end{aligned} $$ Rearranging terms and simplifying we get $$ p.v.J = \pi i \cos(Rk). $$ Note, this result should be (we've checked a few) independent of the orientation of the detour contours $C_2, C_4$ as the residue term on the LHS will compensate for the different choices.
Feynman prescription (pole shifts)
Now consider the contour integral $$ \int_{C}\phi_\epsilon(z)dz := \int_{C}\frac{ze^{iAz}}{(z-(-k-i\epsilon))(z-(k+i\epsilon))}dz, $$ where the contour $C=C_1\cup C_2$ with $$ \begin{aligned} C_1 &= \{z\in\mathbb{C}: z=x+0i, x\in(-R,R)\},\\ C_2 &= \{z\in\mathbb{C}: z=Re^{i\theta},\theta\in[0,\pi]\}. \end{aligned} $$ This contour closes in the upper half-plane and due to the shift of the poles contains only the pole at $z=k+i\epsilon$. Taking $R\to \infty$ and invoking appropriate theorems (Jordan's lemma, residue) we evaluate $$ \begin{aligned} 2\pi i\text{Res}(\phi_\epsilon(z),z=k+i\epsilon) &= \int_{C}\phi_\epsilon(z)dz\\ &=\int_{C_1} + \int_{C_2}\\ &\Updownarrow\\ \pi i e^{iA(k+\epsilon i)} = \int_{-\infty}^{\infty}\phi_\epsilon(x)dx. \end{aligned} $$ Taking the limit $\epsilon\to 0$ (and blindly assuming dominated convergence holds) we obtain $$ J = \pi i e^{iAk}. $$
Note, this approach is essentially the idea of the Sokhotski-Plemelj theorem. As such, taking a symmetric pole shift ($k\to k-\epsilon i$ and $ -k\to -k + \epsilon i$) and averaging resulting values would recover $p.v.J$.