Consider $f(x)=\sum\limits_{k=1}^n\sin (kx), 0\le x \le \pi$.
Here is the graph of $y=f(x)$ for $n=8$.
I noticed that, as $n\to\infty$, the maximum value of $\frac1n f(x)$ seems to approach a limit of approximately $0.7246$.
What is $\lim\limits_{n\to\infty}\frac1n \left(\text{maximum value of }\sum\limits_{k=1}^n\sin (kx)\right)$ ?
My thoughts:
I tried to find the first turning point to the right of the $y$-axis, without success.
I don't know if this helps, but I have found the roots of $f(x)$, and shown that there is exactly one turning point between neighboring roots.
Finding the roots of $f(x)$
$f(x)=\text{Im}\sum\limits_{k=1}^n e^{kxi}=\dots=\dfrac{\sin x+\sin ((nx+x)-x)-\sin (nx+x)}{2-2\cos x}=0$
If $\sin (nx)=0$ then $(\sin x)(1-\cos (nx))=0\implies x=0, \pi, \frac{2k\pi}{n}$
If $\sin (nx+x)=0$ then $(\sin x)(1-\cos ((n+1)x)=0\implies x=0, \pi, \frac{2k\pi}{n+1}$
We have found $n+1$ distinct roots. Now we will show that these are the only roots.
$\sin (kx)=\text{Im}(\cos x+i\sin x)^k=(\sin x)(k-1 \text{ -degree polynomial in $\cos x$})$
$\implies f(x)=(\sin x)(n-1 \text{ -degree polynomial in }\cos x)$
The $n-1 \text{ degree polynomial in }\cos x$ has at most $n-1$ distinct roots in $\cos x$, so it has at most $n-1$ distinct roots in $x$. The roots of $\sin x$ are $0$ and $\pi$. So $f(x)$ has at most $n+1$ distinct roots in $x$. So the $n+1$ roots that I found above, are the only roots.
Showing that $f(x)$ has exactly one turning point between neighboring roots
$\cos (kx)=\text{Re}(\cos x+i\sin x)^k=k \text{ -degree polynomial in $\cos x$}$
$\implies f'(x)=\sum\limits_{k=1}^n k\cos (kx)$ is an $n$ -degree polynomial in $\cos x$
So $f'(x)$ has at most $n$ distinct roots in $\cos x$, so it has at most $n$ distinct roots in $x$.
So $f(x)$ has at most $n$ turning points. Earlier we found that $f(x)$ has at exactly $n+1$ distinct roots. So $f(x)$ has exactly one turning point between neighboring roots.