Docsity

Error Term In Interpolation Formulae-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
E
Er
rr
ro
or
r
T
Te
er
rm
m
i
in
n
I
In
nt
te
er
rp
po
ol
la
at
ti
io
on
n
F
Fo
or
rm
mu
ul
la
ae
e
W
We
e
k
kn
no
ow
w,
,
i
if
f
y
y
(
(x
x)
)
i
is
s
a
ap
pp
pr
ro
ox
xi
im
ma
at
te
ed
d
b
by
y
a
a
p
po
ol
ly
yn
no
om
mi
ia
al
l
P
Pn
n
(
(x
x)
)
o
of
f
d
de
eg
gr
re
ee
e
n
n
t
th
he
en
n
t
th
he
e
e
er
rr
ro
or
r
i
is
s
g
gi
iv
ve
en
n
b
by
y
( ) ( ) ( ),
n
x
yx P x
ε
=−
Where
01 0
( ) ( )( ) ( ) [ , ,..., ]
nn
x
xx xx xxyxx x
ε
=− − −"
A
Al
lt
te
er
rn
na
at
ti
iv
ve
el
ly
y
i
it
t
i
is
s
a
al
ls
so
o
e
ex
xp
pr
re
es
ss
se
ed
d
a
as
s
0
( ) ( ) [ , ,..., ] ( )
n
x
xyxx x K x
ε
=∏ = ∏
N
No
ow
w,
,
c
co
on
ns
si
id
de
er
r
a
a
f
fu
un
nc
ct
ti
io
on
n
F
F
(
(x
x)
),
,
s
su
uc
ch
h
t
th
ha
at
t
( ) ( ) ( ) ( )
n
Fx yx P x K x=− −∏
D
De
et
te
er
rm
mi
in
ne
e
t
th
he
e
c
co
on
ns
st
ta
an
nt
t
K
K
i
in
n
s
su
uc
ch
h
a
a
w
wa
ay
y
t
th
ha
at
t
F
F(
(x
x)
)
v
va
an
ni
is
sh
he
es
s
f
fo
or
r
x
x
=
=
x
x0
0,
,
x
x1
1,
,
…
…,
,
x
xn
n
a
an
nd
d
a
al
ls
so
o
f
fo
or
r
a
an
n
a
ar
rb
bi
it
tr
ra
ar
ri
il
ly
y
c
ch
ho
os
se
en
n
p
po
oi
in
nt
t
x
,
,
w
wh
hi
ic
ch
h
i
is
s
d
di
if
ff
fe
er
re
en
nt
t
f
fr
ro
om
m
t
th
he
e
g
gi
iv
ve
en
n
(
(n
n
+
+
1
1)
)
p
po
oi
in
nt
ts
s.
.
L
Le
et
t
I
I
d
de
en
no
ot
te
es
s
t
th
he
e
c
cl
lo
os
se
ed
d
i
in
nt
te
er
rv
va
al
l
s
sp
pa
an
nn
ne
ed
d
b
by
y
t
th
he
e
v
va
al
lu
ue
es
s
0,..., , .
n
x
xx
T
Th
he
en
n
F
F
(
(x
x)
)
v
va
an
ni
is
sh
he
es
s
(
(n
n
+
+
2
2)
)
t
ti
im
me
es
s
i
in
n
t
th
he
e
i
in
nt
te
er
rv
va
al
l
I
I.
.
B
By
y
R
Ro
ol
ll
le
e’
’s
s
t
th
he
eo
or
re
em
m
()Fx
′
v
va
an
ni
is
sh
he
es
s
a
at
t
l
le
ea
as
st
t
(
(n
n
+
+
1
1)
)
t
ti
im
me
es
s
i
in
n
t
th
he
e
i
in
nt
te
er
rv
va
al
l
I
I,
,
()Fx
′′
a
at
t
l
le
ea
as
st
t
n
n
t
ti
im
me
es
s,
,
a
an
nd
d
s
so
o
o
on
n.
.
E
Ev
ve
en
nt
tu
ua
al
ll
ly
y,
,
w
we
e
c
ca
an
n
s
sh
ho
ow
w
t
th
ha
at
t
(1)
()
n
Fx
+
v
va
an
ni
is
sh
he
es
s
a
at
t
l
le
ea
as
st
t
o
on
nc
ce
e
i
in
n
t
th
he
e
i
in
nt
te
er
rv
va
al
l
I
I,
,
s
sa
ay
y
a
at
t
x
ξ
=
T
Th
hu
us
s,
,
w
we
e
o
ob
bt
ta
ai
in
n
(1) (1) (1)
0()() ()
nn n
n
yP K
ξξ
++ +
=− −∏
S
Si
in
nc
ce
e
P
Pn
n(
(x
x)
)
i
is
s
a
a
p
po
ol
ly
yn
no
om
mi
ia
al
l
o
of
f
d
de
eg
gr
re
ee
e
n
n,
,
i
it
ts
s
(
(n
n
+
+
1
1)
)t
th
h
d
de
er
ri
iv
va
at
ti
iv
ve
e
i
is
s
z
ze
er
ro
o.
.
A
Al
ls
so
o,
,
f
fr
ro
om
m
t
th
he
e
d
de
ef
fi
in
ni
it
ti
io
on
n
o
of
f
()
x
Π
(1)
() ( 1)!.
nxn
+
∏=+
T
Th
he
er
re
ef
fo
or
re
e
w
we
e
g
ge
et
t
(1)
()
(1)!
n
y
Kn
ξ
+
=+
H
He
en
nc
ce
e
(1)
()
() () () ()
(1)!
n
n
y
x
yx P x x
n
ξ
ε
+
=− = ∏
+
f
fo
or
r
s
so
om
me
e
i
in
n
t
th
he
e
i
in
nt
te
er
rv
va
al
l
I
I.
.
T
Th
hu
us
s
t
th
he
e
e
er
rr
ro
or
r
c
co
om
mm
mi
it
tt
te
ed
d
i
in
n
r
re
ep
pl
la
ac
ci
in
ng
g
y
y
(
(x
x)
)
b
by
y
e
ei
it
th
he
er
r
N
Ne
ew
wt
to
on
n’
’s
s
d
di
iv
vi
id
de
ed
d
d
di
if
ff
fe
er
re
en
nc
ce
e
f
fo
or
rm
mu
ul
la
a
o
or
r
b
by
y
a
an
n
i
id
de
en
nt
ti
ic
ca
al
l
L
La
ag
gr
ra
an
ng
ge
e’
’s
s
f
fo
or
rm
mu
ul
la
a
i
is
s
(1)
0
()
( ) ( ) [ , ,..., ] ( ) (1)!
n
n
y
xxyxxx x
n
ξ
ε
+
=∏ =∏ +
docsity.com
pf3
pf4
pf5

