Convert the second-order differential equation into two coupled first-order equations, then apply Euler's method to both equations simultaneously at every step. This is HL-only content in AHL 5.18: Euler's method for second-order differential equations.
For an equation of the form
introduce the velocity variable
Therefore, , and the original equation becomes the coupled system
At step , calculate both new values from the same old state. With step size , the recurrence relations are
Both derivatives are evaluated using , , and before either variable is updated.
This simultaneous update matters because Euler's method replaces each derivative by the gradient at the start of the interval. Geometrically, the current state determines one tangent step in position and one tangent step in velocity; only after both estimates are found does the method advance to the next row.
Worked Example
Consider
with . Let , giving and . The initial state is .
| Step |
|---|
Thus, Euler's method estimates . Each ordered pair approximates both the position and its rate of change at time . A smaller step size usually improves accuracy because the tangent-line approximation is applied over shorter intervals, although more iterations are required.
For organized working, create columns for , , , , and . This makes the old-state substitutions visible and reduces update errors. On a GDC or spreadsheet, enter the recurrences once, fill them downward, and retain unrounded values.
A common misconception is to use the newly calculated when finding . This is incorrect: both updates must use the old values from row , not a mixture of old and new values.
Exam technique: In IB Math AI HL, define the new variable, state both first-order equations, write both recurrences, and show the first iteration explicitly. Keep full GDC precision throughout and round only the final estimate, normally to three significant figures unless instructed otherwise.
