jostpuur said:
[tex]
\lim_{z\to (+\infty, 0)}\frac{1}{1-e^{-\pi z}} \to 1[/tex]
so the integrand behaves like
[tex]
\frac{e^{-ikz}}{1-e^{-\pi z}} \to e^{-ikz}.[/tex]
There is no chance this integral is converging, and also no chance that the residue trickery could have been valid.
You could interpret the integral as a distribution though, like first fixing the integration domain as finite, and then taking the limit when the domain extends to all real axis, and solving how the integral function behaves as a distribution on this limit.
You're right. I was too hasty writing what I wrote when I wrote it. Here is a reply, but it may have an error. I'm in a hurry though.
Define,
[tex]f_{+}(x) = \frac{1}{1-e^{-\pi x}}[/tex] for [tex]x > 0[/tex] and,
[tex]f_+ = 0[/tex] otherwise.
Let [tex]F_+(x) = e^{\alpha x}f_+(x)[/tex] where [tex]\alpha < 0[/tex] and real.
Now calculate,
[tex]\hat{F_+}(k) = \textbf{F}[F_+][/tex]
Notice now the integrand tends to zero for,
[tex]\text{Im}(k) = 0[/tex] and [tex]z \to \infty[/tex]
By the same method as above,
[tex]\hat{F_+}(k) = i\left(\frac{1+e^{-2(k+\alpha i)}}{1-e^{-2(k+\alpha i)}}\right)[/tex]
It is consistent (by extension of the Inverse Fourier Transform to the complex domain) to define,
[tex]\hat{F_+}(k) = \hat{f_+}(k+i\alpha)[/tex]
Thus,
[tex]\hat{f_+} =i\left(\frac{1+e^{-2x}}{1-e^{-2x}}\right)[/tex]
The same follows for [tex]f_-(x)[/tex] defined similarly and the result follows from superposition.