Weierstrass’ Approximation Theorem is a fundamental result in mathematical analysis, named after the German mathematician Karl Weierstrass. The theorem, first proven by Weierstrass in 1885, states that every continuous function defined on a closed interval can be uniformly approximated by polynomials.
Theorem (Weierstrass approximation theorem) Suppose f(x) is a continuous real-valued function defined on the real interval [a,b]. For every ε>0, there exists a polynomial P(x) such that for all x∈[a,b], we have:∣f(x)−p(x)∣<ε,or equivalently, the supremum norm∥f−p∥=0≤x≤1max∣f(x)−p(x)∣<ε.
In fact, the approximating polynomials can be defined explicitlyBn(p)=k=0∑nf(nk)Cnkpkqn−k,which are called Bernstein polynomials after mathematician Sergei Natanovich Bernstein.
Motivation
Motivation
The key motivation comes from a fundamental question in mathematics: Can we approximate complicated continuous functions using simpler functions? Specifically, can we get arbitrarily close(by choosing ε) to any continuous function using just polynomials?
This question is deeply practical. In real-world applications, we often encounter complex continuous functions that are difficult to work with directly. For example:
Functions defined by experimental data
Functions without nice analytical forms
Functions that are hard to integrate or differentiate
If we could approximate these using polynomials, which are much easier to manipulate mathematically, we'd have a powerful tool. We could:
Calculate approximate integrals
Find approximate derivatives
Evaluate the function numerically with good precision
Store the function in a computer using finite information (polynomial coefficients)
Weierstrass answered this question definitively: Yes, we can approximate any continuous function on a closed interval [a,b] with polynomials to any desired degree of accuracy. The ε can be made as small as we want by using a polynomial of sufficiently high degree.
This is quite remarkable when you think about it. Functions can be wildly complicated - they could oscillate infinitely many times, have sharp turns, or be defined by some complex physical process. Yet simple polynomials, which are just sums of powers of x, can capture all this complexity arbitrarily well.
The theorem also connects to broader ideas in mathematics:
It shows that polynomials are "dense" in the space of continuous functions
It's a foundational result in approximation theory
Evaluate the function numerically with good precision
It justifies the use of polynomial interpolation in numerical methods
This is why the theorem is considered one of the cornerstones of analysis - it bridges the gap between the theoretical world of continuous functions and the practical world of polynomial approximations.
Proof of Weierstrass's Approximation Theorem on [0,1]
Proof of Weierstrass's Approximation Theorem on [0,1]
We provide the elegant and simple Bernstein proof of the Weierstrass approximation theorem, which provides the explicit formula for approximating polynomials.
Definition of Bernstein Polynomials
If X1,…,Xn is a sequence of independent Bernoulli random variables such that ∀i∈{1,…,n}Xi={1,0,with probability p,with probability 1−p.and consider the sum Sn=X1+⋯+Xn. Let's define the Bernstein polynomialBn(p):=Ef(nSn)=k=0∑nf(nk)Cnkpk(1−p)n−k
Properties of Sum of Bernoulli random variables
1. Total probability (normalization):k=0∑nCnkpk(1−p)n−k=1,2. Chebyshev's inequality:P{∣nSn−p∣>δ}≤δ2Var(nSn)=nδ2p(1−p)
Approximation with Bernstein Polynomials
Since the continuous function f=f(p) on closed interval [0,1] is uniformly continuous, i.e. for every ε>0 we can find δ>0 such that ∣f(x)−f(y)∣≤ε whenever ∣x−y∣≤δ. It is also known that the continuous function is bounded on closed interval, i.e. ∣f(x)∣≤M<∞. Let's consider difference ∀p∈[0,1]
∣f(p)−Bn(p)∣=∣k=0∑n[f(p)−f(nk)]Cnkpkqn−k∣≤Let's split the above sum into two parts:
1
{k:∣nk−p∣≤δ}, such sum can be estimated using the uniform continuity property
2
{k:∣nk−p∣>δ}, such sum can be estimated with probability P(∣nSn−p∣>δ)
So we get≤{k:∣(k/n)−p∣≤δ}∑f(p)−f(nk)Cnkpkqn−k+{k:∣(k/n)−p∣>δ}∑f(p)−f(nk)Cnkpkqn−k≤ε+2M{k:∣(k;n)−p∣>δ}∑Cnkpkqn−k=ε+2MP{∣nSn−p∣>δ}≤ε+nδ22M=ε+nδ22M.Hencen→∞lim0≤p≤1max∣f(p)−Bn(p)∣=0,which is the conclusion of Weierstrass's theorem. □