Differential equations
A differential equation describes how something changes: "the rate of growth is proportional to the size", "a drink cools at a rate proportional to how much hotter it is than the room". Solving it gives the quantity itself. On this page you set up models from words and solve them by separating the variables.
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.
- Set up a differential equation from a description in contextAHL 5.14
- Solve by separating the variablesAHL 5.14
- Find the general solution, then a particular solution from a conditionAHL 5.14
- Recognise as exponential growth or decayAHL 5.14
- Use the solution to answer questions in context, including the long-term behaviourAHL 5.14
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 rate of change of is proportional to " translates directly into . To solve it, get everything with on one side and everything with on the other, then integrate both sides. That is separation of variables.
2.1 Setting up models
| In words | Differential equation |
|---|---|
| The rate of growth of is proportional to | |
| The temperature falls at a rate proportional to the difference between and room temperature, 20 °C | |
| Water leaks at a rate proportional to the square root of the volume | |
| The rate of change of is inversely proportional to |
Use and put in a minus sign for a decrease. "Proportional" introduces a constant; you usually find it from data later.
2.2 Separating the variables
One constant is enough. The general solution contains ; a condition such as gives the particular solution.
2.3 Growth, decay and cooling
Paper 1 asks you to separate and integrate by hand. Then the TI-Nspire helps with the constants: solve with nSolve or by logs, and use solve or a graph intersection to find when the solution reaches a value. Store (for example as k) so later answers use the full accuracy.
3Explore it
Solutions of dT/dt = −k(T − 20) for different starting temperatures. Change k and the starting temperature: every solution curve approaches the room temperature, 20 °C, and a larger k means faster cooling.
4Common mistakes & exam tips
Common mistakes
- Integrating as . The must be moved to the left first.
- Adding a constant on both sides and not combining them.
- Writing . It is .
- Forgetting the minus sign for a decreasing quantity when setting up the model.
- Rounding heavily before using it again.
Exam tips
- "General solution" means keep the constant; "particular solution" means find it.
- Show the separated integrals for the method mark.
- Make the subject at the end unless the question allows an implicit answer.
- Interpret long-term behaviour: what happens to the solution as ?
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.
Consider the differential equation , where , and when .
- (a)Solve the differential equation, giving in terms of .[5]
- (b)Find the value of when .[1]
| (a) | |
| M1 | |
| A1A1 | |
| M1 | |
| A1 | |
| (b) | |
| A1 | |
The number of bacteria, , in a culture grows at a rate proportional to . Initially there are 500 bacteria; after 2 hours there are 800.
- (a)Write down a differential equation for .[1]
- (b)Solve the equation to find in terms of .[3]
- (c)Find the time at which the number of bacteria reaches 5000.[2]
| (a) | |
| A1 | |
| (b) | |
| , | (M1)(A1) |
| A1 | |
| (c) | |
| (M1) | |
| hours | A1 |
A cup of coffee at 85 °C is left in a room at 21 °C. Its temperature, °C, after minutes decreases at a rate proportional to the difference between and the room temperature.
- (a)Write down a differential equation for .[1]
- (b)Show that the general solution is , and find .[4]
- (c)After 5 minutes the coffee is at 70 °C. Find .[2]
- (d)Find the time at which the coffee reaches 40 °C.[1]
- (e)Describe the temperature of the coffee in the long term.[1]
| (a) | |
| A1 | |
| (b) | |
| M1 | |
| A1 | |
| AG | |
| A1A1 | |
| Award A1 for substituting , , A1 for 64. | |
| (c) | |
| (M1) | |
| A1 | |
| (d) | |
| minutes | A1 |
| (e) | |
| it approaches 21 °C (room temperature) | 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 2025 · TZ3 · Paper 1 | Q13 | Growth of a fungus on a dish: a differential equation model | ★★☆ |
| May 2025 · TZ2 · Paper 1 | Q12 | Acceleration proportional to : set up and solve | ★★★ |
| Nov 2025 · Paper 3 | Q2 | Choosing the best model for a population of wolves | ★★★ |
