I need to evaluate the following summation:
$$ \sum_{n\in\mathbb{Z}} \frac{-1}{i(2n+1)\pi -\mu} $$
where $n$ is summed over all the integers from $-\infty$ to $\infty$ including 0. Putting this into Mathematica gives $\frac{1}{2}\tanh\frac{\mu}{2}$. What is the intermediate steps to get from the summation to the closed form?
$$\sum_{n\in\mathbb{Z}} \frac{-1}{i(2n+1)\pi -\mu}(\frac{i(2n+1)\pi+\mu}{i(2n+1)\pi+\mu})=\sum_{n\in\mathbb{Z}} \frac{i(2n+1)\pi+\mu}{(2n+1)^2\pi^2 +\mu^2}$$ $$=\sum_{n\in\mathbb{Z}} \frac{i(2n+1)\pi}{(2n+1)^2\pi^2 +\mu^2}+\frac{\mu}{(2n+1)^2\pi^2 +\mu^2}$$ the first term will take the following values $$\sum_{n\in\mathbb{Z}} \frac{i(2n+1)\pi}{(2n+1)^2\pi^2+\mu^2}=\frac{\pi*i}{\pi^2+\mu^2}+\frac{3\pi*i}{3^2\pi^2+\mu^2}+...-\frac{\pi*i}{\pi^2+\mu^2}-\frac{3\pi*i}{3^2\pi^2+\mu^2}-...=0$$ the second terms equal to $$\sum_{n\in\mathbb{Z}} \frac{\mu}{(2n+1)^2\pi^2 +\mu^2}=2\sum_{n=0}^{\infty }\frac{\mu}{(2n+1)^2\pi^2 +\mu^2}=2(\frac{1}{4}\tanh\frac{\mu}{2})=\frac{1}{2}\tanh\frac{\mu}{2}$$