Deriving Σ sin n using Euler's formula

DPMachine
Messages
26
Reaction score
0

Homework Statement



I was looking over my notes and there was a part that didn't make sense.

It's basically using the Euler's formula (e^{ix}=cos(x)+isin(x)) and the fact that sin(x)=Im(e^{ix}) to find what Σ sin n sums to.

It starts out like this:

\sum^{\infty}_{n=1} sin(n) = sin(1) + ... + sin(n)<br /> <br /> = Im(e^{i(1)}+ ... +e^{i(n)})<br /> <br /> ...<br />

But this part isn't relevant to my question... I'll just skip over to the part that confused me:

<br /> = Im(e^{i(\frac{n+1}{2})}\frac{sin(n/2)}{sin(1/2)})<br /> <br /> = \frac{sin((n+1)/2)sin(n/2))}{sin(1/2)}<br />
Here, I don't understand how Im(e^{i(\frac{n+1}{2})}\frac{sin(n/2)}{sin(1/2)})

turned into \frac{sin((n+1)/2)sin(n/2)}{sin(1/2)}

I understand that e^{i(\frac{n+1}{2}) = cos((n+1)/2) + isin((n+1)/2), by just applying the Euler's formula, but I still can't seem to demystify it. What does the "Im" part do?

Homework Equations


The Attempt at a Solution

 
Physics news on Phys.org
It gives the imaginary part. E.g, if z = x + iy, Im(z) = y and Re(z) = x.
 
Oh wow... okay. I don't know why that was so hard to figure out. Thank you!
 
Thread 'Use greedy vertex coloring algorithm to prove the upper bound of χ'
Hi! I am struggling with the exercise I mentioned under "Homework statement". The exercise is about a specific "greedy vertex coloring algorithm". One definition (which matches what my book uses) can be found here: https://people.cs.uchicago.edu/~laci/HANDOUTS/greedycoloring.pdf Here is also a screenshot of the relevant parts of the linked PDF, i.e. the def. of the algorithm: Sadly I don't have much to show as far as a solution attempt goes, as I am stuck on how to proceed. I thought...
Back
Top