Systems of ODEs

A system of ODEs is a set of coupled first-order equations that can be written in vector form:

where is the state vector and is the vector-valued right-hand side.

Applying Standard Solvers

All the standard scalar ODE methods (explicit Euler, RK4, implicit trapezoid, etc.) generalise directly to systems by replacing scalar operations with vector operations. For example, the explicit Euler update becomes:

In Python, this requires no structural changes: numpy arrays handle the vector arithmetic.

Example: Predator-Prey (Lotka-Volterra)

With state vector , the right-hand side is:

Higher-Order ODEs

A single th-order ODE can be reduced to a system of first-order ODEs - see Reducing a Second-Order ODE.

Explicit Euler method | Fourth order Runge-Kutta | Lotka-Volterra equations | Reducing a Second-Order ODE | Runge-Kutta methods