Let
$$f(x)= \sum_{n=-\infty}^{\infty} \frac{\mathrm{e}^{i nx}}{n^2+1}$$
on $[-\pi, \pi]$. Prove that $f(x)>0$ for any $x \in [-\pi, \pi]$.
How to use Fourier analysis to show that function is positive? I try to differentiate it, but it seems that the derivative is not convergent. Right?
Hint: $$ f(x)= \sum_{n=-\infty}^{\infty} \frac{\mathrm{e}^{i nx}}{n^2+1}= \sum_{n=-\infty}^{\infty} \frac{\cos nx + i\sin nx}{n^2+1}=\cdots $$ What happens with the imaginary part ($\sin$ is odd)?