James Ashton MathsFREE MATHEMATICS. OPEN TO EVERYONE.
HomeIB DiplomaA levelAbout
IB Diploma › Maths AI HL › Calculus › Second-order equations

Second-order differential equations

Springs, shock absorbers and pendulums obey equations involving the second derivative, x¨. The trick is to introduce the velocity y=x˙ as a second variable: the equation becomes a coupled first-order system, which you can solve with Euler’s method or analyse with a phase portrait.

AHL 5.18HL onlyPaper 1Paper 2Paper 3GDC allowed≈ 45 min to work through

1What you need to know

Tick these off as you go. By the end of the page you should be able to do all of them without notes.

  • Write x¨=f(x,x˙,t) as the coupled system x˙=y, y˙=f(x,y,t)AHL 5.18
  • Use Euler’s method to approximate solutions of second-order equationsAHL 5.18
  • Analyse x¨+ax˙+bx=0 with the eigenvalues of its matrixAHL 5.18
  • Interpret the solutions physically: oscillating, damped, or returning without oscillatingAHL 5.18

2Notes & worked examples

Each idea is followed by a worked example. Try the question yourself first, then reveal the solution one step at a time.

The big idea

A spring pulls back harder the further it is stretched (−bx), and friction or a damper resists the motion (−ax˙). Newton’s second law then gives x¨=−ax˙−bx. Track position and velocity together, and the motion becomes a path in the (x,x˙) plane: exactly the phase portraits from the previous page.

2.1 From one equation to a system

Reducing a second-order equation Not in booklet: learn it
x¨=f(x,x˙,t)⟹x˙=y,y˙=f(x,y,t)

For x¨+ax˙+bx=0 this gives (x˙y˙)=(01−b−a)(xy), with characteristic equation λ2+aλ+b=0.

Worked example 1Paper 1
Write x¨+3x˙+2x=0 as a system and describe the motion.
x˙=y, y˙=−2x−3y; matrix (01−2−3)
λ2+3λ+2=0⇒λ=−1, −2
Real and negative: the object returns to equilibrium without oscillating (overdamped).

2.2 Euler’s method for second-order equations

Worked example 2Paper 1
For x¨+0.5x˙+4x=0, with x=1 and x˙=0 when t=0, use Euler’s method with h=0.1 to estimate x when t=0.3.
x˙=y, y˙=−4x−0.5y
t=0.1: x=1+0.1(0)=1, y=0+0.1(−4)=−0.4
Both updates use the old values.
t=0.2: x=1+0.1(−0.4)=0.96, y=−0.4+0.1(−4+0.2)=−0.78
t=0.3: x=0.96+0.1(−0.78)=0.882, y=−1.125
Worked example 3 (faded)Paper 1
Write x¨=t−2x˙ as a coupled system.
x˙=y, y˙=t−2y  ← you work this out

2.3 What the eigenvalues mean physically

Eigenvalues of x¨+ax˙+bx=0MotionPhase portrait
purely imaginary (a=0)oscillates for ever with constant amplitudeclosed ellipses
complex, negative real partoscillates with decreasing amplitude (damped)spiral into the origin
real, both negativereturns to equilibrium without oscillating (overdamped)stable node
Worked example 4Paper 1
Describe the motion given by (a) x¨+9x=0; (b) x¨+0.4x˙+4x=0.
(a) λ2+9=0⇒λ=±3i: undamped oscillation with period 2π3≈2.09
(b) λ=−0.2±1.99i: damped oscillation, the amplitude decaying like e−0.2t
On your TI-Nspire Calculator tricks →

For Euler’s method on a second-order equation, set up three columns in Lists & Spreadsheet: t, x and y=x˙. Row 2 formulas, for example =a1+0.1, =b1+0.1·c1 and =c1+0.1·(−4·b1−0.5·c1), then fill down. Find the eigenvalues by solving λ2+aλ+b=0 with menu → Algebra → Polynomial Tools → Find Roots (complex mode on).

3Explore it

The graph shows x(t) for a mass on a spring, ẍ + aẋ + bx = 0, starting at x = 1 at rest. Change the damping a and the stiffness b. Watch the motion change from undamped to damped to overdamped as a increases.

4Common mistakes & exam tips

