I want to solve the following:
Let $ f:(a,b)\to\mathbb{R}$ continous such that $f(x)\ge 0 $ for all $x\in(a,b)$. Show that $f$ is integrable iff $\displaystyle \lim_{\varepsilon\to0} \int_{[a+\varepsilon,b-\varepsilon]}f$ exists.
My attempt:
$\Leftarrow]$ I want invoke the following proposition:
If $A$ is open and bounded, and $f:A\to\mathbb{R}$ is bounded and its set of discontinuities is measure zero, then $f$ is integrable.
And we have that $(a,b)$ is bounded by the one dimensional rectangle $[a,b]$ and since $f$ is continous we have that it is bounded in $(a,b)$, but the thing is that this argument does not need the limit. Can you help me fix this please?
If $f$ is integrable then we have that:
$$\sum_{\phi \in F} \phi f \to \int_{(a,b)} f = \displaystyle \lim_{\varepsilon\to0} \int_{[a+\varepsilon,b-\varepsilon]}f$$
But I think this is a little bit trivial and I think I am wrong. Can you help me verify this, and if it is wrong, can you help me fix the mistakes please?
Thanks a lot in advance :)