Define a step function to be a function that is piecewise constant, $$ f(x)=\sum_{i=1}^{n}c_i\chi_{[a_i,b_i)},$$ where $[a_i,b_i)$ are disjoint intervals.
- Prove that every continuous function on a compact interval is a uniform limit of step functions.
- Prove that a uniform limit of step functions (on a compact interval) is Riemann integrable.
For second one, if 1. holds, uniform convergence can be used to establish integrability and difÂferentiability of limits of functions and the interchange of the operation and the limit. So, if $f_n$ are Riemann integrable on $[a,b]$ and $f_n$ converges uniformly to $f:[a,b]\rightarrow\mathbb{R}$, then $f$ is Riemann integrable and $$ \int_a^bf_ndx\longrightarrow\int_a^bfdx. $$ But, how can I prove the first lemma?