SlideShare a Scribd company logo
1 of 9
Download to read offline
Numerical solution of ordinary and
partial dierential Equations
Module 9: Runge-Kutta methods - IV
Dr.rer.nat. Narni Nageswara Rao
£
August 2011
1 System of Equations
Consider the system of n equations
dy
dt
= f(t; y1; y2; ¡¡¡ ; yn)
y(t0) =  (1)
where
y = [y1; y2; ¡¡¡ ; yn]T
; f = [f1; f2; ¡¡¡ ; fn]T
;  = [1; 2; ¡¡¡ ; n]T
All the methods derived earlier can be used to solve the system of equations
(1), by writing the methods in vector form. Let us now apply some of these
methods to solve (1).
1.1 Taylor Series Method
We can write the Taylor series expansion in vector form as
yj+1 = yj + hyH
j +
h2
2!
yHH
j + ¡¡¡+
hp
p!
y(p)
j ; j = 0; 1; 2; ¡¡¡ ; N  1 (2)
where
y(k)
j =
2
6664
(y
(k)
1 )j
(y
(k)
2 )j
...
(y
(k)
n )j
3
7775 =
2
64
dk 1
dtk 1 [f1(t; y1; y2; ¡¡¡ ; yn)]j
...
dk 1
dtk 1 [fn(t; y1; y2; ¡¡¡ ; yn)]j
3
75
£nnrao maths@yahoo.co.in
1
1.2 Runge-Kutta method of Second order
Consider the Euler-Cauchy or the Heun method. We write it in vector form
as
yj+1 = yj +
1
2
(K1 + K2) (3)
where
Ki1 = hfi(tj; (y1)j; (y2)j; ¡¡¡ ; (yn)j)
Ki2 = hfi(tj + h; (y1)j + K11; (y2)j + K21; ¡¡¡ ; (yn)j + Kn1)
i = 1; 2; ¡¡¡ ; n
In an explicit form, (3) becomes
2
6664
y1
y2
...
yn
3
7775
j+1
=
2
6664
y1
y2
...
yn
3
7775
j
+
1
2
0
BBB@
2
6664
K11
K21
...
Kn1
3
7775 +
2
6664
K12
K22
...
Kn2
3
7775
1
CCCA; j = 0; 1; ¡¡¡ ; N  1
(4)
1.3 Runge-Kutta (Classical) Method of Fourth Order
The vector format of fourth order Ruge-Kutta method is
yj+1 = yj +
1
6
(K1 + 2K2 + 2K3 + K4) (5)
where
K1 =
2
6664
K11
K21
...
Kn1
3
7775; K2 =
2
6664
K12
K22
...
Kn2
3
7775; K3 =
2
6664
K13
K23
...
Kn3
3
7775; K4 =
2
6664
K14
K24
...
Kn4
3
7775
Ki1 = hfi(tj; (y1)j; (y2)j; ¡¡¡ ; (yn)j)
Ki2 = hfi

tj +
h
2
; (y1)j +
K11
2
; (y2)j +
K21
2
; ¡¡¡ ; (yn)j +
Kn1
2

Ki3 = hfi

tj +
h
2
; (y1)j +
K12
2
; (y2)j +
K22
2
; ¡¡¡ ; (yn)j +
Kn2
2

Ki4 = hfi (tj + h; (y1)j + K13; (y2)j + K23; ¡¡¡ ; (yn)j + Kn3)
i = 1(1)n
2
In explicit form, (5) becomes
2
6664
y1
y2
...
yn
3
7775
j+1
=
2
6664
y1
y2
...
yn
3
7775
j
+
1
6
0
BBB@
2
6664
K11
K21
...
Kn1
3
7775 + 2
2
6664
K12
K22
...
Kn2
3
7775 + 2
2
6664
K13
K23
...
Kn3
3
7775 +
2
6664
K14
K24
...
Kn4
3
7775
1
CCCA(6)
j = 1; 2; ¡¡¡ ; N  1
ExampleCompute an approximation to y(1), yH(1) and yHH(1) with the Taylor
series method of Second order and step length h = 1, for the initial value
problem
yHHH + 2yHH + yH  y = cos t; 0 t 1
y(0) = 0; yH(0) = 1; yHH(0) = 2
after reducing it to a system of
rst order equations.
Solution
Set y = v1; vH
1 = v2; vH
2 = v3
Note that v2 = vH
1 = yH
v3 = vH
2 = yHH and
vH
3 = vHH
2 = yHHH
The system of equations is
vH
1 = v2; v1(0) = 0
vH
2 = v3; v2(0) = 1
vH
3 = cos t  2v3  v2 + v1; v3(0) = 2
or
vH =
2
4
v1
v2
v3
3
5
H
=
2
4
v2
v3
cos t  2v3  v2 + v1
3
5; v(0) =
2
4
0
1
2
3
5
The Taylor series method of second order is
v(t0 + h) = v0 + hvH
0 +
h2
2!
vHH
0
= v0 + vH
0 +
1
2
vHH
0
3
Since h = 1, we have
vH
0 =
2
4
v2(0)
v3(0)
1  2v3(0)  v2(0) + v1(0)
3
5 =
2
4
1
2
 4
3
5
Now,
vHH =
2
4
vH
2
vH
3
 sin t  2vH
3  vH
2 + vH
1
3
5and vHH
0 =
2
4
2
 4
7
3
5
Hence,
v(1) = v0 + vH
0 +
1
2
vHH
0 =
2
4
0
1
2
3
5 +
2
4
1
2
 4
