IB MATHEMATICS: ANALYSIS AND APPROACHES • CALCULUS

Differential Equations — AHL 5.11 Differential equations (separable) and modeling (HL intro)

Learn how separable differential equations model real-world growth, decay, and change over time.

Historical Context & Motivation

Long before calculators and computers, scientists and mathematicians struggled with a fundamental question: if you know how fast something is changing, can you figure out what happens over time? This question sits at the heart of differential equations — equations that relate a function to its own derivative. From the motion of planets to the spread of diseases, differential equations have been the language scientists use to describe a world in constant flux.

The story begins in the late 1600s, when Isaac Newton and Gottfried Wilhelm Leibniz independently developed calculus. Newton used what he called fluxions to describe how quantities change over time — essentially the first differential equations. From that point forward, mathematicians refined the tools needed to solve these equations, leading to breakthroughs in physics, engineering, biology, and economics.

1687
Newton's Principia
Isaac Newton publishes Principia Mathematica, using differential equations (his 'fluxions') to describe the motion of planets under gravity.
1691
Leibniz's Separation Method
Leibniz introduces the technique of separating variables, laying the groundwork for solving what we now call separable differential equations.
1748
Euler's Contributions
Leonhard Euler formalizes many solution methods for differential equations and introduces the exponential function ex as a central tool in their solutions.
1838
Verhulst's Logistic Model
Pierre-François Verhulst uses a separable differential equation to model population growth with a carrying capacity — the logistic equation, still used in IB modelling problems today.
1900s–Now
Modern Modelling
Differential equations become the backbone of physics, epidemiology, climate science, and finance. The IB curriculum includes them to show how calculus applies to real-world change.

The central question that separable differential equations answer is this: given a rule that tells you how quickly a quantity changes (its rate), can you work backwards to find a formula for the quantity itself? In this lesson you will learn exactly how to do that.

Core Principles & Definitions

Before diving into the solution technique, you need to understand what differential equations are and why some of them are called separable. These ideas build directly on your knowledge of derivatives and integration from earlier in the course.

1

Differential Equation (DE)

An equation that contains a function and one or more of its derivatives. For example, dy/dx = 3x² is a DE because it relates the derivative dy/dx to the variable x.
2

Separable DE

A first-order DE that can be rewritten so that all terms involving y are on one side and all terms involving x are on the other: g(y) dy = f(x) dx. This 'separation' is the key step.
3

General Solution

The family of all solutions to a DE, which includes an arbitrary constant C. It represents infinitely many curves that all satisfy the equation.
4

Particular Solution

A single, specific solution obtained by using an initial condition (a known point) to determine the value of C. The IB often gives you y(0) = some value.
5

Initial Condition

A known value of y at a specific x, such as y(0) = 5. It 'pins down' one curve out of the general solution family and is essential for modelling problems.
KEY TAKEAWAY
Think of a separable differential equation like a recipe that tells you how fast a cake rises at every moment. The equation gives you the rate of change. Solving it (integrating both sides) tells you the actual height of the cake at any time. The initial condition is like knowing the batter started at 2 cm — it lets you predict the exact height, not just the general pattern.

Visual Explanation — Slope Fields & Solution Curves

One of the most powerful ways to understand a differential equation is through a slope field (also called a direction field). At every point (x, y) in the plane, the DE tells you the slope dy/dx. If you draw tiny line segments with those slopes, you get a visual map showing how solution curves flow. The diagram below shows the slope field for dy/dx = x/y, along with two particular solution curves.

The slope field for dy/dx = x/y. Each tiny segment shows the slope at that point. The cyan ellipse and violet ellipse are two particular solution curves (circles x² + y² = C) that follow the field. Notice how the segments are tangent to each curve everywhere.

In the diagram above, every little line segment is pointing in the direction a solution curve would travel if it passed through that point. When you actually solve the DE dy/dx = x/y by separating variables, you find that y dy = x dx, and integrating gives y²/2 = x²/2 + C, which simplifies to x² − y² = constant (after rearranging, this family of curves includes circles and hyperbolas depending on the sign). The slope field confirms this visually — the solution curves all align perfectly with the little segments.

Mathematical Framework — Separation of Variables

The technique for solving a separable DE has a clear, repeatable structure. You start with the equation, move all the y-terms to one side and all the x-terms to the other, and then integrate both sides independently. Here is the formal framework.

