Professional Documents
Culture Documents
HW#5
Due: Tue. 19-Feb-2019
𝑑𝑦1
= −𝑦2 𝑦10.5 − ∅ 𝑦3 𝑦10.5
𝑑𝑥
𝑑𝑦2
= −𝑦2 𝑦10.5
𝑑𝑥
𝑑𝑦3
= 𝑦2 𝑦10.5 − ∅ 𝑦3 𝑦10.5
𝑑𝑥
𝑥 = 0, 𝑦1 = 1, 𝑦2 = 0.5 𝑎𝑛𝑑 𝑦3 = 0
Using = 0.55 and h = 0.1, modify the MATLAB code IVP.m to solve this problem for the
following three methods:
yn 1 yn
1
k1 k4 1 b k2 d k3
6 3
k1 h f t n , yn
h 1
k 2 h f t n , yn k1
2 2
h
k3 h f t n , yn a k1 b k 2
2
h
k 4 h f t n , yn c k 2 d k3
2
2 1 2 2 2 2
a , b , c , d 1
2 2 2 2