I am trying to calculate the definitive integral by definition (with Riemann sum). $$\int_{\frac{-\pi}{2}}^{\frac{3\pi}{2}} (2\sin{(2x+\frac{3\pi}{2})}) \ dx$$
But during the process of calculating it I have troubles evaluating this finite sum:
$$\sum_{i=1}^{n} \sin({\frac{\pi}{2}+\frac{4 \pi i}{n}})$$
I would greatly appreciate if you could help me figure out a nice expression for this using high school techniques.
Consider the set of points
$$[\sin(\pi/2 + 4 \pi i/n),\cos(\pi/2 + 4 \pi i /n)] \subset \mathbf{R}^2, \ i = 1,\ldots n.$$
if $n$ is odd, these are the vertices of a regular $n$-gon centered at the origin, and if $n$ is even, they are the vertices of a regulat $n/2$-gon centered at the origin which each point occuring with multiplicity two.
In either case, the set of points is invariant by the rotation by $4 \pi/n$. Thus the average of the points is also invariant by this rotation. But the only point invariant by a non-trivial rotation is zero. Hence, if $n \ne 1,2$, the sum of all the points is zero, and thus the sum is zero for $n > 2$.