Академический Документы
Профессиональный Документы
Культура Документы
Newton Interpolation
Newtons method for interpolation is derived by seeking a polynomial of the form
P (x) = a0 +a1 (x xn )
+a2 (x xn )(x xn1 )
+a3 (x xn )(x xn1 )(x xn2 )
..
.
+an (x xn )(x xn1 ) (x x1 )
(18.1)
(18.2)
(18.3)
(18.4)
(18.5)
(18.6)
(18.7)
(18.8)
k fn = k1 fn k1 fn1
(18.9)
(18.10)
124
(18.11)
(18.12)
(18.13)
(18.14)
(18.15)
(18.16)
(18.17)
1
k fn
k!hk
(18.18)
Qk (x) =
k1
Y
(x xnj )
(18.19)
j=0
(18.20)
(18.21)
k=1
= fn +
n
X
k fn
k=1
k!hk
Qk (x)
(18.22)
(18.23)
2008, B.E.Shapiro
Last revised: November 16, 2011
125
k1
Y
(18.24)
j=0
k1
Y
(j + s)h
(18.25)
j=0
= hk
k1
Y
(s + j)
(18.26)
j=0
k
= h s(s + 1)(s + 2) (s + k 1)
Recall the definition of the binomial coefficient for n, m integers,
n(n 1)(n 2) (n m + 1)
n!
n
=
=
m
m!(n m)!
m!
we can define, for any real number t, not necessarily integer,
t(t 1)(t 2) (t m + 1)
t
=
k
k!
Using this we calculate
s(s 1)(s 2) (s k + 1)
s
=
k
k!
(1)k
s(s + 1)(s + 2) (s + k 1)
k!
(1)k
=
Qk (x)
k!hk
Using 18.32 in 18.22 we get
=
P (x) = fn +
n
X
(1)
k=1
s
k fn
k
(18.27)
(18.28)
(18.29)
(18.30)
(18.31)
(18.32)
(18.33)
(18.36)
k fn = k1 fn+1 k fn
(18.37)
2008, B.E.Shapiro
Last revised: November 16, 2011
(18.34)
(18.35)
Math 481A
California State University Northridge
126
(18.38)
k=1
where x = x0 + hs.
Example 18.1. Find e1.2 using a first, second, third, and fourth order differences
using the data e = 2.71828, e1.5 = 4.48169, e2 = 7.38906, e2.5 = 12.1829, e3 =
20.085554 with Newtons forward difference formula.
Solution. We want to use equation 18.34 at x = 1.2 with x0 = 1. Hence
1.2 = x = x0 + hs = 1 + 0.5s
(18.39)
and so s = 0.4. We can construct the following table of forward differences based on
the input data. The actual data values that we will use are colored yellow.
xk
1
fk
2.71828
fk
2 fk
3 fk
4 fk
1.76341
1.5
4.48169
1.14396
2.90737
7.38906
2.5
12.18249
0.74211
1.88607
4.79344
0.48142
1.22353
3.10961
7.90304
20.08554
(18.40)
(18.41)
(18.42)
(18.43)
(18.44)
= 2.71828 + (0.4)(1.76341)
= 3.42364
Math 481A
California State University Northridge
(18.45)
(18.46)
2008, B.E.Shapiro
Last revised: November 16, 2011
127
For n = 2,
s
s
P (x + sh) = f0 +
f0 +
2 f0
1
2
= 3.42364 + (0.12)(1.14396)
= 3.28636
(18.47)
(18.48)
(18.49)
For n = 3,
s
s
s
2
P (x + sh) = f0 +
f0 +
f0 +
3 f0
1
2
3
= 3.28636 + (0.064)(0.74211)
= 3.33386
(18.50)
(18.51)
(18.52)
For n = 4,
s
s
s
s
2
3
P (x + sh) = f0 +
f0 +
f0 +
f0 +
4 f0
1
2
3
4
= 3.33386 + (0.0416)(0.48142)
= 3.31383
(18.53)
(18.54)
(18.55)
(18.56)
Math 481A
California State University Northridge
128
fk
2.71828
fk
2 fk
3 fk
4 fk
1.76341
1.5
4.48169
1.14396
2.90737
7.38906
2.5
12.18249
0.74211
1.88607
4.79344
0.48142
1.22353
3.10961
7.90304
20.08554
Math 481A
California State University Northridge
(18.60)
(18.61)
2008, B.E.Shapiro
Last revised: November 16, 2011