3
5 +
1
2
2
4
2
 4
7
3
5 =
2
4
2
1
3=2
3
5
) y(1) = 2; yH(1) = 1; yHH(1) =
3
2
Example Solve the system of equations
xH =  3x + 2y; x(0) = 0
yH = 3x  4y; y(0) = 0:5
with h = 0:2 on the interval [0; 0:4]. Use the
(i) Euler-Cauchy method and
(ii) Classical Runge-Kutta fourth order method.
Solution (i) The Euler-Cauchy method is given by
xj+1 = xj +
1
2
(K1 + K2); j = 0; 1
K1 = hf(tj; xj)
K2 = hf(tj + h; xj + K1)
For j = 0, we have
t0 = 0; x0 = 0; y0 = 0:5
4
K11 = hf1(t0; x0; y0) = 0:2( 3x0 + 2y0)
= 0:2( 3 ¢0 + 2 ¢0:5) = 0:2
K21 = hf2(t0; x0; y0) = 0:2(3x0  4y0)
= 0:2[3 ¢0:4 ¢0:5] =  0:4
K12 = hf1(t0 + h; x0 + K11; y0 + K21)
= 0:2[ 3(x0 + K11) + 2(y0 + K21]
= 0:2[ 3(0 + 0:2) + 2(0:5  0:4)]
=  0:08
K22 = hf2(t0 + h; x0 + K11; y0 + K21)
= 0:2[3(x0 + K11)  4(y0 + K21)]
= 0:2[3(0 + 0:2)  4(0:5  0:4)]
= 0:04
x(0:2) % x1 = x0 +
1
2
(K11 + K12)
= 0 +
1
2
(0:2  0:08)
= 0:06
y(0:2) % y1 = y0 +
1
2
(K21 + K22)
= 0:5 +
1
2
( 0:4 + 0:04)
= 0:32
For j = 1, we have
t1 = 0:2; x1 = 0:06; y1 = 0:32
K11 = hf1(t1; x1; y1) = 0:2( 3x1 + 2y1)
= 0:2( 3 ¢0:06 + 2 ¢0:32) = 0:092
K21 = hf2(t1; x1; y1) = 0:2(3x1  4y1)
= 0:2(3 ¢0:06  4 ¢0:32) =  0:22
K12 = hf1(t1 + h; x1 + K11; y1 + K21)
= 0:2[ 3(x1 + K11) + 2(y1 + K21)]
= 0:2[ 3(0:06 + 0:092) + 2(0:32  0:22)]
= 0:0512
5
K22 = hf(t1 + h; x1 + K11; y1 + K21)
= 0:2[3(x1 + K11)  4(y1 + K21)]
= 0:2[3(0:06 + 0:092)  4(0:32  0:22)]
= 0:0112
x(0:4) % x2 = x1 +
1
2
(K11 + K12)
= 0:06 +
1
2
(0:092  0:0512)
= 0:0804
y(0:4) % y2 = y1 +
1
2
(K21 + K22)
= 0:32 +
1
2
( 0:22 + 0:0112)
= 0:2156
(ii) For the classical Runge-Kutta fourth order method, we obtain the fol-
lowing results
For j = 0, we have
t0 = 0; x0 = 0; y0 = 0:5
K11 = hf1(t0; x0; y0) = h( 3x0 + 2y0)
= 0:2( 3 ¢0 + 2 ¢0:5)
= 0:2
K21 = hf2(t0; x0; y0) = h(3x0  4y0)
= 0:2(3 ¢0  4 ¢0:5)
=  0:4
K12 = hf1(t0 +
h
2
; x0 +
K11
2
; y0 +
1
2
K21)
= h[ 3(x0 +
1
2
K11) + 2(y0 +
1
2
K21)]
= 0:2[ 3(0:1) + 2 ¢0:3]
= 0:06
K22 = hf2(t0 +
h
2
; x0 +
1
2
K11; y0 +
1
2
K21)
= h[3(x0 +
1
2
K11)  4(y0 +
1
2
K21)]
= 0:2[3 ¢0:1  4 ¢0:3]
=  0:18
6
K13 = hf1(t0 +
h
2
; x0 +
1
2
K12; y0 +
1
2
K21)
= h[ 3(x0 +
1
2
K12) + 2(y0 +
1
2
K22)]
= 0:2[ 3 ¢0:03 + 2 ¢0:41]
= 0:146
K23 = hf2(t0 +
h
2
; x0 +
1
2
K12; y0 +
1
2
K22)
= h[3(x0 +
1
2
K12)  4(y0 +
1
2
K22)]
= 0:2[3 ¢0:03  40:41]
=  0:31
K14 = hf1(t0 + h; x0 + K13; y0 + K23)
= h[ 3(x0 + K13) + 2(y0 + K23)]
= 0:2[ 3 ¢0:146 + 2 ¢0:19]
=  0:0116
K24 = hf2(t0 + h; x0 + K13; y0 + K23)
= h[3(x0 + K13)  4(y0 + K23)]
= 0:2[3 ¢0:146 + 2 ¢0:19]
=  0:0644
x(0:2) % x1 = x0 +
1
6
(K11 + 2K12 + 2K13 + K14)
= 0 +
1
6
(0:2 + 0:12 + 0:292  0:0116)
= 0:1001
y(0:2) % y1 = y0 +
1
6
(K21 + 2K22 + 2K23 + K24)
= 0:5 +
1
6
( 0:4  0:36  0:62  0:0644)
= 0:2593
For j = 1, we have
t1 = 0:2; x1 = 0:1001; y1 = 0:2593
K11 = hf1(t1; x1; y1) = h( 3x1 + 2y1)
= 0:2( 3 ¢0:1001 + 2 ¢0:2593)
= 0:0437
7
K21 = hf2(t1; x1; y1) = h(3x1  4y1)
= 0:2[3 ¢0:1001  4 ¢0:2593]
=  0:1474
K12 = hf1(t1 +
h
2
; x0 +
1
2
K11; y0 +
1
2
K21)
= h[ 3(x1 +
1
2
K11) + 2(y1 +
1
2
K21)]
= 0:2[ 3 ¢0:1220 + 2 ¢0:1856]
= 0:0010
K22 = hf2(t1 +
h
2
; x1 +
1
2
K11; y1 +
1
2
K21)
= h[3(x1 +
1
2
K11)  4(y1 +
1
2
K21)]
= 0:2[3 ¢0:1220  4 ¢0:1856] =  0:0753
K13 = hf1(t1 +
h
2
; x1 +
1
2
K12; y1 +
1
2
K22)
= h[ 3(x1 +
1
2
K12) + 2(y1 +
1
2
K22)]
= 0:2[ 3 ¢0:1006 + 2 ¢0:2217] = 0:0283
K23 = hf2(t1 +
h
2
; x1 +
1
2
K12; y1 +
1
2
K22)
= h[3(x1 +
1
2
K12)  4(y1 +
1
2
K22)]
= 0:2[3 ¢0:1006  4 ¢0:2214]
=  0:1170
K14 = hf1(t1 + h; x1 + K13; y1 + K23)
= h[ 3(x1 + K13) + 2(y1 + K23)]
= 0:2[ 3 ¢0:1284 + 2 ¢0:1423] =  0:0201
K24 = hf2(t1 + h; x1 + K13; y1 + K23)
= h[3(x1 + K13)  4(y1 + K23)]
= 0:2[3 ¢0:1284  4 ¢0:1423] =  0:0368
x(0:4) % x2 = x1 +
1
6
(K11 + 2K12 + 2K13 + K14)
= 0:1001 +
1
6
[0:0437 + 0:0020 + 0:0566  0:0201]
= 0:1138
8

More Related Content

What's hot

solucionario de purcell 3
solucionario de purcell 3solucionario de purcell 3
solucionario de purcell 3José Encalada
 
Csm chapters12
Csm chapters12Csm chapters12
Csm chapters12Pamela Paz
 
Solutions manual for fundamentals of business math canadian 3rd edition by je...
Solutions manual for fundamentals of business math canadian 3rd edition by je...Solutions manual for fundamentals of business math canadian 3rd edition by je...
Solutions manual for fundamentals of business math canadian 3rd edition by je...Pollockker
 
solucionario de purcell 2
solucionario de purcell 2solucionario de purcell 2
solucionario de purcell 2José Encalada
 
solucionario de purcell 1
solucionario de purcell 1solucionario de purcell 1
solucionario de purcell 1José Encalada
 
solucionario de purcell 0
solucionario de purcell 0solucionario de purcell 0
solucionario de purcell 0José Encalada
 
Ejercicios varios de algebra widmar aguilar
Ejercicios varios de  algebra   widmar aguilarEjercicios varios de  algebra   widmar aguilar
Ejercicios varios de algebra widmar aguilarWidmar Aguilar Gonzalez
 
Ejercicios prueba de algebra de la UTN- widmar aguilar
Ejercicios prueba de algebra de la UTN-  widmar aguilarEjercicios prueba de algebra de la UTN-  widmar aguilar
Ejercicios prueba de algebra de la UTN- widmar aguilarWidmar Aguilar Gonzalez
 
11 x1 t09 03 rules for differentiation (2013)
11 x1 t09 03 rules for differentiation (2013)11 x1 t09 03 rules for differentiation (2013)
11 x1 t09 03 rules for differentiation (2013)Nigel Simmons
 
Video lecture for b.tech
Video lecture for b.techVideo lecture for b.tech
Video lecture for b.techEdhole.com
 
Fundamentals of Transport Phenomena ChE 715
Fundamentals of Transport Phenomena ChE 715Fundamentals of Transport Phenomena ChE 715
Fundamentals of Transport Phenomena ChE 715HelpWithAssignment.com
 
ゲーム理論BASIC 演習32 -時間決めゲーム:交渉ゲーム-
ゲーム理論BASIC 演習32 -時間決めゲーム:交渉ゲーム-ゲーム理論BASIC 演習32 -時間決めゲーム:交渉ゲーム-
ゲーム理論BASIC 演習32 -時間決めゲーム:交渉ゲーム-ssusere0a682
 
jhkl,l.มือครูคณิตศาสตร์พื้นฐาน ม.4 สสวท เล่ม 2fuyhfg
jhkl,l.มือครูคณิตศาสตร์พื้นฐาน ม.4 สสวท เล่ม 2fuyhfgjhkl,l.มือครูคณิตศาสตร์พื้นฐาน ม.4 สสวท เล่ม 2fuyhfg
jhkl,l.มือครูคณิตศาสตร์พื้นฐาน ม.4 สสวท เล่ม 2fuyhfgTonn Za
 
Solution Manual : Chapter - 02 Limits and Continuity
Solution Manual : Chapter - 02 Limits and ContinuitySolution Manual : Chapter - 02 Limits and Continuity
Solution Manual : Chapter - 02 Limits and ContinuityHareem Aslam
 

What's hot (20)

Ma2002 1.6 rm
Ma2002 1.6 rmMa2002 1.6 rm
Ma2002 1.6 rm
 
solucionario de purcell 3
solucionario de purcell 3solucionario de purcell 3
solucionario de purcell 3
 
Csm chapters12
Csm chapters12Csm chapters12
Csm chapters12
 
Solutions manual for fundamentals of business math canadian 3rd edition by je...
Solutions manual for fundamentals of business math canadian 3rd edition by je...Solutions manual for fundamentals of business math canadian 3rd edition by je...
Solutions manual for fundamentals of business math canadian 3rd edition by je...
 
4Timing_in_networks.pptx
4Timing_in_networks.pptx4Timing_in_networks.pptx
4Timing_in_networks.pptx
 
solucionario de purcell 2
solucionario de purcell 2solucionario de purcell 2
solucionario de purcell 2
 
solucionario de purcell 1
solucionario de purcell 1solucionario de purcell 1
solucionario de purcell 1
 
solucionario de purcell 0
solucionario de purcell 0solucionario de purcell 0
solucionario de purcell 0
 
Integral table
Integral tableIntegral table
Integral table
 
Ejercicios varios de algebra widmar aguilar
Ejercicios varios de  algebra   widmar aguilarEjercicios varios de  algebra   widmar aguilar
Ejercicios varios de algebra widmar aguilar
 
Solution 4
Solution 4Solution 4
Solution 4
 
Ejercicios prueba de algebra de la UTN- widmar aguilar
Ejercicios prueba de algebra de la UTN-  widmar aguilarEjercicios prueba de algebra de la UTN-  widmar aguilar
Ejercicios prueba de algebra de la UTN- widmar aguilar
 
Gilat_ch03.pdf
Gilat_ch03.pdfGilat_ch03.pdf
Gilat_ch03.pdf
 
11 x1 t09 03 rules for differentiation (2013)
11 x1 t09 03 rules for differentiation (2013)11 x1 t09 03 rules for differentiation (2013)
11 x1 t09 03 rules for differentiation (2013)
 
Gilat_ch02.pdf
Gilat_ch02.pdfGilat_ch02.pdf
Gilat_ch02.pdf
 
Video lecture for b.tech
Video lecture for b.techVideo lecture for b.tech
Video lecture for b.tech
 
Fundamentals of Transport Phenomena ChE 715
Fundamentals of Transport Phenomena ChE 715Fundamentals of Transport Phenomena ChE 715
Fundamentals of Transport Phenomena ChE 715
 
ゲーム理論BASIC 演習32 -時間決めゲーム:交渉ゲーム-
ゲーム理論BASIC 演習32 -時間決めゲーム:交渉ゲーム-ゲーム理論BASIC 演習32 -時間決めゲーム:交渉ゲーム-
ゲーム理論BASIC 演習32 -時間決めゲーム:交渉ゲーム-
 
jhkl,l.มือครูคณิตศาสตร์พื้นฐาน ม.4 สสวท เล่ม 2fuyhfg
jhkl,l.มือครูคณิตศาสตร์พื้นฐาน ม.4 สสวท เล่ม 2fuyhfgjhkl,l.มือครูคณิตศาสตร์พื้นฐาน ม.4 สสวท เล่ม 2fuyhfg
jhkl,l.มือครูคณิตศาสตร์พื้นฐาน ม.4 สสวท เล่ม 2fuyhfg
 
Solution Manual : Chapter - 02 Limits and Continuity
Solution Manual : Chapter - 02 Limits and ContinuitySolution Manual : Chapter - 02 Limits and Continuity
Solution Manual : Chapter - 02 Limits and Continuity
 

Viewers also liked

Odessa Reform Initiatives
Odessa Reform InitiativesOdessa Reform Initiatives
Odessa Reform InitiativesVladimir Zhmak
 
Racing Pigeons - Young BirdsTraining
Racing Pigeons - Young BirdsTrainingRacing Pigeons - Young BirdsTraining
Racing Pigeons - Young BirdsTrainingdacianus
 
Mh gap 01 base
Mh gap 01 baseMh gap 01 base
Mh gap 01 baselefterisz
 
Psikometri 502302 kum-rmp_!
Psikometri 502302 kum-rmp_!Psikometri 502302 kum-rmp_!
Psikometri 502302 kum-rmp_!labaramundi
 
http://vnx.su/ t4-transporter-california
http://vnx.su/ t4-transporter-californiahttp://vnx.su/ t4-transporter-california
http://vnx.su/ t4-transporter-californiaw-vgen
 

Viewers also liked (13)

GLGR ( Printing)
GLGR ( Printing)GLGR ( Printing)
GLGR ( Printing)
 
Odessa Reform Initiatives
Odessa Reform InitiativesOdessa Reform Initiatives
Odessa Reform Initiatives
 
PPP Cameron Honeyager
PPP Cameron HoneyagerPPP Cameron Honeyager
PPP Cameron Honeyager
 
Racing Pigeons - Young BirdsTraining
Racing Pigeons - Young BirdsTrainingRacing Pigeons - Young BirdsTraining
Racing Pigeons - Young BirdsTraining
 
Breakdown sheet
Breakdown sheetBreakdown sheet
Breakdown sheet
 
Mario bros.adrian
Mario bros.adrianMario bros.adrian
Mario bros.adrian
 
NEW RESUME..
NEW RESUME..NEW RESUME..
NEW RESUME..
 
Ma2002 1.18 rm
Ma2002 1.18 rmMa2002 1.18 rm
Ma2002 1.18 rm
 
STELLALUNA Super Mario
STELLALUNA Super MarioSTELLALUNA Super Mario
STELLALUNA Super Mario
 
Mh gap 01 base
Mh gap 01 baseMh gap 01 base
Mh gap 01 base
 
Hairiness
HairinessHairiness
Hairiness
 
Psikometri 502302 kum-rmp_!
Psikometri 502302 kum-rmp_!Psikometri 502302 kum-rmp_!
Psikometri 502302 kum-rmp_!
 
http://vnx.su/ t4-transporter-california
http://vnx.su/ t4-transporter-californiahttp://vnx.su/ t4-transporter-california
http://vnx.su/ t4-transporter-california
 

Similar to Ma2002 1.9 rm

Runge-Kutta methods with examples
Runge-Kutta methods with examplesRunge-Kutta methods with examples
Runge-Kutta methods with examplesSajjad Hossain
 
Newton two Equation method
Newton two Equation  method Newton two Equation  method
Newton two Equation method shanto017
 
Introduction to Differential Equations
Introduction to Differential EquationsIntroduction to Differential Equations
Introduction to Differential EquationsVishvaraj Chauhan
 
General equation of a circle
General equation of a circleGeneral equation of a circle
General equation of a circleJanak Singh saud
 
Ejerciciosderivadasresueltos
EjerciciosderivadasresueltosEjerciciosderivadasresueltos
Ejerciciosderivadasresueltosbellidomates
 
Second order derivatives
Second order derivativesSecond order derivatives
Second order derivativessumanmathews
 
Question 1. a) (i)(4+i2).(1+i3)4(1+i3)+i2(1+i3)4+i12+i2-6.docx
Question 1.  a) (i)(4+i2).(1+i3)4(1+i3)+i2(1+i3)4+i12+i2-6.docxQuestion 1.  a) (i)(4+i2).(1+i3)4(1+i3)+i2(1+i3)4+i12+i2-6.docx
Question 1. a) (i)(4+i2).(1+i3)4(1+i3)+i2(1+i3)4+i12+i2-6.docxIRESH3
 
