I'm supposed to prove the following series expansion:
$$s_n=\sum_{n=1}^\infty r^n\cos n\theta=\frac{r\cos\theta-r^2}{1-2r\cos\theta+r^2}$$
I first note the following:
$$s_n=\sum_{n=1}^\infty \Re\left[re^{i\theta}\right]^n=\Re\left[\sum_{n=1}^\infty z^n\right]$$
Using geometric series definition:
$$s_n=\Re\left[\frac{1}{1-z}\right]$$
$$s_n=\Re\left[\frac{1-z}{1-2z+z^2}\right]$$
Substituting polar coordinates of $z$:
$$s_n=\Re\left[\frac{1-r\exp(i\theta)}{1-2r\exp(i\theta)+r^2\exp(2i\theta)}\right]$$
Taking real component:
$$s_n=\frac{1-r\cos\theta}{1-2r\cos\theta+r^2\cos2\theta}$$
I can't really seems to do anything beyond here, could someone point out where I've gone wrong?
One should not simply take the real part in each single term.
– Nov 01 '17 at 00:01