The limit of infinite sum to the integral is considered usually on the compact interval. However, I am curious about unbounded cases.
Let $f(x)=e^{-x^2}$, which is a very good function. Then, does \begin{equation} \frac{1}{2^n} \sum_{k=1}^{n\cdot 2^n} e^{-k^2/4^n} \to \int_0^\infty e^{-x^2}dx \end{equation} hold as $n \to \infty$?
I tried to show this but it seems trickier than expected since the domain of integration is not bounded.. Could anyone please help me?
If the above limit does not hold, how should I set the partition in order to have a sum that converges to $\int_0^\infty e^{-x^2}dx$?