Adobe Scan 06 Oct 2023
Adobe Scan 06 Oct 2023
Ay = hft;,+)+ow)
Let Ajy= k, =fu, y). Ax =hf(u, y
A,y=k,=hf(r+ mh,y +mk)
and le Ay = ak, + bk,
constants to be determined to get the
where a., band m are better acous
of Ay. of h.
Expand k, and Ay in powers
two variables, we h
Expanding k, by Taylor series for
k,=hf(r+mh, y +mk,)
mh
mh + mk 2!
2
mh +mk,
mhf, +mhf,+ 2!
SInce k, =
powers of h
=hft mh (f,+f)+ higher
Substituting k, k, in (7),
hy= abf +bl af+m (, +f) +O(h)
-(a+b) hf+ bmh (f; +ff) +O(h)
Equating Ay from (4) and (10), we get
w/utton ofr Ordinary Dferential Equations
38|
mh'+) higher powers of h
subslitut1ngA. A, in
(7), (9)
AYahf
kË = hf (x, y)
ky =hf(uth, y
+ k) Four
R.K.thalgororditerhm
+k4)
and Ay=(k,+2k, +2k,
+ Ay
y (r+h) =y (r)
dy
solve dx -f(., y). y )= o
Working Rule: To
Calculate k, =hf(o o) 1
+k,)
ky=hf(+h,yo
1
2k, +2k, tk4)
and Ay=¿(k,+
where Ar=h.
Now y, = Yo+Ay.
from (ij, y)) and repeating the process, We
Now starting
(, y) etc. method,
order Runge-Kutta
Note 1. Insecond
h 1
h
:.=Yo +Ayo =.
method.
This is exactly the Modified Euler
second order is nothing but be
So, the Runge-Kutta method of
Modified Euler method.
alone, then the fourth orda
Note 2. Iffu, y)=f), ie., only a function x
Runge-Kutta method reduces to
kË=hf()
- the area of y=f(r) between X= X and
Le,
equal intervals of length by
In
all
values of Kc, ky
arder and h
aresame. Therefore, one need
Nale
4+;=(01)f015,1-170859)
H7859)=0-1320859
= (01)(0-15 +
84
(0 1)f(0s.
=(0
1)f(0 2, 1
=0 144298048 242980M8
(01)+6, +.2k, +2k, +ka)
(02)
y =y
v(02) =12428055 =l1103424!
Correct to four decimal places, y(0-2) =12428.
Example 2. Ohtainthe values ofy at x =01, 0,2
order (i) third order and
of (i) second (iii) fourth oTder
y'=-), given y (0) = )
diferential equation fo
Solution. Here. f(x. y) =-y, =0. yo =l, (MKI V
()Second order:
k,=hf(Wp yo) =(0-1)(- y) =-01
x=01,x,=0)
1
=-0|x 095 =-
0.905
)) =o t Ay=l-0095 =
y;=y (0-1) =0.905
Again starting from (0-1, 0-905) replacing (p ) by
k,=(01)f(Kj, )}) =(01)(-0-905) =-0-0905
k, =hf(,+ h, yo +
2k, - k)
-
(0)f(0,09) =(01)(-0-9) =-009
Ay= (kt 4k, +k,)
y =
tns
00861066067
};=y(0 2) -
081873089
Numeri al Mon
Tabular values are
Thirdorder Fourth order
Second order
0.91 0-9048375
9483714j
0.905
0-823366 0-81873089
02 0819025
more closer to exact values
values are
Fourth order
dy
Biven
Example 3. Compute y
(03) dx +y =0, +xy'
taking h=0/ using R.K
method offourth order (correct to 4 y(0)1
Solution. y'=-(y'+y) =fu,yl; 4, =0, Yo=1, h=01, deCimal:
,=02, x =03, y, =?
For Ist interval:
Yo)] = -01
k,=hf(go yo) =(0-1)(-(aot
k, =hf|*o-(0)f(005,
h 095)
y=1+¿-01+2(-00995) +2(-00995)-0-09821
6
y(0-1) = 0.9006
of Ordimary
Diolfferentil Lquaton
n place (o 'o
) (0Df0 I,09000) epcat the pu
-0-0982
)f015,
=-0-0960
08S I5)
=(01)f(015, 0852%,
=-0-0962
+A, vy tk3) =(01)f(02,,0 8044)
=-0-0934
t2(-00962)
0)=08046
Aeain,starting from (X, y) in place of (o Yo) +(-00934)
=-0-0934. k, =-00902, k, =-0-0904.
k,
1
Ay =y, t(k, +2k, +-2k, +k,)
k,z-00867
6
y(03)=0-7144.
Bxample 4. Using
R.K. method of fourth order, find y(08) correct
-iecimal places if y' =y -xy (06) =1:7379 (April 1991)
Solution. Here, x =0-6, y, =:11-7379, h =0l,x=07,x=08
fuy)=y
ByR.K. method of 4th order
1
y) = Yot(k,+ 2k, + 2k, + k,) ..()
ere
k, =hf (ky. yo) =(01)f(06, 1-7379)
=(0 1) |1-7379 -(061=01378
h
(065)'|=01384
=(0-1)f(065, 1-8068)8) =(0 1)|18068
388
where
Now, ,=)tk, +2k, +2k, +k,l
k, =hfu,y) =(0)|
h
(X)=0|1=03M%.\816
07'
=(0 1) [1-9456- (0-75)]=0-1383
\9436,
h
= (0-1)f(075, 1-9455)
-02r011joI97213
=(02)f(0-1, 1-0983606)
(10983606)-(001) =01967
=(0) (1-0983606)'+(001)
k,=hf(nth, n+k)
=(02)f(0-2, 1-1967)
(1967)-(02) =0-189
=(02)|96+(02)
(129055)?-(03) |
-02)| (129055) +(o03)
k,= (0:2)f(G3, 1-28572) =0-1793
=(02)f(04, y, +k4) =(02)f(04, 1:37528)
=0-1687
=10-1891
6
+2 (0 1795) +2(0-1793) +0-1687|
=0.!792
390
=y (0-4) =y, + Ay = 1
.. y,
Runge-Kutta method fc
1-14.
tial equations
numerically t