Stone-Weierstrass's Approximation Theorem

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)f(x) is a continuous real-valued function defined on the real interval [a,b][a, b]. For every ε>0\varepsilon > 0, there exists a polynomial P(x)P(x) such that for all x[a,b] x \in [a, b] , we have:f(x)p(x)<ε,\begin{equation*}|f(x) - p(x)| < \varepsilon,\end{equation*}or equivalently, the supremum normfp=max0x1f(x)p(x)<ε.\begin{equation*}\| f - p \| = \max _{0 \leq x \leq 1} |f(x) - p(x) | < \varepsilon.\end{equation*}
In fact, the approximating polynomials can be defined explicitlyBn(p)=k=0nf(kn)Cnkpkqnk,\begin{equation*}B_n(p)=\sum_{k=0}^n f\left(\frac{k}{n}\right) C_n^k p^k q^{n-k},\end{equation*}which are called Bernstein polynomials after mathematician Sergei Natanovich Bernstein.
The video shows how Bernstein polynomials actually approximate continuous function f(x)f(x)

Motivation

Proof of Weierstrass's Approximation Theorem on [0,1][0,1]

References