



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




CCoonnssiiddeerr aa ffuunnccttiioonn ooff ssiinnggllee vvaarriiaabbllee^ y =y= ff ((xx)).. IIff tthhee ffuunnccttiioonn iiss kknnoowwnn aanndd ssiimmppllee,,
wwee ccaann eeaassiillyy oobbttaaiinn iittss ddeerriivvaattiivvee ((ss)) oorr ccaann eevvaalluuaattee iittss ddeeffiinniittee iinntteeggrraall
HHoowweevveerr,, iiff wwee ddoo nnoott kknnooww tthhee ffuunnccttiioonn aass ssuucchh oorr tthhee ffuunnccttiioonn iiss ccoommpplliiccaatteedd aanndd iiss
ggiivveenn iinn aa ttaabbuullaarr ffoorrmm aatt aa sseett ooff ppooiinnttss xx 00
,,xx (^11)
,…,…,,xx nn
, w,wee uussee oonnllyy nnuummeerriiccaall mmeetthhooddss ffoorr
ddiiffffeerreennttiiaattiioonn oorr iinntteeggrraattiioonn ooff tthhee ggiivveenn ffuunnccttiioonn..
WWee sshhaallll ddiissccuussss nnuummeerriiccaall aapppprrooxxiimmaattiioonn ttoo ddeerriivvaattiivveess ooff ffuunnccttiioonnss ooff ttwwoo oorr mmoorree
vvaarriiaabblleess iinn tthhee lleeccttuurreess ttoo ffoollllooww wwhheenn wwee sshhaallll ttaallkk aabboouutt ppaarrttiiaall ddiiffffeerreennttiiaall eeqquuaattiioonnss..
IInn wwhhaatt ffoolllloowwss,, wwee sshhaallll ddeerriivvee aanndd iilllluussttrraattee vvaarriioouuss ffoorrmmuullaaee ffoorr nnuummeerriiccaall
ddiiffffeerreennttiiaattiioonn ooff aa ffuunnccttiioonn ooff aa ssiinnggllee vvaarriiaabbllee bbaasseedd oonn ffiinniittee ddiiffffeerreennccee ooppeerraattoorrss aanndd
iinntteerrppoollaattiioonn..
SSuubbsseeqquueennttllyy,, wwee sshhaallll ddeevveelloopp NNeewwttoonn--CCootteess ffoorrmmuullaaee aanndd rreellaatteedd ttrraappeezzooiiddaall rruullee aanndd
SSiimmppssoonn’’ss rruullee ffoorr nnuummeerriiccaall iinntteeggrraattiioonn ooff aa ffuunnccttiioonn..
WWee aassssuummee tthhaatt tthhee ffuunnccttiioonn^ yy ==^ ff^ (( xx )) iiss ggiivveenn ffoorr tthhee vvaalluueess ooff tthhee iinnddeeppeennddeenntt vvaarriiaabbllee
xx^ ==^ xx 0 0
++ phph , f,foorr pp = 0=0,, 11,, 22,, …… aanndd ssoo oonn.. TToo ffiinndd tthhee ddeerriivvaattiivveess ooff ssuucchh aa ttaabbuullaarr
ffuunnccttiioonn,, wwee pprroocceeeedd aass ffoolllloowwss
CCaassee II::
UUssiinngg ffoorrwwaarrdd ddiiffffeerreennccee ooppeerraattoorr^ ∆∆^ aanndd ccoommbbiinniinngg eeqquuaattiioonnss
E f ( ) x = f ( x + h )
aanndd
∆ = E − 1
hD = log E = log(1 + ∆)
Remember the Differential operator, D is known to represents the property
2 2 " 2
d Df x f x f x dx
d D f x f x f x dx
TThhiiss wwoouulldd mmeeaann tthhaatt iinn tteerrmmss ooff ∆∆ ::
2 3 4 5 1
h
Therefore
2 3 0 0 0 0 0
4 5 0 0 0
f x f x Df x f x f x h
f x f x d f x dx
in other words
2 3 4 0 0 0 0 0 0
y y y Dy y y h
AAllssoo,, wwee ccaann eeaassiillyy vveerriiffyy
2 3 4 2 2 2
h
2 3 4 5 2
h 12 6
2 3 2 0 0 (^2 ) (^0 2 02 4 ) 0 0
y y d y D y y dx h (^) y y
CCaassee IIII::
UUssiinngg bbaacckkwwaarrdd ddiiffffeerreennccee ooppeerraattoorr ,, wwee hhaavvee^ ∇
hD = − log(1 − ∇)
OOnn eexxppaannssiioonn,, wwee hhaavvee^
2 3 4 1
h
wwee ccaann aallssoo vveerriiffyy tthhaatt
2 2 3 4 2 2
h
2 3 4 5 2
h 12 6
Hence
2 3 4 1
n n n
n n n n
d y Dy y dx
y y y y h
and
2
2 3 4 5 2
n n
n n n n
y D y
y y y y h
TThhee ffoorrmmuullaaee ffoorr DDyy 00
aanndd DD
yy 00
aarree uusseeffuull ttoo ccaallccuullaattee tthhee ffiirrsstt aanndd sseeccoonndd ddeerriivvaattiivveess aatt
tthhee bbeeggiinnnniinngg ooff tthhee ttaabbllee ooff vvaalluueess iinn tteerrmmss ooff ffoorrwwaarrdd ddiiffffeerreenncceess;; wwhhiillee ffoorrmmuullaaee ffoorr
yy’’ n n
anandd yy’’’’ nn
2 2 4 6 2
h
wwhhiillee ffoorr ccoommppuuttiinngg tthhee ffiirrssttddeerriivvaattiivvee aatt aann iinntteerriioorr ttaabbuullaarr ppooiinntt,, wwee iinn ggeenneerraall uussee
aannootthheerr ccoonnvveenniieenntt ffoorrmm ffoorr DD,, wwhhiicchh iiss ddeerriivveedd aass ffoolllloowwss.. MMuullttiippllyy tthhee rriigghhtt hhaanndd
ssiiddee ooff
(^1 1 3 )
d y y Dy y y y dx h
by
2 1 ( 4)
wwhhiicchh iiss uunniittyy aanndd nnoottiinngg tthhee BBiinnoommiiaall eexxppaannssiioonn
1 2 2 2
4 6
δ δ
δ δ
− +^ =^ −^ +
we get
2 4
3 5
h
OOnn ssiimmpplliiffiiccaattiioonn,, wwee oobbttaaiinn
h
TThheerreeffoorree tthhee eeqquuaattiioonn ccaann aallssoo bbee wwrriitttteenn iinn aannootthheerr uusseeffuull ffoorrmm aass
y D y y y h
TThhee llaasstt ttwwoo eeqquuaattiioonnss ffoorr yy”” aanndd yy’’ rreessppeeccttiivveellyy aarree kknnoowwnn aass SSttiirrlliinngg’’ss ffoorrmmuullaaee ffoorr
ccoommppuuttiinngg tthhee ddeerriivvaattiivveess ooff aa ttaabbuullaarr ffuunnccttiioonn.. SSiimmiillaarr ffoorrmmuullaaee ccaann bbee ddeerriivveedd ffoorr
ccoommppuuttiinngg hhiigghheerr oorrddeerr ddeerriivvaattiivveess ooff aa ttaabbuullaarr ffuunnccttiioonn ..
TThhee eeqquuaattiioonn ffoorr yy’’ ccaann aallssoo bbee
wwrriitttteenn aass 2 2 2 2 2 2 1 3 (1) (2) 5 (1) (2) (3) 7
y y y y y h
μ δ δ δ δ
IInn oorrddeerr ttoo iilllluussttrraattee tthhee uussee ooff ffoorrmmuullaaee ddeerriivveedd ssoo ffaarr,, ffoorr ccoommppuuttiinngg tthhee ddeerriivvaattiivveess ooff aa
ttaabbuullaatteedd ffuunnccttiioonn,, wwee sshhaallll ccoonnssiiddeerr ssoommee eexxaammpplleess iinn tthhee nneexxtt lleeccttuurree..