Docsity

Interpolation-Numerical Analysis-Lecture Handouts, Lecture notes of Mathematical Methods for Numerical Analysis and Optimization

Toggle sidebar
bg1
Numerical Analysis โ€“MTH603 VU
ยฉ Copyright Virtual University of Pakistan 1
Interpolation
Introduction
Finite differences play an important role in numerical techniques, where tabulated values
of the functions are available.
For instance, consider a function ().yfx
=
As x takes values 012
,, , , ,
n
x
xx xโ€ฆ
Let the corresponding values of y be 012
,, , ,.
n
yyy yโ€ฆ
That is, for given a table of values, ( , ), 0,1, 2, , ;
kk
x
yk n
=
โ€ฆ
The process of estimating the value of y, for any intermediate value of x, is called
interpolation. The method of computing the value of y, for a given value of x, lying
outside the table of values of x is known as extrapolation. If the function f (x) is known,
the value of y corresponding to any x can be readily computed to the desired accuracy.
For interpolation of a tabulated function, the concept of finite differences is important.
The knowledge about various finite difference operators and their symbolic relations are
very much needed to establish various interpolation formulae.
Finite Difference Operators
Forward Differences
For a given table of values ( , ), 0,1, 2,...,
kk
x
yk n
=
with equally spaced abscissas of a
function (),yfx=we define the forward difference operator
โˆ†
as follows
1, 0,1,..., ( 1)
ii i
yy y i n
+
โˆ†= โˆ’ = โˆ’
To be explicit, we write
010
121
11nnn
yyy
yyy
yyy
โˆ’โˆ’
โˆ†= โˆ’
โˆ†= โˆ’
โˆ†=โˆ’
๎˜ฃ๎˜ฃ๎˜ฃ
These differences are called first differences of the function y and are denoted by the
symbol i
yโˆ† Here, โˆ† is called the first difference operator
Similarly, the differences of the first differences are called second differences, defined by
22
010 121
,yyy yyyโˆ†=โˆ†โˆ’โˆ† โˆ†=โˆ†โˆ’โˆ†
Thus, in general
2
1ii i
yy y
+
โˆ†=โˆ†โˆ’โˆ†
Here 2
โˆ† is called the second difference operator. Thus, continuing, we can define,
r-th difference of y, as
11
1
rr r
ii i
yy y
โˆ’โˆ’
+
โˆ†=โˆ† โˆ’โˆ†
By defining a difference table as a convenient device for displaying various differences,
the above defined differences can be written down systematically by constructing a
difference table for values
( , ), 0,1,..., 6
kk
xy k=
Forward Difference Table
docsity.com
pf3
pf4

Partial preview of the text

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

Interpolation

Introduction Finite differences play an important role in numerical techniques, where tabulated values of the functions are available. For instance, consider a function y = f ( ). x As x takes values x 0 (^) , x 1 (^) , x 2 , โ€ฆ, xn , Let the corresponding values of y be y 0 (^) , y 1 (^) , y 2 , โ€ฆ, yn. That is, for given a table of values, ( xk , yk ), k = 0,1, 2, โ€ฆ, n ; The process of estimating the value of y , for any intermediate value of x , is called interpolation. The method of computing the value of y , for a given value of x , lying outside the table of values of x is known as extrapolation. If the function f ( x ) is known, the value of y corresponding to any x can be readily computed to the desired accuracy. For interpolation of a tabulated function, the concept of finite differences is important. The knowledge about various finite difference operators and their symbolic relations are very much needed to establish various interpolation formulae.

Finite Difference Operators

Forward Differences For a given table of values ( xk , yk ), k = 0,1, 2,..., n with equally spaced abscissas of a function y = f ( ), x we define the forward difference operator โˆ† as follows โˆ† y (^) i = yi (^) + 1 โˆ’ yi , i = 0,1,..., ( n โˆ’1) To be explicit, we write 0 1 0 1 2 1

n 1 n n 1

y y y y y y

y (^) โˆ’ y y โˆ’

These differences are called first differences of the function y and are denoted by the symbol โˆ† y (^) i Here, โˆ†^ is called the first difference operator Similarly, the differences of the first differences are called second differences, defined by โˆ† 2 y 0 (^) = โˆ† y 1 (^) โˆ’ โˆ† y 0 (^) , โˆ† 2 y 1 (^) = โˆ† y 2 (^) โˆ’ โˆ† y 1 Thus, in general โˆ† 2 yi = โˆ† y (^) i (^) + 1 โˆ’ โˆ† yi Here โˆ† 2 is called the second difference operator. Thus, continuing, we can define, r-th difference of y , as โˆ†^ r^ yi = โˆ† r^ โˆ’^1 yi (^) + 1 โˆ’ โˆ† r โˆ’^1 yi By defining a difference table as a convenient device for displaying various differences, the above defined differences can be written down systematically by constructing a difference table for values ( xk , yk ), k =0,1,..., 6 Forward Difference Table

This difference table is called forward difference table or diagonal difference table. Here, each difference is located in its appropriate column, midway between the elements of the previous column. Please note that the subscript remains constant along each diagonal of the table. The first term in the table, that is y 0 is called the leading term, while the differences โˆ† y 0 (^) , โˆ† 2 y 0 (^) , โˆ† 3 y 0 ,...are called leading differences Example Construct a forward difference table for the following values of x and y :

Solution

1 0 0 1 0 0 2 1 1 2 1 1 3 2 2 3 2 2

or or or

y y y y y y y y y y y y y y y y y y

Similarly,

1 0 2 0 1 0 2 0 2 1 2 1 2 1 2 1

or or

y y y y y y y y y y y y

SSiimmiillaarrllyy,, wwee ccaann aallssoo wwrriittee

(^2 1 2 0 3 0 2 1 2 0 ) (^2 2 2 1 3 1 2 2 2 1 )

or or

y y y y y y y y y y y y

โˆ† y (^) 2 = โˆ†( y 0 (^) + โˆ† 2 y 0 (^) ) + โˆ†( 2 y 0 (^) + โˆ†^3 y 0 )

= โˆ† y 0 (^) + 2 โˆ†^2 y 0 (^) + โˆ†^3 y 0

3 2 2 1 1 1 2 1 0 0 2 0 3 0

y y y y y y y y y y y

= (1 + โˆ†) 3 y 0 SSiimmiillaarrllyy,, wwee ccaann ssyymmbboolliiccaallllyy wwrriittee 1 0 2 2 0 3 3 0

0

n (1^ ) n

y y y y y y

y y

HHeennccee,, wwee oobbttaaiinn yn = y 0 (^) +^ n^ C 1 (^) โˆ† y 0 (^) + n^ C 2 (^) โˆ† 2 y 0 (^) + n^ C 3 (^) โˆ†^3 y 0 (^) + "+ โˆ† ny 0 OR

0 0

n (^) n i

yn = โˆ‘ i = Ci โˆ† y