Prove that$$\sum_{k=0}^n\cos(kx)=\cos\left(\frac{nx}2\right)\frac{\sin\frac{(n+1)x}2}{\sin\frac{x}{2}}.$$ i have to proof that this identity is True. i tried using this methodology but i get stuck at this point
image of the approach to the solution by using this identity ( $1-\cos x=2\sin(x)^2)$ then i tried to separate the real element and imaginary side but i dont get the result i wanted. how i can approach the problem?
I think it's better to multiply and divide the term $\sum_1^n$$cos(nx)$ with the term $sin(\frac{x}{2})$ term and apply transformations for every element like $cos(a)sin(b)=\frac{sin(a+b)-sin(a-b)}{2}$ and you will be getting a telescopic.Hope that helps!