How to calculate the limit of the following sum as it approaches a divergence I am interested in the behaviour of summations like the following:
$$
\lim_{\alpha\to 0}\sum_{n=1}^{\infty}\frac{e^{in\alpha}}{\sqrt{\beta+n^{2}}}
$$
where $\beta$ is a constant. Just putting $\alpha=0$ doesn't help because the sum doesn't converge (it has a logarithmic singularity). I know that the case $\beta=0$ is easily calculated because the summation can be done exactly:
$$
\sum_{n=1}^{\infty}\frac{e^{in\alpha}}{n}=-ln(1-e^{i\alpha})\sim\frac{\pi i}{2}-ln(\alpha)+O(\alpha)
$$
but I don't know how to extend this to the case when $\beta$ is non-zero.
Thanks in advance for any help.

I will assume that $\alpha>0$ and $\beta \geq 0$. Let us write
$$
\sum\limits_{n = 1}^\infty  {\frac{{e^{in\alpha } }}{{\sqrt {\beta  + n^2 } }}}  = \sum\limits_{n = 1}^\infty  {\frac{{e^{in\alpha } }}{n}}  + \sum\limits_{n = 1}^\infty  {\left( {\frac{1}{{\sqrt {\beta  + n^2 } }} - \frac{1}{n}} \right)e^{in\alpha } } .
$$
As you noted,
$$
\sum\limits_{n = 1}^\infty  {\frac{{e^{in\alpha } }}{n}}  =  - \log \alpha  + \frac{\pi }{2}i + \mathcal{O}(\alpha )
$$
as $\alpha\to 0+$. Now,
\begin{align*}
\sum\limits_{n = 1}^\infty\! {\left( {\frac{1}{{\sqrt {\beta  + n^2 } }} - \frac{1}{n}} \right)e^{in\alpha } }  =\; & \sum\limits_{n = 1}^\infty \! {\left( {\frac{1}{{\sqrt {\beta  + n^2 } }} - \frac{1}{n}} \right)} \\ & + \sum\limits_{n = 1}^\infty  {(e^{in\alpha }  - 1)\!\left( {\frac{1}{{\sqrt {\beta  + n^2 } }} - \frac{1}{n}} \right)} .
\end{align*}
It is easy to see that
$$
0 < \frac{1}{n} - \frac{1}{{\sqrt {\beta  + n^2 } }} = \frac{1}{2}\int_0^\beta  {\frac{{dx}}{{(x + n^2 )^{3/2} }}} 
\le \frac{\beta }{{2n^3 }},
$$
whence
\begin{align*}
\left| {\sum\limits_{n = 1}^\infty  {(e^{in\alpha }  - 1)\left( {\frac{1}{{\sqrt {\beta  + n^2 } }} - \frac{1}{n}} \right)} } \right| & \le \sum\limits_{n = 1}^\infty  {\left| {\frac{1}{{\sqrt {\beta  + n^2 } }} - \frac{1}{n}} \right|\left| {e^{in\alpha }  - 1} \right|}\\ &  \le \beta \sum\limits_{n = 1}^\infty  {\frac{1}{{n^3 }}\left| {\sin \left( {\frac{{n\alpha }}{2}} \right)} \right|}  \le \beta \alpha \frac{{\pi ^2 }}{{12}}
\end{align*}
and
$$\left|\sum\limits_{n = 1}^\infty  {\left( {\frac{1}{{\sqrt {\beta  + n^2 } }} - \frac{1}{n}} \right)}\right|<+\infty.$$
In summary,
$$
\sum\limits_{n = 1}^\infty  {\frac{{e^{in\alpha } }}{{\sqrt {\beta  + n^2 } }}}  =  - \log \alpha + C_\beta   + \frac{\pi }{2}i  + \mathcal{O}(\alpha ) + \mathcal{O}(\alpha \beta )
$$
as $\alpha \to 0+$, uniformly in $\beta\geq 0$ with
$$
C_\beta   = \sum\limits_{n = 1}^\infty  {\left( {\frac{1}{{\sqrt {\beta  + n^2 } }} - \frac{1}{n}} \right)} .
$$
A simplified result which is useful for larger values of $\beta$ may be obtained as follows. It can be shown using the Euler–Maclaurin formula that
$$
C_\beta   =  - \log \sqrt{\beta}  - \gamma  + \log 2 + \mathcal{O}\!\left( {\frac{1}{{\sqrt {\beta+1}  }}} \right).
$$
Therefore,
$$
\sum\limits_{n = 1}^\infty  {\frac{{e^{in\alpha } }}{{\sqrt {\beta  + n^2 } }}}  =  - \log (\alpha\sqrt{\beta})  - \gamma  + \log 2 + \frac{\pi }{2}i  + \mathcal{O}(\alpha ) + \mathcal{O}(\alpha \beta ) + \mathcal{O}\!\left( {\frac{1}{{\sqrt {\beta+1}  }}} \right) 
$$
as $\alpha \to 0+$, uniformly in $\beta\geq 0$.