Partial preview of the text

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

E

Errrroorr TTeerrmm iinn IInntteerrppoollaattiioonn FFoorrmmuullaaee

W

Wee kknnooww,, iiff yy ((xx)) iiss aapppprrooxxiimmaatteedd bbyy aa ppoollyynnoommiiaall PP

n

n

(xx)) ooff ddeeggrreeee nn tthheenn tthhee eerrrroorr iiss

g

giivveenn bbyy

n

ε x = y x − P x

Where

0 1 0

( ) ( )( ) ( ) [ , ,..., ]

n n

ε x = x − x x − x " x − x y x x x

AAlltteerrnnaattiivveellyy iitt iiss aallssoo eexxpprreesssseedd aass

0

( ) ( ) [ , ,..., ] ( )

n

ε x = ∏ x y x x x = K ∏ x

N

Nooww,, ccoonnssiiddeerr aa ffuunnccttiioonn F

F

x

x )

),, ssuucchh tthhaatt

n

F x = y x − P x − K ∏ x

D

Deetteerrmmiinnee tthhee ccoonnssttaanntt K

K

i

inn ssuucchh aa wwaayy tthhaatt F

F

x

x )

) vvaanniisshheess ffoorr x

x

x

x

x

x

x

x

nn

a

anndd aallssoo

