Second-order differential equations
Springs, shock absorbers and pendulums obey equations involving the second derivative, . The trick is to introduce the velocity 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.
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 as the coupled system , AHL 5.18
- Use Euler’s method to approximate solutions of second-order equationsAHL 5.18
- Analyse 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.
A spring pulls back harder the further it is stretched (), and friction or a damper resists the motion (). Newton’s second law then gives . Track position and velocity together, and the motion becomes a path in the plane: exactly the phase portraits from the previous page.
2.1 From one equation to a system
For this gives , with characteristic equation .
2.2 Euler’s method for second-order equations
2.3 What the eigenvalues mean physically
| Eigenvalues of | Motion | Phase portrait |
|---|---|---|
| purely imaginary () | oscillates for ever with constant amplitude | closed ellipses |
| complex, negative real part | oscillates with decreasing amplitude (damped) | spiral into the origin |
| real, both negative | returns to equilibrium without oscillating (overdamped) | stable node |
For Euler’s method on a second-order equation, set up three columns in Lists & Spreadsheet: , and . 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 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 is one of the two equations.
- Updating and then using the new to update in the same step.
- Writing the matrix as : the signs come from moving the terms across.
- Calling complex eigenvalues with negative real part "undamped".
- Losing track of which column is and which is in a table.
Exam tips
- Always write the two first-order equations explicitly before any calculation.
- Set out Euler as a table with columns , , .
- Link eigenvalues to the physics in words: "the spring oscillates with decreasing amplitude".
- For an undamped oscillation , the period is .
5Practice
Fluency questions build the basics. Problem-solving questions make you think about which method to use.
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.
The displacement, cm, of a mass on a spring at time seconds satisfies . When , and .
- (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 when .[3]
- (c)Find the eigenvalues of the system, and describe the motion of the mass.[2]
| (a) | |
| A1 | |
| A1 | |
| (b) | |
| , | (M1)(A1) |
| (1.935) | A1 |
| (c) | |
| A1 | |
| damped oscillation: it oscillates with decreasing amplitude | R1 |
A shock absorber is modelled by , where depends on the fluid used.
- (a)For , find the eigenvalues of the system and describe the motion.[3]
- (b)For , find the eigenvalues of the system and describe the motion.[3]
- (c)Find the value of at which the eigenvalues are equal.[2]
| (a) | |
| (M1) | |
| A1 | |
| returns to equilibrium without oscillating | R1 |
| (b) | |
| A1A1 | |
| oscillates with decreasing amplitude | R1 |
| (c) | |
| (M1) | |
| A1 | |
A frictionless oscillator satisfies .
- (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) | |
| A1 | |
| (M1) | |
| A1 | |
| (b) | |
| closed ellipses around the origin | A1 |
| the motion repeats for ever with constant amplitude | R1 |
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.
| Paper | Question | Focus | Difficulty |
|---|---|---|---|
| May 2023 · TZ1 · Paper 1 | Q13 | Euler’s method for a spring equation | ★★☆ |
| May 2025 · TZ1 · Paper 1 | Q15 | A mass on a spring: a second-order model | ★★☆ |
| Nov 2024 · Paper 2 | Q7 | A motorbike shock absorber: eigenvalues and motion | ★★★ |
| Nov 2021 · Paper 2 | Q6 | A car shock absorber modelled by a second-order equation | ★★★ |
