Rewriting 2nd-order ODE as system of two 1st-order ODEs
The vast collection of ODE solvers (e.g., in Odespy) cannot be applied to
u′′+ω2u=0
unless we write this higher-order ODE as a system of 1st-order ODEs.
Introduce an auxiliary variable v=u′:
u′=v,v′=−ω2u.