Let $A_1,A_2,...,A_n$ be the vertice of an regular polygon inscribed in a unit circle, $P$ is a point on the circle.
What is the maximum and the minimum values of $\sum_{k=1}^n|PA_k|$?
My idea : Maybe we can define $\omega=e^{\frac{2\pi i}n}$, $A_k=\omega^k$ and $P=e^{i\theta}$, then
$$\sum_{k=1}^n|PA_k|=\sum_{k=1}^n|e^{i\theta}-e^{\frac{2k\pi i}n}|=\sum_{k=1}^ne^{i(-\arg (P-A_k))}(P-A_k)=...$$
In this way, perhaps we can write the final result in the form of trigonometric functions, so that it is convenient to find its maximum and minimum values. But I failed to expand and simplify it, can anyone help me?