Is this what you're after?

Let , then the integral equals:

and we know this integral is equal to times the sum of residues of the integrand in the upper half of the complex plane, which is simple, technical and tedious to calculate.

Alternatively, this can be calculated with partial fractions, with the help of the following identity: