All revision notes topics

5.18 Second order differential equationsIB Maths: Applications and Interpretation HL: Revision notes

Section 1

Second-order equations in physical contexts

A second-order differential equation contains d2xdt2\frac{d^2x}{dt^2}, the acceleration when xx is a displacement. They arise from Newton's second law. A mass mm on a spring with stiffness kk gives md2xdt2=−kxm\frac{d^2x}{dt^2}=-kx, so d2xdt2=−kmx\frac{d^2x}{dt^2}=-\frac{k}{m}x. Adding a damping (friction) force proportional to velocity gives d2xdt2+adxdt+bx=0\frac{d^2x}{dt^2}+a\frac{dx}{dt}+bx=0. A pendulum gives d2θdt2=−gLsin⁡θ\frac{d^2\theta}{dt^2}=-\frac{g}{L}\sin\theta. You are not asked to derive these equations: in examinations the equation is given. You need to know how to solve it numerically and how to analyse it with a phase portrait.

Key termssecond-order differential equationdamping
Exam tip

Spring equations have the form d2xdt2=−(positive)x\frac{d^2x}{dt^2}=-(\text{positive})x: the force always pulls back towards x=0x=0.

Section 2

Turning it into a coupled first-order system

Euler's method needs first-order equations, so introduce a second variable for the velocity. For d2xdt2=f(x,dxdt,t)\frac{d^2x}{dt^2}=f\left(x,\frac{dx}{dt},t\right) let y=dxdty=\frac{dx}{dt}. Then dxdt=y,dydt=f(x,y,t).\frac{dx}{dt}=y,\qquad \frac{dy}{dt}=f(x,y,t). This is a coupled system in xx and yy. Example: d2xdt2=−4x−0.5dxdt\frac{d^2x}{dt^2}=-4x-0.5\frac{dx}{dt} becomes dxdt=y\frac{dx}{dt}=y and dydt=−4x−0.5y\frac{dy}{dt}=-4x-0.5y. The initial conditions become x(0)x(0) and y(0)=dxdt(0)y(0)=\frac{dx}{dt}(0).

Key termscoupled system
Common mistake

Forgetting that the first equation is simply dxdt=y\frac{dx}{dt}=y. It is not the original right-hand side.

Section 3

Euler's method for the pair

Apply Euler's method to both equations, using the old values on the right: tn+1=tn+h,xn+1=xn+h yn,yn+1=yn+h f(xn,yn,tn).t_{n+1}=t_n+h,\quad x_{n+1}=x_n+h\,y_n,\quad y_{n+1}=y_n+h\,f(x_n,y_n,t_n). Example: d2xdt2=−2x+t\frac{d^2x}{dt^2}=-2x+t, x(0)=1x(0)=1, dxdt(0)=0\frac{dx}{dt}(0)=0, h=0.1h=0.1. Step 1 (using t=0t=0): x1=1+0.1(0)=1x_1=1+0.1(0)=1 and y1=0+0.1(−2(1)+0)=−0.2y_1=0+0.1(-2(1)+0)=-0.2. Step 2 (using t=0.1t=0.1): x2=1+0.1(−0.2)=0.98x_2=1+0.1(-0.2)=0.98 and y2=−0.2+0.1(−2(1)+0.1)=−0.39y_2=-0.2+0.1(-2(1)+0.1)=-0.39. So at t=0.2t=0.2, x≈0.98x\approx0.98 and dxdt≈−0.39\frac{dx}{dt}\approx-0.39. Use a spreadsheet for more steps, and a GDC in radian mode if the equation contains sin⁡x\sin x. Euler's method slowly drifts: for d2xdt2=−x\frac{d^2x}{dt^2}=-x, each step multiplies x2+y2x^2+y^2 by (1+h2)(1+h^2), although the true value is constant.

Key termsvelocity variable
Common mistake

Using xn+1x_{n+1} instead of xnx_n in the update for yy. Both updates use the values from the start of the step.

Section 4

Linear second-order equations and phase portraits

