4

I'm new to this site, english is not my mother tongue, and I'm just learning LaTeX. I'm basically a noob, so please be indulgent if I break any rule or habits.

I'm stuck at proving the following equation. I suppose I should use the formula for geometric series ($\sum\limits_{k=0}^{n}q^k=\frac{1-q^{n+1}}{1-q}$), and also use somewhere that $e^{î\theta}=cos(\theta)+i\sin(\theta)$

So here is the equation I have to prove : $$\frac{1}{2}+cos(\theta)+cos(2\theta)+...+cos(n\theta)=\frac{sin(n+\frac{1}{2}\theta)}{2sin(\frac{\theta}{2})}$$

Thanks for your help

Benji
  • 43
  • $$ \dfrac{1}{2} + \sum_{r=1}^{n} \cos(r\theta) = \Re \left{ \dfrac{1}{2} + \sum_{r=1}^{n} e^{ir\theta} \right} = \Re \left{ -\dfrac{1}{2} + \sum_{r=0}^{n} e^{ir\theta} \right} $$ You should be able to use the formula for a geometric series on the final sum. – Khallil Aug 01 '15 at 14:38
  • 4
    Incidentally you can also do this without using complex numbers by multiplying the left hand side by $2\sin(\frac{\theta}{2})$ and then expressing $2\sin A\cos B$as the difference of sines so that you get a telescoping series – David Quinn Aug 01 '15 at 15:04
  • That is one neat method, @DavidQuinn! – Khallil Aug 01 '15 at 15:10
  • Related: http://math.stackexchange.com/questions/933402/proof-of-cos-theta-cos-2-theta-cos-3-theta-cdots-cos-n-theta-frac-sin-f – colormegone Aug 01 '15 at 15:10
  • Thank you all. @RecklessReckoner, you found the related topic very quickly. You just remembered it or I missed some trick in the search tool? – Benji Aug 01 '15 at 15:55
  • @Benji Some of both: Some form of this series gets asked about from time to time (it's a classic identity) and I searched on " cos \theta + cos ( 2 \theta) " – colormegone Aug 01 '15 at 16:52

1 Answers1

5

$$ \begin{aligned} \dfrac{1}{2} + \sum_{r=1}^{n} \cos(r\theta) & = \Re \left\{ \dfrac{1}{2} + \sum_{r=1}^{n} e^{ir\theta} \right\} \\ & = \Re \left\{ -\dfrac{1}{2} + \sum_{r=0}^{n} e^{ir\theta} \right\} \\ & = \Re \left\{ -\dfrac{1}{2} + \dfrac{1-e^{(n+1)\theta}}{1-e^{i\theta}} \right\} \\ & = \Re \left\{ \dfrac{1-2e^{(n+1)\theta}+e^{i\theta}}{2(1-e^{i\theta})} \right\} \\ & = \Re \left\{ \dfrac{e^{-i\theta/2}-2e^{(n+1/2)\theta}+e^{i\theta/2}}{2(e^{-i\theta/2}-e^{i\theta/2})} \right\} \\ & = \Re \left\{ \dfrac{2\cos\left(\frac{\theta}{2}\right)-2\cos(n+1/2)\theta-2i\sin(n+1/2)\theta}{-2i\sin\left(\frac{\theta}{2}\right)} \right\} \end{aligned} $$

Multiply through by $1=\frac{i}{i}$, take the real part and there you have it. ^_^

Khallil
  • 1,891
  • Perfect, thanks. I think I gave up too quickly because I didn't think I could use the $\frac{i}{i}$ multiplication in the end to get rid of all the cos. – Benji Aug 01 '15 at 15:56