The Stone–Weierstrass Shortcut: Polynomials Dense, but How Dense?
Let be continuous and suppose
Prove that on .
Now here is the twist: what if the condition only holds for all even ? Must still be identically zero?
Answer: Polynomials Dense: Orthogonality Forces Zero
Key Idea / Intuition
The first part is a classic application of the Weierstrass approximation theorem: if is orthogonal to every monomial , it is orthogonal to every polynomial, hence (by density of polynomials in ) orthogonal to itself — forcing .
The twist is subtler. Even monomials are not dense in : they cannot approximate (an odd function on ), so the argument breaks. But with a clever substitution (), the even-index condition is equivalent to the full condition for a different continuous function, so must still vanish — just for a less obvious reason.
Formal Proof / Solution
Part 1: Orthogonal to all monomials
Step 1. By linearity of the integral, orthogonality to all implies orthogonality to every polynomial :
Step 2. By the Weierstrass Approximation Theorem, there exist polynomials uniformly on .
Step 3. Therefore:
Since is continuous and with , we conclude .
Part 2: Orthogonal to even monomials ?
Yes, must still be identically zero, and here is why.
The key substitution: Let , so . Then for each even :
Define , which is continuous on . The above says:
Now look at the condition (even): , which is . Good, this is the case.
But we also need odd powers. Consider the condition for gives . For (odd powers of in ): note that is orthogonal to all even powers . To get odd powers, observe:
since ranges over all positive integers as ranges over , and by hypothesis for all even (taking when we make the reverse substitution…).
Let me give a cleaner route. Since orthogonality gives, after substitution , that is orthogonal to all monomials and (by the computation just done) also orthogonal to all . So is orthogonal to all monomials, hence by Part 1.
So for all . For this gives , and since ranges over as ranges over , we get for all . By continuity at , as well.
Therefore .
Summary
| Condition | Dense in ? | ? | |---|---|---| | Orthogonal to all | Yes (Weierstrass) | Yes | | Orthogonal to all | No | Yes (via substitution trick) |
The surprise: even though even monomials are not dense, the substitution "transfers" the condition to a function that ends up being orthogonal to all monomials.