Proof of the Weierstrass Approximation Theorem
Theorem. The set of (real) polynomials is dense in C[0,1], the Banach space of continuous real-valued functions on [0,1] equipped with the uniform (supremum) norm
[
|f|\infty = \sup{x\in[0,1]} |f(x)|.
]
That is, for every f∈C[0,1] and every ε>0, there exists a polynomial p such that ∥f−p∥∞<ε.
Proof. We use the Bernstein polynomials of f, defined for each n∈N by
[
B_n(f)(x) = \sum_{k=0}^n f\left(\frac{k}{n}\right) \binom{n}{k} x^k (1-x)^{n-k}, \quad x\in[0,1].
]
Each Bn(f) is a polynomial of degree at most . It suffices to prove
[
\lim_{n\to\infty} |B_n(f) - f|{k=0}^n \left[f\left(\frac{k}{n}\right) - f(x)\right] p_{n,k}(x),
]
where are the (). Then,
[
|B_n(f)(x) - f(x)| \le \sum_{|k/n - x| < \delta} |f(k/n) - f(x)| , p_{n,k}(x) + \sum_{|k/n - x| \ge \delta} |f(k/n) - f(x)| , p_{n,k}(x).
]
The first sum is at most . The second sum is at most
[
2M \sum_{|k/n - x| \ge \delta} p_{n,k}(x) = 2M , \mathbb{P}\left( \left|\frac{S_n}{n} - x\right| \ge \delta \right),
]
where .
By Chebyshev's inequality and the fact that Var(Sn/n)=x(1−x)/n≤,
[
\mathbb{P}\left( \left|\frac{S_n}{n} - x\right| \ge \delta \right) \le \frac{\mathrm{Var}(S_n/n)}{\delta^2} \le \frac{1}{4n\delta^2}.
]
This bound is in . Choose large enough so that for all ,
[
\frac{2M}{4n\delta^2} = \frac{M}{2n\delta^2} < \frac{\varepsilon}{2} \quad \Bigl( \text{i.e., } n > \frac{M}{\varepsilon \delta^2}\Bigr).
]
Then, for all and all ,
[
|B_n(f)(x) - f(x)| \le \frac{\varepsilon}{2} + \frac{\varepsilon}{2} = \varepsilon.
]
Thus, for , so polynomials are dense in .
\qed
Remarks.
- Bernstein polynomials exactly reproduce polynomials of degree ≤1: Bn(1)=1 and B.