Cálculo ii howard anton - capítulo 16 [tópicos do cálculo vetorial]
Cálculo ii   howard anton - capítulo 16 [tópicos do cálculo vetorial]Cálculo ii   howard anton - capítulo 16 [tópicos do cálculo vetorial]
Cálculo ii howard anton - capítulo 16 [tópicos do cálculo vetorial]Henrique Covatti
 
Topic: Fourier Series ( Periodic Function to change of interval)
Topic: Fourier Series ( Periodic Function to  change of interval)Topic: Fourier Series ( Periodic Function to  change of interval)
Topic: Fourier Series ( Periodic Function to change of interval)Abhishek Choksi
 
Assignment For Matlab Report Subject Calculus 2
Assignment For Matlab Report Subject  Calculus 2Assignment For Matlab Report Subject  Calculus 2
Assignment For Matlab Report Subject Calculus 2Laurie Smith
 

Similar to Ma2002 1.9 rm (20)

Ma2002 1.7 rm
Ma2002 1.7 rmMa2002 1.7 rm
Ma2002 1.7 rm
 
Ma2002 1.13 rm
Ma2002 1.13 rmMa2002 1.13 rm
Ma2002 1.13 rm
 
Runge-Kutta methods with examples
Runge-Kutta methods with examplesRunge-Kutta methods with examples
Runge-Kutta methods with examples
 
