Summing cosines with Euler's formula

  • Thread starter Thread starter matlabber
  • Start date Start date
  • Tags Tags
    Sum
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
6 replies · 3K views
matlabber
Messages
13
Reaction score
0

Homework Statement


I try to simplify to get rid of sum
[tex]\sum_{k=0}^{n-1}cos(2 \pi fk)[/tex]

Homework Equations

The Attempt at a Solution



I discover I shall use euler equation to form:[tex]\sum_{k=0}^{n-1}\frac{1}{2}(e^{2 \pi fki}+e^{-2 \pi fki})[/tex]

but how to sum exponentials?
 
Physics news on Phys.org
Aren't those geometric series?
 
but do I include exp() when I do geometric series?
 
You need to express the terms in the form Ark. Use whatever A and r allow you to do this.
 
is it [tex]\frac{1-exp(2 \pi fi)^{t}}{1-exp(2 \pi fi)}[/tex]
 
If by t you mean n, that would be twice the sum of the first term. You might find it a little simpler to start with cos x = Re[eix]. Then you only have one term to deal with and no 1/2's floating around.
 
thank you very much!