All Topics  
Polynomial interpolation

 

   Email Print
   Bookmark   Link






 

Polynomial interpolation



 
 
In the mathematical
Mathematics

Mathematics is the study of quantity, structure, space, change, and related topics of pattern and form. Mathematicians seek out patterns whether found in numbers, space, natural science, computers, imaginary abstractions, or elsewhere....
 subfield of numerical analysis
Numerical analysis

Numerical analysis is the study of algorithms for the problems of continuous mathematics .One of the earliest mathematical writings is the Babylonian tablet YBC 7289, which gives a sexagesimal numerical approximation of , the length of the diagonal in a unit square....
, polynomial interpolation is the interpolation
Interpolation

In the mathematics subfield of numerical analysis, interpolation is a method of constructing new data points within the range of a discrete set of known data points....
 of a given data set
Data set

A data set is a collection of data, usually presented in tabular form. Each column represents a particular variable. Each row corresponds to a given member of the data set in question....
 by a polynomial
Polynomial

In mathematics, a polynomial is an expression constructed from variables and constants, using the operations of addition, subtraction, multiplication, and constant non-negative whole number exponents....
. In other words, given some data points (such as obtained by sampling
Sampling (statistics)

Sampling is that part of statistical practice concerned with the selection of individual observations intended to yield some knowledge about a population of concern, especially for the purposes of statistical inference....
), the aim is to find a polynomial which goes exactly through these points.

Applications
Polynomials can be used to approximate more complicated curves, for example, the shapes of letters in typography
Typography

Typography is the art and techniques of typesetting, type design, and modifying type glyphs. Type glyphs are created and modified using a variety of illustration techniques....
, given a few points. A related application is the evaluation of the natural logarithm
Natural logarithm

The natural logarithm, formerly known as the hyperbolic logarithm, is the logarithm to the base e , where e is an irrational number constant approximately equal to 2.718281828....
 and trigonometric function
Trigonometric function

In mathematics, the trigonometric functions are function s of an angle. They are important in the trigonometry of Triangle and modeling Periodic function, among many other applications....
s: pick a few known data points, create a lookup table
Lookup table

In computer science, a lookup table is a data structure, usually an array or associative array, often used to replace a runtime computation with a simpler array indexing operation....
, and interpolate between those data points.






Discussion
Ask a question about 'Polynomial interpolation'
Start a new discussion about 'Polynomial interpolation'
Answer questions from other users
Full Discussion Forum



Encyclopedia


In the mathematical
Mathematics

Mathematics is the study of quantity, structure, space, change, and related topics of pattern and form. Mathematicians seek out patterns whether found in numbers, space, natural science, computers, imaginary abstractions, or elsewhere....
 subfield of numerical analysis
Numerical analysis

Numerical analysis is the study of algorithms for the problems of continuous mathematics .One of the earliest mathematical writings is the Babylonian tablet YBC 7289, which gives a sexagesimal numerical approximation of , the length of the diagonal in a unit square....
, polynomial interpolation is the interpolation
Interpolation

In the mathematics subfield of numerical analysis, interpolation is a method of constructing new data points within the range of a discrete set of known data points....
 of a given data set
Data set

A data set is a collection of data, usually presented in tabular form. Each column represents a particular variable. Each row corresponds to a given member of the data set in question....
 by a polynomial
Polynomial

In mathematics, a polynomial is an expression constructed from variables and constants, using the operations of addition, subtraction, multiplication, and constant non-negative whole number exponents....
. In other words, given some data points (such as obtained by sampling
Sampling (statistics)

Sampling is that part of statistical practice concerned with the selection of individual observations intended to yield some knowledge about a population of concern, especially for the purposes of statistical inference....
), the aim is to find a polynomial which goes exactly through these points.

Applications


Polynomials can be used to approximate more complicated curves, for example, the shapes of letters in typography
Typography

Typography is the art and techniques of typesetting, type design, and modifying type glyphs. Type glyphs are created and modified using a variety of illustration techniques....
, given a few points. A related application is the evaluation of the natural logarithm
Natural logarithm

The natural logarithm, formerly known as the hyperbolic logarithm, is the logarithm to the base e , where e is an irrational number constant approximately equal to 2.718281828....
 and trigonometric function
