A possible solution is to integrate, using the residue theorem, the function...

... along the grey path of the figure...

... and let R tend to infinity. By Jordan's lemma is...

... and the singularities of inside the path are and . Since is an even function respect to x it will be...

Kind regards