For d2xdt2+adxdt+bx=0\frac{d^2x}{dt^2}+a\frac{dx}{dt}+bx=0, the coupled system is dxdt=y\frac{dx}{dt}=y and dydt=−bx−ay\frac{dy}{dt}=-bx-ay, with matrix M=(01−b−a)M=\begin{pmatrix} 0 & 1 \\ -b & -a \end{pmatrix}. Its eigenvalues satisfy λ2+aλ+b=0.\lambda^2+a\lambda+b=0. Then use the phase portrait method from 5.17, with xx (position) and yy (velocity) as the axes. Example: d2xdt2+2dxdt+10x=0\frac{d^2x}{dt^2}+2\frac{dx}{dt}+10x=0 has λ=−1±3i\lambda=-1\pm3i.

Key termscharacteristic equation
Exam tip

The characteristic equation can be written straight from the coefficients: λ2\lambda^2, then aλa\lambda, then bb.

Section 5

Interpreting the eigenvalues

  • a=0a=0, b>0b>0: imaginary eigenvalues ±ib\pm i\sqrt{b}, so closed ellipses: an undamped oscillation of constant amplitude.
  • Complex eigenvalues with negative real part: a spiral towards the origin, a damped oscillation whose amplitude decays.
  • Two distinct negative real eigenvalues: a stable node, so xx returns to 00 without oscillating (heavy damping).
  • b<0b<0: the eigenvalues are real with opposite signs, a saddle point, so xx runs away (an unstable situation). The origin x=0, y=0x=0,\ y=0 is the rest position: the mass is at the centre with no velocity.
Key termsdamped oscillationundamped oscillation
Common mistake

Describing the spiral without saying what it means. Say that the oscillation decays and the object settles at rest.

Section 6

Choosing between numerical and qualitative methods

Euler's method gives numbers: the position and velocity at particular times, for any given equation, including non-linear ones like the pendulum. The phase portrait gives the qualitative behaviour of linear equations: whether solutions grow, decay or cycle, without calculating each value. For a non-linear equation such as d2θdt2=−10sin⁡θ\frac{d^2\theta}{dt^2}=-10\sin\theta, replacing sin⁡θ\sin\theta by θ\theta for small angles gives a linear equation that you can analyse with a phase portrait. In a question, check which is asked: 'estimate xx when t=…t=\ldots' needs Euler's method, while 'describe the long-term behaviour' needs the eigenvalues.

Key termsqualitative analysis
Exam tip

Always write the coupled system first. It is usually worth a mark, and both methods start from it.

That's the notes covered.

Carry on to the next subtopic.

Exam questions on 5.18 Second order differential equations

  1. The displacement xx metres of a mass on a spring, tt seconds after release, satisfies d2xdt2=−x\frac{d^2x}{dt^2}=-x, with x=1x=1 and dxdt=0\frac{dx}{dt}=0 when t=0t=0. Euler's method with step length h=0.1h=0.1 seconds is used, with y=dxdty=\frac{dx}{dt}.
    Find the approximation to xx when t=0.2t=0.2.2 marks
  2. The displacement xx cm of a damped oscillator, tt seconds after it starts, satisfies d2xdt2+2dxdt+10x=0\frac{d^2x}{dt^2}+2\frac{dx}{dt}+10x=0. Let y=dxdty=\frac{dx}{dt}.
    Describe the motion of the oscillator, giving a reason.2 marks
  3. A mass on a spring has displacement xx metres at time tt seconds, where d2xdt2=−4x−0.5dxdt\frac{d^2x}{dt^2}=-4x-0.5\frac{dx}{dt}, with x=2x=2 and dxdt=0\frac{dx}{dt}=0 when t=0t=0. Let y=dxdty=\frac{dx}{dt}. Euler's method with step length h=0.2h=0.2 seconds is used.
    Write the second-order equation as a pair of coupled first-order equations, and write down the values of xx and yy when t=0t=0.3 marks
See the full worksheet

Written by the Exaim team, led by Shaun Daswani (Head of Upper Secondary, Improve ME Institute; MSc Financial Mathematics, Imperial College London; BSc, UCL) and Jason Daswani (operational lead, Improve ME Institute; LSE).