Trigonometric function

In mathematics, the trigonometric functions are function s of an angle. They are important in the trigonometry of Triangle and modeling Periodic function, among many other applications....
s: pick a few known data points, create a lookup table
Lookup table

In computer science, a lookup table is a data structure, usually an array or associative array, often used to replace a runtime computation with a simpler array indexing operation....
, and interpolate between those data points. This results in significantly faster computations. Polynomial interpolation also forms the basis for algorithms in numerical quadrature and numerical ordinary differential equations
Numerical ordinary differential equations

Numerical ordinary differential equations is the part of numerical analysis which studies the numerical solution of differential equation . This field is also known under the name numerical integration, but some people reserve this term for the computation of integrals....
.

Polynomial interpolation is also essential to perform sub-quadratic multiplication and squaring such as Karatsuba multiplication and Toom–Cook multiplication, where an interpolation through points on a polynomial which defines the product yields the product itself. For example, given a = f(x) = a0x0 + a1x1 + ... and b = g(x) = b0x0 + b1x1 + ... then the product ab is equivalent to W(x) = f(x)g(x). Finding points along W(x) by substituting x for small values in f(x) and g(x) yields points on the curve. Interpolation based on those points will yield the terms of W(x) and subsequently the product ab. In the case of Karatsuba multiplication this technique is substantially faster than quadratic multiplication, even for modest-sized inputs. This is especially true when implemented in parallel hardware.

Definition


Given a set of n+1 data points (xi,yi) where no two xi are the same, one is looking for a polynomial p of degree at most n with the property

The unisolvence
Unisolvent functions

In mathematics, a collection of n functions ƒ1, ƒ2, ..., ƒn is unisolvent on domain O if the vectors...
 theorem
states that such a polynomial p exists and is unique.

In more sophisticated terms, the theorem states that for n+1 interpolation nodes (xi), polynomial interpolation defines a linear bijection
Bijection

In mathematics, a bijection, or a bijective function is a function f from a set X to a set Y with the property that, for every y in Y, there is exactly one x in X such that f = y....
where is the vector space
Vector space

File:Vector addition ans scaling.pngA vector space is a mathematical structure formed by a collection of vectors: objects that may be Vector addition together and Scalar multiplication by numbers, called scalar s in this context....
 of polynomials with degree n or less.

Constructing the interpolation polynomial

Suppose that the interpolation polynomial is in the form The statement that p interpolates the data points means that If we substitute equation (1) in here, we get a system of linear equations
System of linear equations

In mathematics, a system of linear equations is a collection of linear equations involving the same set of variables. For example,is a system of three equations in the three variables ....
 in the coefficients . The system in matrix-vector form reads

We have to solve this system for to construct the interpolant

The matrix on the left is commonly referred to as a Vandermonde matrix
Vandermonde matrix

In linear algebra, a Vandermonde matrix, named after Alexandre-Th?ophile Vandermonde, is a matrix with the terms of a geometric progression in each row, i.e., an m × n matrix...
. Its determinant
Determinant

In algebra, a determinant is a function depending on n that associates a scalar , det, to an n?n square matrix A. The fundamental geometric meaning of a determinant is a scale factor for measure when A is regarded as a linear transformation....
 is nonzero, which proves the unisolvence theorem: there exists a unique interpolating polynomial.

The condition number of the Vandermonde matrix may be large, causing large errors when computing the coefficients if the system of equations is solved using Gauss elimination. Several authors have therefore proposed algorithms which exploit the structure of the Vandermonde matrix to compute numerically stable solutions in operations instead of the required by Gaussian elimination
Gaussian elimination

In linear algebra, Gaussian elimination is an efficient algorithm for solving system of linear equations, finding the Rank of a matrix , and calculating the inverse of an invertible matrix....
. These methods rely on constructing first a Newton interpolation
Newton polynomial

In the mathematical field of numerical analysis, a Newton polynomial, named after its inventor Isaac Newton, is the polynomial interpolation polynomial for a given set of data points in the Newton form....
 of the polynomial and then converting it to the monomial form above.

Non-Vandermonde solutions


