So I want to compute $$\sum_{1}^\infty \frac{1}{n^{2}+1} $$ where $$y(x)=e^{x}, 0\le x \le 2\pi $$
I want to use Parsevals formula, and solving for the fourier coefficents I get that: $$c_{n}=\frac{1}{2\pi} * \int_{0}^{2\pi} e^{x(1-in)} dx = \frac{1}{2\pi}*\frac{e^{2\pi}-1}{1-in} $$ So $$ \sum_{-\infty}^\infty |c_{n}|^{2} = \frac{1}{4\pi^{2}}(e^{2\pi}-1)^{2}\sum_{-\infty}^\infty \frac{1}{1-2in-n^{2}} $$ And this is of course equal to the integral of the function squared...But my problem is that this sum on the right hand side is not on the form $n^{2}+1$, how can i make my numerator the same?