Here is another homework question that I did and I'd be glad if you could tell me if it's right.
We now strengthen the result of Question Two for $R$ where we have the notion of differentiability. Prove that for any open $Ω ⊂ R$ the set of smooth functions with compact support is dense in $L_1(Ω, λ)$ where $λ$ is the usual Lebesgue measure.
a) Define $J(x) = ke^{\frac{-1}{1−x^2}}$ for $|x| < 1$ and equal to zero elsewhere. Here, the constant $k$ is chosen such that $\int_R J = 1$. Prove that the mollifier $J_ε(x) = \frac{1}{\varepsilon}J(\frac{x}{\varepsilon})$ vanishes for $|x| ≥ ε$ and $\int J_\varepsilon = 1$.
For $f ∈ L_1$ define the regularization of f by convolving with $J_ε$: $$ f_ε(x) = J_ε \ast f(x) = \int_\Omega J_\varepsilon (x - y ) f(y) d \lambda(y)$$
b) Prove that $f_ε$ is integrable.
c) Prove that $f_ε$ is smooth.
d) Prove that if $f$ has compact support then so does $f_ε$.
e) Finish the proof: For any $f ∈ L_1(Ω)$ there exists $g ∈ C_C^\infty(Ω)$ such that $|f − g| < ε$.
Answer:
a) $|x| > \varepsilon \implies |\frac{x}{e}| > 1$ by definition $J_\varepsilon = 0$.
$$ \int J_\varepsilon = \frac{1}{\varepsilon} \int_R J(\frac{x}{\varepsilon}) = \frac{1}{\varepsilon} \int J(y) \varepsilon d \lambda = 1$$ doing a variable substitution
b) $$ \int_R \int_\Omega J_\varepsilon (x - y) f(y) d \lambda(y) d\lambda(x) = \int_\Omega \int_R J_\varepsilon (x - y) dx f(y) dy = \int_\Omega f(y) dy \leq \int_R |f(y)| dy < \infty$$ using Fubini
c) $$ \frac{d}{dx^{(n)}} f_\varepsilon (x) = \frac{d}{dx^{(n)}} \int_\Omega J_\varepsilon(x -y) f(y) dy = \int_\Omega \frac{d}{dx^{(n)}} J_\varepsilon (x -y ) f(y) dy$$ where $J_\varepsilon(x-y) = e^{g(x)}$ is smooth.
d) $\int$ is linear $\implies $ continuous $\implies $ maps compact sets to compact sets
$f$ has compact supp. $A$, $J_\varepsilon$ has compact support $B$ then $f J_\varepsilon$ has compact support $A \cap B$
e) take $g$ to be $f_\varepsilon$
Many thanks for your help.