Systems of IVPs

Work in progress. This note is still being written and incomplete.

An mmth-order system of first-order IVPs is

u1(t)=f1(t,u1,u2,,um)  um(t)=fm(t,u1,u2,,um)\begin{aligned} u_1'(t) &= f_1(t, u_1, u_2, \ldots, u_m) \\ &\ \ \vdots \\ u_m'(t) &= f_m(t, u_1, u_2, \ldots, u_m) \end{aligned}

for atba \leq t \leq b, with u1(a)=α1,,um(a)=αmu_1(a) = \alpha_1, \ldots, u_m(a) = \alpha_m. The goal is to approximate u1(t),,um(t)u_1(t), \ldots, u_m(t).

Lipschitz Condition for Systems

f(t,u1,,um)f(t, u_1, \ldots, u_m) on

D={(t,u1,,um):atb, <ui<}D = \{ (t, u_1, \ldots, u_m) : a \leq t \leq b,\ -\infty < u_i < \infty \}

satisfies a Lipschitz condition in u1,,umu_1, \ldots, u_m iff a constant L>0L > 0 exists with

f(t,u1,,um)f(t,z1,,zm)Lj=1mujzj|f(t, u_1, \ldots, u_m) - f(t, z_1, \ldots, z_m)| \leq L \sum_{j=1}^{m} |u_j - z_j|

for all (t,u1,,um),(t,z1,,zm)D(t, u_1, \ldots, u_m), (t, z_1, \ldots, z_m) \in D.

Sufficient test: ff and each partial derivative fui\dfrac{\partial f}{\partial u_i} are continuous on DD with fuiL\left| \dfrac{\partial f}{\partial u_i} \right| \leq L for each i=1,,mi = 1, \ldots, m.

Existence and Uniqueness

If each fif_i is continuous and satisfies a Lipschitz condition on DD, the system has a unique solution u1(t),,um(t)u_1(t), \ldots, u_m(t) on [a,b][a, b].

Order 4 Runge-Kutta for Systems

Superscript (j)(j) marks quantities for uju_j. Mesh points are ti=a+iht_i = a + ih with h=baNh = \dfrac{b - a}{N}.

w0(j)=αjk1(j)=hfj(ti, wi(1),,wi(m))k2(j)=hfj(ti+h2, wi(1)+12k1(1),,wi(m)+12k1(m))k3(j)=hfj(ti+h2, wi(1)+12k2(1),,wi(m)+12k2(m))k4(j)=hfj(ti+1, wi(1)+k3(1),,wi(m)+k3(m))wi+1(j)=wi(j)+16(k1(j)+2k2(j)+2k3(j)+k4(j))\begin{aligned} w_0^{(j)} &= \alpha_j \\ k_1^{(j)} &= h\, f_j\big(t_i,\ w_i^{(1)}, \ldots, w_i^{(m)}\big) \\ k_2^{(j)} &= h\, f_j\left( t_i + \tfrac{h}{2},\ w_i^{(1)} + \tfrac{1}{2} k_1^{(1)}, \ldots, w_i^{(m)} + \tfrac{1}{2} k_1^{(m)} \right) \\ k_3^{(j)} &= h\, f_j\left( t_i + \tfrac{h}{2},\ w_i^{(1)} + \tfrac{1}{2} k_2^{(1)}, \ldots, w_i^{(m)} + \tfrac{1}{2} k_2^{(m)} \right) \\ k_4^{(j)} &= h\, f_j\left( t_{i+1},\ w_i^{(1)} + k_3^{(1)}, \ldots, w_i^{(m)} + k_3^{(m)} \right) \\ w_{i+1}^{(j)} &= w_i^{(j)} + \tfrac{1}{6}\left( k_1^{(j)} + 2 k_2^{(j)} + 2 k_3^{(j)} + k_4^{(j)} \right) \end{aligned}

for i=0,,N1i = 0, \ldots, N-1 and j=1,,mj = 1, \ldots, m. All k1(j)k_1^{(j)} are computed before any k2(j)k_2^{(j)}, and so on. Then uj(ti)wi(j)u_j(t_i) \approx w_i^{(j)}.

Reducing a Higher-Order IVP

An mmth-order IVP

y(m)(t)=f(t,y,y,,y(m1)),atby^{(m)}(t) = f\big(t, y, y', \ldots, y^{(m-1)}\big), \quad a \leq t \leq b

with y(a)=α1,y(a)=α2,,y(m1)(a)=αmy(a) = \alpha_1, y'(a) = \alpha_2, \ldots, y^{(m-1)}(a) = \alpha_m becomes a first-order system by setting u1=y,u2=y,,um=y(m1)u_1 = y, u_2 = y', \ldots, u_m = y^{(m-1)}

u1=u2u2=u3  um1=umum=f(t,u1,u2,,um)\begin{aligned} u_1' &= u_2 \\ u_2' &= u_3 \\ &\ \ \vdots \\ u_{m-1}' &= u_m \\ u_m' &= f(t, u_1, u_2, \ldots, u_m) \end{aligned}

with u1(a)=α1,,um(a)=αmu_1(a) = \alpha_1, \ldots, u_m(a) = \alpha_m. Solving the system by order 4 Runge-Kutta, wi(1)w_i^{(1)} approximates y(ti)y(t_i).

Worked Example

y2y+2y=e2tsint,0t1,y(0)=0.4, y(0)=0.6y'' - 2y' + 2y = e^{2t}\sin t, \quad 0 \leq t \leq 1, \quad y(0) = -0.4,\ y'(0) = -0.6

Set u1=yu_1 = y, u2=yu_2 = y'

u1=u2u2=2u22u1+e2tsint\begin{aligned} u_1' &= u_2 \\ u_2' &= 2 u_2 - 2 u_1 + e^{2t}\sin t \end{aligned}

with u1(0)=0.4u_1(0) = -0.4, u2(0)=0.6u_2(0) = -0.6. Apply order 4 Runge-Kutta with f1=u2f_1 = u_2 and f2=2u22u1+e2tsintf_2 = 2 u_2 - 2 u_1 + e^{2t}\sin t. Then wi(1)w_i^{(1)} approximates y(ti)y(t_i).

Written by September 13, 2026 3 min read
Was this helpful?