A subalgebra that separates points and contains the constants is uniformly dense — trigonometric polynomials on the circle close in on the triangle wave ∣x∣, with no algebraic polynomial in sight.
Show that the trigonometric polynomials on the circle S1, i.e. functions of the form T(θ)=∑k=−nnckeikθ, satisfy the hypotheses of the Stone–Weierstrass theorem: they form a subalgebra closed under products, contain the constants, and separate points.
eikθeimθ=ei(k+m)θ,cosAcosB=21(cos(A−B)+cos(A+B))
θ1=θ2(mod2π)⟹cosθ1=cosθ2orsinθ1=sinθ2
Degree n=8: uniform error ∥S8−f∥∞≈0.0792 — a trigonometric polynomial approximating the triangle wave f(x)=∣x∣, with no algebraic polynomial in sight.Show proof
Subalgebra: the set T of finite linear combinations of the eikθ is a linear space, and the product of two elements stays in T because eikθeimθ=ei(k+m)θ. In the real form ∑k=0n(akcoskθ+bksinkθ) the product-to-sum identities (e.g. cosAcosB=21(cos(A−B)+cos(A+B))) play the same role. Hence T is a subalgebra closed under products.
Contains constants: the k=0 term c0ei0θ=c0 produces every constant, so T contains all constant functions.
Separates points: let θ1=θ2(mod2π). If both cos and sin agreed there, then eiθ1=cosθ1+isinθ1=cosθ2+isinθ2=eiθ2, forcing θ1=θ2(mod2π) — a contradiction. So at least one of u(θ)=cosθ∈T, u(θ)=sinθ∈T takes different values at θ1 and θ2: T separates points.
Numerical check (degree n=8): by the coefficient identity ak=π2k2(−1)k−1, the even k vanish and only odd k contribute −πk24, so S8(x)=2π−π4∑odd k≤8k2cos(kx) is a trigonometric polynomial. The uniform error on the 400-point grid is 0.0792, matching the caption, falling to 0.0159 at n=40.
Let A⊂C(K,R) be a uniformly closed algebra. Show that f∈A implies ∣f∣∈A, and deduce that max(f,g) and min(f,g) also belong to the (uniformly closed) A.
∣f∣=pk∘f의극한,pk→∣t∣on [−M,M],M=∥f∥∞
max(f,g)=2f+g+∣f−g∣,min(f,g)=2f+g−∣f−g∣
Degree n=8: ∥S8−f∥∞≈0.0792 — polynomial limits capture the absolute value of a continuous function uniformly, as used in the proof.Show proof
Set M:=∥f∥∞. The absolute-value function t↦∣t∣ is continuous on [−M,M], so by the Weierstrass approximation theorem (the preceding scene) there are polynomials pk with pk→∣t∣ uniformly on [−M,M].
Each composition pk∘f is a polynomial in f, hence a linear combination of products of elements of A — an element of A since A is an algebra. Because f(K)⊂[−M,M], uniform convergence of pk→∣t∣ on [−M,M] implies uniform convergence of pk∘f→∣f∣ on K.
Since A is uniformly closed, the uniform limit ∣f∣ lies in A. If f−g∈A then ∣f−g∣∈A, so the identities max(f,g)=2f+g+∣f−g∣ and min(f,g)=2f+g−∣f−g∣ give max(f,g),min(f,g)∈A — a uniformly closed algebra is a lattice.
Note: the algebra hypothesis is essential for the pk∘f step — it is what makes powers of f available. The lattice property is what lets the density argument below carve approximants with min and max.
Complete the density argument of the Stone–Weierstrass theorem: for a subalgebra A⊂C(K,R) (K compact) that separates points and contains the constants, the uniform closure A is uniformly dense in C(K,R).
The uniform closure A is a uniformly closed algebra (closed under limits by uniform continuity of multiplication), still separating points and containing constants. It suffices to prove density for A: applying the argument below to A shows A is dense in C(K,R), i.e. A itself is dense.
(a) Two-point interpolation: fix f∈C(K,R) and ε>0. For distinct x,y∈K, the separation hypothesis gives u∈A with u(x)=u(y). The system (u(x)u(y)11)(ab)=(f(x)f(y)) has determinant u(x)−u(y)=0, so a unique solution (a,b) exists, and gxy:=au+b∈A satisfies gxy(x)=f(x), gxy(y)=f(y) (the b term lies in A because A contains the constants). For x=y take the constant function f(x).
(b) Pressing from above: fix x. For each y∈K, the set Uy:={z:gxy(z)<f(z)+ε} is open by continuity of gxy and f, and y∈Uy since gxy(y)=f(y). So {Uy:y∈K} is an open cover of the compact K, and a finite subcover Uy1,…,Uym exists. By the lattice property from the previous problem, gx:=minjgxyj∈A; since gxyj<f+ε for every j, we get gx≤f+ε on all of K. Also gxyj(x)=f(x) for every j, so gx(x)=f(x).
(c) Lifting from below: for each x∈K, Vx:={z:gx(z)>f(z)−ε} is open and x∈Vx since gx(x)=f(x). The {Vx} form an open cover of K, so a finite subcover Vx1,…,Vxl exists. With h:=maxigxi∈A (lattice property), every z∈K lies in some Vxi, giving h(z)≥gxi(z)>f(z)−ε, while h≤f+ε by (b). Hence f−ε<h<f+ε on K.
Since ε>0 was arbitrary, f∈A; since f∈C(K,R) was arbitrary, A=C(K,R) — A is uniformly dense. Numerical check: for f(x)=∣x∣ and the trigonometric-polynomial algebra T, at degree n=25 we get ∥S25−f∥∞≈0.0245, matching the caption, and the error tends to zero as the degree grows (0.0159 at n=40).