NA Lecture 21 (N)
NA Lecture 21 (N)
Analysis
Lecture 21
Chapter 5
Interpolation
Finite
Finite Difference
Difference Operators
Operators
Newton’s
Newton’s Forward
Forward Difference
Difference
Interpolation
Interpolation Formula
Formula
Newton’s
Newton’s Backward
Backward Difference
Difference
Interpolation
Interpolation Formula
Formula
Lagrange’s
Lagrange’s Interpolation
Interpolation
Formula
Formula
Divided
Divided Differences
Differences
Interpolation
Interpolation in
in Two
Two Dimensions
Dimensions
Cubic
Cubic Spline
Spline Interpolation
Interpolation
For given a table of values,
( xk , yk ), k 0,1, 2, , n;
is defined as
1
E f ( x ) f ( x h)
Similarly,
n
E f ( x) f ( x nh)
Average Operator,
1 h h
f ( x) f x f x
2 2 2
1
y x ( h / 2) y x ( h / 2)
2
Differential Operator, D
d
Df ( x) f ( x) f ( x)
dx
2
2 d n
D f ( x) 2 f ( x) f ( x)
dx
Important Results
E1
E 1 1
1 E
E
E 1/ 2
E 1/ 2 hD log E
1 1/ 2 1/ 2
(E E )
2
Newton’s Forward
Difference
Interpolation
Formula
Let
Let yy == ff ((xx)) be
be aa function
function which which
takes
takes values
values ff((xx00),), ff((xx00++ hh),), ff((xx00+2
+2hh),),
…,
…, corresponding
corresponding to to various
various equi- equi-
spaced
spaced valuesvalues of of xx with
with spacing
spacing hh,,
say
say xx00,, xx00 ++ hh,, xx00 ++ 22hh,, …
… ..
Suppose,
Suppose, we we wishwish to to evaluate
evaluate the the
function
function ff ((xx)) for for aa value
value xx00 ++ ph ph,,
where
where pp is is any
any realreal number,
number, then then for
for
any
any real
real number
number pp,, we we have
have the the
operator
operator E E such
such that that
p
E f ( x) f ( x ph).
p p
f ( x0 ph) E f ( x0 ) (1 ) f ( x0 )
p ( p 1) 2 p ( p 1)( p 2) 3
1 p f ( x0 )
2! 3!
f ( x0 ph) f ( x0 ) pf ( x0 )
p ( p 1) 2 p ( p 1)( p 2) 3
f ( x0 ) f ( x0 )
2! 3!
p ( p 1) ( p n 1) n
f ( x0 ) Error
n!