I am doing some practice problems for fourier series and I don't fully understand the solution to the following problem.
I understand part (c) and (e) but I dont understand part (b) without taking the integral (in this case, the integral is quite easy but one could be given a much more complex function to integrate and I would like to understand the relationship between the coefficients and the original function).
Originally, I had thought that $a_n = c_n + c_{-n}$ which are the coefficients corresponding to $\cos$ in the fourier series expansion. In this case, it is $c_n - c_{-n}$ and so I thought that it wouldnt affect the fact that it is real but clearly I am incorrect, so would someone mind explaining please ?
Also, is it a general condition that if the $f(x)$ is real, then $c_{n}$ is purely imaginary and so $c_n - c_{-n}$ is imaginary?
Thank you
