Bernstein polynomial explained
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 Bernstein form were first used by Bernstein in a constructive proof for 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\nu,n(x)l{:}l{=}\binom{n}{\nu}x\nu\left(1-x\right)n, \nu=0,\ldots,n,
where
is a
binomial coefficient.
So, for example,
b2,5(x)=\tbinom{5}{2}x2(1-x)3=10x2(1-x)3.
The first few Bernstein basis polynomials for blending 1, 2, 3 or 4 values together are:
\begin{align}
b0,0(x)&=1,\\
b0,1(x)&=1-x,&b1,1(x)&=x\\
b0,2(x)&=(1-x)2,&b1,2(x)&=2x(1-x),&b2,2(x)&=x2\\
b0,3(x)&=(1-x)3,&b1,3(x)&=3x(1-x)2,&b2,3(x)&=3x2(1-x),&b3,3(x)&=x3
\end{align}
of polynomials of degree at most
n with real coefficients.
Bernstein polynomials
A linear combination of Bernstein basis polynomials
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:
\begin{align}
b0,0(x)&=1,\\
b0,1(x)&=1-1x,&b1,1(x)&=0+1x\\
b0,2(x)&=1-2x+1x2,&b1,2(x)&=0+2x-2x2,&b2,2(x)&=0+0x+1x2\\
b0,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
\end{align}
Properties
The Bernstein basis polynomials have the following properties:
, if
or
for
b\nu,\left(1-x\right)=bn(x).
and
where
is the
Kronecker delta function:
\deltaij=\begin{cases}
0&ifi ≠ j,\\
1&ifi=j.
\end{cases}
has a root with multiplicity
at point
(note: if
, there is no root at 0).
has a root with multiplicity
at point
(note: if
, there is no root at 1).
- The derivative can be written as a combination of two polynomials of lower degree:
- The k-th derivative at 0:
- The k-th derivative at 1:
- The transformation of the Bernstein polynomial to monomials is and by the inverse binomial transformation, the reverse transformation is[1]
- The indefinite integral is given by
- The definite integral is constant for a given n:
- If
, then
has a unique local maximum on the interval
at
. This maximum takes the value
- The Bernstein basis polynomials of degree
form a
partition of unity:
-derivative of
, treating
as constant, then substituting the value
, it can be shown that
-derivative of
, with
again then substituted
, shows that
- A Bernstein polynomial can always be written as a linear combination of polynomials of higher degree:
- The expansion of the Chebyshev Polynomials of the First Kind into the Bernstein basis is[2]
Approximating continuous functions
Let ƒ be a continuous function on the interval [0, 1]. Consider the Bernstein polynomial
Bn(f)(x)=
f\left(
\right)b\nu,n(x).
It can be shown that
uniformly on the interval [0, 1].[3]
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
.
[4] A more general statement for a function with continuous kth derivative is
{\left\|
\right\|}infty\le
\left\|f(k)\right\|infty and \left\|f(k)-
\right\|infty\to0,
where additionally
=\left(1-
\right)\left(1-
\right) … \left(1-
\right)
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).[5]
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
. To do so, we might (1) construct a function close to
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
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
to
by uniform continuity.
Bernstein's proof
\operatorname{lE}\left[ | K |
n |
\right]=x
and
p(K)={n\chooseK}xK\left(1-x\right)n=bK,n(x)
By the weak law of large numbers of probability theory,
\limn{P\left(\left|
-x\right|>\delta\right)}=0
for every δ > 0. Moreover, this relation holds uniformly in x, which can be seen from its proof via Chebyshev's inequality, taking into account that the variance of K, equal to x(1-x), is bounded from above by irrespective of x.
Because ƒ, being continuous on a closed bounded interval, must be uniformly continuous on that interval, one infers a statement of the form
\limn{P\left(\left|f\left(
\right)-f\left(x\right)\right|>\varepsilon\right)}=0
uniformly in x for each
. Taking into account that
ƒ is bounded (on the given interval) one finds that
\limn{\operatorname{lE}\left(\left|f\left(
\right)-f\left(x\right)\right|\right)}=0
uniformly in
x. To justify this statement, we use a common method in probability theory to convert from closeness in probability to closeness in expectation. One splits the expectation of
\left|f\left(
\right)-f\left(x\right)\right|
into two parts split based on whether or not
\left|f\left(
\right)-f\left(x\right)\right|<\epsilon
. In the interval where the difference does not exceed
ε, the expectation clearly cannot exceed
ε.In the other interval, the difference still cannot exceed 2
M, where
M is an upper bound for |
ƒ(x)| (since uniformly continuous functions are bounded). However, by our 'closeness in probability' statement, this interval cannot have probability greater than
ε. Thus, this part of the expectation contributes no more than 2
M times
ε. Then the total expectation is no more than
, which can be made arbitrarily small by choosing small
ε.
Finally, one observes that the absolute value of the difference between expectations never exceeds the expectation of the absolute value of the difference, a consequence of Holder's Inequality. Thus, using the above expectation, we see that (uniformly in x)
\limn{\left|\operatorname{lE}f\left(
\right)-\operatorname{lE}f\left(x\right)\right|}\leq\limn{\operatorname{lE}\left(\left|f\left(
\right)-f\left(x\right)\right|\right)}=0
Noting that our randomness was over K while x is constant, the expectation of f(x) is just equal to f(x). But then we have shown that
\operatorname{lEx}f\left(
\right)
converges to
f(x). Then we will be done if
\operatorname{lEx}f\left(
\right)
is a polynomial in
x (the subscript reminding us that
x controls the distribution of
K). Indeed it is:
\right)\right]=
\right)p(K)=
\right)bK,n(x)=Bn(f)(x)
Uniform convergence rates between functions
It also depends on 'M', the absolute bound of the function, although this can be bypassed if one bounds
and the interval size. Thus, the approximation only holds uniformly across
x for a fixed
f, but one can readily extend the proof to uniformly approximate a set of functions with a set of Bernstein polynomials in the context of
equicontinuity.
Elementary proof
The probabilistic proof can also be rephrased in an elementary way, using the underlying probabilistic ideas but proceeding by direct verification:
The following identities can be verified:
\sumk{n\choosek}xk(1-x)n-k=1
("probability")
\sumk{k\overn}{n\choosek}xk(1-x)n-k=x
("mean")
\sumk\left(x-{k\overn}\right)2{n\choosek}xk(1-x)n-k={x(1-x)\overn}.
("variance")
In fact, by the binomial theorem
and this equation can be applied twice to
. The identities (1), (2), and (3) follow easily using the substitution
.
Within these three identities, use the above basis polynomial notation
bk,n(x)={n\choosek}xk(1-x)n-k,
and let
fn(x)=\sumkf(k/n)bk,n(x).
Thus, by identity (1)
fn(x)-f(x)=\sumk[f(k/n)-f(x)]bk,n(x),
so that
|fn(x)-f(x)|\le\sumk|f(k/n)-f(x)|bk,n(x).
Since f is uniformly continuous, given
, there is a
such that
whenever
. Moreover, by continuity,
. But then
|fn(x)-f(x)|\le\sum|x|<\delta}|f(k/n)-f(x)|bk,n(x)+\sum|x|\ge\delta}|f(k/n)-f(x)|bk,n(x).
The first sum is less than ε. On the other hand, by identity (3) above, and since
, the second sum is bounded by
times
\sum|xbk,n(x)\le\sumk\delta-2\left(x-{k\overn}\right)2bk,n(x)=\delta-2{x(1-x)\overn}<{1\over4}\delta-2n-1.
(Chebyshev's inequality)
It follows that the polynomials fn tend to f uniformly.
Generalizations to higher dimension
Bernstein polynomials can be generalized to dimensions – the resulting polynomials have the form . In the simplest case only products of the unit interval are considered; but, using affine transformations of the line, Bernstein polynomials can also be defined for products . For a continuous function on the -fold product of the unit interval, the proof that can be uniformly approximated by
…
{n1\choosei1}{n2\choosei2} … {nk\chooseik}
f\left({i1\overn1},{i2\overn2},...,{ik\overnk}\right)
…
is a straightforward extension of Bernstein's proof in one dimension.
See also
Notes
- 1802.09518 . R. J. . Mathar . 2018 . Orthogonal basis function over the unit circle with the minimax property . math.NA . Appendix B.
- Abedallah. Rababah . Transformation of Chebyshev-Bernstein Polynomial Basis . 10.2478/cmam-2003-0038. 2003. Comp. Meth. Appl. Math.. 3. 4 . 608–622 . 120938358. free.
- Natanson (1964) p. 6
- Natanson (1964) p. 3
- Book: L. . Koralov . Y. . Sinai . Theory of probability and random processes . 2nd . Springer . 2007 . 29 . "Probabilistic proof of the Weierstrass theorem".
References
- , English translation
- , Russian edition first published in 1940
- Caglar . Hakan . Akansu . Ali N. . A generalized parametric PR-QMF design technique based on Bernstein polynomial approximation . 0825.93863 . IEEE Transactions on Signal Processing . 41 . 7 . 2314–2321 . July 1993 . 10.1109/78.224242. 1993ITSP...41.2314C .
- Book: Natanson, I.P. . Isidor Natanson
. Isidor Natanson . Constructive function theory. Volume I: Uniform approximation . Alexis N. Obolensky . 0133.31101 . 0196340 . New York . Frederick Ungar . 1964 .
External links
- Mark. Kac. Mark Kac. Une remarque sur les polynomes de M. S. Bernstein . . 1938. 7 . 49–51. 10.4064/sm-7-1-49-51. free.
- Richard Paul . Kelisky . Theodore Joseph . Rivlin . Iteratives of Bernstein Polynomials. 1967 . . 21 . 3 . 511. 10.2140/pjm.1967.21.511. free .
- Book: E. L. . Stark. Bernstein Polynome, 1912-1955 . 1981. 10.1007/978-3-0348-9369-5_40. 443–461. P.L. . Butzer . ISNM60. 978-3-0348-9369-5.
- Sonia . Petrone . Sonia Petrone . Random Bernstein polynomials . Scand. J. Stat. . 1999. 26. 3. 373–393. 10.1111/1467-9469.00155. 122387975 .
- Halil . Oruc . Geoerge M. . Phillips. A generalization of the Bernstein Polynomials . 1999 . Proceedings of the Edinburgh Mathematical Society. 42 . 2 . 403–413 . 10.1017/S0013091500020332. free .
- Web site: Kenneth I. . Joy . 2000 . Bernstein Polynomials . 2009-02-28 . https://web.archive.org/web/20120220143625/http://www.idav.ucdavis.edu/education/CAGDNotes/Bernstein-Polynomials.pdf . 2012-02-20 . dead . from University of California, Davis. Note the error in the summation limits in the first formula on page 9.
- M.. Idrees Bhatti . P. . Bracken . Solutions of differential equations in a Bernstein Polynomial basis. 10.1016/j.cam.2006.05.002. 2007. J. Comput. Appl. Math.. 272–280. 205. 1 . 2007JCoAM.205..272I . free.
- Web site: Bill. Casselman. Bill Casselman (mathematician). From Bézier to Bernstein. 2008. Feature Column from American Mathematical Society
- Mehmet . Acikgoz . Serkan . Araci. On the generating function for Bernstein Polynomials . 2010 . AIP Conf. Proc. . AIP Conference Proceedings . 10.1063/1.3497855. 1281 . 1 . 1141. 2010AIPC.1281.1141A .
- E. H. . Doha. A. H.. Bhrawy . M. A. . Saker . Integrals of Bernstein polynomials: An application for the solution of high even-order differential equations . 10.1016/j.aml.2010.11.013. 2011 . Appl. Math. Lett.. 24 . 4. 559–565. free.
- Rida T.. Farouki . The Bernstein polynomial basis: a centennial retrospective . 2012. Comp. Aid. Geom. Des.. 29. 6 . 379–419. 10.1016/j.cagd.2012.03.001.
- Xiaoyan. Chen. Jieqing. Tan. Zhi. Liu. Jin. Xie. Approximations of functions by a new family of generalized Bernstein operators. J. Math. Ann. Applic. . 2017 . 450 . 244–261 . 10.1016/j.jmaa.2016.12.075. free.