0% found this document useful (0 votes)
27 views1 page

WS 28

Uploaded by

Saragha Surendra
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views1 page

WS 28

Uploaded by

Saragha Surendra
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Math 2552 – Di↵erential Equations – Spring 2024 Worksheet 28

Numerical Methods: Euler, Improved Euler, and Runge-Kutta (8.1-8.3)

1. Consider y 0 = 2 3t + 5y, y(0) = 0.3.


Find approximate values of the solution at t = 0.1, 0.2, 0.3.

(a) Use Euler’s method with h = 0.1


(b) Use the improved Euler’s method with h = 0.1
(c) Use the Runge-Kutta method with h = 0.1
h = 0 1 to =
0 8 3
yo
= .
.

Ht , y) =
2 -

3+ +
5y

A) y,
=
0 3 .
+
·
/ f (0
, . 3) =
0 . 65

y2
=
0 65 + . (f) . 1
,.
65) = 1 . 145

y3
=
1 145
.
+
(f) . 2 1 . 145) =

1 8575
.

B) y = yo
+ & (f(0 ,.
3) +
f( .
1
,. 65)
Y 1
=
0 .
7225 + = 0 / .

x + =
0 . 2
y
= 0 7725
. +
·
(f) 1
,
7225) =
1 . 25375

y2
=
.
7225
+
E (f) . 1
,
.
7225) +
f ( . 2
,
1 . 2537) + =
0 . 3
y
=
1 .
3715625 + · 1f( .
2 1 .

3715625) =
2 19734375


.

Y 2
=
1 3715625
.
+ =
0 2 .

ys
=
1 .
3715625 +
E (f) .
2
,
1 .
3715625) + + ( .
3 ,
2 . 19734375)

c) +n + 1
=
to +
h Y +
=

yn
+ 5)kn ,
1
+
2kn ,
z
+
2kn , 3 +
↑N ,
4) kn , ,
=

flyn tn) ,

Ko , . =
f (0 3) =
3 5 kn, z =
flyn +
kn ,,, tw
+
*)
, .
.

ko c
=
f(0 2) 1) 3
,.
+ -
+
zh(3 5)) .
=
- 1 05 .
475) =
4 . 225 kn 3
=

flyn +
kr z , tn
+
*)
,
,. , ,

10 3
=
f) . 05 3 +
2 h (4 225)) ,
=
+1 05 51125) =
4 40625 .
kn 4
=
flyn +
hkw s tn + h)
,. ,.
.

, , , ,

ko ,
p
=
f ( to + h
,.
3 +
h(p 40625)) .
=
f(01 ,.
740625) = 5 403125
.

+ +
0 .
1 + ,
=
3 5 (k0
.
+
, 1
+
2 ko , 2
+
2k0 , 3
+
kocp)
Y1
=
8 . 73609375

1 . 1
,
0 .
73609375)
=>
REPEAT PROCESS WI ( : 1
,
0 .
73609375)
(t , y) 1 .
2
,
1 . 4160679102)
It , Y) 1 .
3 2 . 49803771019)
,

You might also like