I'm having trouble constructing a proof for the following theorem:
Let $f$ and $g$ be Riemann integrable functions on $[a,b]$. Show that: if $f(x)\leq g(x)$ for all $x\in [a,b]$ then: $$\int_a^b f(x)dx\leq \int_a^b g(x)dx$$
Any suggestions on how to start, or an answer would be appreciated!
Let $h(x) = g(x) -f(x)$. Then $h(x) \ge 0$ on $[a,b]$ and we have $$\int_a^bh(x)dx = \lim_{n\to \infty}\frac{b-a}{n}\sum_{k=0}^{n-1}h\left(a+(b-a)\frac{k}{n} \right) $$
Note that $$A(n) = \frac{b-a}{n}\sum_{k=0}^{n-1}h\left(a+(b-a)\frac{k}{n} \right) \ge 0$$ since $h(x) \ge 0$ on $[a,b]$. Then we have, $\lim_{n \to \infty} A(n) \ge 0$. That is, $$\int_a^bh(x)dx \ge 0 $$ $$\Rightarrow \int_{a}^b(g(x)-f(x))dx \ge 0$$ $$\Rightarrow \int_a^b g(x)dx \ge \int_a^bf(x)dx$$