I want to compute the integral $\displaystyle\int_{-\infty}^{+\infty} \dfrac{\cos x}{(x^2+a^2)^2}~dx$ for $a>0$
How does one do so. Iwas thinking maybe I have to use the theorem of residues that states that: $$\int_{\gamma} f(z)~dz = 2 \pi i \sum_{i=-1}^n Res(f,c_i)$$