Proving Weierstrass Approximation Theorem
I need to prove that polynomials are dense in C[0,1] with the sup norm. There are classical proofs like Bernstein polynomials and Stone-Weierstrass. I should focus on offering a direct proof, perhaps through Bernstein's construction, keeping it rigorous yet concise. I'll start by defining C[0,1] and what "dense" means, then show that for any continuous function f and ε>0, there exists a polynomial p where the sup |f-p| is less than ε. Let's be thorough while maintaining clarity!Applying Coupling with Binomial Distribution
I'm thinking of using coupling with the binomial distribution by defining a random variable ( X_n \sim \text{Bin}(n, x)/n ). I want to show that ( B_n(f)(x) ) approaches ( f(x) ). The strategy involves decomposing the difference and using uniform continuity. I'll split the sum into two regions and apply Chebyshev's inequality for the outer sum. As ( n ) grows, I can bound the difference to show that ( |B_n(f)(x)-f(x)| \leq \epsilon ) uniformly for ( x ). This should complete the proof!Ensuring Bernstein's Polynomials
I need to confirm that Bernstein is indeed a polynomial, which is fairly trivial by definition. I also want to verify that ( B_n(f) ) belongs to ( C[0,1] ) and check that the operator is linear, although this isn't essential for denseness. Since the user mentioned the Weierstrass theorem, I'll stick with the Bernstein classical proof. My aim is to write a clear, self-contained explanation that avoids advanced probability concepts, while using binomial distribution in a combinatorial way. I'll define ( b_{n,k}(x) ) properly, focusing on the necessary sums and moments.Computing Bernstein's Moments
I need to demonstrate that ( \Sigma k b_{n,k}(x) = n x ), leading to ( \Sigma k/n b_{n,k}(x) = x ). Then, I can compute ( \Sigma (k/n)^2 b_{n,k}(x) = x^2 + x(1-x)/n ), starting from ( \Sigma k(k-1) C(n,k) x^k (1-x)^{n-k} = n(n-1)x^2 (x+1-x)^{n-2} ). I can apply a Chebyshev-type tail bound using weights to explore ( A_n(x) ) while ensuring uniform convergence as ( n ) increases. I’ll consider splitting the analysis into two sums for clarity.Structuring the Proof
I'm refining my steps for proving uniform convergence. I'll show that ( S_2 ) is less than or equal to ( M/(2n \delta^2) ) and that as long as ( N ) is sufficiently large, ( M/(2N \delta^2) ) can remain under ( \epsilon/2 ). The key here is ensuring I can select ( \delta ) using uniform continuity since ( M ) exists due to compactness on [0,1]. I’ll then outline the proof structure, remembering to define the Bernstein polynomial and clarify the algebra without overcomplicating it. I’ll consider mentioning Stone–Weierstrass as a side note. Let’s get started! Let (C[0,1]) be the space of real-valued continuous functions on ([0,1]), with the sup norm
[
|f|\infty = \sup{x\in[0,1]} |f(x)|.
]
Theorem (Weierstrass Approximation).
For every (f\in C[0,1]) and every (\varepsilon>0), there exists a polynomial (p) such that
[
|f - p|_\infty < \varepsilon.
]
Equivalently: the set of polynomials is dense in (C[0,1]).
We prove this using Bernstein polynomials.
1. Bernstein polynomials
For (f\in C[0,1]) and each integer (n\ge1), define
[
B_n(f)(x) := \sum_{k=0}^n f\Big(\frac{k}{n}\Big)\binom{n}{k} x^k (1-x)^{n-k},\quad x\in[0,1].
]
Each (B_n(f)) is a polynomial in (x), since it is a finite linear combination of monomials (x^k(1-x)^{n-k}).
We will show that
[
|B_n(f) - f|_\infty ;\longrightarrow; 0 \quad\text{as } n\to\infty.
]
This gives the theorem, because each (B_n(f)) is a polynomial.
2. Useful identities
Set
[
b_{n,k}(x) := \binom{n}{k}x^k(1-x)^{n-k}, \quad k=0,\dots,n.
]
Then:
- (\displaystyle \sum_{k=0}^n b_{n,k}(x) = (x+(1-x))^n = 1.)
- All (b_{n,k}(x)\ge 0) for (x\in[0,1]).
So the (b_{n,k}(x)) form a set of nonnegative weights summing to 1. Also, for later:
[
\sum_{k=0}^n \frac{k}{n} b_{n,k}(x) = x, \quad
\sum_{k=0}^n \Big(\frac{k}{n} - x\Big)^2 b_{n,k}(x) = \frac{x(1-x)}{n} \le \frac{1}{4n}.
]
Sketch of the second identity:
-
First compute
[
\sum_{k=0}^n k,b_{n,k}(x)
= nx(x+(1-x))^{n-1} = nx,
]
hence (\sum (k/n) b_{n,k}(x) = x).
-
Then compute
[
\sum_{k=0}^n k(k-1),b_{n,k}(x)
= n(n-1) x^2 (x+(1-x))^{n-2} = n(n-1)x^2,
]
from which one gets (\sum k^2 b_{n,k}(x)), and hence
[
\sum\Big(\frac{k}{n} - x\Big)^2 b_{n,k}(x) = \frac{x(1-x)}{n}.
]
So the “variance” of the points (k/n) under weights (b_{n,k}(x)) is at most (1/(4n)).
3. Uniform continuity of (f)
Since (f) is continuous on the compact interval ([0,1]), it is uniformly continuous and bounded.
- Let (M := \max_{[0,1]} |f|).
- For the given (\varepsilon>0), there exists (\delta>0) such that
[
|x - y| < \delta \quad\Rightarrow\quad |f(x) - f(y)| < \frac{\varepsilon}{2}.
]
4. Estimating (|B_n(f)(x) - f(x)|)
Fix any (x\in[0,1]). Then
[
B_n(f)(x) - f(x)
= \sum_{k=0}^n \big(f(\tfrac{k}{n}) - f(x)\big),b_{n,k}(x).
]
Take absolute values:
[
|B_n(f)(x) - f(x)|
\le \sum_{k=0}^n \big|f(\tfrac{k}{n}) - f(x)\big|,b_{n,k}(x).
]
Split the sum into “near” and “far” terms, according to whether (k/n) is within (\delta) of (x):
[
\begin{aligned}
|B_n(f)(x) - f(x)|
&\le \sum_{|k/n - x| < \delta} \big|f(\tfrac{k}{n}) - f(x)\big|,b_{n,k}(x)\
&\quad + \sum_{|k/n - x|\ge \delta} \big|f(\tfrac{k}{n}) - f(x)\big|,b_{n,k}(x) \
&=: S_1(x) + S_2(x).
\end{aligned}
]
4.1. Near part
If (|k/n - x|<\delta), then by uniform continuity (|f(k/n)-f(x)|<\varepsilon/2). Hence
[
S_1(x) \le \frac{\varepsilon}{2} \sum_{k=0}^n b_{n,k}(x) = \frac{\varepsilon}{2}.
]
4.2. Far part
For the “far” terms, use only boundedness (|f|\le M):
[
S_2(x) \le 2M \sum_{|k/n - x|\ge \delta} b_{n,k}(x).
]
We estimate the tail sum using a simple inequality (a discrete form of Chebyshev):
For any numbers (y_k), weights (w_k\ge0) with (\sum w_k=1), and any (\delta>0),
[
\sum_{|y_k - a|\ge \delta} w_k
;\le; \frac{1}{\delta^2} \sum (y_k - a)^2 w_k.
]
Reason: if (|y_k-a|\ge\delta), then (1 \le (y_k-a)^2/\delta^2); otherwise the term is 0. Multiply by (w_k) and sum.
Apply this with (y_k = k/n), (a=x), (w_k = b_{n,k}(x)). Then
[
\sum_{|k/n - x|\ge \delta} b_{n,k}(x)
\le \frac{1}{\delta^2} \sum \Big(\frac{k}{n} - x\Big)^2 b_{n,k}(x)
= \frac{x(1-x)}{n\delta^2}
\le \frac{1}{4n\delta^2}.
]
So
[
S_2(x) \le 2M \cdot \frac{1}{4n\delta^2} = \frac{M}{2n\delta^2}.
]
Thus, for every (x\in[0,1]),
[
|B_n(f)(x) - f(x)|
\le \frac{\varepsilon}{2} + \frac{M}{2n\delta^2}.
]
Choose (n) large enough that
[
\frac{M}{2n\delta^2} \le \frac{\varepsilon}{2},
]
i.e. take any
[
n \ge \frac{M}{\varepsilon \delta^2}.
]
Then for all such (n),
[
|B_n(f)(x) - f(x)| \le \varepsilon \quad\text{for all } x\in[0,1],
]
so
[
|B_n(f) - f|_\infty \le \varepsilon.
]
5. Conclusion
For any continuous (f:[0,1]\to\mathbb{R}) and any (\varepsilon>0), there exists an integer (n) such that the polynomial (B_n(f)) satisfies
[
|B_n(f) - f|_\infty < \varepsilon.
]
This shows that the set of polynomials is dense in (C[0,1]), which is exactly the Weierstrass approximation theorem.