๐Ÿงฎ Brain Teaser

The Stoneโ€“Weierstrass Gap: A Subalgebra That Misses One Function

Let AA be the set of all continuous functions f:[0,1]โ†’Rf : [0,1] \to \mathbb{R} such that

โˆซ01f(x)โ€‰dx=0.\int_0^1 f(x)\, dx = 0.

Is AA dense in C([0,1])C([0,1]) (equipped with the uniform norm โˆฅโ‹…โˆฅโˆž\|\cdot\|_\infty)?

If not, characterize exactly which functions can be uniformly approximated by elements of AA.

functional analysisBanach spacesuniform approximationhyperplaneintegration

Answer: Zero-Mean Functions: A Closed Hyperplane in C([0,1])

Key Idea / Intuition

The set AA is a closed proper subspace of C([0,1])C([0,1]), not a dense set. The obstruction is the integral functional: if fnโ†’ff_n \to f uniformly, then โˆซ01fnโ†’โˆซ01f\int_0^1 f_n \to \int_0^1 f, so the limit of any sequence in AA must also integrate to zero. Thus AA is already closed, and you can only uniformly approximate functions whose integral is exactly zero. The punchline is surprisingly clean: the closure of AA is AA itself, and the "reachable" functions are precisely those with zero mean.


Formal Proof / Solution

Step 1: AA is closed.

Define the linear functional L:C([0,1])โ†’RL : C([0,1]) \to \mathbb{R} by L(f)=โˆซ01f(x)โ€‰dxL(f) = \int_0^1 f(x)\,dx.

This functional is continuous in the uniform norm, since

โˆฃL(f)โˆฃ=โˆฃโˆซ01f(x)โ€‰dxโˆฃโ‰คโˆฅfโˆฅโˆžโ‹…1=โˆฅfโˆฅโˆž.|L(f)| = \left|\int_0^1 f(x)\,dx\right| \leq \|f\|_\infty \cdot 1 = \|f\|_\infty.

Since A=Lโˆ’1({0})A = L^{-1}(\{0\}) is the preimage of the closed set {0}\{0\} under a continuous map, AA is closed in C([0,1])C([0,1]).

Step 2: AA is not dense.

The constant function gโ‰ก1g \equiv 1 has L(g)=1โ‰ 0L(g) = 1 \neq 0, so gโˆ‰Ag \notin A.

If AA were dense, there would exist fnโˆˆAf_n \in A with โˆฅfnโˆ’gโˆฅโˆžโ†’0\|f_n - g\|_\infty \to 0. But then

โˆฃL(fn)โˆ’L(g)โˆฃโ‰คโˆฅfnโˆ’gโˆฅโˆžโ†’0,|L(f_n) - L(g)| \leq \|f_n - g\|_\infty \to 0,

which forces L(g)=limโกL(fn)=0L(g) = \lim L(f_n) = 0, a contradiction.

Step 3: Characterization of Aโ€พ\overline{A}.

Since AA is already closed, Aโ€พ=A\overline{A} = A itself. Therefore:

Aโ€พ=A={fโˆˆC([0,1]):โˆซ01f(x)โ€‰dx=0}.\overline{A} = A = \left\{f \in C([0,1]) : \int_0^1 f(x)\,dx = 0\right\}.

A function gโˆˆC([0,1])g \in C([0,1]) can be uniformly approximated by elements of AA if and only if โˆซ01g(x)โ€‰dx=0\int_0^1 g(x)\,dx = 0.

Step 4: The geometric picture (codimension-1 hyperplane).

AA is a closed hyperplane in the Banach space C([0,1])C([0,1]): it is the kernel of the bounded linear functional LL. Its codimension is exactly 1. The full space decomposes as

C([0,1])=AโŠ•Rโ‹…1,C([0,1]) = A \oplus \mathbb{R} \cdot \mathbf{1},

where 1\mathbf{1} is the constant function 11. Any ff decomposes as

f=(fโˆ’โˆซ01fโ€‰dx)โŸโˆˆA+โˆซ01fโ€‰dxโŸscalarโ‹…1.f = \underbrace{\left(f - \int_0^1 f\,dx\right)}_{\in A} + \underbrace{\int_0^1 f\,dx}_{\text{scalar}} \cdot \mathbf{1}.

The distance from any ff to AA is exactly โˆฃโˆซ01f(x)โ€‰dxโˆฃ\left|\int_0^1 f(x)\,dx\right|, which is zero if and only if fโˆˆAf \in A.

Conclusion: AA is a closed, proper, dense-in-itself subspace of codimension 1. The only functions uniformly approximable by zero-mean continuous functions are the zero-mean continuous functions themselves.