We are trying to construct our unique interpolation polynomial in the vector space that is the vector space of polynomials of degree n. When using a monomial basis
Monomial basis

In mathematics a monomial basis is a way to uniquely describe a polynomial using a linear combination of monomials. This description, the monomial form of a polynomial, is often used because of the simple structure of the monomial basis....
 for we have to solve the Vandermonde matrix to construct the coefficients for the interpolation polynomial. This can be a very costly operation (as counted in clock cycles of a computer trying to do the job). By choosing another basis for we can simplify the calculation of the coefficients but then we have to do additional calculations when we want to express the interpolation polynomial in terms of a monomial basis
Monomial basis

In mathematics a monomial basis is a way to uniquely describe a polynomial using a linear combination of monomials. This description, the monomial form of a polynomial, is often used because of the simple structure of the monomial basis....
.

One method is to write the interpolation polynomial in the Newton form and use the method of divided differences
Divided differences

In mathematics divided differences is a recursion division process.The method can be used to calculate the coefficients in the polynomial interpolation in the Newton form....
 to construct the coefficients, e.g. Neville's algorithm
Neville's algorithm

In mathematics, Neville's algorithm is an algorithm used for polynomial interpolation. Given n + 1 points, there is a unique polynomial of degree = n which goes through the given points....
. The cost is O
Big O notation

In mathematics, big O notation describes the asymptotic analysis of a function when the argument tends towards a particular value or infinity, usually in terms of simpler functions....
 operations, while Gaussian elimination costs O operations. Furthermore, you only need to do O extra work if an extra point is added to the data set, while for the other methods, you have to redo the whole computation.

Another method is to use the Lagrange form of the interpolation polynomial. The resulting formula immediately shows that the interpolation polynomial exists under the conditions stated in the above theorem.

The Bernstein form was used in a constructive proof of the Weierstrass approximation theorem by Bernstein
Sergei Natanovich Bernstein

Sergei Natanovich Bernstein was a mathematician who was born in Odessa, Imperial Russia and died in Moscow, USSR.His doctoral dissertation, submitted in 1904 to the University of Paris, solved Hilbert's nineteenth problem on the analytic solution of elliptic differential equations....
 and has nowadays gained great importance in computer graphics in the form of Bezier curve
Bézier curve

In the mathematics field of numerical analysis, a B?zier curve is a parametric curve important in computer graphics and related fields.Generalizations of B?zier curves to higher dimensions are called B?zier surfaces, of which the B?zier triangle is a special case....
s.

Interpolation error


When interpolating a given function f by a polynomial of degree n at the nodes x0,...,xn we get the error

where

is the notation for divided differences
Divided differences

In mathematics divided differences is a recursion division process.The method can be used to calculate the coefficients in the polynomial interpolation in the Newton form....
. When f is n+1 times continuously differentiable on the smallest interval I which contains the nodes xi and x then we can write the error in the Lagrange form as

for some in I. Thus the remainder term in the Lagrange form of the Taylor theorem
Taylor's theorem

In calculus, Taylor's theorem gives a sequence of approximations of a differentiable function around a given point by polynomials whose coefficients depend only on the derivatives of the function at that point....
 is a special case of interpolation error when all interpolation nodes xi are identical.

In the case of equally spaced interpolation nodes , it follows that the interpolation error is O. However, this does not yield any information on what happens when . That question is treated in the section Convergence properties.

The above error bound suggests choosing the interpolation points xi such that the product | ∏ (xxi) | is as small as possible. The Chebyshev nodes
Chebyshev nodes

In numerical analysis, Chebyshev nodes are the roots of the Chebyshev polynomials. They are often used as nodes in polynomial interpolation because the resulting interpolation polynomial minimizes the problem of Runge's phenomenon....
 achieve this.

Lebesgue constants

See the main article: Lebesgue constant
Lebesgue constant (interpolation)

In mathematics, the Lebesgue constants give an idea of how good the interpolation of a function is in comparison with the best polynomial approximation of the function ....
.


We fix the interpolation nodes x0, ..., xn and an interval [a, b] containing all the interpolation nodes. The process of interpolation maps the function f to a polynomial p. This defines a mapping X from the space C([a, b]) of all continuous functions on [a, b] to itself. The map X is linear and it is a projection
Projection (linear algebra)