Ma2002 1.16 rm
Ma2002 1.16 rmMa2002 1.16 rm
Ma2002 1.16 rm
 
Newton two Equation method
Newton two Equation  method Newton two Equation  method
Newton two Equation method
 
CIRCLES.pptx
CIRCLES.pptxCIRCLES.pptx
CIRCLES.pptx
 
Introduction to Differential Equations
Introduction to Differential EquationsIntroduction to Differential Equations
Introduction to Differential Equations
 
Ma2002 1.20 rm
Ma2002 1.20 rmMa2002 1.20 rm
Ma2002 1.20 rm
 
General equation of a circle
General equation of a circleGeneral equation of a circle
General equation of a circle
 
convulution
convulutionconvulution
convulution
 
Ejerciciosderivadasresueltos
EjerciciosderivadasresueltosEjerciciosderivadasresueltos
Ejerciciosderivadasresueltos
 
Second order derivatives
Second order derivativesSecond order derivatives
Second order derivatives
 
Question 1. a) (i)(4+i2).(1+i3)4(1+i3)+i2(1+i3)4+i12+i2-6.docx
Question 1.  a) (i)(4+i2).(1+i3)4(1+i3)+i2(1+i3)4+i12+i2-6.docxQuestion 1.  a) (i)(4+i2).(1+i3)4(1+i3)+i2(1+i3)4+i12+i2-6.docx
Question 1. a) (i)(4+i2).(1+i3)4(1+i3)+i2(1+i3)4+i12+i2-6.docx
 
