[Math] When is a uniformly dense family of functions dense in L^p

real-analysis

Suppose $\mathcal{A}\subset L^p(\mathbb{R})$ is an algebra of functions with the following property:

For every compact $K\subset\mathbb{R}$, $\mathcal{A}$ is dense in $\mathcal{C}(K)$ with respect to the uniform norm $\|\cdot\|_{\infty}$, where $\mathcal{C}(K)$ is the collection of real continuous functions on $K$. The uniform norm I'm referring to is
$$\|f\|_{\infty}=\sup_{t\in K}|f(t)|.$$
(See http://en.wikipedia.org/wiki/Uniform_norm.)

Can we conclude that $\mathcal{A}$ is dense in $L^p(\mathbb{R})$ (with respect to the $L^p$ norm)?

I became interested in this question while investigating a special case, the $L^2$-density of finite linear combinations of Gaussians:

$$\sum_{i=1}^n\alpha_ie^{-k_i(x-x_i)^2},\qquad\alpha_i,k_i,x_i\in\mathbb{R},k_i>0.$$

The question above occurred to me because I can imagine it being useful in cases like this to, say, verify the hypotheses of the Stone-Weierstrass theorem for a given family of functions rather than to explicitly approximate functions in $L^p$.

Best Answer

I think you can pull an argument like this : define the sequence of compacts $[-n, n]$ ; since $\mathcal A$ is dense in each of them, for each function $f \in L^p(\mathbb R)$ and for all $n$, there exists a sequence $f_{n,m}(x)$ such that $f_{n,m} \to f$ in $[-n,n]$ with respect to the norm you've chosen as $m \to \infty$.

You could extract a subsequence out of the sequences $f_{n,m}$ by the following argument. Choose a sequence $\varepsilon_k \to 0$. We will find $g_k$ such that $$ \|g_k - f\|_{\infty} \overset{def}{=} \inf \{ K > 0 \, | \, \mu(\{x \in \mathbb R \, | \, |g_k(x) - f(x)| > K\} ) = 0 \} < \varepsilon_k. $$ (I believe this is the detailed definition of your norm? Correct me if I'm wrong.)

with $\mu$ being the Lebesgue measure.

Now $f \in L^p$, so that for $n$ big enough, $|f(x)| < \varepsilon_k/2$ almost everywhere outside $[-n,n]$. Fix this $n$.

This is the point where I am stuck at. Since $f_{n,m} \to f$ in $[-n,n]$, there exists $m$ such that $\|f_{n,m}-f \|_{\infty} < \varepsilon_k$ inside $[-n,n]$ and $|f_{n,m}(x)| < \varepsilon_k/2$ outside$^{*}$ $[-n,n]$ ($f_{n,m} \in L^p$ also, hence goes to $0$ at infinity.)

This guy ($^{*}$) is the problem ; I don't have any control over what happens to $f_{n,m}$ outside $[-n,n]$ and that is what gives me intuition that it might be false in the general case. Although your choice of functions exhibit more properties than the abstract one... but this is now at a state of intuition only. Let me finish just to see where I froze in my argument.

With those properties summed up, outside $[-n,n]$, $|f_{n,m}(x) - f(x)| \le |f_{n,m}(x)| + |f(x)| < \varepsilon_k$ almost everywhere outside $[-n,n]$ and $|f_{n,m}(x) - f(x)| < \varepsilon_k$ inside $[-n,n]$, so that $|f_{n,m}(x)-f| < \varepsilon_k$ almost everywhere over $\mathbb R$, that is, we have found $f_{n,m}$ such that $\|f_{n,m} - f\|_{\infty} < \varepsilon_k$. Just let $g_k = f_{n,m}$.

I hope it helped in some way to at least give you some ideas.

EDIT : I forgot the "$ = 0$" in my definition of the norm. Typo error.

Related Question