Systems of IVPs

An mm-dimensional system of first-order IVPs is

u′(t)=f(t,u(t)),u(a)=α\mathbf{u}'(t) = \mathbf{f}(t, \mathbf{u}(t)), \qquad \mathbf{u}(a) = \boldsymbol{\alpha}

where u=(u1,…,um)T\mathbf{u} = (u_1, \ldots, u_m)^T, α=(α1,…,αm)T\boldsymbol{\alpha} = (\alpha_1, \ldots, \alpha_m)^T, and f=(f1,…,fm)T\mathbf{f} = (f_1, \ldots, f_m)^T. The goal is to approximate u(t)\mathbf{u}(t) for a≤t≤ba \leq t \leq b.

The Lipschitz condition applies unchanged. Replace the scalar variables with vectors and absolute values with a vector norm:

∥f(t,u)−f(t,z)∥≤L∥u−z∥\lVert \mathbf{f}(t, \mathbf{u}) - \mathbf{f}(t, \mathbf{z}) \rVert \leq L \lVert \mathbf{u} - \mathbf{z} \rVert

for all (t,u),(t,z)∈D⊆R×Rm(t, \mathbf{u}), (t, \mathbf{z}) \in D \subseteq \mathbb{R} \times \mathbb{R}^m.

The existence and uniqueness result also applies with this condition. A continuous, bounded Jacobian of f\mathbf{f} is sufficient.

Order 4 Runge-Kutta applies unchanged. Use wi\mathbf{w}_i, k1,…,k4\mathbf{k}_1, \ldots, \mathbf{k}_4, and f\mathbf{f} in place of wiw_i, k1,…,k4k_1, \ldots, k_4, and ff. Start with w0=α\mathbf{w}_0 = \boldsymbol{\alpha}. Then u(ti)≈wi\mathbf{u}(t_i) \approx \mathbf{w}_i.

Reducing a Higher-Order IVP

An mmth-order IVP