Cálculo ii howard anton - capítulo 16 [tópicos do cálculo vetorial]
Cálculo ii   howard anton - capítulo 16 [tópicos do cálculo vetorial]Cálculo ii   howard anton - capítulo 16 [tópicos do cálculo vetorial]
Cálculo ii howard anton - capítulo 16 [tópicos do cálculo vetorial]
 
Semi markov process
Semi markov processSemi markov process
Semi markov process
 
Topic: Fourier Series ( Periodic Function to change of interval)
Topic: Fourier Series ( Periodic Function to  change of interval)Topic: Fourier Series ( Periodic Function to  change of interval)
Topic: Fourier Series ( Periodic Function to change of interval)
 
Computer science-formulas
Computer science-formulasComputer science-formulas
Computer science-formulas
 
Hw5sols
Hw5solsHw5sols
Hw5sols
 
Assignment For Matlab Report Subject Calculus 2
Assignment For Matlab Report Subject  Calculus 2Assignment For Matlab Report Subject  Calculus 2
Assignment For Matlab Report Subject Calculus 2
 
Radiation
RadiationRadiation
Radiation
 

More from Ramakrishna Paduchuri (20)

M 1.5 rm
M 1.5 rmM 1.5 rm
M 1.5 rm
 
M 1.5 p4.s
M 1.5 p4.sM 1.5 p4.s
M 1.5 p4.s
 
