- #1
ognik
- 643
- 2
Hi - going in circles about a step in an example, to find $ \sum_{n=0}^{N-1} Cos (nx) $
The book says we find \(\displaystyle \sum_{n=0}^{N-1} \left( e^{ix} \right)^n = \frac{1-e^{iNx}}{1-e^{ix}}\) , then take the real part.
But I see $ \sum_{n=0}^{N-1} \left( e^{ix} \right)^n $ as a geometric series with a=1, $ r= e^{ix}$ and n=N-1 and \(\displaystyle S_n = \frac{1-r^n}{1-r} = \frac{1-e^{i(N-1)x}}{1-e^{ix}}\)
If I take the sum from n=1 to N I still don't get their result, 'cos then the 1st term would be $e^{ix}$ instead of 1
What am I missing with that N-1 slight of hand please?
The book says we find \(\displaystyle \sum_{n=0}^{N-1} \left( e^{ix} \right)^n = \frac{1-e^{iNx}}{1-e^{ix}}\) , then take the real part.
But I see $ \sum_{n=0}^{N-1} \left( e^{ix} \right)^n $ as a geometric series with a=1, $ r= e^{ix}$ and n=N-1 and \(\displaystyle S_n = \frac{1-r^n}{1-r} = \frac{1-e^{i(N-1)x}}{1-e^{ix}}\)
If I take the sum from n=1 to N I still don't get their result, 'cos then the 1st term would be $e^{ix}$ instead of 1
What am I missing with that N-1 slight of hand please?