there is this question in my assignment that i'm struggling to do, it says:
Using Euler's formula, prove that: $$\cos(2\theta)+\cos(4\theta)+\cdots+\cos(2n\theta)=\frac{\sin(n\theta)}{\sin(\theta)}\cos((n+1)\theta)$$
I was unable to get anywhere with expanding the LHS, so i have attempted to arrive at the LHS starting from the RHS, and this is what i have got to so far: $$\sin(\theta)=\frac{e^{i\theta}-e^{-i\theta}}{2i}$$ $$\sin(n\theta)=\frac{e^{in\theta}-e^{-in\theta}}{2i}$$ $$\cos((n+1)\theta)=\frac{e^{i(n+1)\theta}+e^{-i(n+1)\theta}}{2}$$ and by multiplying the last two, then dividing by the second one, i arrived at: $$\frac{1}{2}(\frac{e^{i(2n+1)\theta}-e^{-i(2n+1)\theta}}{e^{i\theta}-e^{-i\theta}}-1)$$ and i am struggling to move any further than this, i assume there's an easier way to do this by starting from the LHS instead, but i couldn't figure it out.