In linear algebra and functional analysis, a projection is a linear transformation P from a vector space to itself such that P2 = P....
 on the subspace Πn of polynomials of degree n or less.

The Lebesgue constant L is defined as the operator norm
Operator norm

In mathematics, the operator norm is a means to measure the "size" of certain linear operators. Formally, it is a norm_ defined on the space of bounded linear operators between two given normed vector spaces....
 of X. One has (a special case of Lebesgue's lemma
Lebesgue's lemma

For Lebesgue's lemma for open covers of compact spaces in topology see Lebesgue's number lemmaIn mathematics, Lebesgue's lemma is an important statement in approximation theory....
): In other words, the interpolation polynomial is at most a factor (L+1) worse than the best possible approximation. This suggests that we look for a set of interpolation nodes that L small. In particular, we have for Chebyshev nodes: We conclude again that Chebyshev nodes are a very good choice for polynomial interpolation, as the growth in n is exponential for equidistant nodes. However, those nodes are not optimal.

Convergence properties


It is natural to ask, for which classes of functions and for which interpolation nodes the sequence of interpolating polynomials converges to the interpolated function as the degree n goes to infinity? Convergence may be understood in different ways, e.g. pointwise, uniform or in some integral norm.

The situation is rather bad for equidistant nodes, in that uniform convergence is not even guaranteed for infinitely differentiable functions. One classical example, due to Carle Runge
Runge's phenomenon

In the mathematics field of numerical analysis, Runge's phenomenon is a problem that occurs when using polynomial interpolation with polynomials of high degree....
, is the function f(x) = 1 / (1 + x2) considered on the interval [−5, 5]. The interpolation error ||fpn|| grows without bound as n → ∞. Another example is the function f(x) = |x| on the interval [−1, 1], for which the interpolating polynomials do not even converge pointwise except at the three points x = −1, 0, and 1.

One might think that better convergence properties may be obtained by choosing different interpolation nodes. The following theorem seems to be a rather encouraging answer:

For any function f(x) continuous on an interval [a,b] there exists a table of nodes for which the sequence of interpolating polynomials converges to f(x) uniformly on [a,b].


Proof. It's clear that the sequence of polynomials of best approximation converges to f(x) uniformly (due to Weierstrass approximation theorem). Now we have only to show that each may be obtained by means of interpolation on certain nodes. But this is true due to a special property of polynomials of best approximation known from the Chebyshev alternation theorem. Specifically, we know that such polynomials should intersect f(x) at least n+1 times. Choosing the points of intersection as interpolation nodes we obtain the interpolating polynomial coinciding with the best approximation polynomial.

The defect of this method, however, is that interpolation nodes should be calculated anew for each new function f(x), but the algorithm is hard to be implemented numerically. Does there exist a single table of nodes for which the sequence of interpolating polynomials converge to any continuous function f(x)? The answer is unfortunately negative as it is stated by the following theorem:

For any table of nodes there is a continuous function f(x) on an interval [a,b] for which the sequence of interpolating polynomials diverges on [a,b].


The proof essentially uses the lower bound estimation of the Lebesgue constant, which we defined above to be the operator norm of Xn (where Xn is the projection operator on Πn). Now we seek a table of nodes for which for any Due to the Banach-Steinhaus theorem, this is only possible when norms of Xn are uniformly bounded, which cannot be true since we know that

For example, if equidistant points are chosen as interpolation nodes, the function from Runge's phenomenon
Runge's phenomenon

In the mathematics field of numerical analysis, Runge's phenomenon is a problem that occurs when using polynomial interpolation with polynomials of high degree....
 demonstrates divergence of such interpolation. Note that this function is not only continuous but even infinitely times differentiable on [−1, 1]. For better Chebyshev nodes
Chebyshev nodes

In numerical analysis, Chebyshev nodes are the roots of the Chebyshev polynomials. They are often used as nodes in polynomial interpolation because the resulting interpolation polynomial minimizes the problem of Runge's phenomenon....
, however, such an example is much harder to find because of the theorem:

For every absolutely continuous
Absolute continuity

