I need to find the exact value of the power series $-\sum_{k=1}^{\infty}\frac{(-1)^k}{1+k^2}$
It looks like it could have something to do with $\arctan x$ or some sort of trigonometric function, but I don't have a clue where to start.
It would be great if there are any hints on how to proceed. Thank you!
Avoiding Complex Analysis, a simple way is to notice that the given series is absolutely convergent and it is related to the Fourier (cosine) series of $e^{-|x|}$ over $(-\pi,\pi)$. Indeed $$ \frac{1}{2\pi}\int_{-\pi}^{\pi}e^{-|x|}\,dx = \frac{1-e^{-\pi}}{\pi},\qquad \frac{1}{\pi}\int_{-\pi}^{\pi}e^{-|x|}\cos(nx)\,dx = \frac{2}{\pi(n^2+1)}\left(1-(-1)^n e^{-\pi}\right) $$ imply $$ e^{-|x|}\stackrel{L^2}{=}\frac{1-e^{-\pi}}{\pi}+\frac{2}{\pi}\sum_{n\geq 1}\frac{\cos(nx)(1-(-1)^n e^{-\pi})}{n^2+1} $$ but we also have pointwise convergence over $[-\pi,\pi]$ due to the summability of $\frac{1}{n^2+1}$. In particular we are allowed to just evaluate both sides at $x=\pi$ and $x=0$ to get: $$ \sum_{k\geq 1}\frac{(-1)^{k+1}}{k^2+1} = \frac{1}{2}\left(1-\frac{\pi}{\sinh \pi}\right).$$