I am working through Whittaker and Watson and I want to do this problem to develop my technique of integration with residues.
The problem is to show that
$$\int^\infty_{-\infty}\frac{dx}{(x^2+b^2)(x^2+a^2)^2}=\frac{\pi(2a+b)}{2a^3b(a+b)^2}$$
So first I let $Q(x)$ be the integrand and consider $Q(z)$ for $0\leqslant\arg z\leqslant\pi.$ I have shown that $Q(z)\to 0$ as $|z|\to\infty$ in a uniform way. Similarly that it is analytic except for a finite number of poles which are at $z=ia, ib.$ Now I can find the residue at $z=ib,$ by taking $(z-ib)Q(z)$ in the limit:
$$\lim\limits_{z\to ib}\frac{1}{(z+ib)(z^2+a^2)^2}=\frac{1}{2ib(a^2-b^2)^2}$$
(I think this part is right) When it comes to the double pole at $z=ia,$ the work is a little uglier. To write $Q(z)$ as a series seems inconvenient, but to write $(z-ia)^2Q(z)$ and take the limit feels intuitively like it would be wrong.
What is the most convenient method to deal with the residue at this double pole, and how can we deal with residues in an effective way? If someone could show a snippet of how to work through this example (or similar) or confirm for me the answer so I can learn this technique myself I would be grateful.
Thanks