I would like to prove that for every $x \in \mathbb{R}, n$ natural, we have $$\!\left|\sin(x)+\frac{\sin(2x)}{2}+\ldots+\frac{\sin{(nx)}}{n}\right| \le \int_{0}^{\pi}\frac{\sin x}{x}\,dx$$
We can of course restrict our attention for $x \in [0, 2\pi]$. So far I tried a few things: letting $S_n(x)$ denote the quantity inside the absolute value, we have$$S_n'(x) = \sum_{k=1}^{n}\cos(kx) = -\frac1{2}+\frac{\sin(n+\frac12)x}{2\sin\frac{x}{2}}$$
and hence $S_n(x)$ has critical points at $x = \frac{2k\pi}{n}$ or $x = \frac{(2k+1)\pi}{n+1}$ where $k$ is an integer. Moreover:$$S_n(x) = -\frac{x}{2}+\int_{0}^{x}\frac{\sin(n+\frac12)t}{2\sin\frac{t}{2}}\,dt$$ I also know that the function $F(x) = \int_{0}^{x}\frac{\sin(t)}{t}\,dt$ has an absolute maximum for $x = \pi$. I struggle to bound the integral in the expression for $S_n$. Can you help me? Or maybe there's a different approach to solve this?