This question is related to this question.
Let $x\in\mathbb{R}$, let $\alpha\in\mathbb{R}_{>0}$, and consider the integral \begin{equation} \int_{-\infty}^\infty\mathrm{d}y\,\frac{\exp(ixy)}{y^2-\alpha}. \end{equation} The integral as such diverges because of the simple poles on the real axis. In the actual phrasing of the question (this is homework) the teacher writes $\alpha^+:=\lim_{\epsilon\downarrow0}\alpha+i\delta$ instead of $\alpha$, seemingly suggesting that we should actually calculate the integral \begin{equation} \int_{-\infty}^\infty\mathrm{d}y\,\frac{\exp(ixy)}{y^2-(\alpha+i\delta)}, \end{equation} where $\delta>0$, and then take the limit $\delta\downarrow0$. However that is not how the question is stated, and I remembered that even though the first integral is divergent, the Cauchy principal value of the integral \begin{equation} \lim_{\delta\downarrow0}\left(\int_{-\infty}^{-\sqrt{\alpha}-\delta}\mathrm{d}y\,\frac{e^{ixy}}{y^2-\alpha}+\int_{-\sqrt{\alpha}+\delta}^{\sqrt{\alpha}-\delta}\mathrm{d}y\,\frac{e^{ixy}}{y^2-\alpha}+\int_{\sqrt{\alpha}+\delta}^\infty\mathrm{d}y\,\frac{e^{ixy}}{y^2-\alpha}\right) \end{equation} is well-defined, so I wanted to calculate this integral. Perhaps slightly naively I was expecting to get the same answer, and the comments around equation (7.39) in this document convinced me, but, when I do the actual calculation, I do not get the same answer. Of course my calculation can contain one or more errors but I feel like it is in order. Is it true that these ways of calculating are equivalent, and did I make a mistake, or are they actually different, and if so, how come? Any help is appreciated.
I should note that this is homework for a physics course.
EDIT To comment on user1952009's comments:
The actual integral we are calculating is \begin{equation} \int_{-\infty}^\infty\mathrm{d}q\,\frac{e^{\frac{ixq}{\hbar}}}{E^+-\frac{q^2}{m}}, \end{equation} where $E^+:=\lim_{\epsilon\downarrow0}$. We have to show that it is equal to \begin{equation} -i\pi\sqrt{\frac{m}{E}}\exp\left(\frac{i|x|\sqrt{mE}}{\hbar}\right), \end{equation} so no, what you said is not what my teacher meant. What she means is calculating the integral \begin{equation} \int_{-\infty}^\infty\mathrm{d}q\,\frac{e^{\frac{ixq}{\hbar}}}{E+i\epsilon-\frac{q^2}{m}}, \end{equation} and take the limit $\epsilon\downarrow0$, because this is the only wy to get the desired answer, and because one of the TA's the limit is there to shift the poles (even though that is not true because the limit just exists and is equal to $E$, so really one cannot show this is, because it is simply not true). Your comment is useful however because the PV I calculated using the definition I mentioned precisely gives me what would come out of the two integrals with the singularities shifted, as you said one can prove. What do you think? And how does one go about proving what you said?