MTH 420 · Functional Analysis
Our notes
2 min readWeierstrass approximation theorem (1885)
Every continuous function on [a, b] is a uniform limit of polynomials: for every ε > 0 there is a polynomial p with abs(f(x) − p(x)) < ε for all x in [a, b].
A constructive proof: Bernstein polynomials
On [0, 1], define
Bₙf(x) = Σ from k = 0 to n of f(k/n) × C(n, k) xᵏ (1 − x)^(n−k).
Then Bₙf → f uniformly. Probabilistic reading: if Sₙ ~ Binomial(n, x), then Bₙf(x) = E f(Sₙ/n); by uniform continuity of f and Chebyshev's inequality (Var(Sₙ/n) = x(1 − x)/n ≤ 1/(4n)), the expectation is close to f(x) uniformly.
Worked example
f(x) = x². Bₙf(x) = E(Sₙ²/n²) = x² + x(1 − x)/n. The error is x(1 − x)/n ≤ 1/(4n): for n = 100, at most 0.0025.
Stone-Weierstrass theorem (real version)
Let K be a compact Hausdorff space (a compact metric space in this course) and A a subset of C(K, ℝ) that is:
- a subalgebra (closed under addition, scalar multiples and products),
- contains the constants,
- separates points: for x ≠ y in K there is f in A with f(x) ≠ f(y).
Then A is dense in C(K, ℝ) with the sup norm.
Proof outline
- The closure Ā is also such an algebra. Show abs(f) is in Ā for f in Ā: approximate √t on [0, ‖f‖²] by polynomials (Weierstrass for one function), and apply them to f².
- So max(f, g) = (f + g + abs(f − g))/2 and min(f, g) are in Ā: Ā is a lattice.
- For any continuous h, points x, y, and ε: find gₓᵧ in Ā equal to h at x and y (separation plus constants). Take minima over finitely many y (compactness) to get gₓ ≤ h + ε everywhere and gₓ(x) > h(x) − ε nearby; then maxima over finitely many x give g in Ā with abs(g − h) < ε.
Complex version
Over ℂ, the algebra must also be closed under complex conjugation (self-adjoint). Without it the theorem fails: polynomials in z on the closed unit disc are not dense in C(disc), since uniform limits are analytic inside (z̄ is not such a limit).
Consequences
- Polynomials in n variables are dense in C(K) for compact K in ℝⁿ.
- Trigonometric polynomials (finite sums of cos nx, sin nx) are dense in the continuous 2π-periodic functions (apply it on the circle): Fejér's theorem in another form.
- C[a, b] is separable (polynomials with rational coefficients are a countable dense set).
- Even polynomials are dense in C[0, 1] (they separate points of [0, 1]) but not in C[−1, 1] (they cannot separate x and −x).
Exams usually ask
- State Weierstrass and prove it with Bernstein polynomials.
- State Stone-Weierstrass and decide whether a given algebra is dense.
Common mistake
Forgetting the conditions. An algebra that vanishes at a common point (all f(0) = 0) or fails to separate points is not dense.
Written by the UniHive team in our own words. Spotted a mistake? Tell us on WhatsApp.
No reading links here yet
Our team adds free books, videos and practice for each topic, and opens every link before it goes up.