IB MATHEMATICS: APPLICATIONS AND INTERPRETATION • CALCULUS

Differential Equations — AHL 5.9 Differential equations (separable) and modelling (HL)

Learn to solve separable differential equations and use them to model real-world phenomena like population growth and cooling.

Historical Context & Motivation

The story of differential equations begins with one of mathematics' most fundamental questions: if we know how something is changing right now, can we predict what it will look like in the future? This question lies at the heart of modelling real-world situations, from predicting the spread of a disease to forecasting how quickly a cup of coffee cools down. The language of differential equations gives us a precise, algebraic way to capture rates of change and then work backwards to find the function that describes the system.

A differential equation is simply an equation that involves a derivative — a rate of change. When Newton and Leibniz independently developed calculus in the late 17th century, they immediately realised that many physical laws could be expressed as relationships involving derivatives. Over the following centuries, mathematicians refined techniques for solving these equations, giving scientists powerful tools for prediction and design.

1687
Newton's Principia
Isaac Newton published laws of motion expressed as differential equations, linking force to the rate of change of momentum and laying the foundation for mathematical physics.
1690s
Leibniz & the Bernoullis
Gottfried Leibniz and the Bernoulli family developed systematic methods for solving differential equations, including the technique of separation of variables still used today.
1798
Malthus & Population Growth
Thomas Malthus proposed that population grows proportionally to its current size — a relationship naturally expressed as the separable differential equation dy/dx = ky.
1822
Fourier's Heat Equation
Joseph Fourier modelled heat conduction using differential equations, demonstrating their power in engineering and inspiring Newton's Law of Cooling models.
Today
Modern Applications
Separable differential equations remain essential in IB Mathematics, epidemiology (SIR models), finance (compound interest), chemistry (radioactive decay), and environmental science.

The central question this topic addresses is: given a rule that tells us how fast something changes — in other words, a relationship involving dy/dx — how do we find the actual function y(x) that satisfies that rule? And once we find it, how do we use an initial condition to pin down the one specific solution that fits our real-world situation?

Core Principles & Definitions

Before diving into solution techniques, you need a solid grasp of the key ideas that underpin separable differential equations. A differential equation is any equation that contains one or more derivatives of an unknown function. In this course, we focus on first-order ordinary differential equations (ODEs), meaning they involve only the first derivative dy/dx and no higher derivatives. The word 'ordinary' simply means the function depends on a single independent variable.

1

Separable Form

A differential equation is separable if it can be written as dy/dx = f(x) × g(y), so the x-parts and y-parts can be placed on opposite sides of the equation.
2

General Solution

The general solution is a family of curves containing an arbitrary constant C. It represents all possible solutions to the differential equation.
3

Particular Solution

When we apply an initial condition (a known point such as y(0) = 5), we find the specific value of C, producing the particular solution.
4

Separation of Variables

The technique of rearranging dy/dx = f(x)g(y) into (1/g(y)) dy = f(x) dx, then integrating both sides. This is the core method of AHL 5.9.
5

Modelling

Many real-world processes — growth, decay, cooling — can be described by separable DEs. Translating a word problem into a differential equation is called mathematical modelling.
KEY TAKEAWAY
Think of a separable differential equation like a recipe that tells you how fast a pot of water is heating up at every moment. The equation dy/dx = f(x)·g(y) is the recipe — it describes the rate. Solving it by separation of variables is like running the recipe in reverse: you work backwards from the rate to find the actual temperature at any time. The initial condition is like knowing the starting temperature of the water, which pins down exactly one heating curve out of infinitely many possible ones.

Visual Explanation — Slope Fields & Solution Curves

One of the most powerful ways to understand a differential equation before solving it algebraically is to look at its slope field (also called a direction field). At every point (x, y) in the plane, the differential equation dy/dx = f(x, y) tells us the slope of the solution curve passing through that point. By drawing small line segments with those slopes at a grid of points, we get a visual map that shows how solutions flow across the plane.

The short line segments show the slope dy/dx = 0.5y at each grid point. The cyan curve passes through y(0) = 1, the violet curve through y(0) = 3, and the pink curve through y(0) = −1. Notice how the solution curves are always tangent to the nearby slope segments.

In the diagram above, the slope field acts like a map of wind currents: if you place a leaf (a solution) at any starting point, it will drift along following the arrows. Along the x-axis where y = 0, the slopes are all zero — flat horizontal segments — because dy/dx = 0.5 × 0 = 0. Above the axis, slopes are positive and the curves sweep upward (exponential growth). Below the axis, slopes are negative and curves sweep downward. The initial condition is what determines which particular curve you follow out of the entire family of solutions.

Mathematical Framework — Separation of Variables

The method of separation of variables works whenever dy/dx can be written as a product of a function of x alone and a function of y alone. The idea is to treat dy/dx as a ratio of differentials, move all y-terms to one side with dy, move all x-terms to the other side with dx, and then integrate both sides independently.

SEPARABLE FORM
dy/dx = f(x) × g(y)
The right-hand side must factor into a function of x only multiplied by a function of y only.
STEP 1 — SEPARATE
(1 / g(y)) dy = f(x) dx
Divide both sides by g(y) and multiply both sides by dx. All y-terms are now on the left and all x-terms are on the right.
STEP 2 — INTEGRATE BOTH SIDES
∫ (1 / g(y)) dy = ∫ f(x) dx + C
Integrate the left side with respect to y and the right side with respect to x. Include the constant of integration C on one side only — this produces the general solution.
STEP 3 — APPLY INITIAL CONDITION
Substitute (x₀, y₀) to find C → particular solution
If the problem gives you y(x₀) = y₀, substitute these values into the general solution to determine the value of C, giving the unique particular solution.
⚠️ Common Pitfall
Students often forget to include the constant of integration, or they place +C on both sides (which is redundant — one C is enough). Also be careful when dividing by g(y): if g(y) = 0 is possible, you may lose a special equilibrium solution (a constant solution where dy/dx = 0 for all x).

Modelling with Separable Differential Equations

The IB syllabus emphasises the use of separable differential equations to model real-world phenomena. Three classic models appear frequently: exponential growth/decay, Newton's Law of Cooling, and logistic growth. Each arises from a simple verbal statement about rates that translates directly into a separable DE.

Three common real-world models expressed as separable DEs. The exponential model shows unlimited growth or decay. Newton's Cooling shows temperature approaching the surroundings asymptotically. The logistic model starts exponentially but levels off at the carrying capacity L.
Summary of common separable DE models in IB Mathematics AI HL
ModelVerbal StatementDifferential EquationTypical Context
Exponential growthRate of increase is proportional to current amountdy/dt = ky, k > 0Bacterial growth, compound interest
Exponential decayRate of decrease is proportional to current amountdy/dt = −ky, k > 0Radioactive decay, depreciation
Newton's CoolingRate of temp. change is proportional to difference from surroundingsdT/dt = −k(T − Tₛ)Forensic science, food cooling
Logistic growthRate depends on both current size and remaining capacitydy/dt = ky(L − y)/LPopulation with limited resources, rumour spread

Worked Example — Solving a Separable DE with an Initial Condition

Let's work through a complete example of the kind you'll see on an IB exam. Suppose a population of bacteria P (in thousands) grows at a rate proportional to its current size. The population satisfies dP/dt = 0.3P, where t is measured in hours. At time t = 0 the population is 2 thousand. Find the particular solution and determine the population after 5 hours.

Exponential Growth — Bacteria Population
1
Step 1 — Identify the separable formThe equation dP/dt = 0.3P is already in the form dy/dt = f(t)·g(P), where f(t) = 0.3 (a constant) and g(P) = P. This confirms it is separable.
2
Step 2 — Separate the variablesDivide both sides by P and multiply both sides by dt to get all P-terms on the left and all t-terms on the right:
(1/P) dP = 0.3 dt
3
Step 3 — Integrate both sidesIntegrate: ∫ (1/P) dP = ∫ 0.3 dt. The left side gives ln|P| and the right side gives 0.3t + C₁.
ln|P| = 0.3t + C₁
4
Step 4 — Solve for P explicitlyExponentiate both sides: |P| = e^(0.3t + C₁) = e^(C₁) × e^(0.3t). Since P represents a population and is positive, we drop the absolute value. Let A = e^(C₁), which is a positive constant.
P = Ae^(0.3t) — this is the general solution
5
Step 5 — Apply the initial condition P(0) = 2Substitute t = 0 and P = 2 into the general solution: 2 = Ae^(0) = A × 1 = A. So A = 2.
P(t) = 2e^(0.3t) — particular solution
6
Step 6 — Find the population at t = 5Substitute t = 5: P(5) = 2e^(0.3 × 5) = 2e^(1.5) ≈ 2 × 4.4817 ≈ 8.96 thousand bacteria.
P(5) ≈ 8960 bacteria
💡 Exam Tip
Always state your general solution before applying the initial condition — IB mark schemes typically award a mark for the general solution separately. Also make sure you express the answer in context (e.g. 'approximately 8960 bacteria') rather than just writing a number.

Strengths & Limitations of Separable Models

Separable differential equations are incredibly useful, but like all mathematical models, they have strengths and limitations. Understanding these helps you evaluate whether a particular model is appropriate for a given real-world situation — a skill the IB values highly in Paper 3 and exploration work.