In mathematics, absolute continuity is a smoothness property which is stricter than continuity and uniform continuity. Both absolute continuity of functions and absolute continuity of measures are defined....
 function on [−1, 1] the sequence of interpolating polynomials constructed on Chebyshev nodes converges to f(x) uniformly.


Related concepts


Runge's phenomenon
Runge's phenomenon

In the mathematics field of numerical analysis, Runge's phenomenon is a problem that occurs when using polynomial interpolation with polynomials of high degree....
 shows that for high values of n, the interpolation polynomial may oscillate wildly between the data points. This problem is commonly resolved by the use of spline interpolation
Spline interpolation

In the mathematics field of numerical analysis, spline interpolation is a form of interpolation where the interpolant is a special type of piecewise polynomial called a spline ....
. Here, the interpolant is not a polynomial but a spline
Spline (mathematics)

In mathematics, a spline is a special Function defined piecewise by polynomials.In interpolation problems, spline interpolation is often preferred to polynomial interpolation because it yields similar results, even when using low degree polynomials, while avoiding Runge's phenomenon for higher degrees....
: a chain of several polynomials of a lower degree.

Using harmonic
Harmonic analysis

Harmonic analysis is the branch of mathematics that studies the representation of functions or signals as the superposition of basic waves. It investigates and generalizes the notions of Fourier series and Fourier transforms....
 functions to interpolate a periodic function
Periodic function

In mathematics, a periodic function is a function that repeats its values in regular intervals or periods. The most important examples are the trigonometric functions, which repeat over intervals of length 2π....
 is usually done using Fourier series
Fourier series

In mathematics, a Fourier series decomposes a periodic function into a sum of simple oscillating functions, namely sine wave . The study of Fourier series is a branch of Fourier analysis....
, for example in discrete Fourier transform
Discrete Fourier transform

In mathematics, the discrete Fourier transform is one of the specific forms of Fourier analysis. It transforms one function into another, which is called the frequency domain representation, or simply the DFT, of the original function ....
. This can be seen as a form of polynomial interpolation with harmonic base functions, see trigonometric interpolation
Trigonometric interpolation

In mathematics, trigonometric interpolation is interpolation with trigonometric polynomials. Interpolation is the process of finding a function which goes through some given data points....
 and trigonometric polynomial
Trigonometric polynomial

In the mathematical subfields of numerical analysis and mathematical analysis, a trigonometric polynomial is a finite linear combination of functions sin and cos with n a natural number....
.

Hermite interpolation
Hermite interpolation

Hermite interpolation is a method closely related to the Newton polynomial method of interpolation in numerical analysis, that allows us to consider given derivatives at data points, as well as the data points themselves....
 problems are those where not only the values of the polynomial p at the nodes are given, but also all derivatives up to a given order, that is, it is prescribed there a whole k-jet
Jet (mathematics)

In mathematics, the jet is an operation which takes a differentiable function f and produces a polynomial, the truncated Taylor polynomial of f, at each point of its domain....
. This turns out to be equivalent to a system of simultaneous polynomial congruences, and may be solved by means of the Chinese remainder theorem
Chinese remainder theorem

The Chinese remainder theorem is a result about modular arithmetic in number theory and its generalizations in abstract algebra....
 for polynomials. Birkhoff interpolation
Birkhoff interpolation

In mathematics, Birkhoff interpolation is an extension of polynomial interpolation. It refers to the problem finding a polynomial p of degree d such that...
 is a further generalization where only derivatives of some orders are prescribed, not necessarily all orders from 0 to a k.

Collocation method
Collocation method

In mathematics, a collocation method is a method for the numerical analysis solution of ordinary differential equation and partial differential equations and integral equations....
s for the solution of differential and integral equations are based on polynomial interpolation.

The technique of rational function modeling is a generalization that considers ratios of polynomial functions.

External links

  • by Stephen Wolfram
    Stephen Wolfram

    Stephen Wolfram is a British physicist, mathematician and businessman known for his work in theoretical particle physics, cosmology, cellular automaton, complexity theory, and computer algebra....
    , the Wolfram Demonstrations Project
    Wolfram Demonstrations Project

    The Wolfram Demonstrations Project is a website developed by Wolfram Research, whose stated goal is to bring computational exploration to the widest possible audience....
    .