I was wondering if there is an analytical solution to find the maxima of the following function in terms of $x$:
$$ f(x) = \frac{\sin(nx)}{\sin(x)} $$
where $n$ is any positive integer greater than $0$
I tried equating the partial derivative of $f(x)$ with respect to $x$ to $0$, but I can't seem to find any other solution than $x = \pi k$ to the resulting trigonometric equation. I was also not able to find a solution in existing posts.