Consider the $n$th roots of unity $e^{2 \pi i k/n}$ for fixed integer $n \geq 2$ and $0 \leq k < n$.
Now I am interested in the second largest value (in absolute value) of the values
$$\frac{e^{2 \pi i k/n} + 1} {2}, \quad 0 \leq k < n.$$
For which $k$ does this happen and what is the absolute value?
In my lecture notes it is written that this value is given for $k=1$ with absolute value
$$\sqrt{\frac{1}{2} + cos(2 \pi /n) /2}.$$
Can you help me how to get to this result. I also wonder whether this is true for $n$ even and $n$ odd.
You can answer this question geometrically. Since division by 2 does not affect the order of the norms, we can find the second largest value of $$|| e^{2\pi i k/n} + 1 ||.$$ For $0 \leq k < n$, $e^{2\pi i k/n}$ lies on the unit circle, and adding by 1 shifts the circle 1 unit to the right. Therefore, the largest norm would be at $k = 0$ (the $0^\circ$ angle value), and the second largest would be at $k = 1$ and $k = n-1$ (by symmetry). Taking $k = 1$, we have $$\frac{|| e^{2\pi i/n} + 1 ||}{2} = \frac{\sqrt{(\cos\left(\frac{2\pi}{n}\right)+1)^2 + \sin^2\left(\frac{2\pi}{n}\right)}}{2}.$$ Simplifying gives your answer. A lot of problems in complex variables can be solved with geometric intuition.