I am struggling to understand when an integral and an infinite sum can be switched around. I want to know if they can be switched in the following case:
$$\sum_{a=1}^{\infty} \int_{0}^{\infty} \frac{\cos (t x)}{x^{2}+a^{2}}\mathop{dx}$$
I don’t need the reader to evaluate the sum/integral.