ffoorr aann aarrbbiittrraarriillyy cchhoosseenn ppooiinntt x , w,whhiicchh iiss ddiiffffeerreenntt ffrroomm tthhee ggiivveenn (( nn ++ 11)) ppooiinnttss..

L

Leett I

I

d

deennootteess tthhee cclloosseedd iinntteerrvvaall ssppaannnneedd bbyy tthhee vvaalluueess

0

n

x x x T

Thheenn F

F

x

x )

) vvaanniisshheess

(( nn ++ 22)) ttiimmeess iinn tthhee iinntteerrvvaall II ..

BByy RRoollllee’’ss tthheeoorreemm F ( ) x

vavanniisshheess aatt lleeaasstt (( nn + 1+1)) ttiimmeess iinn tthhee iinntteerrvvaall II ,, F ( ) x

atat

lleeaasstt nn ttiimmeess,, aanndd ssoo oonn..

E

Evveennttuuaallllyy,, wwee ccaann sshhooww tthhaatt

( 1)

n

F x

v

vaanniisshheess aatt lleeaasstt oonnccee iinn tthhee iinntteerrvvaall I

I

, ssaayy aatt

x = ξ TThhuuss,, wwee oobbttaaiinn

( 1) ( 1) ( 1)

n n n

n

y ξ P ξ K ξ

SSiinnccee PP

nn

(( xx ) i)iss aa ppoollyynnoommiiaall ooff ddeeggrreeee nn,, iittss ((nn ++ 11))tthh ddeerriivvaattiivvee iiss zzeerroo.. AAllssoo,, ffrroomm tthhee

ddeeffiinniittiioonn ooff Π( ) x

( 1)

n

x n

TThheerreeffoorree wwee ggeett

( 1)

n

y

K

n

H

Heennccee

( 1)

n

n

y

x y x P x x

n

ffoorr ssoommee iinn tthhee iinntteerrvvaall II ..

TThhuuss tthhee eerrrroorr ccoommmmiitttteedd iinn rreeppllaacciinngg yy (( xx )) bbyy eeiitthheerr NNeewwttoonn’’ss ddiivviiddeedd ddiiffffeerreennccee

ffoorrmmuullaa oorr bbyy aann iiddeennttiiccaall LLaaggrraannggee’’ss ffoorrmmuullaa iiss

( 1)

0

( ) ( ) [ , ,..., ] ( )

n

n

y

x x y x x x x

n

I

INNTTEERRPPOOLLAATTIIOONN IINN TTWWOO DDIIMMEENNSSIIOONNSS

L

Leett u

u b

bee aa ppoollyynnoommiiaall ffuunnccttiioonn iinn ttwwoo vvaarriiaabblleess,, ssaayy x

x a

anndd y

y ,

, iinn ppaarrttiiccuullaarr qquuaaddrraattiicc iinn x

x

a

anndd ccuubbiicc iinn y

y ,

, wwhhiicchh iinn ggeenneerraall ccaann bbee wwrriitttteenn aass

2

0 1 2 3

2 3 2 2

4 5 6 7 8

3 2 2 3 2

9 10 11

u f ( , x y ) a a x a y a x

a xy a y a y a y x a yx

a y x a y x a y x

TThhiiss rreellaattiioonn iinnvvoollvveess mmaannyy tteerrmmss.. IIff wwee hhaavvee ttoo wwrriittee aa rreellaattiioonn iinnvvoollvviinngg tthhrreeee oorr mmoorree

vvaarriiaabblleess,, eevveenn llooww ddeeggrreeee ppoollyynnoommiiaallss ggiivvee rriissee ttoo lloonngg eexxpprreessssiioonnss.. IIff nneecceessssaarryy,, wwee

ccaann cceerrttaaiinnllyy wwrriittee,, bbuutt ssuucchh ccoommpplliiccaattiioonnss ccaann bbee aavvooiiddeedd bbyy hhaannddlliinngg eeaacchh vvaarriiaabbllee

s

seeppaarraatteellyy..

I

Iff wwee lleett xx,, aa ccoonnssttaanntt,, ssaayy x

x == cc ,

, tthhee eeqquuaattiioonn ssiimmpplliiffiieess ttoo tthhee ffoorrmm

2 3

x c 0 1 2 3

u b b y b y b y

=

NNooww wwee aaddoopptt tthhee ffoolllloowwiinngg pprroocceedduurree ttoo iinntteerrppoollaattee aatt aa ppooiinntt ((11,, mm ) i)inn aa ttaabbllee ooff ttwwoo

vvaarriiaabblleess,, bbyy ttrreeaattiinngg oonnee vvaarriiaabbllee aa ccoonnssttaanntt ssaayy xx == xx

.. TThhee pprroobblleemm rreedduucceess ttoo tthhaatt ooff aa

ssiinnggllee vvaarriiaabbllee iinntteerrppoollaattiioonn..

A

Annyy oonnee ooff tthhee mmeetthhooddss ddiissccuusssseedd iinn pprreecceeddiinngg sseeccttiioonnss ccaann tthheenn bbee aapppplliieedd ttoo ggeett

f

f (

x

x

m

m )

).. TThheenn wwee rreeppeeaatt tthhiiss pprroocceedduurree ffoorr vvaarriioouuss vvaalluueess ooff x

x s

saayy x

x

x

x

x

x

x

x

nn

k

keeeeppiinngg y

y c

coonnssttaanntt.. TThhuuss,, wwee ggeett aa nneeww ttaabbllee wwiitthh y

y c

coonnssttaanntt aatt tthhee vvaalluuee y

y == mm a

anndd wwiitthh

x

x v

vaarryyiinngg.. WWee ccaann tthheenn iinntteerrppoollaattee aatt x

x

ExExaammppllee

T

Taabbuullaattee tthhee vvaalluueess ooff tthhee ffuunnccttiioonn f

f ((xx)) == xx

+yy

-yy

ffoorr xx == 00,,11,,22,,33,,4 4 anandd yy == 00,,11,,22,,33,,4 4 ..

UUssiinngg tthhee ttaabbllee ooff tthhee vvaalluueess,, ccoommppuuttee ff((22..55,, 33..55)) bbyy nnuummeerriiccaall ddoouubbllee iinntteerrppoollaattiioonn

S

Soolluuttiioonn

TThhee vvaalluueess ooff tthhee ffuunnccttiioonn ffoorr tthhee ggiivveenn vvaalluueess ooff tthhee ggiivveenn vvaalluueess ooff xx aanndd yy aarree ggiivveenn iinn

tthhee ffoolllloowwiinngg ttaabbllee

XX ………….... YY …………....

C

Coonntt !!

SSiimmiillaarrllyy

AAtt xx==3 3

YY ff ∆ f

2

∆ f

0

y y

with p

h

Co Conntt !!

0

y y

with p

h

2

0 0 0

p p

f f p f f

Co Conntt !!

f

f

Co Conntt !!

T

Thheerreeffoorree wwee aarrrriivvee aatt tthhee ffoolllloowwiinngg rreessuulltt

A

Att xx==33..5 5

Y

Y

f

f ∆ f

2

∆ f

CoConntt !!

Now defining p

f = + + =

Co Conntt !!

FFrroomm tthhee ffuunnccttiioonnaall rreellaattiioonn,, wwee aallssoo ffiinndd tthhaatt

2 2

f (2.5,3.5) = (2.5) + (3.5) − 3.5 = 15

And hence no error in interpolation!!!