$\newcommand{\d}{\,\mathrm{d}}\newcommand{\res}{\operatorname{Res}}$Note: I don’t know any distribution theory myself, but I was informed by someone else and hinted to by this answer that my problem could involve distributions. I associate distributions (at a long arm’s length) with integrals: I have absolutely no idea how a distributionally convergent sum could correctly evaluate an integral, and I still have no idea why a convergent integral would produce a divergent residue series (this surely contradicts the residue theorem, right?).
When inspecting this post, I thought it was a great example for me to practice my contour integration:
Show that: $$\int_{-\infty}^\infty e^{-\lambda t}\cdot\frac{\sinh(\lambda(\pi/2-\gamma))}{\sinh(\pi\lambda/2)}\d\lambda=\frac{\sin(2\gamma)}{\sin(\gamma+t)\sin(\gamma-t)}$$Where $t,\gamma\in\Bbb R$ and $0\lt|t|\lt\gamma\lt\frac{\pi}{2}$.
After some thought it is possible to see that the integrand exponentially decays when $t,\gamma$ are such. Thus we can use the lazy upper-semicircular contour without further ado, and we find that the integral is equal to the sum of residues at all the poles with positive imaginary part (the singularity at $\lambda=0$ is removable). The poles are precisely when $\sinh(\pi\lambda/2)=0$, or when $i\sin(i\pi\lambda/2)=0$, so that $\lambda=2ni,\,n\in\Bbb N$ are the poles.
The poles at such $\lambda$ are simple - therefore the residues are easily found by: $$\begin{align}\res_{\lambda=2ni}&=\lim_{\lambda\to 2ni}e^{-\lambda t}\sinh(\lambda(\pi/2-\gamma))\cdot\frac{\lambda-2ni}{\sinh(\pi\lambda/2)}\\&=e^{-2ni t}\sinh(\pi ni-2ni\gamma)\cdot\frac{1}{\frac{\pi}{2}\cosh(\pi ni)}\\&=-\frac{2}{\pi}\sinh(2ni\gamma)e^{-2ni t}\\&=-\frac{2i}{\pi}\sin(2n\gamma)e^{-2nit}\end{align}$$And so the integral is just, I think: $$\sum_{n=1}^\infty4\sin(2n\gamma)e^{-2nit}$$But something is amiss here. The summands do not tend to $0$, and this is a typical example of a divergent oscillatory sum. I, at this point, gave up, thinking I had erred in my method somehow. However, I did check Wolfram, just in case. Online Wolfram did that weird thing where it wilfully misunderstood every command, so I converted the exponential into cosine and sines. Since the integrand and the integral is clearly real, I just assumed that: $$\sum_{n=1}^\infty\sin(2n\gamma)\sin(-2nt)\overset{?}{=}0\quad\text{Which Wolfram corroborates...}$$And it remained to calculate: $$4\sum_{n=1}^\infty\cos(2nt)\sin(2n\gamma)$$Again, this sum is divergent, but I kept following Wolfram: $$4\sum_{n=1}^\infty\cos(2nt)\sin(2n\gamma)\overset{?}{=}\frac{\sin(2\gamma)}{\sin(\gamma+t)\sin(\gamma-t)}$$Which is, in my opinion, nonsense. Plotting the partial sums on any graph and it is evident that the sum doesn't converge. Calculating the partial sums for oneself gives the same conclusion.
I have three linked questions about this:
- What kind of divergent summation technique is Wolfram applying, to get the cosine/sine sum as finite and the sine/sine sum as $0$?
- Why did the contour integral produce a divergent series, despite the contour integral being itself convergent?
- Is it a mathematical coincidence that the divergent summation formula produces the correct answer?
Many thanks. This is confusing me greatly.