and so that integral, in complex exponentials, is

Multiply both numerator and denominator by to get

Now let so that , and that integral becomes

.

That denominator can be factored (though not easily- use the quadratic formula to find the roots). Then it will be of the form

where a and b are the roots. That can be integrated by "partial fracations".