here's where I am stuck:
$$\lim_{n \to \infty} \sum_{k=0}^{n-1} \cos(kx/n)\frac{1}{n}$$
so...it looks like at this point I could convert to a Riemann integral, but to which one?
Maybe $$\int_0^{\infty} \cos(t) dt?$$
That wouldn't converge, so it wouldn't be good.
How could I proceed? It's easy to accept that $\large \frac{1}{n}$ maps to $dt$, when going from a Riemann sum to a Riemann integral, but I particularly have trouble figuring out how to convert the discrete variable to the continuous, integration variable, t.
Any ideas are welcome.
Thanks,
Hint: How would you write $$\int_0^1 \cos(xt) \,dt$$ as a Riemann sum?