How can we sum up $\sin$ and $\cos$ series when the angles are in A.P (arithmetic progression) ?For example here is the sum of $\cos$ series:
$$\large \sum_{k=0}^{n-1}\cos (a+k \cdot d) =\frac{\sin(n \times \frac{d}{2})}{\sin ( \frac{d}{2} )} \times \cos \biggl( \frac{ 2 a + (n-1)\cdot d}{2}\biggr)$$
There is a slight difference in case of $\sin$ ,which is: $$\large \sum_{k=0}^{n-1}\sin (a+k \cdot d) =\frac{\sin(n \times \frac{d}{2})}{\sin ( \frac{d}{2} )} \times \sin\biggl( \frac{2 a + (n-1)\cdot d}{2}\biggr)$$
How do we prove the above two identities?