y(m)(t)=f(t,y,y′,…,y(m−1)),a≤t≤by^{(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(m−1)(a)=αmy(a) = \alpha_1, y'(a) = \alpha_2, \ldots, y^{(m-1)}(a) = \alpha_m becomes a first-order system by setting u=(y,y′,…,y(m−1))T\mathbf{u} = (y, y', \ldots, y^{(m-1)})^T

u′=(u2u3⋮umf(t,u1,…,um)),u(a)=(α1α2⋮αm)\mathbf{u}' = \begin{pmatrix} u_2 \\ u_3 \\ \vdots \\ u_m \\ f(t, u_1, \ldots, u_m) \end{pmatrix}, \qquad \mathbf{u}(a) = \begin{pmatrix} \alpha_1 \\ \alpha_2 \\ \vdots \\ \alpha_m \end{pmatrix}

Conversion Procedure

Set

uj=y(j−1),j=1,…,mu_j = y^{(j-1)}, \qquad j = 1, \ldots, m

Then

uj′=uj+1,j=1,…,m−1,um′=f(t,u1,…,um)u_j' = u_{j+1}, \quad j = 1, \ldots, m-1, \qquad u_m' = f(t, u_1, \ldots, u_m)

with

u(a)=(α1,α2,…,αm)T\mathbf{u}(a) = (\alpha_1, \alpha_2, \ldots, \alpha_m)^T

For a linear equation

y(m)+cm−1(t)y(m−1)+⋯+c1(t)y′+c0(t)y=r(t),y^{(m)} + c_{m-1}(t)y^{(m-1)} + \cdots + c_1(t)y' + c_0(t)y = r(t),

the last system equation is

um′=r(t)−c0(t)u1−c1(t)u2−⋯−cm−1(t)umu_m' = r(t) - c_0(t)u_1 - c_1(t)u_2 - \cdots - c_{m-1}(t)u_m

For constant coefficients,

u′=Au+r(t),A=(010⋯0001⋯0⋮⋱⋮000⋯1−c0−c1−c2⋯−cm−1),r(t)=(0,…,0,r(t))T\mathbf{u}' = A\mathbf{u} + \mathbf{r}(t), \qquad A = \begin{pmatrix} 0 & 1 & 0 & \cdots & 0 \\ 0 & 0 & 1 & \cdots & 0 \\ \vdots & & & \ddots & \vdots \\ 0 & 0 & 0 & \cdots & 1 \\ -c_0 & -c_1 & -c_2 & \cdots & -c_{m-1} \end{pmatrix}, \qquad \mathbf{r}(t) = (0, \ldots, 0, r(t))^T

For a numerical method with approximations wi\mathbf{w}_i at ti=a+iht_i = a + ih,

wi,1≈y(ti),wi,2≈y′(ti),…,wi,m≈y(m−1)(ti)w_{i,1} \approx y(t_i), \qquad w_{i,2} \approx y'(t_i), \qquad \ldots, \qquad w_{i,m} \approx y^{(m-1)}(t_i)

Worked Examples

Example 1

Reduce

y′′−2y′+2y=e2tsin⁡t,0≤t≤1,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

to a first-order system, then take 1 step of order 4 Runge-Kutta with h=0.5h = 0.5.

Solution Reveal Hide

Set u=(y,y′)T\mathbf{u} = (y, y')^T.

u′=f(t,u)=(u22u2−2u1+e2tsin⁡t),u(0)=(−0.4−0.6)\mathbf{u}' = \mathbf{f}(t, \mathbf{u}) = \begin{pmatrix} u_2 \\ 2u_2 - 2u_1 + e^{2t}\sin t \end{pmatrix}, \qquad \mathbf{u}(0) = \begin{pmatrix} -0.4 \\ -0.6 \end{pmatrix}

For h=0.5h = 0.5:

k1=0.5 f(0,(−0.4−0.6))=(−0.3−0.2)\mathbf{k}_1 = 0.5\, \mathbf{f}\left(0, \begin{pmatrix} -0.4 \\ -0.6 \end{pmatrix}\right) = \begin{pmatrix} -0.3 \\ -0.2 \end{pmatrix}k2=0.5 f(0.25,(−0.55−0.7))=(−0.350.0540)\mathbf{k}_2 = 0.5\, \mathbf{f}\left(0.25, \begin{pmatrix} -0.55 \\ -0.7 \end{pmatrix}\right) = \begin{pmatrix} -0.35 \\ 0.0540 \end{pmatrix}k3=0.5 f(0.25,(−0.575−0.5730))=(−0.28650.2059)\mathbf{k}_3 = 0.5\, \mathbf{f}\left(0.25, \begin{pmatrix} -0.575 \\ -0.5730 \end{pmatrix}\right) = \begin{pmatrix} -0.2865 \\ 0.2059 \end{pmatrix}k4=0.5 f(0.5,(−0.6865−0.3941))=(−0.19700.9440)\mathbf{k}_4 = 0.5\, \mathbf{f}\left(0.5, \begin{pmatrix} -0.6865 \\ -0.3941 \end{pmatrix}\right) = \begin{pmatrix} -0.1970 \\ 0.9440 \end{pmatrix}w1=(−0.4−0.6)+16((−0.3−0.2)+2(−0.350.0540)+2(−0.28650.2059)+(−0.19700.9440))=(−0.6950−0.3894)\mathbf{w}_1 = \begin{pmatrix} -0.4 \\ -0.6 \end{pmatrix} + \tfrac{1}{6}\left( \begin{pmatrix} -0.3 \\ -0.2 \end{pmatrix} + 2\begin{pmatrix} -0.35 \\ 0.0540 \end{pmatrix} + 2\begin{pmatrix} -0.2865 \\ 0.2059 \end{pmatrix} + \begin{pmatrix} -0.1970 \\ 0.9440 \end{pmatrix} \right) = \begin{pmatrix} -0.6950 \\ -0.3894 \end{pmatrix}

The first component gives y(0.5)≈−0.6950y(0.5) \approx -0.6950. The exact value is −0.6936-0.6936.

Example 2

Write y′′′=y′′−2y′+y+ty''' = y'' - 2y' + y + t with y(0)=1y(0) = 1, y′(0)=0y'(0) = 0, y′′(0)=2y''(0) = 2 as a first-order system.

Solution Reveal Hide

Set u=(y,y′,y′′)T\mathbf{u} = (y, y', y'')^T.

u′=(u2u3u3−2u2+u1+t),u(0)=(102)\mathbf{u}' = \begin{pmatrix} u_2 \\ u_3 \\ u_3 - 2u_2 + u_1 + t \end{pmatrix}, \qquad \mathbf{u}(0) = \begin{pmatrix} 1 \\ 0 \\ 2 \end{pmatrix}

Wolfram Mathematica notebooks

A companion notebook for this note. Open it in Mathematica and evaluate the cells to reproduce the worked example.

The summary notebook defines every function used in this module, with documentation and no examples, as a starting point for your own problems.

Written by November 5, 2026 1 min read
Was this helpful?