I'm having troubles proving following statement
$$ \lim_{\varepsilon \to 0^+} \sum_{i=1}^{N(\varepsilon)} f(\xi_i) \chi_{(x_{i-1},x_i)}(x) = f(x) \qquad \mathrm{a.e. on}\ [0,1]. $$
$f(x)$ is a smooth function with compact support on $[0,1]$, $(x_{i-1},x_i)$ are subintervals of equidistant partition of the interval $[0,1]$ with the length $\varepsilon$ and $\xi_i$ is the center of $(x_{i-1},x_i)$.
Could someone give me a hint how to prove this? Would Riemann's definition of the integral help? Could this be true for pointwise convergence? I don't see why it's only almost everywhere.