I need to calculate as part of a proof the maximum and minimum of this function analytically: $$f_n(\varphi) = \sum_{k=0}^{n-1}\left|\sin \left(\varphi-\frac{2\pi k}{n}\right) \right|$$ whereby $\varphi \in [0,2\pi)$.
I thought to try it with a complex approach, as it looks quite similar to root of unity. However, the absolute value makes me trouble in any simplification.