The Stone–Weierstrass Shortcut: When Does a Subalgebra Separate Points?
Let be the set of all continuous functions of the form
for some and real coefficients . That is, is the algebra of all polynomials in .
Question: Is dense in (with the sup-norm)?
Now consider instead
the algebra generated by (all polynomials in with only odd powers, plus the zero function).
Which of and is dense in , and which is not? Identify the precise obstruction for the one that fails.
Answer: Stone–Weierstrass: Even vs Odd Power Subalgebras
Key Idea / Intuition
The Stone–Weierstrass theorem says a subalgebra of is dense if and only if it separates points and contains a nonzero constant. The algebra (even powers) contains the constant function (take , ) and separates points on , so it is dense. The algebra (odd powers only) contains no nonzero constants — every function in vanishes at — and therefore cannot approximate, say, .
Formal Proof / Solution
is dense in
consists of all polynomials in the variable . Since , we have as well, and the map is a bijection from onto .
More precisely, define by . Any defines (since is continuous on ). By the classical Weierstrass approximation theorem, polynomials in are dense in , so can be approximated by some . Then
Hence is dense. Equivalently, by the Stone–Weierstrass theorem: is a subalgebra of that
- contains constants: (set , ),
- separates points: for in , (since both are nonnegative and distinct implies their squares are distinct on ).
So is dense by Stone–Weierstrass.
is not dense in
Every function has the form , so in particular
The closure of in the sup-norm therefore satisfies: every must also satisfy (since uniform limits preserve pointwise values). But the constant function satisfies , so
Hence is not dense in .
The precise obstruction: is contained in the proper closed subspace
so its closure can be at most this proper subspace—far from all of .
Summary
| Algebra | Contains constants? | Separates points? | Dense in ? | |---------|-------------------|-------------------|----------------------| | (even powers ) | ✓ (constant 1) | ✓ | Yes | | (odd powers ) | ✗ (all vanish at 0) | ✓ | No |
The Stone–Weierstrass theorem makes the failure of structural and inevitable: lacking constants is a fatal obstruction when the base point is in the domain.