Introduce a new variable equal to the first derivative. This replaces one second-order differential equation with two coupled first-order differential equations, which can then be solved numerically using Euler's method.
The General Method
Suppose the equation is written as
Define a new state variable
This immediately gives the first equation:
Since is the first derivative of ,
Therefore, the coupled system is
The equations are coupled because each update may depend on both state variables. Rearranging first is essential because the second Euler update needs an explicit expression for the highest derivative. The substitution does not approximate the model; it only rewrites the same information in state-space form.
The state variables have distinct roles. is the original quantity, while records its rate of change. The first equation links the variables; the second describes how the rate changes. Writing both equations explicitly is important because Euler's method updates both components at every step.
Worked Example
Convert
into a coupled first-order system. Rearranging gives
Let . The system is
If and , the initial conditions become and .
For step size , Euler's method gives
For example, with , the initial acceleration is . Hence the first update gives and . Both calculations must use the original values and , not a partially updated state.
At each iteration, calculate both new values from the same old state. Updating first and then using to calculate is not standard Euler's method and changes the numerical scheme. A table can help organize the first iteration clearly.
A common misconception is to define . This does not reduce the order; the new variable must equal the first derivative.
IB Exam Technique
This is HL-only content from AHL 5.18. Examiners expect the substitution, both first-order equations, converted initial conditions, and the first complete Euler iteration.
