For $n\in \mathbb{N}$, $x\in (0,\pi)$. Prove that : $$f_n(x)=\sum_{k=1}^n \frac{\sin [(2k-1)x]}{2k-1} \geq 0.$$
I've tried to do it by differentiation : I Calculate $f_n'(x)$ (sum of $\cos(2k-1)x$) but It has many roots. So, I couldn't go further.
For $n\in \mathbb{N}$, $x\in (0,\pi)$. Prove that : $$f_n(x)=\sum_{k=1}^n \frac{\sin [(2k-1)x]}{2k-1} \geq 0.$$
I've tried to do it by differentiation : I Calculate $f_n'(x)$ (sum of $\cos(2k-1)x$) but It has many roots. So, I couldn't go further.
On
Suppose that $x/2\pi$ is a rational number $p/q$ where $p$ and $q$ are coprime. We can write $$f_n(x)=\Im\left(\sum\limits_{k\leq 2n-1\text{ and is odd}} \frac{\left(e^{2p\pi i/q}\right)^k}{k} \right)$$.
Let be $$g_n(z)=\sum_{k=0}^{n-1} z^{2k}=\frac{1-z^{2n-1}}{1-z^2}$$ for $z\neq\pm1$
Note that $f_n(x)$ is the imaginary part of the primitive of $g_n$ evaluated at $z=e^{i\pi x}$. I'm not good at calculus and integrating $g_n$ requires hypergeometric functions. I'm sorry but I can't go further.
My idea is to demostrate the statement for a dense subset (namely, $\{x\in(0,\pi):x/2\pi\in\mathbb Q\}$). $f_n$ is clearly continuous, so we can extend for the whole interval.
I just give the main ideas, I hope you will succeed with it.
Related (if you are interested) :