Why is $\sum_{n=0}^{N}{\cos nx}={1\over 2}+{1\over 2}\sum_{-N}^{N}e^{inx}$?

58 Views Asked by At

Why is $\sum_{n=0}^{N}{\cos nx}={1\over 2}+{1\over 2}\sum_{-N}^{N}e^{inx}$? I have gone through all the identities relating Fourier series and I can't seem to understand why. In this question, the assumption is that the functions are $2\pi$ periodic(In some places the initial assumption is that the functions are, for example 1- periodic and then the $2\pi$ is being placed within the function instead. I am sorry if you didn't understand what I meant. I am not native and find some things hard to express.). I could really use your help.