M 1.5 p4.q
M 1.5 p4.qM 1.5 p4.q
M 1.5 p4.q
 
M 1.5 p3.s
M 1.5 p3.sM 1.5 p3.s
M 1.5 p3.s
 
M 1.5 p3.q
M 1.5 p3.qM 1.5 p3.q
M 1.5 p3.q
 
M 1.5 p2.s
M 1.5 p2.sM 1.5 p2.s
M 1.5 p2.s
 
M 1.5 p2.q
M 1.5 p2.qM 1.5 p2.q
M 1.5 p2.q
 
M 1.5 p1.s
M 1.5 p1.sM 1.5 p1.s
M 1.5 p1.s
 
M 1.5 p1.q
M 1.5 p1.qM 1.5 p1.q
M 1.5 p1.q
 
M 1.4 rm
M 1.4 rmM 1.4 rm
M 1.4 rm
 
M 1.4 ap1
M 1.4 ap1M 1.4 ap1
M 1.4 ap1
 
M 1.3 rm
M 1.3 rmM 1.3 rm
M 1.3 rm
 
M 1.1 rm
M 1.1 rmM 1.1 rm
M 1.1 rm
 
M 1.3 ap1
M 1.3 ap1M 1.3 ap1
M 1.3 ap1
 
Ma2002 1.23 rm
Ma2002 1.23 rmMa2002 1.23 rm
Ma2002 1.23 rm
 
Ma2002 1.22 rm
Ma2002 1.22 rmMa2002 1.22 rm
Ma2002 1.22 rm
 
Ma2002 1.21 rm
Ma2002 1.21 rmMa2002 1.21 rm
Ma2002 1.21 rm
 
Ma2002 1.19 rm
Ma2002 1.19 rmMa2002 1.19 rm
Ma2002 1.19 rm
 
Ma2002 1.17 rm
Ma2002 1.17 rmMa2002 1.17 rm
Ma2002 1.17 rm
 
Ma2002 1.12 rm
Ma2002 1.12 rmMa2002 1.12 rm
Ma2002 1.12 rm
 

Recently uploaded

“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...M56BOOKSTORE PRODUCT/SERVICE
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfUmakantAnnand
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 

Recently uploaded (20)

“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.Compdf
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 

