to discuss
Topic_
order
Second
of
_
Method
>
-
Runge-Kutta
Problem
>
-
Numerical
Problem
>
- Homework
KuttaaMethod of SecondOrder (R(2)
Range solve
method used to
It is a numerical
first-order differential equation
.
The formula is :
K. =
hf ( sen ,
yn )
kz =
hf(xn + h , Yn+ k1)
yn 1 +
=
y
+ t(k ,
+ kz)
Here , K, =
slope
contribution at
starting point
contribution at predicted
Ke =
slope next point
Note :
modified method
_
RK 2 method and culer's are
in
connected ,
but
they are not
always taught
the exact way
same
. books use a
In modified cules method , many
where first we predict
predictor-corrector format ,
more times
value the correct it one or
the
of y ,
like in last video.
we
already
slope formula
.
two
But in RK2 ,
we directly use
KI Ka
,
,
Yn +1
#umericalIProblem :
Q : Solve using
RK2 Method ,
d = x+
y
h .
find y(0 1) take step size 0
=
y(0) 1 .
= ,
solution :
Given ,
f(x y) , =
x+
y
1 & h==0.1
40 = O, You
0 + 0 1 = 0 .
1
xoth
.
=
· x ,
=
RK2 formula ,
k, =
hf(xn , Yz)
Kz = hf ( enth , Yutki )
+
Yn + 1
=
yn +
a
(k + kz)
to
= ylai
0
We need
find :
y
. )
= ylo )
. , n =
k, =
hf ( x 0
.
Yo )
= 0 -
1 ( xo +
Yo )
= 0 .
1
( 0 + 1 )
"
KiaO 1
Kz
Now ,
calculating for
kz =
hf(x0 + h, yo + k,
)
= 0 .
1
[2o + h +
yo + k, ]
= 0 .
1 [ ot 0 . 1 + 1 + 001 ]
∴
K2 =
0 .
12
Y= Y 。 +Ʃ ( Ki + kz )
=
け
主 ( 0 .
1 t 0 12
.
:- Y, = 101
As
Homework Problem :
Q Solve
:
using
RK2 Method
,y ny
=
h 1
Given y(0) 1 0 .
= ,
=
find y ( o . 2) .
solution :
Given , ㎡
f ( x sy )
=
x
ty
h = 0.1
O,
20 = "Youl ,
RK2 formula iss
k, -
hf ( an ,
yn )
h Yn + k1)
kz =
hf(xn + ,
yn 1
+
=
y
+ t(k ,
+ kz)
first Approximation :
1 , h = 0.1, m=
no = 0 , Yo =
x , = x0 th = 0 . 1
calculating KI ,
k ,
=
hf ( x 0 ,
Yo )
=0.1 23 + yo
= 0 .
f ( 0 + 1 )
:: K. = 0. /
K2 ,
Calculating
K2 = h 5 (x 0
th 」 Yotk ) 、
Yotk 、 D ]
= 01 ( 兆 0
th ) (
(1 + 0 1)]
1((0 1)
.
0
+
. +
0
=
.
O l 1
∴
K2 = .
Calculating Y,s
( KitKz)
Y = Y0
t 主
)
会 ( l to " "
O -
= 1 け
L 1055
"
Y .
=
1) 1055
So
y (0 1 .
.
=
,
SecondApproximation :
, 1 ha 0 .
1
O .
, = 1055
=
H .
=
1 , U
- ,
calculating KI ,
ki = hf ( eisy ) ,
= O .
1 ( xpty ) .
=> k1 0
=
.
1
(0 . 1+ 1 .
1055]
:
K , = Oel 1 1 55
Calculating K2 ,
K2 =
hf ( xiths y .
tk 、 )
= 0 .
1 [(x , h)
+
2
+ (y ,
+ k, )]
) ~+① - 1055 + 0 - 1115
.
= 0 . 1[ ℃ ' 1t 0 1
: K 2
= 6 .
125 F 05
Calculating Y2 ,
Ya =
y + (K ,
+ k2 )
,
125705 )
齢(
0
O 11155 t -
101055
.
=
t
… Y
2 = 1
. 22412
) ( 0 2 ) 224127
Y Y( x2 Y 1
Ahe
.
= =
so
.
=
, 2 .
Connect with me
Start Practicing
i._am._arfin
Arfin Parween
Arfin Parween ( Subscribe here too)
Arfin Parween
Arfin Parween