Chapter22rev1-ODE 1st Order
Chapter22rev1-ODE 1st Order
Chapter 22
Initial-Value Problems
where:
k1 f t i , yi
1 1
k2 f t i h, yi k1h
2 2
1 1
k3 f t i h, yi k2 h
2 2
k4 f t i h, yi k3h
Systems of Equations
• Many practical problems require the solution of a
system of equations:
dy1
f1 t, y1 , y2 ,, yn
dt
dy2
f2 t, y1 , y2 ,, yn
dt
dyn
fn t, y1 , y2 ,, yn
dt
• The solution of such a system requires that n initial
conditions be known at the starting value of t.
Solution Methods
• Single-equation methods can be used to
solve systems of ODE’s as well; for example,
Euler’s method can be used on systems of
equations - the one-step method is applied
for every equation at each step before
proceeding to the next step.
• Fourth-order Runge-Kutta methods can also
be used, but care must be taken in
calculating the k’s.
MATLAB RK4 Code