Finding \sum_{n=0}^{N-1} Cos (nx)

  • Context: MHB 
  • Thread starter Thread starter ognik
  • Start date Start date
  • Tags Tags
    Cos
Click For Summary

Discussion Overview

The discussion revolves around the evaluation of the sum \( \sum_{n=0}^{N-1} \cos(nx) \) using complex exponentials. Participants explore the application of geometric series and the implications of summing to \( N-1 \) versus \( N \), as well as the extraction of real parts from complex sums.

Discussion Character

  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant references a book's method that involves summing \( \sum_{n=0}^{N-1} (e^{ix})^n \) and taking the real part to find the cosine sum.
  • Another participant suggests that the geometric series formula is correctly applied with \( a=1 \) and \( r=e^{ix} \), leading to \( S_n = \frac{1-e^{i(N-1)x}}{1-e^{ix}} \), questioning the treatment of the upper limit.
  • A different participant acknowledges that using \( n=N \) yields a valid result but expresses concern that summing to \( N-1 \) should not introduce an extra term.
  • One participant reiterates the geometric series approach, emphasizing the importance of correctly identifying terms in the series and the relationship between exponential and trigonometric forms.
  • Another participant attempts to clarify the relationship between the sums of cosines and sines derived from the complex exponential representation.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the correct interpretation of the summation limits and the implications for the resulting expressions. Multiple competing views remain regarding the treatment of the series and the extraction of terms.

Contextual Notes

There are unresolved issues regarding the assumptions made about the limits of summation and the definitions of the terms involved in the geometric series. The discussion highlights the complexity of transitioning between exponential and trigonometric forms.

ognik
Messages
626
Reaction score
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 $$ \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 $$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?
 
Physics news on Phys.org
Try $n = N$, the formula for a geometric partial sum is:

$S_n = \sum\limits_{k=0}^{n-1} ar^k$

there's no "index sleight-of-hand".
 
Hi - I know that if I just use n=N it works, but the series is only summed to N-1? This would add an extra term...
 
ognik said:
Hi - going in circles about a step in an example, to find $ \sum_{n=0}^{N-1} Cos (nx) $

The book says we find $$ \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 $$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?

Remember that $\displaystyle \begin{align*} \mathrm{e}^{\mathrm{i}\,n\,\theta} \equiv \cos{ \left( n\,\theta \right) } + \mathrm{i} \sin{ \left( n\,\theta \right) } \end{align*}$, so that means

$\displaystyle \begin{align*} \sum_{n = 0}^{N - 1}{ \left( \mathrm{e}^{\mathrm{i}\,x} \right) ^n } &= \sum_{n = 0}^{N-1}{ \left[ \cos{ \left( n\,x \right) } + \mathrm{i}\sin{ \left( n\,x \right) } \right] } \\ \frac{1 - \left( \mathrm{e}^{i\,x} \right) ^N }{ 1 - \mathrm{e}^{\mathrm{i}\,x} } &= \sum_{n = 0}^{N-1}{ \cos{ \left( n \,x \right) }} + \mathrm{i} \sum_{n = 0}^{\infty}{ \sin{ \left( n \,x \right) } } \\ \frac{1 - \left[ \cos{ \left( N \,x \right) } + \mathrm{i}\sin{ \left( N\,x \right) } \right] }{1 - \left[ \cos{(x)} + \mathrm{i}\sin{(x)} \right] } &= \sum_{n = 0}^{N-1}{ \cos{ \left( n\,x \right) } } + \mathrm{i} \sum_{n = 0}^{\infty}{ \sin{ \left( n\,x \right) } } \\ \frac{\left[ 1 - \cos{( \left( N\,x \right) } - \mathrm{i}\sin{ \left( N \, x \right) } \right] \left[ 1 - \cos{(x)} + \mathrm{i}\sin{(x)} \right]}{\left[ 1 - \cos{(x)} \right] ^2 + \left[ \sin{(x)} \right] ^2} &= \sum_{n = 0}^{N-1}{ \cos{ \left( n\,x \right) } } + \mathrm{i} \sum_{n = 0}^{\infty}{ \sin{ \left( n\,x \right) } } \end{align*}$

Cleaning up the left hand side so that you can read off its real and imaginary parts will enable you to answer the question.
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 15 ·
Replies
15
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 14 ·
Replies
14
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 5 ·
Replies
5
Views
849
  • · Replies 2 ·
Replies
2
Views
2K