![](../../home.gif)
![](../../kadalbajoo/lec1/prev.gif)
![](../../kadalbajoo/lec1/next.gif)
Next: Newton Interpolation polynomial:
Up: Main:Previous: Introduction:
Interpolation
Let us suppose that the given
data points
![$ i=0,1,2...n$](img7.png)
is coming from a
function
![$ f(x)$](img8.png)
. Let us assume that this function
![$ y=f(x)$](img9.png)
takes
the values
![$ y_{0},y_{1}.......y_{n}$](img10.png)
at
![$ x_{0},x_{1},.......x_{n}.$](img11.png)
Since there are
![$ (n+1)$](img12.png)
data points
![$ (x_{i},y_{i}),$](img6.png)
we can represent the function
![$ f(x)$](img8.png)
by a
polynomial of degree
![](img13a.gif)
![% latex2html id marker 2040
$\displaystyle \therefore f(x)=C_{n}x^{n}+C_{n-1}x^{n-1}+...+C_{1}x+C_{0}$](img14.png) |
(1) |
As we have assumed that
i.e. the
function
passes through
can be
rewritten as:
![$\displaystyle a_{2}(x-x_{0})(x-x_{1})(x-x_{3})...(x-x_{n})+.......+ a_{n}(x-x_{0})...(x-x_{n-1})$](img18.png) |
(2) |
![$\displaystyle But, y_{i}=f(x_{i})\quad i=0,1,.....n\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\qquad\quad$](img19.png) |
(3) |
Using (3) for i=0, in (2) we get
![% latex2html id marker 2056
$\displaystyle \therefore a_{0}=\frac{y_{0}}{(x_{0}-x_{1})...(x_{0}-x_{n})}$](img21.png) |
(4.1) |
For
we get
![% latex2html id marker 2062
$\displaystyle \therefore a_{1}=\frac{y_{1}}{(x_{1}-x_{0})(x_{1}-x_{2})...(x_{1}-x_{n})}$](img24.png) |
(4.2) |
Similarly for
we get
and for
we get
![$\displaystyle a_{n}=\frac{y_{n}}{(x_{n}-x_{0})...(x_{n}-x_{n-1})}$](img28.png) |
(4.3) |
Using (4.1)-(4.3) in (2) we get
![](img29a.gif) |
(5) |
![](img30b.gif) |
(6) |
(5) can be rewritten in a compact form as:
where
![$\displaystyle L_{i}(x)=\frac{(x-x_{0})(x-x_{1})...(x-x_{i-1})(x-x_{i+1})...(x-x...
...)}{(x_{i}-x_{0})(x_{i}-x_{1})...(x_{i}-x_{i-1})(x_{i}-x_{i+1})...(x_{i}-x_{n})}$](img36.png) |
(7.2) |
It can be easily noted that
![](img37a.gif) |
7.3 |
Let us introduce the product notation as :
![$\displaystyle \prod(x)=\prod\limits_{i=0}^{n}(x-x_{i})=(x-x_{0})(x-x_{1})....(x-x_{n})$](img38.png) |
(8.1) |
![](img39a.gif) |
(8.2) |
Therefore, Lagrange interpolation polynomial of degree n can be
written as
![$\displaystyle y=f(x)=\sum\limits_{k=0}^{n}L_{k}(x)y_{k}$](img40.png) |
(9) |
Example 1:
Given the following data table, construct the
Lagrange interpolation
polynomial
, to fit the data and find
i |
0 |
1 |
2 |
3 |
![$ x_{i}$](img42.png) |
0 |
1 |
2 |
3 |
![$ y_{i}=f(x_{i})$](img43.png) |
1 |
2.25 |
3.75 |
4.25 |
Solution:
Here
.
Lagrange interpolation polynomial is given by
Example 2:
Given the following data table, construct the
Lagrange interpolation polynomial f(x), to fit the data and find
i |
0 |
1 |
2 |
3 |
4 |
5 |
![$ x_{i}$](img42.png) |
1980 |
1985 |
1990 |
1995 |
2000 |
2005 |
![$ y_{i}=f(x_{i})$](img43.png) |
440 |
510 |
525 |
571 |
500 |
600 |
Solution:
Here
Lagrange interpolation polynomial is given by
![](../../kadalbajoo/lec1/prev.gif)
![](../../kadalbajoo/lec1/next.gif)
Next: Newton Interpolation polynomial:Up: Main:
Previous: Introduction: