



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!




EEuulleerr mmeetthhoodd iiss oonnee ooff tthhee oollddeesstt nnuummeerriiccaall mmeetthhooddss uusseedd ffoorr iinntteeggrraattiinngg tthhee oorrddiinnaarryy
ddiiffffeerreennttiiaall eeqquuaattiioonnss.. TThhoouugghh tthhiiss mmeetthhoodd iiss nnoott uusseedd iinn pprraaccttiiccee,, iittss uunnddeerrssttaannddiinngg wwiillll
hheellpp uuss ttoo ggaaiinn iinnssiigghhtt iinnttoo nnaattuurree ooff pprreeddiiccttoorr--ccoorrrreeccttoorr mmeetthhoodd
CCoonnssiiddeerr tthhee ddiiffffeerreennttiiaall eeqquuaattiioonn ooff ffiirrsstt oorrddeerr wwiitthh tthhee iinniittiiaall ccoonnddiittiioonn yy (( tt (^00)
) =)= yy (^00)
dy f t y dt
TThhee iinntteeggrraall ooff tthhiiss eeqquuaattiioonn iiss aa ccuurrvvee iinn,, tyty - -ppllaannee..
HHeerree,, wwee ffiinndd ssuucccceessssiivveellyy yy 11
,, yy (^22)
, …,…,, yy mm
;; wwhheerree yy mm
isis tthhee vvaalluuee ooff yy atat tt == tt m m
== tt 00
++ mhmh ,,
mm ==11,, 22,,…… aanndd hh bbeeiinngg ssmmaallll..
HeHerree wwee uussee aa pprrooppeerrttyy tthhaatt iinn aa ssmmaallll iinntteerrvvaall,, aa ccuurrvvee iiss nneeaarrllyy aa ssttrraaiigghhtt lliinnee.. TThhuuss aatt
(( tt (^00)
,, yy 00
)),, wwee aapppprrooxxiimmaattee tthhee ccuurrvvee bbyy aa ttaannggeenntt aatt tthhaatt ppooiinntt..
ThTheerreeffoorree,,
0 0
0 0 0 ( , ) 0
t y
dy y y f t y dt t t
That is y = y 0 (^) + ( t − t 0 (^) ) f t ( 0 (^) , y 0 )
HHeennccee,, tthhee vvaalluuee ooff yy ccoorrrreessppoonnddiinngg ttoo tt == tt 11
iiss ggiivveenn bbyy
1 0 1 0 0 0 y = y + ( t − t ) f t ( , y )
SSiimmiillaarrllyy aapppprrooxxiimmaattiinngg tthhee ssoolluuttiioonn ccuurrvvee iinn tthhee nneexxtt iinntteerrvvaall (( tt 11
,, tt 22
)) bbyy aa lliinnee tthhrroouugghh
(( tt (^11)
,, yy 11
)) hhaavviinngg iittss ssllooppee ff((tt 11
,, yy 11
)),, wwee oobbttaaiinn
y 2 (^) = y 1 (^) + hf t ( , 1 (^) y 1 )
TThhuuss,, wwee oobbttaaiinn iinn ggeenneerraall,, tthhee ssoolluuttiioonn ooff tthhee ggiivveenn ddiiffffeerreennttiiaall eeqquuaattiioonn iinn tthhee ffoorrmm ooff aa
rreeccuurrrreennccee rreellaattiioonn
ym (^) + 1 = ym + hf t ( (^) m , ym )
GGeeoommeettrriiccaallllyy,, tthhiiss mmeetthhoodd hhaass aa vveerryy ssiimmppllee mmeeaanniinngg.. TThhee ddeessiirreedd ffuunnccttiioonn ccuurrvvee iiss
aapppprrooxxiimmaatteedd bbyy aa ppoollyyggoonn ttrraaiinn,, wwhheerree tthhee ddiirreeccttiioonn ooff eeaacchh ppaarrtt iiss ddeetteerrmmiinneedd bbyy tthhee
vvaalluuee ooff tthhee ffuunnccttiioonn^ ff^ (( tt,, yy )) aatt iittss ssttaarrttiinngg ppooiinntt..
GGiivveenn^
dy y t
dt y t
wiwitthh tthhee iinniittiiaall ccoonnddiittiioonn (^) yy (^) == 11 aatt tt (^) == 00.. UUssiinngg EEuulleerr mmeetthhoodd,, ffiinndd yy
aapppprrooxxiimmaatteellyy aatt xx == 00..11,, iinn ffiivvee sstteeppss..
SSiinnccee tthhee nnuummbbeerr ooff sstteeppss aarree ffiivvee,, wwee sshhaallll pprroocceeeedd iinn sstteeppss ooff ((00..11))//55 == 00..0^02 2..
TThheerreeffoorree,, ttaakkiinngg sstteepp ssiizzee
hh == 00..0 02 2,, wwee sshhaallll ccoommppuuttee tthhee vvaalluuee ooff yy aatt
tt^ = 0=0..0^02 2,, 00..0^04 4,, 00..0^06 6,, 00..0^08 8 aanndd 00..1^1
Thus y 1 (^) = y 0 (^) + hf t ( 0 (^) , y 0 ), where y 0 (^) = 1, t 0 = 0
Therefore (^1)
y
Similarly,
2 1 1 1
3 2 2 2
4 3 3 3
5 4 4 4
y y hf t y
y y hf t y
y y hf t y
y y hf t y
HHeennccee tthhee vvaalluuee ooff^ yy^ ccoorrrreessppoonnddiinngg ttoo^ tt^ == 00..11 iiss 11..0^09911
Solve the differential equation
/ y = x + y ; y (0) = 1
in the interval [0,0.5] using Euler’s method by taking h=0.
0 0
1 0 0 0
1
1 1
2 1 1 1
2
0 x 0
x 1
2 x 0.
x 3
4 x 0.
x 5
((MMooddiiffiieedd EEuulleerr’’ss MMeetthhoodd))
GGeeoommeettrriiccaallllyy,, ffrroomm FFiigguurree,, iiff LL 11
iiss tthhee ttaannggeenntt aatt (( tt 00
,, yy (^00)
iiss tthhee lliinnee tthhrroouugghh (( tt (^11)
yy 11
)) ooff ssllooppee^ f(f(tt 11
,, yy 11
)) anandd (^) LL
isis tthhee lliinnee tthhrroouugghh (t(t 11
,, yy 11
))^ bbuutt wwiitthh aa ssllooppee eeqquuaall ttoo
tthhee aavveerraaggee ooff^ ff((tt 00
,,yy 00
))^ aanndd^ f(f(tt 11
,, yy 11
)) ,…,….. tthhee lliinnee (^) LL ththrroouugghh (( tt 00
,, yy 00
)) aanndd ppaarraalllleell ttoo^ L
iiss uusseedd ttoo aapppprrooxxiimmaattee tthhee ccuurrvvee iinn tthhee iinntteerrvvaall (( tt 00
,,^ tt 11
TThhuuss,, tthhee oorrddiinnaattee ooff tthhee ppooiinntt BB wwiillll ggiivvee tthhee vvaalluuee ooff yy 11
NNooww,, tthhee eeqquuaattiioonn ooff tthhee lliinnee^ ALAL^ iiss ggiivveenn bbyy
(1) 0 0 1 1 1 0 1 0
f t y f t y y y t t
(1) 0 0 1 1 0
f t y f t y y h
SSiimmiillaarrllyy pprroocceeeeddiinngg,, wwee aarrrriivvee aatt tthhee rreeccuurrrreennccee rreellaattiioonn
(1) 1 1 1
m m m m m m
f t y f t y y y h
1 1
0 0
( t , y )
1 1
2
L
−
A
B
0
y
t
TThhiiss iiss tthhee^ mmooddiiffiieedd EEuulleerr’’ss mmeetthhoodd ..
UUssiinngg mmooddiiffiieedd EEuulleerr’’ss mmeetthhoodd,, oobbttaaiinn tthhee ssoolluuttiioonn ooff tthhee ddiiffffeerreennttiiaall eeqquuaattiioonn
dy t y f t y dt
wwiitthh tthhee iinniittiiaall ccoonnddiittiioonn
yy 0 0
= 1=1 aatt (^) tt 0 0
= 0=0 ffoorr tthhee rraannggee 0 ≤ t ≤ 0.6inin sstteeppss ooff 00..2 2
AAtt ffiirrsstt,, wwee uussee EEuulleerr’’ss mmeetthhoodd ttoo ggeett
(1) 1 0 0 0 y = y + hf t ( , y ) = 1 + 0.2(0 + 1) =1.
TThheenn,, wwee uussee mmooddiiffiieedd EEuulleerr’’ss mmeetthhoodd ttoo ffiinndd
(1) 0 0 1 1 1 0
f t y f t y y y y h
SSiimmiillaarrllyy pprroocceeeeddiinngg,, wwee hhaavvee ffrroomm EEuulleerr’’ss mmeetthhoodd
(1) 2 1 ( , 1 1 )^ 1.2295^ 0.2(0.2^ 1.2295)
y = y + hf t y = + +
UUssiinngg mmooddiiffiieedd EEuulleerr’’ss mmeetthhoodd,, wwee ggeett^
(1) 1 1 2 2 2 1
f t y f t y y y h
FFiinnaallllyy,,
(1) 3 2 (^2 ,^2 )^ 1.5225^ 0.2 0.4^ 1.
y = y + hf t y = + +
MMooddiiffiieedd EEuulleerr’’ss mmeetthhoodd ggiivveess
(1) 2 2 3 3 3 2
f t y f t y y y y h
HHeennccee,, tthhee ssoolluuttiioonn ttoo tthhee ggiivveenn pprroobblleemm iiss ggiivveenn bbyy