Post · 2 min read· pp. 97–99

Stone Weierstrass Theorem (Example)

This week we continue our discussion on the Stone Weierstrass Theoremwith an example. This exercise is taken from Rudin's Principles of Mathematical Analysis (affectionately known as "Baby Rudin").

‍

Rudin, PMA, Chapter 7 #20

If ff is continuous on [0,1][0,1] and if
∫01f(x)xn  dx=0\int_0^1f(x)x^n\;dx=0
for all n=0,1,2,…,n=0,1,2,\ldots, prove that f(x)=0f(x)=0 on [0,1][0,1].

‍

‍

Solution

We'll prove by contradiction. Suppose ff is not identically 0 on [0,1][0,1]. Then there is some x0∈[0,1]x_0\in[0,1] for which, without loss of generality, f(x0)f(x_0) is positive. Since ff is continuous, we can find an open interval I⊂[0,1]I\subset[0,1] containing x0x_0 such that ff is positive on all of II.

This implies that

∫01f(x)2  dx>0\int_0^1f(x)^2\;dx>0
(since f(x)2≥0f(x)^2\geq0 for all x∈[0,1]x\in[0,1]). Further, by the Extreme Value Theorem, we can choose a constant MM so that ∥f∥=sup⁡x∈[0,1]{∣f(x)∣}≤M\|f\|=\sup_{x\in[0,1]}\{|f(x)|\}\leq M.

Now let ϵ>0\epsilon>0. By the  Stone Weierstrass Theorem we know that the polynomials on [0,1][0,1] are dense in C([0,1],R)\mathscr{C}([0,1],\mathbb{R}). Thus there exists a polynomial pp such that

∥f−p∥<ϵ/M.\|f-p\| < \epsilon/M.
We also know that
∫01p(x)f(x)  dx=0.\int_0^1p(x)f(x)\;dx=0.
 This follows since we have assumed ∫01xnf(x)  dx=0\int_0^1x^nf(x)\;dx=0 for all n=0,1,2,…n=0,1,2,\ldots. By linearity of the integral, this implies ∫01q(x)f(x)  dx=0\int_0^1q(x)f(x)\;dx=0 for any polynomial qq, including the polynomial pp which uniformly approximates ff.

Observe next that \begin{align*} \int_0^1f(x)^2;dx&=\int_0^1f(x)(f(x)-p(x));dx\ &\leq \int_0^1|f||f-p|;dx\ &=|f||f-p|\ &< M\cdot\epsilon/M\ &=\epsilon. \end{align*} Since ϵ>0\epsilon>0 was arbitrary, we conclude ∫01f(x)2  dx=0\int_0^1f(x)^2\;dx=0. But this contradicts the fact that ff is positive on the interval I⊂[0,1]I\subset[0,1]! Hence we must have that f(x)=0f(x)=0 for all x∈[0,1]x\in[0,1] as desired.