Proving a discrete sum equation

7 replies · 3K views · last reply
darkfeffy
Messages
17
Reaction score
0
Hi,

I need help in proving the equation in the attachment.

Thanks
darkfeffy
 
Attachments
  • Equation: (1/w) times the sum from i = 1 to w of sin squared of (pi/w) times i, equals 1/2.
    equation.png
    468 bytes · Views: 458
Start by using a double angle formula to express sin(x)^2 in terms of cos(2x). Now get started.
 
Here is my work in the attachment. I just fail to see how the last term in the last expression (sum(cos(2pi*i/w))) is equal to 0.
 
Attachments
  • Handwritten-style derivation: (1/w) sum from i=1 to w of sin^2(pi i/w) = (1/2w) sum from i=1 to w of (1 - cos(2pi i/w)) = (1/2w)(sum of 1 minus sum of cos(2pi i/w)) = (1/2w)(w - sum from i=1 to w of cos(2pi i/w)).
    equation2.png
    2.8 KB · Views: 449
Thinking it might just be an assumption that this last term is exceedingly small compared to the first.
 
darkfeffy said:
Thinking it might just be an assumption that this last term is exceedingly small compared to the first.

Do you know Euler's formula, e^(ix)=cos(x)+i*sin(x) (i the imaginary unit, not the integer index)? That would let you treat the sum of the cos term as the real part of the sum of a geometric series. And no, there's no approximation here. The cos part really does sum to zero.
 
Last edited:
darkfeffy said:
Thinking it might just be an assumption that this last term is exceedingly small compared to the first.
You are correct in that the term is exceedingly small (zero is an exceedingly small number). You are incorrect in that is an assumption.
 
Dick said:
Do you know Euler's formula, e^(ix)=cos(x)+i*sin(x) (i the imaginary unit, not the integer index)? That would let you treat the sum of the cos term as the real part of the sum of a geometric series. And no, there's no approximation here. The cos part really does sum to zero.
Thanks Dick.
 
D H said:
You are correct in that the term is exceedingly small (zero is an exceedingly small number). You are incorrect in that is an assumption.
Thanks DH for your brilliant reply which really doesn't add much information :-)