Solution
= Solution
Set $\omega=2\pi/T$ and $q=m+n$. If $q=0$, the integrand is one and its <integral> is $T$. If $q$ is a nonzero <integer>,
$$
\int_0^T e^{i\omega qt}\,dt
=\frac{e^{i2\pi q}-1}{i\omega q}=0.
$$
Thus
$$
\boxed{\int_0^T e^{i\omega mt}e^{i\omega nt}\,dt=T\,\mathbf1_{m=-n}.}
$$
This is <Fourier orthogonality> in its unconjugated form. With a <complex conjugate> on the second exponential, the nonzero case would instead be $m=n$.