Common mistakes

  • Forgetting that x˙=y is one of the two equations.
  • Updating x and then using the new x to update y in the same step.
  • Writing the matrix as (01ba): the signs come from moving the terms across.
  • Calling complex eigenvalues with negative real part "undamped".
  • Losing track of which column is x and which is x˙ in a table.

Exam tips

  • Always write the two first-order equations explicitly before any calculation.
  • Set out Euler as a table with columns t, x, y.
  • Link eigenvalues to the physics in words: "the spring oscillates with decreasing amplitude".
  • For an undamped oscillation x¨+ω2x=0, the period is 2πω.

5Practice

Fluency questions build the basics. Problem-solving questions make you think about which method to use.

FluencyP1
Write x¨+5x˙+6x=0 as a system in matrix form.
(x˙y˙)=(01−6−5)(xy)
FluencyP2
Find the eigenvalues for the previous system and describe the motion.
−2, −3: overdamped, no oscillation.
FluencyP3
Find the period of x¨+16x=0.
2π4=π2≈1.57
FluencyP4
For x¨=−x, x(0)=0, x˙(0)=1, use Euler with h=0.5 to find x(1).
x:0→0.5→1; y:1→1→0.75. x(1)≈1
Problem solvingP5
For which values of a>0 does x¨+ax˙+9x=0 oscillate?
Complex eigenvalues when a2<36: 0<a<6.
Problem solvingP6
Explain why Euler’s method in the previous Fluency question overestimates x(1)=sin1=0.841.
The step is large; each step follows the tangent, which overshoots the bending curve.

6Exam-style questions

Original questions in the style of the IB Maths AI HL exam, with full markschemes. Your GDC is allowed throughout: use it, but write down what you entered and what it gave you. Give yourself about 1 minute per mark.

Question 1Paper 1[7 marks]

The displacement, x cm, of a mass on a spring at time t seconds satisfies x¨+4x˙+13x=0. When t=0, x=2 and x˙=0.

  • (a)Write the equation as a system of two first-order differential equations.[2]
  • (b)Use Euler’s method with a step length of 0.05 to find an approximate value of x when t=0.1.[3]
  • (c)Find the eigenvalues of the system, and describe the motion of the mass.[2]
(a)
x˙=yA1
y˙=−13x−4yA1
(b)
x1=2, y1=−1.3(M1)(A1)
x2=1.94 (1.935)A1
(c)
−2±3iA1
damped oscillation: it oscillates with decreasing amplitudeR1
Question 2Paper 2[8 marks]

A shock absorber is modelled by x¨+kx˙+16x=0, where k>0 depends on the fluid used.

  • (a)For k=10, find the eigenvalues of the system and describe the motion.[3]
  • (b)For k=4, find the eigenvalues of the system and describe the motion.[3]
  • (c)Find the value of k at which the eigenvalues are equal.[2]
(a)
λ2+10λ+16=0(M1)
−2, −8A1
returns to equilibrium without oscillatingR1
(b)
−2±3.46iA1A1
oscillates with decreasing amplitudeR1
(c)
k2−64=0(M1)
k=8A1
Question 3Paper 1[5 marks]

A frictionless oscillator satisfies x¨+9x=0.

  • (a)Write the equation as a coupled system in matrix form, and find the eigenvalues.[3]
  • (b)Describe the phase portrait and what it means for the motion.[2]
(a)
(x˙y˙)=(01−90)(xy)A1
λ2+9=0(M1)
±3iA1
(b)
closed ellipses around the originA1
the motion repeats for ever with constant amplitudeR1

7Check yourself

Six quick questions, marked instantly. Aim for 6/6 before moving on. Fractions like 3/2 are accepted.

8Past-paper practice

Once you are scoring well above, try these real IB Maths AI HL questions on this topic. Your school or teacher will have the papers.

PaperQuestionFocusDifficulty
May 2023 · TZ1 · Paper 1Q13Euler’s method for a spring equation★★☆
May 2025 · TZ1 · Paper 1Q15A mass on a spring: a second-order model★★☆
Nov 2024 · Paper 2Q7A motorbike shock absorber: eigenvalues and motion★★★
Nov 2021 · Paper 2Q6A car shock absorber modelled by a second-order equation★★★
Spotted a mistake on this page?Tell me and I'll fix it. The button opens an email with this page already named, or write to jamesashtonmaths@gmail.com.
Report a mistake