A trigonometric integral is an integral in the form:

We can evaluate these integrals with residues by writing them as contour integrals on the unit circle centred at the origin. Just like how we might parameterise to the domain, we essentially go backwards. Our core “identities” are:1

By converting a function from the domain to the domain, we can then compute using Cauchy’s residue theorem. It can get pretty tricky to simplify the algebra after this conversion.

Anything leftover from the conversion with a pole within the unit circle is used in the residue computation.

Footnotes

  1. Side note: looks super similar to multiple angle identities. So cool.