I'm asked to show that
$\lim_{n\to\infty}\frac{b-a}{n}\sum_{k=1}^n f(a+k\frac{b-a}{n}) = \int_{a}^{b}f(x)dx$.
I tried to come up with a step function that is constant on each of the open intervals $(a+k\frac{b-a}{n},a+(k+1)\frac{b-a}{n})$ and has a jump size of $\frac{b-a}{n}$ at $a+k\frac{b-a}{n}$. I think $\alpha_n = [floor(\frac{x-a}{\frac{b-a}{n}})](\frac{b-a}{n})$ works, so I want to show that $\alpha_n$ converges pointwise to $x$ and then invoke the Helly's second theorem.
I don't know how to show that function converges to $x$, any help will be appreciated.