In the
mathematical
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 in modern mathematics ...
field of
numerical analysis, a Bernstein polynomial is a
polynomial that is a
linear combination of Bernstein
basis polynomials. The idea is named after
Sergei Natanovich Bernstein.
A
numerically stable way to evaluate polynomials in Bernstein form is
de Casteljau's algorithm.
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 curves.
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 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 ...
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 expon ...
form are:
:
:
Properties
The Bernstein basis polynomials have the following properties:
*
, if
or
*
for
*
*
and
where
is the
Kronecker delta
In mathematics, the Kronecker delta (named after Leopold Kronecker) is a function of two variables, usually just non-negative integers. The function is 1 if the variables are equal, and 0 otherwise:
\delta_ = \begin
0 &\text i \neq j, \\
1 ...
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. ...
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, an integral assigns numbers to functions in a way that describes displacement, area, volume, and other concepts that arise by combining infinitesimal data. The process of finding integrals is called integration. Along with ...
is given by
* The definite integral is constant for a given ''n'':
* If
, then
has a unique local maximum on the interval