Documente Academic
Documente Profesional
Documente Cultură
Technology
NUMERICAL
CALCULATION
Interpolation and Polynomial Approximation
By ,
March2014
Main Content
Review
Interpolation :
Because,
DIVIDED DIFFERENCES
Although this polynomial is unique, there are alternate algebraic representations that
are useful in certain situations.
for appropriate constants a0, a1,..., an , The divided differences of f with respect to x0,
(1)
, (1)
a0 Pn ( x0 ) f ( x0 ) f x0
f ( x0 ) a 1 ( x1 x0 ) Pn ( x0 ) f ( x1 )
a1
f ( x1 ) f ( x0 )
f [ x0 , x1 ]
x1 x0
(2)
In general, ak = [0 , 1 , ,k ] for k= 0, 1, 2, , n
f [xi ] = f (xi)
(3)
f [ xi 1 , xi 2 ] f [ xi , xi 1 ]
f [ xi , xi 1 , xi 2 ]
xi 2 xi 1
(5)
f [ xi 1 , xi 2 ,..., xi k ] f [ xi , xi 1 ,..., xi k 1 ]
f [ xi , xi 1 ,..., xi k 1 , xi k 1 ]
xi k xi
(6)
f [ x1 , x2 ,..., xn ] f [ x0 , x1 ,..., xn 1 ]
f [ x0 , x1 ,..., xn ]
xn x0
9
Pn(x) = f [x0]+
k 1
(7)
10
11
i 1
F ( x x .)
i 1
i ,i
j 0
Fi,j1 Fi1,j1
, (Fi,j = f [xij , ... , xi ].)
xi xij
x0=1
f(x0)=ln(1)=0
x1=4
f(x1)=ln(4)=1.386
x2=6
f(x2)=ln(6)=1.791
13
Example (2/3)
Solution 1
a1
f ( x1 ) f ( x0 )
f [ x0 , x1 ]
x1 x0
a1
We can write
ln (2) = a0+a1(2-x0)+a2(2-x0)(2-x1)
So lets find a1 and a2,
f[xi,xj]
a1
f ( x2 ) f ( x1 )
f [ x1 , x2 ]
x2 x1
a1
xi
f(xi)
f[xi,xj xk]
x0=1
x1=4
1.386
0.462
x2=6
1.79
0.2025 -0.0519
a2
1.386 0
0.462
4 1
1.79 1.386
0.2025
64
f [ x1 , x2 ] f [ x0 , x1 ]
f [ x0 , x1 , x2 ]
x2 x0
f [ x0 , x1 , x2 ]
0.2025 0.462
0.0519
6 1
14
Example (3/3)
Solution 1
We have:
Then calculate
xi
f(xi)
x0=1
x1=4
1.386
0.462
x2=6
1.79
0.2025
[ TRUE
ln(2) = 0.6931 ]
f[xi,xj]
f[xi,xj xk]
-0.0519
15
HERMITE INTERPOLATION
16
p(xi)=f(xi),
1 i n.
Hn(xi) = f(xi), 1 i n.
17
d P ( xi ) d f ( xi )
k
dx
dx k
Note that when n = 0, the osculating polynomial approximating f is the m0th Taylor
polynomial for f at x0. When mi = 0 for each i, the osculating polynomial is the nth
Lagrange polynomial interpolating f on x0, x1, ... , xn.
The case when mi = 1, for each i = 0, 1, ... , n, gives the Hermite polynomials. For a
given function f , these polynomials agree with f at x0, x1, ... , xn .
18
j 0
where, for Ln, j (x) denoting the j th Lagrange coefcient polynomial of degree n, we
have
j ( x j )]L ( x )
H n, j (x) [1 - 2(x - x j ) Ln,
2
n, j
and
H n, j (x) (x - x j ) L2n, j ( x )
(x - x 0 ) 2 ...(x - x n ) 2 (2n 2)
f(x) H 2n 1 (x)
f
( (x))
(2n 2)!
for some (generally unknown) (x) in the interval (a, b).
19
xk
f(xk )
f (xk )
1.3
0.6200860
0.5220232
1.6
0.4554022
0.5698959
1.9
0.2818186
0.5811571
20
21
22
Finally,
So,
23
f [x , x , ... , x
k 1
The alternative method uses the connection between the nth divided difference and the nth
derivative of f , as outlined in the following theorem:
Theorem: Suppose that f Cn[a, b] and x0, x1, ... , xn are distinct numbers in [a, b]. Then a number
exists in (a, b) with
()
Suppose that the distinct numbers x0, x1, ... , xn are given together with the values of f and f at
these numbers. Dene a new sequence z0, z1, ... , z2n+1 by
z2i = z2i+1 = xi , for each i = 0, 1, ... , n,
and construct the divided difference table in the form of Table 1 (P.11) that uses z0, z1, ..., z2n+1.
24
25
26
H2n+1(x) = f [z0] +
k 1
27
28
29
30
THANK YOU!!
31