AHL 5.18 (HL)—Second-order differential equations
- Syllabus
- First assessment 2021
- Objective
- —
- Level
- HL
For d2x/dt2=f(x,dx/dt,t), define y=dx/dt. Then rewrite the equation as the coupled system dx/dt=y and dy/dt=f(x,y,t).
With step h, update simultaneously from the current state: xn+1=xn+hyn and yn+1=yn+hf(xn,yn,tn). Initial position and velocity provide the two starting values.
For x′′=−x, x(0)=1, x′(0)=0 and h=0.1, set y=x′. One Euler step gives x1=1+0.1(0)=1 and y1=0+0.1(−1)=−0.1.
The syllabus requires numerical Euler and phase-portrait treatment, not a general characteristic-equation solution. Use both current values in one update and do not confuse velocity y with position x.