(a) State the sum of $z+z^2+\cdots+z^n$, $z\ne1$. [1]
(b) Let $z=\frac12(\cos\theta+i\sin\theta)$. Show that $$\sum_{m=1}^n\left(\frac12\right)^m\sin m\theta
=\frac{(1/2)^{n+2}\sin n\theta-(1/2)^{n+1}\sin(n+1)\theta+\frac12\sin\theta}
{\frac54-\cos\theta}.$$ [6]
(c) Differentiate the result to find $\sum_{m=1}^n(1/2)^m m\cos m\theta$. [3]
(d) Hence find the corresponding infinite sum in terms of $\cos\theta$. [2]