Evaluate : $$\int_{-\infty}^{+\infty} \frac {x}{(x^2+2x+2)(x^2+4)}$$
I found that the integrand can be extended to a function on a complex plane has simple poles at $\pm 2i$ and $-1\pm i$. Now I want to compute the integral by contour integration but I am unable to assume any contour here.
Do excuse me , if my approach is wrong.
Hint: Use upper half plane as contour and fraction decomposition $$\dfrac{z}{(z^2+2z+2)(z^2+4)}=\dfrac{1}{10}\frac{z-2}{z^2+2z+2}-\dfrac{1}{10}\frac{z-4}{z^2+4}$$ then $$\dfrac{1}{10}\int_C\frac{z-2}{z^2+2z+2}-\frac{z-4}{z^2+4}dz=\dfrac{2\pi i}{10}\left(\operatorname*{Res}_{z=i-1}\frac{z-2}{z^2+2z+2}-\operatorname*{Res}_{z=2i}\frac{z-4}{z^2+4}\right)=\dfrac{2\pi i}{10}\left(\frac{i-3}{2i}-\frac{2i-4}{4i}\right)=\color{blue}{-\dfrac{\pi}{10}}$$