Differential Equations
Separable Variables
Learn to solve first-order differential equations by separating variables, sketch slope fields, and model real-world growth and decay problems.
What Is a Differential Equation?
A differential equation (DE) is any equation that contains an unknown function and one or more of its derivatives. Instead of asking "what number satisfies this?", we ask: what function satisfies this?
The constant \(C\) represents a family of solutions: every value of \(C\) gives a different curve, but all share the same derivative behaviour.
Visualising with Slope Fields
A slope field plots tiny line segments whose gradients match \(\frac{dy}{dx}\) at each point. It reveals the behaviour of solutions without solving the equation.
Why Do Differential Equations Matter?
Differential equations describe every situation where a rate of change depends on the current state. Almost every physical, biological, and financial model uses them.
The Separable Form
A first-order DE is separable if it can be written so that all \(y\) terms are on one side and all \(x\) terms on the other:
The key insight: we treat \(\frac{dy}{dx}\) as a ratio and multiply both sides by \(dx\), moving the \(y\) part across. This is justified rigorously by the chain rule.
The Separation Method: Step by Step
General vs Particular Solutions
Worked Example 1: Simple Separation
Worked Example 2: Exponential Decay
Visualising Exponential Decay
Worked Example 3: Harder Separation
Modelling with Separable DEs
In IB AI HL, you often need to set up the DE from a word problem, not just solve one. Follow this framework:
Separable vs Non-Separable
Not every first-order DE can be solved by separation. The test is whether you can write \(\frac{dy}{dx}\) as a product of a function of \(x\) alone and a function of \(y\) alone.
| Equation | Separable? | Reason |
|---|---|---|
| \(\frac{dy}{dx} = xy^2\) | Yes | \(f(x) = x\), \(g(y) = y^2\) |
| \(\frac{dy}{dx} = e^{x+y}\) | Yes | \(e^{x+y} = e^x \cdot e^y\) |
| \(\frac{dy}{dx} = x + y\) | No | Sum, not product |
| \(\frac{dy}{dx} = \sin(xy)\) | No | Cannot factor \(xy\) inside sin |
Common Mistakes to Avoid
Summary: Key DE Models
| Model | DE Form | General Solution |
|---|---|---|
| Exponential Growth | \(\frac{dy}{dt} = ky\) | \(y = Ae^{kt}\) |
| Exponential Decay | \(\frac{dy}{dt} = -ky\) | \(y = Ae^{-kt}\) |
| Newton's Cooling | \(\frac{dT}{dt} = -k(T-T_s)\) | \(T = T_s + Ae^{-kt}\) |
| Limited Growth | \(\frac{dy}{dt} = k(M-y)\) | \(y = M - Ae^{-kt}\) |
Question 1 of 5
Which of the following is the general solution of \(\dfrac{dy}{dx} = 3y\)?
Question 2 of 5
The DE \(\dfrac{dy}{dx} = x + y\) is:
Question 3 of 5
Given \(\dfrac{dy}{dx} = \dfrac{x}{y}\) and \(y(0) = 4\), find \(y\) when \(x = 3\).
Question 4 of 5
A population \(P\) grows according to \(\dfrac{dP}{dt} = 0.02P\), starting from \(P(0) = 500\). What is \(P\) after 10 years? (Round to nearest whole number.)
Question 5 of 5
A cup of coffee cools according to Newton's law: \(\dfrac{dT}{dt} = -0.1(T - 20)\). If \(T(0) = 90\), what is the temperature after 5 minutes?