TITLE: Proving $\sum_{n=1}^m\sin^2\left(n\frac\pi{m}\right)=\frac{m}2$ for $m\geq 2$ by induction
QUESTION [5 upvotes]: $$\sum_{n=1}^m \sin^2\left(n\frac{\pi}{m}\right) = \frac{m}{2}$$ for all $m\ge2$ positive integers

I'm doing a maths problem that involves proving by mathematical induction the sum of a sigma. I find it hard because the highest term is included in the sigma so it changes the actual sigma.
If anyone can help me, please respond it would be very useful!! Even just the smallest help will go a long way : )
Here is the Desmos link to show you this is true.
But I want to prove it using induction.
Thanks.

REPLY [3 votes]: Well I guess I found a proof without using induction. Perhaps it will be of any use to you so I will leave it here.
$$\sin\varphi=\frac{e^{i\varphi}-e^{-i\varphi}}{2i}$$
Let $\varphi_n=\frac{n\pi}{m}$
$$ \sum_{n=1}^{m}\sin^2{\varphi_n}=\sum_{n=1}^m\left(\frac{e^{i\varphi_n}-e^{-i\varphi_n}}{2i}\right)^2=\sum_{n=1}^m\frac{e^{2i\varphi_n}+e^{-2i\varphi_n}-2}{-4}=\frac{m}{2}-\left(\sum_{n=1}^me^{2i\varphi_n} +\sum_{n=1}^me^{-2i\varphi_n}\right)=\frac{m}{2}-\left(\sum_{n=1}^me^{2i\frac{n\pi}{m}} +\sum_{n=1}^me^{-2i\frac{n\pi}{m}}\right)=\frac{m}{2}-\left( \frac{e^{2\pi i}-1}{e^\frac{2\pi i}{n}-1}+\frac{e^{-2\pi i}-1}{e^{-\frac{2\pi i}{n}}-1}\right)=\frac{m}{2}-\left( \frac{1-1}{e^\frac{2\pi i}{n}-1}+\frac{1-1}{e^{-\frac{2\pi i}{n}}-1}\right)=\frac{m}{2}$$