In many situations, the signal of interest is real valued (i.e.: there is no imaginary component).
In this case, we can quickly find the real and imaginary parts of the Fourier series coefficients by integrating against the cosine and sine functions (instead of the complex exponential).