Professional Documents
Culture Documents
Divided Differences: MATH 375 Numerical Analysis
Divided Differences: MATH 375 Numerical Analysis
J. Robert Buchanan
Department of Mathematics
Fall 2010
Pn (x) = a0 + a1 (x − x0 ) + a2 (x − x0 )(x − x1 )
+ · · · + an (x − x0 ) · · · (x − xn−1 )
Pn (x) = a0 + a1 (x − x0 ) + a2 (x − x0 )(x − x1 )
+ · · · + an (x − x0 ) · · · (x − xn−1 )
Pn (x) = a0 + a1 (x − x0 ) + a2 (x − x0 )(x − x1 )
+ · · · + an (x − x0 ) · · · (x − xn−1 )
Pn (x1 ) = a0 + a1 (x1 − x0 )
f (x1 ) = f (x0 ) + a1 (x1 − x0 )
f (x1 ) − f (x0 )
a1 =
x1 − x0
Pn (x) = a0 + a1 (x − x0 ) + a2 (x − x0 )(x − x1 )
+ · · · + an (x − x0 ) · · · (x − xn−1 )
Pn (x1 ) = a0 + a1 (x1 − x0 )
f (x1 ) = f (x0 ) + a1 (x1 − x0 )
f (x1 ) − f (x0 )
a1 =
x1 − x0
and so on.
Proceeding recursively,
Denote the kth divided difference of f with respect to xi ,
xi+1 , xi+2 , . . . , xi+k by
Fi,j−1 − Fi−1,j−1
Fi,j =
xi − xj
50
40
30
20
x
2 3 4 5
f (xj ) − f (xi )
f [xi , xj ] = = f ′ (z)
xj − xi
for some z between xi and xj according to the MVT.
f (xj ) − f (xi )
f [xi , xj ] = = f ′ (z)
xj − xi
for some z between xi and xj according to the MVT.
This can be generalized.
Theorem
Suppose f ∈ C n [a, b] and x0 , x1 , . . . , xn are distinct numbers in
[a, b]. There exists z ∈ (a, b) such that
f (n) (z)
f [x0 , x1 , . . . , xn ] = .
n!
0 = g (n) (z)
(n)
= f (n) (z) − Pn (z)
(n)
Pn (z) = f (n) (z)
n! f [x0 , x1 , . . . , xn ] = f (n) (z)
n
X
Pn (x) = f [x0 ] + f [x0 , . . . , xk ](x − x0 ) · · · (x − xk −1 )
k =1
n
X
Pn (x0 + sh) = f [x0 ] + f [x0 , . . . , xk ](x0 + sh − x0 ) · · · (x0 + sh − x
k =1
X n
= f [x0 ] + f [x0 , . . . , xk ](sh) · · · ((s − k + 1)h)
k =1
X n
= f [x0 ] + hk f [x0 , . . . , xk ]s(s − 1) · · · (s − k + 1)
k =1
J. Robert Buchanan Divided Differences
Forward Differences (2 of 4)
Using the binomial coefficient notation
s s!
=
k (s − k)! k!
s(s − 1) · · · (s − k + 1)
=
k!
s
s(s − 1) · · · (s − k + 1) = k! ,
k
we can write
n
X
Pn (x) = f [x0 ] + hk f [x0 , . . . , xk ]s(s − 1) · · · (s − k + 1)
k =1
n
X
k s
= f [x0 ] + h k! f [x0 , . . . , xk ].
k
k =1
f (x1 ) − f (x0 )
f [x0 , x1 ] =
x1 − x0
1
= ∆f (x0 )
h
f [x2 , x1 ] − f [x0 , x1 ]
f [x0 , x1 , x2 ] =
x − x0
2
1 1 1
= ∆f (x1 ) − ∆f (x0 )
2h h h
1 2
= ∆ f (x0 )
2h2
..
.
1
f [x0 , x1 , . . . , xk ] = ∆k f (x0 ).
k! hk
Definition
Given the sequence {pn }∞
n=0 we define the backward
difference ∇pn as
∇k pn = ∇(∇k −1 pn ).
f (xn−1 ) − f (xn )
f [xn , xn−1 ] =
xn−1 − xn
f (xn ) − f (xn−1 )
=
xn − xn−1
1
= ∇f (xn )
h
1 2
f [xn , xn−1 , xn−2 ] = ∇ f (xn )
2h2
..
.
1
f [xn , xn−1 , . . . , xn−k ] = ∇k f (xn ).
k! hk