Currently trying to solve the following summations:
$$\sum_{i=1}^n \sin(i^2)$$ $$\sum_{i=1}^n \cos(i^2)$$
I know that the following summations have the solutions: $$\sum_{i=1}^n \sin(i) = \frac{1}{2}(\sin(n) - \cot(\frac{1}{2})\cos(n)+\cot(\frac{1}{2}))$$
and,
$$\sum_{i=1}^n \cos(i) = \frac{1}{2}(\cos(n) + \cot(\frac{1}{2})\sin(n)-1)$$
which were answered in this post. No clue where to even begin.