I'm trying to get estimate on the following partial summation using Abel-Plana Summation formula:
$$\sum_{n=1}^x \frac{\sin^2(n)}{n}$$
I can handle the first integral in the formula but I'm stuck at the following functional:
$$T(x)=\int_0^\infty\frac{ (\frac{\sin^2(x+iy)}{(x+iy)}-\frac{\sin^2(x-iy)}{(x-iy)})}{(e^{2πy}-1)}dy$$
Questions:
(1) Sharp upper and lower bounds on $T(x)$.
(2) Graph of $T(x)$ (need an idea about it's growth).
Note: I tried to expand $\sin$ as complex variable in terms of hyperbolic functions ; but then I can't handle integral after expansion .
If I am not mistaken, the difference in the numerator is $$ \frac{{e^{2y} (2y\cos ^2 x + x\sin (2x) - y) + e^{ - 2y} (2y\cos ^2 x - x\sin (2x) - y) - 2y}}{{2(x^2 + y^2 )}} $$ (two times the imaginary part of the first term). Now for large positive $y$, this is $$ = \mathcal{O}(1)\frac{{e^{2y} (x + y)}}{{x^2 + y^2 }} = \mathcal{O}(1)\frac{{e^{2y} }}{{\sqrt {x^2 + y^2 } }} = \mathcal{O}(1)\frac{1}{x}\frac{{e^{2y} }}{y}, $$ and for small $y$, it is $\mathcal{O} (y/x)$. Hence, $T(x)=\mathcal{O}(1/x)$.