How should I calculate this integral
$$\int\limits_{-\infty}^\infty\frac{\sin^2x}{(1+x^2)}\,dx\quad?$$
I have tried forming an indented semicircle in the upper half complex plane using the residue theorem and I tried to integrate along a curve that went around the complex plane and circled the positive real axis (since the integrand is even). Nothing has worked out for me.
Try the trigonometric identity $$ \sin^2x=\frac{1-\cos(2\,x)}{2}. $$