In the
mathematical field of
numerical analysis
Numerical analysis is the study of algorithms that use numerical approximation (as opposed to symbolic computation, symbolic manipulations) for the problems of mathematical analysis (as distinguished from discrete mathematics). It is the study of ...
, a Bernstein polynomial is a
polynomial
In mathematics, a polynomial is an expression consisting of indeterminates (also called variables) and coefficients, that involves only the operations of addition, subtraction, multiplication, and positive-integer powers of variables. An exa ...
that is a
linear combination of Bernstein
basis
Basis may refer to:
Finance and accounting
*Adjusted basis, the net cost of an asset after adjusting for various tax-related items
*Basis point, 0.01%, often used in the context of interest rates
*Basis trading, a trading strategy consisting of ...
polynomials. The idea is named after
Sergei Natanovich Bernstein
Sergei Natanovich Bernstein (russian: Серге́й Ната́нович Бернште́йн, sometimes Romanized as ; 5 March 1880 – 26 October 1968) was a Ukrainian and Russian mathematician of Jewish origin known for contributions to parti ...
.
A
numerically stable
In the mathematical subfield of numerical analysis, numerical stability is a generally desirable property of numerical algorithms. The precise definition of stability depends on the context. One is numerical linear algebra and the other is algorit ...
way to evaluate polynomials in Bernstein form is
de Casteljau's algorithm In the mathematical field of numerical analysis, De Casteljau's algorithm is a recursive method to evaluate polynomials in Bernstein form or Bézier curves, named after its inventor Paul de Casteljau. De Casteljau's algorithm can also be used to sp ...
.
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
, 1 became important in the form of
Bézier curve
A Bézier curve ( ) is a parametric curve used in computer graphics and related fields. A set of discrete "control points" defines a smooth, continuous curve by means of a formula. Usually the curve is intended to approximate a real-world shape t ...
s.
Definition
The ''n''+1 Bernstein basis polynomials of degree ''n'' are defined as
:
where
is a
binomial coefficient
In mathematics, the binomial coefficients are the positive integers that occur as coefficients in the binomial theorem. Commonly, a binomial coefficient is indexed by a pair of integers and is written \tbinom. It is the coefficient of the t ...
.
So, for example,
The first few Bernstein basis polynomials for blending 1, 2, 3 or 4 values together are:
:
:
The Bernstein basis polynomials of degree ''n'' form a
basis
Basis may refer to:
Finance and accounting
*Adjusted basis, the net cost of an asset after adjusting for various tax-related items
*Basis point, 0.01%, often used in the context of interest rates
*Basis trading, a trading strategy consisting of ...
for the
vector space
In mathematics and physics, a vector space (also called a linear space) is a set whose elements, often called ''vectors'', may be added together and multiplied ("scaled") by numbers called '' scalars''. Scalars are often real numbers, but can ...
of polynomials of degree at most ''n'' with real coefficients. 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
In mathematics, a monomial is, roughly speaking, a polynomial which has only one term. Two definitions of a monomial may be encountered:
# A monomial, also called power product, is a product of powers of variables with nonnegative integer exponent ...
form are:
:
:
Properties
The Bernstein basis polynomials have the following properties:
*
, if
or
*
for
*
*
and
where
is the
Kronecker delta function:
*
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
In mathematics, the derivative of a function of a real variable measures the sensitivity to change of the function value (output value) with respect to a change in its argument (input value). Derivatives are a fundamental tool of calculus. F ...
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
* The indefinite
integral
In mathematics
Mathematics is an area of knowledge that includes the topics of numbers, formulas and related structures, shapes and the spaces in which they are contained, and quantities and their changes. These topics are represented i ...
is given by
* The definite integral is constant for a given ''n'':
* If
, then
has a unique local maximum on the interval