A differential equation links a function with its derivative. Instead of being told what y is, you are told how fast y changes, and you must work back to y itself. In IB Mathematics: Analysis and Approaches HL, this is the topic where calculus becomes modelling: cooling drinks, growing populations, draining tanks.
The good news is that AA HL only asks for first-order equations, and there are just four methods to learn. The challenge is recognising which one a question needs and then carrying out the integration and algebra cleanly. This guide covers all four, with a fully worked example for each, for students on the current course (first assessment 2021, final assessment November 2028). For support across the whole course, see our IB Maths AA HL tutoring.
The four methods at a glance
| Form of the equation | Method | Gives |
|---|---|---|
| dy/dx = f(x, y), any form | Euler's method | An approximate numerical value |
| dy/dx = g(x)h(y) | Separate the variables | An exact solution |
| dy/dx = f(y/x) | Substitute y = vx (homogeneous) | An exact solution |
| dy/dx + P(x)y = Q(x) | Integrating factor | An exact solution |
Before choosing a method, rearrange the equation and ask three questions in order:
- Can I separate it? Can the right-hand side be written as (function of x) × (function of y)? If yes, separate.
- Is it homogeneous? Can the right-hand side be written using only y/x? A quick test: replace x by λx and y by λy; if the λs all cancel, it is homogeneous.
- Is it linear in y? Can it be written as dy/dx + P(x)y = Q(x)? If yes, use the integrating factor.
If the question asks for an approximation, or none of the exact methods fits, it will be Euler's method.
A word on slope fields
A slope field (direction field) draws a short line segment at many points (x, y), each with gradient dy/dx at that point. Solution curves follow the segments. Even when you can solve an equation exactly, a slope field helps you check your answer: does your solution curve rise and fall where the segments say it should? It also shows how different starting values lead to different particular solutions.
Worked example 1: Euler's method
*The function y satisfies dy/dx = x + y with y = 1 when x = 0. Use Euler's method with a step length of 0.1 to estimate y when x = 0.3.*
Euler's method steps forward along the tangent:
x(n+1) = x(n) + h, y(n+1) = y(n) + h × f(x(n), y(n))
with h = 0.1 and f(x, y) = x + y.
| n | x(n) | y(n) | f = x + y | y(n+1) = y(n) + 0.1f |
|---|---|---|---|---|
| 0 | 0 | 1 | 1 | 1.1 |
| 1 | 0.1 | 1.1 | 1.2 | 1.22 |
| 2 | 0.2 | 1.22 | 1.42 | 1.362 |
So y(0.3) ≈ 1.36 (3 s.f.).
This equation also has an exact solution (it is linear, so the integrating factor works): y = 2e^x − x − 1, which gives y(0.3) = 1.3997… ≈ 1.40. Euler's method underestimates here. The second derivative is d²y/dx² = 1 + dy/dx = 1 + x + y, which is positive, so the curve is concave up and each tangent step lands below it.
Halving the step length to 0.05 (six steps) gives 1.380, roughly halving the error. Smaller steps mean better accuracy but more work, which is why this method is usually run on a GDC in Paper 2.
Note on the course change: in the new AA course (first teaching August 2027, first exams May 2029), Euler's method leaves AA HL. Students sitting exams up to November 2028 still need it. Our post on the 2027–2029 IB maths syllabus changes lists the other changes.
Worked example 2: separating variables (a cooling model)
*A cup of tea at 90°C is left in a room at 22°C. Its temperature T°C after t minutes satisfies dT/dt = −k(T − 22), where k is a positive constant. After 5 minutes the tea is at 70°C. Find k, and find how long it takes for the tea to cool to 40°C.*
Separate:
∫ 1/(T − 22) dT = ∫ −k dt
ln|T − 22| = −kt + c
Since T > 22 throughout, T − 22 = Ae^(−kt).
Use T(0) = 90: A = 68, so T = 22 + 68e^(−kt).
Use T(5) = 70: 48 = 68e^(−5k), so e^(−5k) = 12/17 and
k = (1/5) ln(17/12) = 0.0697 (3 s.f.)
Solve T = 40: 18 = 68e^(−kt), so e^(−kt) = 9/34 and
t = ln(34/9)/k = 5 ln(34/9)/ln(17/12) = 19.1 minutes (3 s.f.)
Keep k exact (or at full calculator accuracy) when you find t. Using the rounded k = 0.0697 can shift the final answer.
Worked example 3: a homogeneous equation (y = vx)
*Solve dy/dx = (x² + y²)/(xy) for x > 0, given that y = 2 when x = 1.*
Check it is homogeneous. Divide top and bottom by x²: dy/dx = (1 + (y/x)²)/(y/x). It depends only on y/x.
Substitute y = vx, so dy/dx = v + x dv/dx:
v + x dv/dx = (1 + v²)/v = 1/v + v
x dv/dx = 1/v
Now separate: ∫ v dv = ∫ 1/x dx
v²/2 = ln x + c
Replace v with y/x: y²/(2x²) = ln x + c, so y² = 2x² ln x + 2cx².
Use y(1) = 2: 4 = 0 + 2c, so 2c = 4.
y² = x²(2 ln x + 4), and since y > 0 at x = 1, y = x√(2 ln x + 4).
The solution exists only while 2 ln x + 4 > 0, that is x > e^(−2). A good answer states this.
The key move is that y = vx turns a homogeneous equation into a separable one. Students who forget the product rule (writing dy/dx = dv/dx instead of v + x dv/dx) cannot recover.
Worked example 4: the integrating factor
*Solve dy/dx + (2/x)y = 3x for x > 0, given that y = 2 when x = 1.*
It is linear with P(x) = 2/x and Q(x) = 3x.
Integrating factor: I(x) = e^(∫P dx) = e^(2 ln x) = x².
Multiply through: x² dy/dx + 2xy = 3x³.
The left-hand side is exactly the derivative of x²y (product rule), so
d/dx (x²y) = 3x³
x²y = (3/4)x⁴ + c
Use y(1) = 2: 2 = 3/4 + c, so c = 5/4.
y = (3x⁴ + 5)/(4x²), or y = 3x²/4 + 5/(4x²).
Check by substituting back: dy/dx = 3x/2 − 5/(2x³), and (2/x)y = 3x/2 + 5/(2x³). Adding gives 3x. Correct.
The integrals inside these methods (logs, substitution, partial fractions, by parts) are the same ones covered in our guide to AA HL integration techniques.
Modelling: setting up the equation
Many questions start with words, not symbols. Translate them carefully:
- "The rate of change of P is proportional to P" → dP/dt = kP.
- "The rate of decrease of V is proportional to √V" → dV/dt = −k√V (the minus sign shows decrease).
- "Grows at a rate proportional to the difference between N and 500" → dN/dt = k(500 − N).
Then state what the constant means, solve, use the given conditions to find the constants, and finally interpret the answer in context, with units.
Common mistakes
- Forgetting the constant of integration, or adding it only on one side after separating and then losing it when you exponentiate. Write ln|y| = … + c, then y = Ae^(…).
- Applying conditions too late. Find the constants before rearranging into a complicated final form; it keeps the algebra simple.
- Wrong integrating factor. The equation must be in the form dy/dx + P(x)y = Q(x) first. If it starts as x dy/dx + 2y = 3x², divide by x before finding P.
- Dropping the product rule in y = vx.
- Euler table errors, especially working out f with the new x but the old y, or rounding each step. Keep full accuracy in the table and round only the final answer.
- Ignoring domain. Logs and square roots in the solution only make sense for some x; say so.
Exam technique: Paper 1, Paper 2 and Paper 3
AA HL has three papers: Paper 1 (120 minutes, no calculator, 30%), Paper 2 (120 minutes, calculator required, 30%) and Paper 3 (60 minutes, calculator required, 20%, two compulsory extended problem-solving questions).
- Paper 1: exact methods need clean algebra and logs without a calculator. Leave answers exact, such as ln(17/12), unless asked otherwise.
- Paper 2: Euler's method is well suited to the GDC. Set up a recursive table or sequence on the calculator, but still write the formula and the first step or two by hand so the method is visible. Our GDC skills guide shows how to make the calculator do the repetitive work.
- Paper 3: an extended question may combine a differential equation with series, graphs or an interpretation in context. Read the whole question first; early parts usually set up the later ones.
- Always check a solution by differentiating it and substituting back, as in example 4. It takes a minute and catches most errors.
How differential equations fit with the rest of HL calculus
Differential equations rely on almost every calculus skill: standard integrals, substitution, partial fractions and by parts, plus logs and exponentials. They also connect to series: a Maclaurin series can be built directly from a differential equation by differentiating it repeatedly. For the full map of SL and HL calculus, read our AA calculus guide. AI HL students study differential equations differently (coupled systems, phase portraits), covered in our AI HL differential equations guide.
How Maths Bodhi helps
Our tutors teach the "which method?" decision first, then practise each method until the set-up is routine, so exam time goes on thinking rather than mechanics. We repair the integration and log skills that usually cause the errors, and build GDC routines for Euler's method. All practice uses original exam-style questions, marked to show where method and accuracy marks sit. Find out more about IB calculus tutoring.
Home tuition is available in Gurgaon (Gurugram). Students elsewhere in India and abroad learn with us online. You can book a free demo class.
Frequently asked questions
- Which differential equation methods are in IB maths AA HL?
- AA HL covers first-order equations only: Euler's method for numerical approximation, separating variables, homogeneous equations using y = vx, and linear equations using an integrating factor.
- Is Euler's method still in IB maths AA HL?
- Yes for students sitting exams up to November 2028, but it leaves AA HL in the new course that is first examined in May 2029.
- How do I know whether a differential equation is homogeneous?
- Check whether the right-hand side can be written using only y/x; replacing x with λx and y with λy should make every λ cancel.
- What is the integrating factor for dy/dx + P(x)y = Q(x)?
- It is e^(∫P(x) dx); multiplying the equation by it turns the left-hand side into the derivative of (integrating factor × y).
- Does Euler's method overestimate or underestimate?
- It depends on concavity: if the solution curve is concave up, the tangent steps lie below it and Euler's method underestimates; if concave down, it overestimates.
- Are differential equations in IB maths AA SL?
- No. Differential equations are part of the additional higher level content of AA HL, so AA SL students do not study them.
