If is Lipschitz continuous on with Lipschitz constant , then Cauchy-Schwarz inequality and the binomial distribution variance giveThis is an explicit error guarantee, rather than only an existence theorem. For the Bernstein approximation of a corner, choosing guarantees supremum norm error at most ; guarantees error strictly less than . The guarantee is sufficient, not optimal.
For this specific target, the error reaches its maximum at . Indeed the derivative of is a weighted average of the slopes , all in : see derivatives of Bernstein polynomials. Subtracting the target makes the error nondecreasing to the left of the corner and nonincreasing to its right. For even , the symmetric binomial distribution at gives the exact valueThe last equality follows by pairing terms about and telescoping the binomial coefficients. It gives for and for .
Weierstrass approximation theorem Created 2026-09-24 Updated 2026-10-14
Every continuous real-valued function on a compact interval can be approximated by polynomials with arbitrarily small error everywhere on the interval. More precisely, if and is continuous, then for every there is a polynomial withThe error is measured in the supremum norm, so one approximation works at every point. The degenerate interval needs only a constant function. A change of variable reduces the nondegenerate case to .[ref]
The Weierstrass approximation theorem (Georgia Tech handout). The Weierstrass approximation theorem, Theorem 0.3, printed p. 2: uniform polynomial approximation on the unit interval
This is useful because a polynomial is described by finitely many coefficients and can be evaluated with addition and multiplication. Its surprise is that the target need not be differentiable: the sharp corner of an absolute value function can be approximated by smooth polynomials. The Bernstein approximation of a corner below makes this visible. Approximating values, however, does not by itself approximate derivatives; Weierstrass approximation does not preserve derivatives gives a counterexample.
