If is Lipschitz continuous on with Lipschitz constant , then Cauchy-Schwarz inequality and the binomial distribution variance give
This 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.
Figure 1. . Left: error profiles for and selected Bernstein polynomials. Right: for even positive degrees, exact maximum error is compared with the sufficient bound . All values are model calculations; no experimental data are represented. Details.
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 value
The 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 with
The 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]
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.