I have another approach, which almost solved it. I think something is wrong with problem itself, or perhaps som eother information is missing. However, will give my seconds try, and perhaps you'll find, some mistake I made and solve it... Anyways,
<br />
S_n(\theta) = \sum \limits _{k=-n}^n e^{ik\theta}<br />
adding e^0 - 1 = 0 to the sum enables us to write,
<br />
= \left( \sum \limits _{k=0}^n e^{+ik\theta}\right) + \left( \sum \limits _{k=0}^n e^{-ik\theta}\right) - 1<br />
Then using the final sum formula for a geometrical series as you yourself posted,
<br />
= \frac{e^{+i(n+1)\theta}-1}{e^{+i\theta}-1} + \frac{e^{-i(n+1)\theta}-1}{e^{-i\theta}-1} - 1<br />
Make all fractions have the same denominator
<br />
= -\frac{e^{+i(n+1)\theta}-1}{1-e^{i\theta}} + \frac{e^{-i(n+1)\theta + i\theta}-e^{i\theta}}{1-e^{i\theta}} - \frac{1-e^{i\theta}}{1-e^{i\theta}}<br />
Rearrange,
<br />
= \frac{1}{1-e^{i\theta}} \left( -e^{+i(n+1)\theta} + 1 + e^{-i(n+1)\theta + i\theta}-e^{i\theta} - 1+e^{i\theta}\right)<br />
Some stuff goes away,
<br />
= \frac{1}{1-e^{i\theta}} \left( -e^{+i(n+1)\theta}+ e^{-i(n+1)\theta}\cdot e^{i\theta}\right)<br />
In which WolframAlpha.com simplifies to,
<br />
= \cos(n \theta) + \frac{\cos(\theta / 2)}{\sin(\theta / 2)}\cdot \sin(n \theta)<br />As said, this is as far as I come. I suggest skim over my calculations and se if you find any faults.. If not, there is something wrong with the problem, or with the geometric series sum formula..
Good luck!