Using complex integration, calculate the real integral $$\int_{-\infty}^{\infty} \frac{dx}{(x^2 + 1)^2 (x^2 - 2x + 2)}.$$
Attempt: I consider the complex function $$ f(z) = \frac{1}{(z^2 + 1)^2 (z^2 - 2z + 2)} $$ and integrate it over a semicircular contour in the upper half-plane. The function $ f(z) $ has poles at $ z = \pm i $ (both of order 2) and $ z = 1 \pm i \sqrt{1} $ (both simple). We choose a large semicircle $ C_R $ of radius $ R $ in the upper half-plane and integrate along the real axis and $ C_R $. Now I want to use Jordan's lemma, but just don't know how. Is my approach ok?