Is there any hint to prove that for every $1 \le p < \infty $ the Schwartz Class is dense in $L^p$?
Thanks so much.
Is there any hint to prove that for every $1 \le p < \infty $ the Schwartz Class is dense in $L^p$?
Thanks so much.
On
Hint:
Step 1. For every $f\in L^p$, and every $\varepsilon>0$, there exists an $M>0$, such that $$ \|\,f-\chi_{[-M,M]\,}f\|_{L^p}<\varepsilon, $$ where $\chi_A$ is the characteristic function of $A$. Set $g=\chi_{[-M,M]\,}f$.
Set 2. Let now $K_t(x)=(\pi t)^{1/2}\mathrm{e}^{-x^2/t}$, $t>0$, and define $g_t=g*K_t$. Then $$ \lim_{t\searrow 0}\|g_t-g\|_{L^p}=0, $$ and $g_t\in\mathscr S$, for all $t>0$.
On
Let $f$ be a continuous function with compact support. Because such functions are dense in $L^p, 1\le p <\infty,$ it's enough to show $f$ can be approximated by Schwartz functions in all of these $L^p$ spaces.
Suppose $f$ is supported in $[-a,a].$ Let $\epsilon>0.$ By Weierstrass, there is a polynomial $q$ such that $|q-f|<\epsilon$ in $[-a,a].$
Define the functions
$$\begin {cases}\varphi_n(t) = \exp (1/[n(t^2-a^2)]),& t\in (-a,a)\\ 0, & |t| \ge a\\ \end {cases}$$
Each $\varphi_n$ is positive on $(-a,a)$ with support $[-a,a].$ We also have $\varphi_n \in C^\infty(\mathbb R),$ bounded by $1$ everywhere, and $\varphi_n \to\chi_{(-a,a)}$ pointwise everywhere. Of course each $\varphi_n$ is in the Schwartz space.
Now $q\varphi_n$ extends to be in $C_c^\infty(\mathbb R)$ in the obvious way. Thus
$$\int_{\mathbb R}|q\varphi_n - f|^p = \int_{-a}^a |q\varphi_n - f|^p \le 2^{p-1}\left (\int_{-a}^a |q\varphi_n - q|^p + \int_{-a}^a |q-f|^p\right ).$$
If $n$ is large enough, the last integral is less than $2a\epsilon^p,$ and this is enough for what we want.
Let me consider the case $1<p<\infty$.
Hint: $C_c^\infty(\mathbb{R}^n)\subset\mathcal{S}(\mathbb{R}^n)$ + Hahn-Banach Theorem + du Bois-Reymond Lemma.
Details:
The case $p=1$ (and other approach for the case $1<p<\infty$) can be found in the Brezis book.