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
![]()


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




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
![]()
![]()
![]()
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/L363xH59/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:
![]()


![]()
![]()
![]()


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/L379xH108/4fad19b82a8882d12e9efba75231993d-51f1a.png)
![\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
:


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: