# Measure Theory/Integrable Almost Continuous
## Integrable Is Almost Continuous

In this lesson we will prove that if $f:{\mathbb {R}}\to {\mathbb {R}}$ is integrable then for every $\varepsilon \in {\mathbb {R}}^{+}$ there is a continuous function $g:{\mathbb {R}}\to {\mathbb {R}}$ such that
    $\int |f-g|<\varepsilon$

### Integrable Is Approximately Simple

Going directly toward that goal doesn't have an immediately clear path. Instead, we set a simpler goal, literally. We start by showing the corresponding result for simple functions, rather than continuous functions.
That is to say, here we will show that under the same conditions, there is a simple $\psi :{\mathbb {R}}\to {\mathbb {R}}$ such that
    $\int |f-\psi |<\varepsilon$
Because we assume f is integrable, as a general measurable function, we need to consider two integrals, $\int f^{+}$ and $\int f^{-}$. We know that each of these is finite and nonnegative.
By their definitions as nonnegative integrals, there exist simple functions such that $0\leq \varphi \leq f^{+}$ and $0\leq \psi \leq f^{-}$ and
    $\int (f^{+}-\varphi ),\quad \int (f^{-}-\psi )\quad <\varepsilon$
* Exercise 1. Approximate Simple Integration
* Finish the proof started above. In particular, show that there is a simple function $\chi$, such that $\int |f-\chi |$ is arbitrarily small.
* (I am being deliberately coy about what the function $\chi$ is. It must be somehow related to $\varphi ,\psi$ but I want you to think about exactly how.)

### Integrable is Approximately Step

Exercise 3. Approximate Step Integration is the focus of this subsection. However, we will need the result of Exercise 2. Restricting the Domain Makes Integrals Small will be helpful for us to complete Exercise 3.
* Exercise 2. Restricting the Domain Makes Integrals Small
* Let $f:{\mathbb {R}}\to {\mathbb {R}}$ be an integrable function and $\varepsilon \in {\mathbb {R}}^{+}$ arbitrary.
* Show that there exists a $\delta \in {\mathbb {R}}^{+}$ such that for every measurable subset $E\subseteq {\mathbb {R}}$ with $\lambda (E)<\delta$ we have
* $\int _{E}f<\varepsilon$
* Hint: Use $\varepsilon$ and the monotone convergence theorem to find a simple function $0\leq \psi \leq f$ such that $\int f<\varepsilon +\int \psi$.
* Now select $\delta$ small enough to make $\psi \delta <\varepsilon$.
* Use these ingredients to split $\int f$ into $\int (g-\psi )+\int \psi$ and proceed with the properties of integrals.
* Exercise 3. Approximate Step Integration
* Use the earlier result relating simple to step functions, to show that there is a step function s such that
* $\int |f-s|<\varepsilon$
* with f and $\varepsilon$ as before.
* Hint: Split the integral into two domains, one of which has a small domain and the other has a small integrand. Show that both terms are small.

### Integrable Is Approximately Continuous

* Exercise 4. Approximate Continuous Integration
* With the assumptions as before, now show that there is a continuous function g such that $\int |f-g|$ is small. Given what we've shown above, at some point in your solution you should observe that for any simple function $\psi$,
* $\int |f-g|\leq \int |f-\psi |+\int |\psi -g|$
* and the left-hand term can be chosen to be small. After making this choice, you should be able to then make a choice of g which makes the second term small.