GENERAL SEPARABLE FORM
dy/dx = f(x) · g(y)
The right-hand side must be expressible as a product of a function of x alone and a function of y alone. This is what makes the equation separable.
STEP 1 — SEPARATE
(1/g(y)) dy = f(x) dx
Divide both sides by g(y) and multiply both sides by dx. Now y-terms are on the left and x-terms are on the right.
STEP 2 — INTEGRATE
∫ (1/g(y)) dy = ∫ f(x) dx + C
Integrate both sides. Remember to include the constant of integration C on one side (convention: the x-side). This yields the general solution.
STEP 3 — APPLY INITIAL CONDITION
Use y(x₀) = y₀ to find C
Substitute the initial condition into the general solution to determine the unique value of C. This gives the particular solution.
💡 IB Exam Tip
On IB papers, they usually tell you to solve a DE 'by separating variables.' This is your cue: separate, integrate, apply the initial condition, and (if asked) rearrange for y explicitly. Always show the separation step clearly — marks are awarded for it.

Modelling with Differential Equations

One of the most important reasons the IB includes differential equations is mathematical modelling — using equations to describe real-world phenomena. Two classic models that produce separable DEs are exponential growth/decay and Newton's law of cooling. The table below summarizes the most common models you will encounter.

Common separable DE models in the IB syllabus
ModelDifferential EquationGeneral SolutionContext
Exponential Growthdy/dx = ky (k > 0)y = AekxPopulation growth, compound interest
Exponential Decaydy/dx = −ky (k > 0)y = Ae−kxRadioactive decay, depreciation
Newton's CoolingdT/dt = −k(T − Tenv)T = Tenv + Ae−ktCooling of a drink, forensic time of death
Logistic Growthdy/dx = ky(L − y)y = L / (1 + Ce−kLx)Population with carrying capacity, spread of rumours
Comparison of three common models. Exponential growth (pink) increases without bound. Logistic growth (cyan) levels off at the carrying capacity L. Exponential decay (violet) decreases toward zero.

Notice how all three models start from a separable differential equation. The exponential models have the form dy/dx = ky, which separates to (1/y) dy = k dx. Newton's cooling separates similarly once you treat (T − Tenv) as a single variable. The logistic model is slightly more complex because g(y) = y(L − y), but it is still separable and solvable using partial fractions — a technique you may explore later in the course.

Worked Example — Solving a Separable DE

Let us solve a typical IB-style problem from start to finish. Pay close attention to the separation step and the application of the initial condition.

📝 Problem
A population of bacteria grows at a rate proportional to its size. The population is modelled by dy/dt = 0.3y, where y is the number of bacteria (in thousands) at time t hours. At t = 0, the population is 2 thousand. Find the particular solution and determine the population after 5 hours.
Solving dy/dt = 0.3y with y(0) = 2
1
Step 1 — Separate the VariablesStart with dy/dt = 0.3y. Divide both sides by y and multiply both sides by dt to get all y-terms on the left and all t-terms on the right: (1/y) dy = 0.3 dt
(1/y) dy = 0.3 dt
2
Step 2 — Integrate Both SidesIntegrate the left side with respect to y and the right side with respect to t: ∫ (1/y) dy = ∫ 0.3 dt. The left side gives ln|y| and the right side gives 0.3t + C.
ln|y| = 0.3t + C
3
Step 3 — Solve for yExponentiate both sides to remove the natural log: |y| = e0.3t + C = eC · e0.3t. Since y represents a population (positive), we drop the absolute value. Let A = eC, so y = Ae0.3t.
y = Ae0.3t (general solution)
4
Step 4 — Apply the Initial Condition y(0) = 2Substitute t = 0 and y = 2 into the general solution: 2 = Ae0 = A · 1 = A. Therefore A = 2.
y = 2e0.3t (particular solution)
5
Step 5 — Find the Population at t = 5Substitute t = 5: y = 2e0.3 × 5 = 2e1.5 ≈ 2 × 4.4817 ≈ 8.96 thousand bacteria.
y(5) ≈ 8.96 thousand

This problem illustrates the complete workflow: separate → integrate → solve for y → apply initial condition → answer the question. Every separable DE problem on your IB exam follows this same backbone, even when the functions f(x) and g(y) are more complex.

Strengths, Limitations & Common Pitfalls

Separation of variables is a powerful and elegant technique, but it does not work for every differential equation. Understanding its strengths and limitations will help you decide when to use it — and when you need a different approach.

Advantages and disadvantages of separation of variables
StrengthsLimitations
Produces exact, closed-form solutions — no approximation neededOnly works when dy/dx can be written as f(x) · g(y)
Straightforward, step-by-step procedure that is easy to learn and applyMany real-world DEs are not separable (e.g., dy/dx = x + y)
Directly applicable to important models: exponential growth/decay, Newton's coolingThe resulting integrals may be difficult or impossible to evaluate in closed form
Initial conditions are easy to apply — just substitute and solve for CDividing by g(y) may lose solutions where g(y) = 0 (e.g., y = 0 in dy/dx = ky)
⚠️ COMMON PITFALLS
Three mistakes appear frequently on IB exams. First, students forget the constant of integration C — without it, you cannot find a particular solution. Second, when dividing by g(y), check whether g(y) = 0 is itself a solution (for example, y = 0 satisfies dy/dx = ky). Third, students sometimes forget to exponentiate when solving ln|y| = ... — remember that eln|y| = |y|, not y.

Connection to Advanced Theory

Separable differential equations are your gateway to a vast area of mathematics. In university-level courses (and even in the IB Further Mathematics option), you will encounter DEs that are not separable and require entirely different techniques. The table below gives you a preview of where this topic leads.

From AHL 5.11 to more advanced DE topics
What You Learn Now (AHL 5.11)What Comes Next
First-order separable DEs: dy/dx = f(x) · g(y)First-order linear DEs solved by integrating factors
Constant-coefficient exponential models (dy/dx = ky)Second-order DEs: d²y/dx² + a·dy/dx + by = 0 (vibrations, circuits)
Slope fields as visual toolsEuler's method — numerical approximation when exact solutions are impossible
Modelling with one variable (population, temperature)Systems of DEs — modelling predator-prey, epidemics (SIR model)

Even within the HL syllabus, you may encounter Euler's method (AHL 5.18) as a numerical approach when separation of variables does not work. The concepts you build here — understanding rates of change, initial conditions, and solution families — are absolutely foundational. Master them now, and every future DE topic will feel like a natural extension.

Practice Problems

PROBLEM 1CONCEPTUAL
Explain in your own words what it means for a differential equation to be 'separable.' Give one example of a separable DE and one example of a DE that is not separable.
PROBLEM 2BASIC CALCULATION
Solve the differential equation dy/dx = 2x · y, given that y(0) = 3. Express y explicitly as a function of x.
PROBLEM 3INTERMEDIATE
Solve dy/dx = (1 + y²) · cos(x), given that y(0) = 1. Give your answer in the form y = f(x).
PROBLEM 4APPLIED
A cup of coffee at 90°C is placed in a room where the ambient temperature is 20°C. The coffee cools according to Newton's law of cooling: dT/dt = −k(T − 20). After 10 minutes the coffee is at 70°C. Find the value of k and determine how long it takes for the coffee to cool to 40°C.
PROBLEM 5CRITICAL THINKING
Consider the differential equation dy/dx = y². (a) Solve the equation with initial condition y(0) = 1. (b) Determine the domain of the solution. (c) Explain why the solution 'blows up' (goes to infinity) at a finite value of x, and discuss what this means for a real-world model using this DE.

Lesson Summary

A separable differential equation has the form dy/dx = f(x) · g(y), allowing you to place all y-terms on one side and all x-terms on the other. The solution process follows three core steps: separate the variables, integrate both sides, and apply an initial condition to find the particular solution. The general solution includes an arbitrary constant C and represents a whole family of curves, while the particular solution is the unique curve that passes through the given initial point.

Key applications include exponential growth and decay (dy/dx = ky), Newton's law of cooling (dT/dt = −k(T − Tenv)), and logistic growth (dy/dx = ky(L − y)). Slope fields provide a visual way to understand solution behaviour before solving algebraically. Always remember to check for lost solutions when dividing by g(y), and never forget the constant of integration. Mastering these techniques prepares you for more advanced methods like integrating factors, Euler's method, and systems of differential equations.

Varsity Tutors • IB Mathematics: Analysis and Approaches • Differential Equations — AHL 5.11