Ma2002 1.9 rm

  • 1. Numerical solution of ordinary and partial dierential Equations Module 9: Runge-Kutta methods - IV Dr.rer.nat. Narni Nageswara Rao £ August 2011 1 System of Equations Consider the system of n equations dy dt = f(t; y1; y2; ¡¡¡ ; yn) y(t0) = (1) where y = [y1; y2; ¡¡¡ ; yn]T ; f = [f1; f2; ¡¡¡ ; fn]T ; = [1; 2; ¡¡¡ ; n]T All the methods derived earlier can be used to solve the system of equations (1), by writing the methods in vector form. Let us now apply some of these methods to solve (1). 1.1 Taylor Series Method We can write the Taylor series expansion in vector form as yj+1 = yj + hyH j + h2 2! yHH j + ¡¡¡+ hp p! y(p) j ; j = 0; 1; 2; ¡¡¡ ; N  1 (2) where y(k) j = 2 6664 (y (k) 1 )j (y (k) 2 )j ... (y (k) n )j 3 7775 = 2 64 dk 1 dtk 1 [f1(t; y1; y2; ¡¡¡ ; yn)]j ... dk 1 dtk 1 [fn(t; y1; y2; ¡¡¡ ; yn)]j 3 75 £nnrao maths@yahoo.co.in 1
  • 2. 1.2 Runge-Kutta method of Second order Consider the Euler-Cauchy or the Heun method. We write it in vector form as yj+1 = yj + 1 2 (K1 + K2) (3) where Ki1 = hfi(tj; (y1)j; (y2)j; ¡¡¡ ; (yn)j) Ki2 = hfi(tj + h; (y1)j + K11; (y2)j + K21; ¡¡¡ ; (yn)j + Kn1) i = 1; 2; ¡¡¡ ; n In an explicit form, (3) becomes 2 6664 y1 y2 ... yn 3 7775 j+1 = 2 6664 y1 y2 ... yn 3 7775 j + 1 2 0 BBB@ 2 6664 K11 K21 ... Kn1 3 7775 + 2 6664 K12 K22 ... Kn2 3 7775 1 CCCA; j = 0; 1; ¡¡¡ ; N  1 (4) 1.3 Runge-Kutta (Classical) Method of Fourth Order The vector format of fourth order Ruge-Kutta method is yj+1 = yj + 1 6 (K1 + 2K2 + 2K3 + K4) (5) where K1 = 2 6664 K11 K21 ... Kn1 3 7775; K2 = 2 6664 K12 K22 ... Kn2 3 7775; K3 = 2 6664 K13 K23 ... Kn3 3 7775; K4 = 2 6664 K14 K24 ... Kn4 3 7775 Ki1 = hfi(tj; (y1)j; (y2)j; ¡¡¡ ; (yn)j) Ki2 = hfi tj + h 2 ; (y1)j + K11 2 ; (y2)j + K21 2 ; ¡¡¡ ; (yn)j + Kn1 2 Ki3 = hfi tj + h 2 ; (y1)j + K12 2 ; (y2)j + K22 2 ; ¡¡¡ ; (yn)j + Kn2 2 Ki4 = hfi (tj + h; (y1)j + K13; (y2)j + K23; ¡¡¡ ; (yn)j + Kn3) i = 1(1)n 2
  • 3. In explicit form, (5) becomes 2 6664 y1 y2 ... yn 3 7775 j+1 = 2 6664 y1 y2 ... yn 3 7775 j + 1 6 0 BBB@ 2 6664 K11 K21 ... Kn1 3 7775 + 2 2 6664 K12 K22 ... Kn2 3 7775 + 2 2 6664 K13 K23 ... Kn3 3 7775 + 2 6664 K14 K24 ... Kn4 3 7775 1 CCCA(6) j = 1; 2; ¡¡¡ ; N  1 ExampleCompute an approximation to y(1), yH(1) and yHH(1) with the Taylor series method of Second order and step length h = 1, for the initial value problem yHHH + 2yHH + yH  y = cos t; 0 t 1 y(0) = 0; yH(0) = 1; yHH(0) = 2 after reducing it to a system of
  • 4. rst order equations. Solution Set y = v1; vH 1 = v2; vH 2 = v3 Note that v2 = vH 1 = yH v3 = vH 2 = yHH and vH 3 = vHH 2 = yHHH The system of equations is vH 1 = v2; v1(0) = 0 vH 2 = v3; v2(0) = 1 vH 3 = cos t  2v3  v2 + v1; v3(0) = 2 or vH = 2 4 v1 v2 v3 3 5 H = 2 4 v2 v3 cos t  2v3  v2 + v1 3 5; v(0) = 2 4 0 1 2 3 5 The Taylor series method of second order is v(t0 + h) = v0 + hvH 0 + h2 2! vHH 0 = v0 + vH 0 + 1 2 vHH 0 3
  • 5. Since h = 1, we have vH 0 = 2 4 v2(0) v3(0) 1  2v3(0)  v2(0) + v1(0) 3 5 = 2 4 1 2  4 3 5 Now, vHH = 2 4 vH 2 vH 3  sin t  2vH 3  vH 2 + vH 1 3 5and vHH 0 = 2 4 2  4 7 3 5 Hence, v(1) = v0 + vH 0 + 1 2 vHH 0 = 2 4 0 1 2 3 5 + 2 4 1 2  4 3 5 + 1 2 2 4 2  4 7 3 5 = 2 4 2 1 3=2 3 5 ) y(1) = 2; yH(1) = 1; yHH(1) = 3 2 Example Solve the system of equations xH =  3x + 2y; x(0) = 0 yH = 3x  4y; y(0) = 0:5 with h = 0:2 on the interval [0; 0:4]. Use the (i) Euler-Cauchy method and (ii) Classical Runge-Kutta fourth order method. Solution (i) The Euler-Cauchy method is given by xj+1 = xj + 1 2 (K1 + K2); j = 0; 1 K1 = hf(tj; xj) K2 = hf(tj + h; xj + K1) For j = 0, we have t0 = 0; x0 = 0; y0 = 0:5 4
  • 6. K11 = hf1(t0; x0; y0) = 0:2( 3x0 + 2y0) = 0:2( 3 ¢0 + 2 ¢0:5) = 0:2 K21 = hf2(t0; x0; y0) = 0:2(3x0  4y0) = 0:2[3 ¢0:4 ¢0:5] =  0:4 K12 = hf1(t0 + h; x0 + K11; y0 + K21) = 0:2[ 3(x0 + K11) + 2(y0 + K21] = 0:2[ 3(0 + 0:2) + 2(0:5  0:4)] =  0:08 K22 = hf2(t0 + h; x0 + K11; y0 + K21) = 0:2[3(x0 + K11)  4(y0 + K21)] = 0:2[3(0 + 0:2)  4(0:5  0:4)] = 0:04 x(0:2) % x1 = x0 + 1 2 (K11 + K12) = 0 + 1 2 (0:2  0:08) = 0:06 y(0:2) % y1 = y0 + 1 2 (K21 + K22) = 0:5 + 1 2 ( 0:4 + 0:04) = 0:32 For j = 1, we have t1 = 0:2; x1 = 0:06; y1 = 0:32 K11 = hf1(t1; x1; y1) = 0:2( 3x1 + 2y1) = 0:2( 3 ¢0:06 + 2 ¢0:32) = 0:092 K21 = hf2(t1; x1; y1) = 0:2(3x1  4y1) = 0:2(3 ¢0:06  4 ¢0:32) =  0:22 K12 = hf1(t1 + h; x1 + K11; y1 + K21) = 0:2[ 3(x1 + K11) + 2(y1 + K21)] = 0:2[ 3(0:06 + 0:092) + 2(0:32  0:22)] = 0:0512 5
  • 7. K22 = hf(t1 + h; x1 + K11; y1 + K21) = 0:2[3(x1 + K11)  4(y1 + K21)] = 0:2[3(0:06 + 0:092)  4(0:32  0:22)] = 0:0112 x(0:4) % x2 = x1 + 1 2 (K11 + K12) = 0:06 + 1 2 (0:092  0:0512) = 0:0804 y(0:4) % y2 = y1 + 1 2 (K21 + K22) = 0:32 + 1 2 ( 0:22 + 0:0112) = 0:2156 (ii) For the classical Runge-Kutta fourth order method, we obtain the fol- lowing results For j = 0, we have t0 = 0; x0 = 0; y0 = 0:5 K11 = hf1(t0; x0; y0) = h( 3x0 + 2y0) = 0:2( 3 ¢0 + 2 ¢0:5) = 0:2 K21 = hf2(t0; x0; y0) = h(3x0  4y0) = 0:2(3 ¢0  4 ¢0:5) =  0:4 K12 = hf1(t0 + h 2 ; x0 + K11 2 ; y0 + 1 2 K21) = h[ 3(x0 + 1 2 K11) + 2(y0 + 1 2 K21)] = 0:2[ 3(0:1) + 2 ¢0:3] = 0:06 K22 = hf2(t0 + h 2 ; x0 + 1 2 K11; y0 + 1 2 K21) = h[3(x0 + 1 2 K11)  4(y0 + 1 2 K21)] = 0:2[3 ¢0:1  4 ¢0:3] =  0:18 6
  • 8. K13 = hf1(t0 + h 2 ; x0 + 1 2 K12; y0 + 1 2 K21) = h[ 3(x0 + 1 2 K12) + 2(y0 + 1 2 K22)] = 0:2[ 3 ¢0:03 + 2 ¢0:41] = 0:146 K23 = hf2(t0 + h 2 ; x0 + 1 2 K12; y0 + 1 2 K22) = h[3(x0 + 1 2 K12)  4(y0 + 1 2 K22)] = 0:2[3 ¢0:03  40:41] =  0:31 K14 = hf1(t0 + h; x0 + K13; y0 + K23) = h[ 3(x0 + K13) + 2(y0 + K23)] = 0:2[ 3 ¢0:146 + 2 ¢0:19] =  0:0116 K24 = hf2(t0 + h; x0 + K13; y0 + K23) = h[3(x0 + K13)  4(y0 + K23)] = 0:2[3 ¢0:146 + 2 ¢0:19] =  0:0644 x(0:2) % x1 = x0 + 1 6 (K11 + 2K12 + 2K13 + K14) = 0 + 1 6 (0:2 + 0:12 + 0:292  0:0116) = 0:1001 y(0:2) % y1 = y0 + 1 6 (K21 + 2K22 + 2K23 + K24) = 0:5 + 1 6 ( 0:4  0:36  0:62  0:0644) = 0:2593 For j = 1, we have t1 = 0:2; x1 = 0:1001; y1 = 0:2593 K11 = hf1(t1; x1; y1) = h( 3x1 + 2y1) = 0:2( 3 ¢0:1001 + 2 ¢0:2593) = 0:0437 7
  • 9. K21 = hf2(t1; x1; y1) = h(3x1  4y1) = 0:2[3 ¢0:1001  4 ¢0:2593] =  0:1474 K12 = hf1(t1 + h 2 ; x0 + 1 2 K11; y0 + 1 2 K21) = h[ 3(x1 + 1 2 K11) + 2(y1 + 1 2 K21)] = 0:2[ 3 ¢0:1220 + 2 ¢0:1856] = 0:0010 K22 = hf2(t1 + h 2 ; x1 + 1 2 K11; y1 + 1 2 K21) = h[3(x1 + 1 2 K11)  4(y1 + 1 2 K21)] = 0:2[3 ¢0:1220  4 ¢0:1856] =  0:0753 K13 = hf1(t1 + h 2 ; x1 + 1 2 K12; y1 + 1 2 K22) = h[ 3(x1 + 1 2 K12) + 2(y1 + 1 2 K22)] = 0:2[ 3 ¢0:1006 + 2 ¢0:2217] = 0:0283 K23 = hf2(t1 + h 2 ; x1 + 1 2 K12; y1 + 1 2 K22) = h[3(x1 + 1 2 K12)  4(y1 + 1 2 K22)] = 0:2[3 ¢0:1006  4 ¢0:2214] =  0:1170 K14 = hf1(t1 + h; x1 + K13; y1 + K23) = h[ 3(x1 + K13) + 2(y1 + K23)] = 0:2[ 3 ¢0:1284 + 2 ¢0:1423] =  0:0201 K24 = hf2(t1 + h; x1 + K13; y1 + K23) = h[3(x1 + K13)  4(y1 + K23)] = 0:2[3 ¢0:1284  4 ¢0:1423] =  0:0368 x(0:4) % x2 = x1 + 1 6 (K11 + 2K12 + 2K13 + K14) = 0:1001 + 1 6 [0:0437 + 0:0020 + 0:0566  0:0201] = 0:1138 8
  • 10. y(0:4) % y2 = y1 + 1 6 (K21 + 2K22 + 2K23 + K24) = 0:2593 + 1 6 [ 0:1474  0:1506  0:2340  0:0368] = 0:1645 The exact solution is x(t) = 1 5 (e t  e 6t ); y(t) = 1 10 (2e t + 3e 6t ) and x(0:2) = 0:1035; y(0:2) = 0:2541 x(0:4) = 0:1159; y(0:4) = 0:1613 9