01 / 21

Differential
Equations

Learn to solve separable differential equations, build mathematical models, and connect rates of change to the functions that produce them.

IB Mathematics AA HL

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 solving for a number, you solve for an entire function.

Differential equations appear everywhere: population growth, radioactive decay, Newton's law of cooling, and circuit analysis all rely on them.

Order and Key Vocabulary

Order
The highest derivative present. \(\dfrac{d^2y}{dx^2}\) means order 2.
General Solution
Contains an arbitrary constant \(C\). Represents a family of curves.
Particular Solution
Uses an initial condition to fix \(C\) and find one specific curve.

Visualising with Slope Fields

A slope field plots tiny line segments whose slopes equal \(\dfrac{dy}{dx}\) at each point. The solution curve follows these slopes.

\(x\)
\(y\)
\(C = 1\)
\(C = -1\)
Slope field for \(dy/dx = x/2\)

The Separable Form

A first-order DE is separable if it can be written as:

We then separate the variables: all \(y\) terms go with \(dy\), all \(x\) terms go with \(dx\):

Separation of Variables: Method

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

Separable vs Non-Separable

Separable Non-Separable
Form \(\dfrac{dy}{dx} = f(x)\,g(y)\) \(\dfrac{dy}{dx} = f(x,y)\) mixed
Example \(\dfrac{dy}{dx} = xy\) \(\dfrac{dy}{dx} = x + y\)
Method Separate and integrate Other methods
IB HL Scope ✓ Required ✓ Also required

Step-by-Step Checklist

1
Identify the DE and confirm it is first-order and separable.
2
Separate variables: rearrange so \(dy\) and \(y\) are on one side, \(dx\) and \(x\) on the other.
3
Integrate both sides. Don't forget \(+\,C\) on one side.
4
Solve explicitly for \(y\) (use exponentiation, algebra, etc.).
5
Substitute the initial condition to determine \(C\) and write the particular solution.

Example 1: Basic Separation

1
Separate: \(dy = 2x\,dx\)
2
Integrate: \(\displaystyle\int dy = \int 2x\,dx \implies y = x^2 + C\)
3
Apply IC: \(y(0)=3 \implies 3 = 0^2 + C \implies C = 3\)

Example 2: Exponential Growth

1
Separate: \(\dfrac{1}{y}\,dy = k\,dx\)
2
Integrate: \(\ln|y| = kx + C_1\)
3
Exponentiate: \(y = Ae^{kx}\) where \(A = \pm e^{C_1}\)
4
Apply IC: \(y(0) = y_0 \implies A = y_0\)

Growth vs Decay Curves

\(t\)
\(y\)
\(k > 0\) (growth)
\(k < 0\) (decay)
\(y_0\)

Example 3: Harder Separation

1
Separate: \(y\,dy = x^2\,dx\)
2
Integrate: \(\dfrac{y^2}{2} = \dfrac{x^3}{3} + C\)
3
Apply IC: \(\dfrac{2^2}{2} = \dfrac{0^3}{3} + C \implies 2 = C\)
4
Solve for \(y\): \(y^2 = \dfrac{2x^3}{3} + 4\), so \(y = \sqrt{\dfrac{2x^3}{3} + 4}\) (positive root since \(y(0)=2 > 0\)).

Modelling with Differential Equations

In the IB, you must translate real-world scenarios into a DE, solve it, and interpret the result in context.

Population
\(\dfrac{dP}{dt} = kP\) models unrestricted growth at rate \(k\).
Decay
\(\dfrac{dN}{dt} = -\lambda N\) models radioactive decay with half-life.
Cooling
\(\dfrac{dT}{dt} = -k(T - T_s)\) is Newton's law of cooling.

Example 4: Newton's Cooling

1
DE: \(\dfrac{dT}{dt} = -k(T - 20)\). Let \(u = T - 20\), so \(\dfrac{du}{dt} = -ku\).
2
Solve: \(u = u_0\,e^{-kt}\). Since \(T(0) = 90\), we have \(u_0 = 70\).
3
Find \(k\): At \(t=5\), \(T=70 \implies u=50\). So \(50 = 70e^{-5k} \implies k = \dfrac{1}{5}\ln\frac{7}{5}\).
4
Result: \(T(t) = 20 + 70\,e^{-\frac{t}{5}\ln(7/5)}\).

Common Mistakes to Avoid

✕ Forgetting \(+\,C\)
Every indefinite integral needs a constant. Without it, you find only one specific solution, making it impossible to satisfy most initial conditions.
✕ Dropping \(\dfrac{1}{y}\)
When separating \(\dfrac{dy}{dx}=ky\), students write \(dy = k\,dx\) instead of \(\dfrac{1}{y}\,dy = k\,dx\). Always divide by \(g(y)\).
✕ Forgetting Absolute Value
Integrating \(\dfrac{1}{y}\,dy\) gives \(\ln|y|\), not \(\ln(y)\). Forgetting the absolute value can lead to incorrect domains or missed solutions.

Summary: Key Models

Model DE Solution
Growth / Decay \(\dfrac{dy}{dx} = ky\) \(y = Ae^{kx}\)
Cooling \(\dfrac{dT}{dt} = -k(T-T_s)\) \(T = T_s + Ae^{-kt}\)
Power-type \(\dfrac{dy}{dx} = \dfrac{f(x)}{g(y)}\) Integrate both sides
Direct \(\dfrac{dy}{dx} = f(x)\) \(y = \int f(x)\,dx + C\)

Question 1 of 5

What is the general solution of \(\dfrac{dy}{dx} = 3x^2\)?

Question 2 of 5

Which of the following DEs is not separable?

Question 3 of 5

If \(\dfrac{dy}{dx} = 2y\) and \(y(0) = 5\), what is the particular solution?

Question 4 of 5

A substance decays according to \(\dfrac{dN}{dt} = -0.1N\). If \(N(0) = 200\), what is \(N\) when \(t = 10\)?

Question 5 of 5

When solving \(\dfrac{dy}{dx} = \dfrac{x^2}{y}\), after separating and integrating, which equation do you obtain?