In this question in one of the answers it's shown how to get from $$f\left ( x \right )=\sum_{n=1}^{\infty}\frac{\sin\left ( nx \right )}{10^{n}}$$ to $$f\left ( x \right )=\frac{10 \sin x}{101-20\cos x}$$ I recently came across a function similar to $f$ and I needed to compute its Fourier coefficients. That can be done using contour integration. But then I wondered whether it is possible to go backwards and see that the function is an imaginary or real part of some complex valued function which can be expressed as an infinite sum. Basically the whole process in reverse. I hope that isn't just a trial and error process
EDIT: I might have not expressed myself clearly. I do know how to get from the geometric progression to the function, it is basic precalc. It would be very elegant to be able to go backwards, that is, given the analytic expression for the function, trace it back to a geometric, or some other series. That could save us from a lot of work involving integration. Functions such as the one I posted above seem to be very fitting for this problem.
Since $\sin(0x)=0$, we may start the index at $n=0$. $$\sum_{n=0}^\infty \frac{\sin(nx)}{10^n} = \frac1{2i} \sum_{n=0}^\infty \frac{e^{inx} - e^{-inx}}{10^n} = \frac{1}{2i} \left(\frac{1}{1-\frac{e^{ix}}{10}} - \frac{1}{1-\frac{e^{-ix}}{10}}\right)$$
$$=\frac{1}{2i} \left( \frac{10}{10-e^{ix}} - \frac{10}{10-e^{-ix}}\right)$$
$$=\frac{10}{2i} \left(\frac{10-e^{-ix} - 10 + e^{ix}}{(10-e^{ix})(10-e^{-ix})} \right)$$
$$=\frac{10}{2i} \left(\frac{e^{ix}-e^{-ix}}{100+1-10e^{ix}-10e^{-ix}} \right)$$
$$=\frac{10\sin(x)}{101 - 20 \cos(x)}$$