$$\lim_{n\to\infty}n\left|e^\frac{i2\pi}n-1\right|$$ I know that it must be $2\pi$ since it's just approximating the perimeter of the circle, but I can't do the limit algebraically.
I tried using the De Moivre formula: $e^{i\theta}=\cos(\theta)+i\sin(\theta)$, didn't work.
Any tips?
Edit: solved using @xpaul advice since it was the thing I was doing but I missed a 2 in the expansion of $(1-\cos(\frac{\pi}{n}))^2$.
Also solved it using Robert Israel hint because it was very clever.
Noting \begin{eqnarray*} 1-e^{\frac{2\pi i}{n}}|&=&\bigg|1-\cos(\frac{2\pi}{n})-i\sin(\frac{2\pi}{n})\bigg|\\ &=&\sqrt{\bigg[1-\cos(\frac{2\pi}{n})\bigg]^2+\sin^2(\frac{2\pi}{n})}\\ &=&\sqrt{2-2\cos(\frac{2\pi}{n})}\\ &=&2\sin(\frac{\pi}{n}) \end{eqnarray*} one has $$\lim_{n\rightarrow\infty} n\left|e^\frac{i2\pi}{n}-1\right|=\lim_{n\to\infty}2n\sin(\frac{\pi}{n})=2\pi. $$ Here $$ \lim_{x\to0}\frac{\sin x}{x}=1. $$