In the mathematical field of numerical analysis, a Bernstein polynomial is a polynomial expressed as a linear combination of Bernstein basis polynomials. The idea is named after mathematician Sergei Natanovich Bernstein. Polynomials in this form were first used by Bernstein in a constructive proof of the Weierstrass approximation theorem. With the advent of computer graphics, Bernstein polynomials, restricted to the interval [0, 1], became important in the form of Bézier curves. A numerically stable way to evaluate polynomials in Bernstein form is de Casteljau's algorithm.
Definition
Bernstein basis polynomials The n+1 Bernstein basis polynomials of degree n are defined as
bν,n(x) = (nν) xν(1−x)n−ν, for ν=0 , … ,n, where (nν) is a binomial coefficient. So, for example, b2,5(x) = (52)x2(1−x)3 = 10x2(1−x)3. The first few Bernstein basis polynomials for blending 1, 2, 3 or 4 values together are:
b0,0(x)=1 ,b0,1(x)=1−x ,b1,1(x)=xb0,2(x)=(1−x)2 ,b1,2(x)=2x(1−x) ,b2,2(x)=x2b0,3(x)=(1−x)3 ,b1,3(x)=3x(1−x)2 ,b2,3(x)=3x2(1−x) ,b3,3(x)=x3.
The Bernstein basis polynomials of degree n form a basis for the vector space Πn of polynomials of degree at most n, all with real coefficients.
Bernstein polynomials A linear combination of Bernstein basis polynomials
Bn(x) = ∑ν=0nβνbν,n(x) is called a Bernstein polynomial or polynomial in Bernstein form of degree n. The coefficients βν are called Bernstein coefficients or Bézier coefficients. The first few Bernstein basis polynomials from above in monomial form are:
b0,0(x)=1 ,b0,1(x)=1−1x ,b1,1(x)=0+1xb0,2(x)=1−2x+1x2,b1,2(x)=0+2x−2x2 ,b2,2(x)=0+0x+1x2b0,3(x)=1−3x+3x2−1x3 ,b1,3(x)=0+3x−6x2+3x3 ,b2,3(x)=0+0x+3x2−3x3,b3,3(x)=0+0x+0x2+1x3.
Properties The Bernstein basis polynomials have the following properties:
bν,n(x)=0, if ν<0 or if ν>n. bν,n(x)≥0 for x∈[0, 1]. bν,n(1−x)=bn−ν,n(x). bν,n(0)=δν,0 and bν,n(1)=δν,n where δi,j is the Kronecker delta function: δij={0if i≠j,1if i=j. bν,n(x) has a root with multiplicity ν at point x=0 (note: when ν=0, there is no root at 0). bν,n(x) has a root with multiplicity (n−ν) at point x=1 (note: if ν=n, there is no root at 1). The derivative can be written as a combination of two Bernstein polynomials of lower degree: bν,n′(x)=n[ bν−1,n−1(x) − bν,n−1(x) ]. The k-th derivative at 0: bν,n(k)(0) = n!(n−k)!(kν)(−1)ν+k. The k-th derivative at 1: bν,n(k)(1) = (−1)kbn−ν,n(k)(0). The transformation of the Bernstein polynomial to monomials is bν,n(x) = (nν)∑k=0n−ν(n−νk)(−1)kxν+k = ∑l=νn(nl)(lν)(−1)l−νxl, and by the inverse binomial transformation, the reverse transformation is xk = ∑i=0n−k(n−ki)(ni)bn−i,n(x) = 1(nk)∑j=kn(jk)bj,n(x). The indefinite integral is given by ∫bν,n(x) dx=1n+1∑j=ν+1n+1bj,n+1(x). The definite integral is constant for a given n: ∫01bν,n(x) dx=1n+1 for all ν=0,1, … ,n. If n≠0, then bν,n(x) has a unique local maximum on the interval [0,1] at x=νn. This maximum takes the value ννn−n(n−ν)n−ν(nν). The Bernstein basis polynomials of degree n form a partition of unity: ∑ν=0nbν,n(x) = ∑ν=0n(nν)xν(1−x)n−ν = (x+(1−x))n=1. By taking the first x-derivative of (x+y)n, treating y as constant, then substituting the value y=1−x, it can be shown that ∑ν=0nν bν,n(x)=n x. Similarly the second x-derivative of (x+y)n, with y then again substituted y=1−x, shows that ∑ν=1nν(ν−1) bν,n(x)=n(n−1) x2. A Bernstein polynomial can always be written as a linear combination of polynomials of higher degree: bν,n−1(x) = (n−νn) bν,n(x) + (ν+1n) bν+1,n(x). The expansion of the Chebyshev polynomials of the first kind into the Bernstein basis is Tn(u) = (2n−1)!! ∑k=0n (−1)n−k (2k−1)!! (2n−2k−1)!! bk,n(u).
Approximating continuous functions Let ƒ be a continuous function on the interval [0, 1]. Consider the Bernstein polynomial
Bn(f)(x)=∑ν=0nf(νn)bν,n(x). It can be shown that
limn→∞Bn(f)=f uniformly on the interval [0, 1]. Bernstein polynomials thus provide one way to prove the Weierstrass approximation theorem that every real-valued continuous function on a real interval [a, b] can be uniformly approximated by polynomial functions over ℝ. A more general statement for a function with continuous kth derivative is
‖Bn(f)(k)‖∞≤(n)knk‖f(k)‖∞ and ‖f(k)−Bn(f)(k)‖∞→0, where (n)k is the falling factorial, and additionally
(n)knk=(1−0n)(1−1n)⋯(1−k−1n) is an eigenvalue of Bn; the corresponding eigenfunction is a polynomial of degree k.
Probabilistic proof This proof follows Bernstein's original proof of 1912. See also Feller (1966) or Koralov & Sinai (2007).
Motivation We will first give intuition for Bernstein's original proof. A continuous function on a compact interval must be uniformly continuous. Thus, the value of any continuous function can be uniformly approximated by its value on some finite net of points in the interval. This consideration renders the approximation theorem intuitive, given that polynomials should be flexible enough to match (or nearly match) a finite number of pairs (x,f(x)). To do so, we might (1) construct a function close to f on a lattice, and then (2) smooth out the function outside the lattice to make a polynomial. The probabilistic proof below simply provides a constructive method to create a polynomial which is approximately equal to f on such a point lattice, given that "smoothing out" a function is not always trivial. Taking the expectation of a random variable with a simple distribution is a common way to smooth. Here, we take advantage of the fact that Bernstein polynomials look like Binomial expectations. We split the interval into a lattice of n discrete values. Then, to evaluate any f(x), we evaluate f at one of the n lattice points close to x, randomly chosen by the Binomial distribution. The expectation of this approximation technique is polynomial, as it is the expectation of a function of a binomial RV. The proof below illustrates that this achieves a uniform approximation of f. The crux of the proof is to (1) justify replacing an arbitrary point with a binomially chosen lattice point by concentration properties of a Binomial distribution, and (2) justify the inference from x≈X to f(x)≈f(X) by uniform continuity.
Bernstein's proof Suppose K is a random variable distributed as the number of successes in n independent Bernoulli trials with probability x of success on each trial; in other words, K has a binomial distribution with parameters n and x. Then we have the expected value 𝔼[Kn]=x and
p(K)=(nK)xK(1−x)n−K=bK,n(x) By the weak law of large numbers of probability theory,
… excerpt ends here. Continue reading the full article.



![Bernstein polynomial: Approximation of a sawtooth function f(x) by Bernstein polynomials Bn(x) of degree n = 5, 20, 100, 1000 on the interval [1, 3]. The plot demonstrates smooth bridging of discontinuities and the absence of oscillations (the Gibbs phenomenon)](https://thumb.wikimedia.org/wikipedia/commons/thumb/4/4d/Bernstein_approximation.svg/500px-Bernstein_approximation.svg.png?utm_source=en.wikipedia.org&utm_campaign=parser&utm_content=thumbnail)