01 / 20

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.

IB Math: Applications & Interpretation

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.

x y -2 2 2 -2 solution curve

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.

Population Growth
\(\frac{dP}{dt} = kP\): growth rate proportional to population size.
Radioactive Decay
\(\frac{dN}{dt} = -\lambda N\): decay rate proportional to atoms remaining.
Newton's Cooling
\(\frac{dT}{dt} = -k(T - T_s)\): temperature approaches the surrounding temperature.

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

1
Rewrite the DE in the form \(\frac{dy}{dx} = f(x) \cdot g(y)\).
2
Separate: move all \(y\) terms to the left and all \(x\) terms to the right: \(\frac{1}{g(y)}\,dy = f(x)\,dx\).
3
Integrate both sides: \(\int \frac{1}{g(y)}\,dy = \int f(x)\,dx + C\).
4
Solve for \(y\) if possible (the explicit general solution).
5
Apply initial condition to find the value of \(C\) (the particular solution).

General vs Particular Solutions

General Solution
Contains an arbitrary constant \(C\). Represents an entire family of curves. Example: \(y = Ce^{2x}\).
Particular Solution
Uses an initial condition such as \(y(0) = 5\) to find one specific value of \(C\). Example: \(y = 5e^{2x}\).
x y y(0)=1 family of curves particular solution

Worked Example 1: Simple Separation

1
Separate: \(\dfrac{1}{y}\,dy = 2x\,dx\)
2
Integrate: \(\displaystyle\int \frac{1}{y}\,dy = \int 2x\,dx\) gives \(\ln|y| = x^2 + C\)
3
Solve for \(y\): \(y = Ae^{x^2}\) where \(A = e^C\)
4
Apply IC: \(y(0) = 3 \Rightarrow A = 3\), so \(y = 3e^{x^2}\)

Worked Example 2: Exponential Decay

1
Model: \(\dfrac{dm}{dt} = -km\), with \(m(0)=100\).
2
Separate and integrate: \(\dfrac{1}{m}\,dm = -k\,dt \Rightarrow \ln m = -kt + C \Rightarrow m = Ae^{-kt}\).
3
IC: \(m(0)=100 \Rightarrow A = 100\).
4
Half-life: \(50 = 100e^{-5k} \Rightarrow k = \frac{\ln 2}{5}\).
5
Solution: \(m(t) = 100e^{-\frac{t\ln 2}{5}} = 100 \cdot 2^{-t/5}\).

Visualising Exponential Decay

t (years) m (g) 0 5 10 15 20 100 50 25 half-life m(0) = 100

Worked Example 3: Harder Separation

1
Separate: \(y\,dy = x^2\,dx\).
2
Integrate: \(\dfrac{y^2}{2} = \dfrac{x^3}{3} + C\).
3
IC: \(\dfrac{4}{2} = 0 + C \Rightarrow C = 2\).
4
Explicit form: \(y^2 = \dfrac{2x^3}{3} + 4\), so \(y = \sqrt{\dfrac{2x^3}{3} + 4}\) (taking the positive root since \(y(0) = 2 > 0\)).

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:

1
Identify variables: What quantity changes? What does it depend on? Define \(y\) and the independent variable \(t\) or \(x\).
2
Translate the rate: "proportional to" means \(\frac{dy}{dt} = ky\). "Proportional to the remaining amount" gives \(\frac{dy}{dt} = k(M - y)\).
3
Solve the DE using the separation method.
4
Interpret the answer in context: units, domain restrictions, long-term behaviour.

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

✕ Forgetting the Constant
After integrating both sides, you must include +C. Only one constant is needed (not one on each side).
✕ Wrong Separation
Ensure \(y\) terms go with \(dy\) and \(x\) terms with \(dx\). Mixing them up gives a wrong equation to integrate.
✕ Dropping Absolute Values
When integrating \(\frac{1}{y}\), the result is \(\ln|y|\), not \(\ln y\). Use the initial condition to determine the sign.

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?