I've been trying a simple trick, but I'm unsure as to why it is failing. Let's say I wanted to compute $ \int^{\pi} _{ - \pi} e^{aix} dx$ for some constant a.
Why won't this trick work? $ \int^{\pi} _{ - \pi} e^{aix} dx \\ = \left[ \frac{1}{ai} e^{aix} \right]^{\pi} _{- \pi} \\ = \left[ \frac{1}{ai} (e^{ix})^a \right]^{\pi} _{- \pi} \\ = \frac{1}{ai}(-1)^a - \frac{1}{ai}(-1)^a \\ =0$
$$\int\limits_{-\pi}^{\pi}e^{axi}\space\text{d}x=\int\limits_{-\pi}^{\pi}\exp[axi]\space\text{d}x=$$
Substitute $u=axi$ and $\text{d}u=ai\space\text{d}x$.
This gives a new lower bound $u=-a\pi i$ and upper bound $u=a\pi i$:
$$\frac{1}{ai}\int\limits_{-a\pi i}^{a\pi i}\exp[u]\space\text{d}u=\frac{1}{ai}\left[\exp[u]\right]_{-a\pi i}^{a\pi i}=$$ $$\frac{1}{ai}\left(\exp[a\pi i]-\exp[-a\pi i]\right)=\frac{\exp[a\pi i]-\exp[-a\pi i]}{ai}=\frac{2\sin(a\pi)}{a}$$