All courses › Numerical Methods › System of first-order equations
System of first-order equations
Most numerical solvers are built for systems of first-order equations, so a higher-order ODE is rewritten by introducing new variables for the derivatives. A second-order equation then becomes two coupled first-order equations.
new variables
the first-order system
Symbols
| position and velocity as separate unknowns |
Example
becomes and , solved with e.g. RK4 on the vector .
This rewriting is the key to applying Euler or Runge–Kutta to higher-order equations.
Practise differential equations and stability for free →
Part of Numerical Methods: Differential equations and stability.