Docsity

Interpolation 6-Numerical Analysis-Lecture Slides, Slides of Mathematical Methods for Numerical Analysis and Optimization

Partial preview of the text

Download Interpolation 6-Numerical Analysis-Lecture Slides and more Slides Mathematical Methods for Numerical Analysis and Optimization in PDF only on Docsity!

Chapter 5Chapter 5InterpolationInterpolation

r^

r^

r

i^

i^

i

y^

y^

y

^

^

 ^

  1

1 ,^1

k^ k^ , (^ 1),...,

k i^

i^

i

y^

y^

y

i^ n^

n^

k ^

 

^

 ^

  ^

^1

1 (1 2)^

(1 2)

n^

n^

n

i^

i^

i

y^

y^

y

^

 ^

 ^

^

Thus

(^

)^ ( )

x^ x

h^

x y^ y

y

f^

x^ h^

f^ x

 ^ 

^

^ 

2 x^
x^ h^
x

y^

y^

y

^

 ^

 ^ ( )^

(^ )

x^ x^

x^ h y^ y

y^

f^ x^

f^ x^ h  ^ 

^

^

^

(^ / 2)^

(^ / 2)^

x^ x^ h

x^

h

h^
h
y^ y^
y^
f^ x^
f^ x

^

^

^ 
^
^
^
^ 
^
^ 
^
^ 
^

Similarly

The inverse operator

-1 E

is defined as

1 ( )

(^

)

E^ f

x^

f^ x^

h

^

^

Similarly,

( )^

(^

)

n E f^

x^

f^ x

nh

^

^

Average Operator,

(^ / 2)^

(^ / 2) 1 ( )^

2

2

2

1 x^2

h^

h^ x h

h

f^ x^

f^ x^

f^ x

y^

y

^

 ^

^

^ 

^

^ 

 ^

^ 

^

^

^ 

^

^

^

 ^

Important Results

(^1) E  ^

^

1

1 1

E  (^) E E  ^ ^

1/ 2^

1/ 2 E^

E ^

 ^

^ 1/ 2^

1/ 2 1 (^

) E^2

E ^

 ^

log hD^

E 

Newton’sNewton’sForwardForwardDifferenceDifferenceInterpolationInterpolationFormulaFormula

2

0

0

0 3 0

0 (^ 1) 2! (^ 1)(

  1. 3! (^ 1)^

(^

1)^

Error ! x

n p^ p y^ y^

p^ y^

y

p^ p^

p^

y p^ p^

p^ n^

y n

 ^ ^

^ ^

 ^ 

^  ^

^  ^

 ^  

This is also known as Newton-Gregory forward differenceinterpolation formula.Here p=(x-x

)/h. 0

An alternate expression is

NEWTON’SBACKWARDDIFFERENCE INTERPOLATION

FORMULA

Alternatively, this formula can alsobe written as

2 (^ 1) 2!^3 (^ 1)(^

  1. 3! (^ 1)(^

2)^ (^

1)^

Error ! x^ n^

n^

n n

n n p p y^ y^

p^ y^

y

p p^

p^

y p p^

p^

p^ n^

y  n ^ ^ ^ ^

 ^ 

^  ^ ^

^  ^

 ^  

x^ x^ ^ np  h

Here

LAGRANGE’SINTERPOLATIONFORMULA

If the values of theindependent variable arenot given at equidistantintervals, then we have thebasic formula associatedwith the name of Lagrangewhich will be derived now.

Let^ y

=^ f^ ( x

) be a function

which takes the values, y, y^0

,…yn^

corresponding to x^ , x^0

, …x^ n

. Since there are ( n^ + 1) values of

y

corresponding to (

n^ + 1)

values of

x , we can represent the function

f^ ( x ) by a polynomial of degree

n****.