Comparison of strengths and limitations of separable DE models
StrengthsLimitations
Can be solved exactly using algebra and integration — no numerical approximation neededOnly works when dy/dx can be factored as f(x)·g(y); many DEs are not separable
Produces explicit formulas that allow prediction at any future timeThe integrals on each side may not have elementary antiderivatives
Models (exponential, logistic, cooling) capture many real-world phenomena accurately over certain intervalsExponential growth models predict infinite growth, which is unrealistic for finite resources
Solutions can be easily graphed and analysed for long-term behaviour (e.g. limits as t → ∞)Models assume continuous change; many real processes (e.g. births) happen in discrete steps
KEY TAKEAWAY
Think of a separable DE model like a weather forecast. A short-term forecast (1–2 days) tends to be accurate because the model captures the dominant forces at play. But extend the forecast to two weeks and it becomes unreliable because ignored factors — tiny disturbances, changing conditions — accumulate. Similarly, exponential and logistic models work well over appropriate timescales but can break down when underlying assumptions (unlimited resources, constant rate constant k) are violated.

Connections to Advanced Theory

The separable equations you're learning in AHL 5.9 form the gateway to a much larger world of differential equations. In university mathematics, physics, and engineering, you'll encounter equations that cannot be separated and require more powerful techniques. Here's a brief look at how what you're learning now connects to what comes next.

How AHL 5.9 concepts connect to university-level differential equations
Concept in AHL 5.9Advanced Extension
Separation of variables (first-order)Integrating factors, exact equations, and substitution methods for non-separable first-order DEs
Single first-order ODESystems of coupled ODEs (e.g. predator-prey Lotka–Volterra models) and second-order ODEs (e.g. simple harmonic motion)
Exact analytical solutionsNumerical methods (Euler's method, Runge–Kutta) for equations with no closed-form solution
Slope fields (visual)Phase portraits and stability analysis for equilibria in dynamical systems
Logistic growth (single population)SIR epidemiological models, competing species, and ecological network models

The IB also links separable DEs to Euler's method (AHL 5.18), where you approximate solutions numerically when exact integration is impossible. If you continue into science or engineering at university, differential equations will become one of your most-used tools — and the separation of variables technique you master here will remain a reliable first strategy you always check before resorting to more advanced methods.

Practice Problems

PROBLEM 1CONCEPTUAL
Explain in your own words what it means for a differential equation to be 'separable.' Then determine whether the equation dy/dx = x²y + x² is separable, justifying your answer.
PROBLEM 2BASIC CALCULATION
Solve the differential equation dy/dx = 3x²/y, given that y(0) = 4. Express y explicitly as a function of x.
PROBLEM 3INTERMEDIATE
A substance decays at a rate proportional to the amount remaining. Initially there are 500 grams. After 3 hours, 400 grams remain. Write the differential equation, solve it for the amount A(t), and find how long it takes for only 100 grams to remain.
PROBLEM 4APPLIED
A cup of coffee at 90°C is placed in a room at a constant temperature of 20°C. After 10 minutes the coffee has cooled to 70°C. Using Newton's Law of Cooling (dT/dt = −k(T − Tₛ)), find the temperature function T(t) and determine how long it takes for the coffee to cool to 40°C.
PROBLEM 5CRITICAL THINKING
The population of fish in a lake satisfies the logistic equation dP/dt = 0.4P(1 − P/1000), where P is the population in hundreds and t is in years. (a) Identify the carrying capacity. (b) Without solving, explain what happens to dP/dt as P approaches the carrying capacity and as P approaches 0. (c) If P(0) = 100, would you expect the population to grow quickly at first and then slow down, or vice versa? Explain your reasoning using the structure of the DE.

Lesson Summary

A separable differential equation can be written in the form dy/dx = f(x) × g(y), allowing you to isolate all y-terms on one side and x-terms on the other. The solution technique — separation of variables — involves rewriting as (1/g(y)) dy = f(x) dx, then integrating both sides independently to obtain the general solution (a family of curves with an arbitrary constant C). Substituting an initial condition determines C and yields the unique particular solution.

Key models in AHL 5.9 include exponential growth and decay (dy/dt = ky, solution y = Ae^(kt)), Newton's Law of Cooling (dT/dt = −k(T − Tₛ), solution T = Tₛ + (T₀ − Tₛ)e^(−kt)), and logistic growth (dy/dt = ky(1 − y/L), yielding an S-shaped curve approaching carrying capacity L). A slope field provides a visual representation of the DE by plotting short segments showing the slope at each point, and solution curves follow these segments tangentially. Mastering the translation from a verbal description to a DE, solving by separation, and interpreting the result in context is the core skill assessed in IB examinations.

Varsity Tutors • IB Mathematics: Applications and Interpretation • Differential Equations — AHL 5.9 Differential equations (separable) and modelling (HL)