TITLE: Value of $\sum_{k=1}^{\infty}\frac{1}{k^2+a^2}$
QUESTION [10 upvotes]: So my question is to find the value of $\sum_{k=0}^\infty\frac{1}{k^2+1}$ and more generally $\sum_{k=0}^\infty\frac{1}{Q(k)}$ 
where Q is a quadratic polynomial with no zeroes on the integers.
I can prove it converges, by the comparison test. I think I 've seen such a sum before, and I think it has a hyperbolic function solution. But the way they did it there involved complex analysis, and I'm not very comfortable with that.

REPLY [7 votes]: Look at function $ f(x)=e^{ax},~-\pi\leqslant x\leqslant\pi $. It is known (evaluate) that $ f(x)=e^{ax}, ~-\pi\leqslant x\leqslant\pi $ has the Fourier series
$$ \frac{\sinh\pi a}{\pi a}+\frac{2\sinh\pi a}{\pi}\sum_{n=1}^{\infty}(-1)^n\left[\left(\frac{a}{a^2+n^2}\right)\cos{nx}-\left(\frac{n}{a^2+n^2}\right)\sin nx\right]. $$
The function $f(x)$ is continuous for $ -\pi\leqslant x\leqslant\pi $, but $ f(-\pi)\neq f(\pi) $. Thus, at the ends of the fundamental interval the Fourier series for $f(x)$ will converge to the value $$ \frac{1}{2}\left(f(\pi)+f(-\pi)\right)=\frac{1}{2}\left(e^{a\pi}+e^{-a\pi}\right)=\cosh\pi a. $$
Using this result and setting $x=\pi$ in the Fourier series gives $$\cosh\pi a =\frac{\sinh\pi a}{\pi a}+\frac{2\sinh\pi a}{\pi}\sum_{n=1}^{\infty}\left(\frac{a}{a^2+n^2}\right),$$
where use have been made of the result $ \cos n\pi = (-1)^n $. Thus
$$ \coth\pi a =\frac{1}{\pi}\left[\frac{1}{a}+2\sum_{n=1}^{\infty}\frac{a}{a^2+n^2}\right]$$ 
or, equivalently 
$$\frac{1}{2}\left(\pi\coth\pi a-\frac{1}{a}\right) =\sum_{n=1}^{\infty}\frac{a}{a^2+n^2}.$$
And now we find $$\sum_{n=1}^{\infty} \frac{1}{n^2+a^2} = \frac{1}{2} \left (\frac{\pi}{a} \coth{\pi a} - \frac{1}{a^2}\right ).$$