Home > Mathematics > Interpolation > Lagrange interpolation polynomial
Lagrange interpolation polynomial
Monday 25 June 2007, by ,
All the versions of this article: [English] [français]
In this section, we shall study the interpolation polynomial in the Lagrange form. Given a set of (n+1) data points and a function f, the aim is to determine a polynomial of degree n which interpolates f at the points in question.
Interpolation
Given a set of
data points
, the points defined by
are called points of interpolation. The points
are the values of interpolation. To interpolate a function
, we define the values of interpolation as follows:
![]()
Lagrange interpolation polynomial
The purpose here is to determine the unique polynomial of degree
,
which verifies
![]()
The polynomial which meets this equality is Lagrange interpolation polynomial

where
are polynomials of degree
that form a basis of ![]()

Properties of Lagrange interpolation polynomial and Lagrange basis
They are the
polynomials which verify the following property:

They form a basis of the vector space
of polynomials of degree at most equal to ![]()

By setting:
, we obtain:

The set
is linearly independent and consists of
vectors. It is thus a basis of
.
Finally, we can easily see that:

Existence and uniqueness of Lagrange interpolation polynomials
Existence.
The proof is shown above. Actually, it corresponds to the construction of Lagrange interpolation polynomial with regard to the basis ![]()
of
.
Uniqueness. Consider two elements
and
of
which verify
![]()
Let
. The polynomial
has
roots which are exactly the
since
![]()
has then
roots and
. Therefore,
![]()
We have thus shown the existence and uniqueness of Lagrange interpolation polynomial.
Error in Lagrange interpolation
Assume that
and
. Let
be the closed set defined by
(the smallest closed set containing
and
).
Theorem.
![\forall x\in [a,b],\quad \exists \xi \in I / f(x)-P_n(x)=
\displaystyle\frac{f^{n+1}(\xi)}{(n+1)!} \displaystyle\prod_{i=0}^{n}(x-x_i) \forall x\in [a,b],\quad \exists \xi \in I / f(x)-P_n(x)=
\displaystyle\frac{f^{n+1}(\xi)}{(n+1)!} \displaystyle\prod_{i=0}^{n}(x-x_i)](local/cache-vignettes/L361xH54/1e75de9228bd2fedc768dc9ed239e1d7-3a980.png)
Proof. There are two possible ways to prove this theorem: 1) the one encountered in The polynomial interpolation in the form of Newton and, 2) the following proof.
If
, the problem is over:
![]()
Now, assume that
and let us define the application
as follows:

We also define the application
:

is
times differentiable and evaluates to zero at the
points
of the interval
. By successively applying Rolle’s theorem,
evaluates to zero at a point
:
![]()
The
derivative of
can be easily calculated:
![]()
By setting
, we have:
![]()
Therefore

We finally conclude that

Corollary.
Assume that
and
.
![\forall x\in [a,b],\quad |f(x)-P_n(x)|\leq
\displaystyle\frac{\displaystyle|\prod_{i=0}^{n}(x-x_i)|}{(n+1)!}\sup_{x\in[a,b]}|f^{n+1} (x)| \forall x\in [a,b],\quad |f(x)-P_n(x)|\leq
\displaystyle\frac{\displaystyle|\prod_{i=0}^{n}(x-x_i)|}{(n+1)!}\sup_{x\in[a,b]}|f^{n+1} (x)|](local/cache-vignettes/L378xH96/4fad19b82a8882d12e9efba75231993d-51f1a.png)
Alternatively stated:
![\forall x\in [a,b],\quad |f(x)-P_n(x)|\leq
\displaystyle\frac{(b-a)^{n+1}}{(n+1)!}\sup_{x\in[a,b]}|f^{n+1} (x)| \forall x\in [a,b],\quad |f(x)-P_n(x)|\leq
\displaystyle\frac{(b-a)^{n+1}}{(n+1)!}\sup_{x\in[a,b]}|f^{n+1} (x)|](local/cache-vignettes/L363xH54/bd6205484c3e2680dcdcf9772dc35e3b-a0c1c.png)
Example: computing Lagrange interpolation polynomials
Given a set of three data points
, we shall determine the Lagrange interpolation polynomial of degree 2 which passes through these points.
First, we compute
and
:

Lagrange interpolation polynomial is:

Scilab: computing Lagrange interpolation polynomial
The Scilab function lagrange.sci determines Lagrange interpolation polynomial.
encompasses the points of interpolation and
the values of interpolation.
is the Lagrange interpolation polynomial.
lagrange.sci
We thus have:
