Lagrange polynomials,can approximate a function by a polynomial by interpolating the values of the function at a set of points
For a given set of distinct points
and numbers
the Lagrange polynomial is the polynomial of the least degree (for
points,
is a polynomial of degree
in general) that at each point
assumes the corresponding value
The interpolating polynomial of least degree is unique.
The polynomials are built up from Lagrange basis polynomialswhich have the property that
and
if
because of the factor
We can ensure equality with
by writing
and the Lagrange polynomial that interpolates
is the sum of terms such as these:
Example: Find the Lagrange polynomial that interpolates the functionat
with
It is frequently the case that theare evenly spaced, though this is not always optimal. Obviously, increasing the number of points in general increases the accuracy.