A levels Mathematics · Pure: calculus and numerical methods
Differential equations
1What a differential equation is
A differential equation links a function with its derivatives, for example $\dfrac{dy}{dx} = 3y$ or $\dfrac{dP}{dt} = kP$.
Solving it means finding the function itself.
- The general solution contains an arbitrary constant: a family of curves.
- A particular solution uses a given condition (such as $y = 2$ when $x = 0$) to fix the constant.
Differential equations model change: populations, cooling, radioactive decay, the flow of liquid out of a tank.
Check yourself
What does a particular solution use that a general solution does not?
Show the answer
A given condition to fix the constant
It picks one curve from the family.
2Separating the variables
For equations of the form $\dfrac{dy}{dx} = f(x)g(y)$, separate the variables:
$$\int \frac{1}{g(y)}\,dy = \int f(x)\,dx$$
Put all the $y$ terms with $dy$ on one side and all the $x$ terms with $dx$ on the other, then integrate both sides. One constant is enough.
Separating
- Solve $\dfrac{dy}{dx} = 6x^2y$.
- $\displaystyle\int \frac{1}{y}\,dy = \int 6x^2\,dx$, so $\ln|y| = 2x^3 + c$.
- $y = e^{2x^3 + c} = Ae^{2x^3}$, where $A = e^c$.
Check yourself
What is the first step in solving dy/dx = x/y?
Show the answer
Separate: ∫ y dy = ∫ x dx
Gather y with dy and x with dx.
3Particular solutions
Using a condition
- Solve $\dfrac{dy}{dx} = \dfrac{x}{y}$, given $y = 3$ when $x = 4$.
- $\displaystyle\int y\,dy = \int x\,dx$, so $\frac{y^2}{2} = \frac{x^2}{2} + c$.
- $\frac{9}{2} = 8 + c$, so $c = -\frac{7}{2}$.
- $y^2 = x^2 - 7$, so $y = \sqrt{x^2 - 7}$ (positive, since $y = 3 > 0$).
A trig equation
- Solve $\dfrac{dy}{dx} = y\cos x$, with $y = 1$ when $x = 0$.
- $\ln|y| = \sin x + c$; at $x = 0$: $0 = 0 + c$, so $c = 0$.
- $y = e^{\sin x}$.
Check yourself
After separating and integrating, where do you put the constant?
Show the answer
On one side only
Two constants combine into one.
4Forming differential equations
Many questions describe a rate in words. Translate:
- "the rate of change of $P$ is proportional to $P$": $\dfrac{dP}{dt} = kP$
- "decreases at a rate proportional to the square root of $h$": $\dfrac{dh}{dt} = -k\sqrt{h}$
- "cools at a rate proportional to the difference between its temperature $T$ and room temperature 20°C": $\dfrac{dT}{dt} = -k(T - 20)$
A negative sign shows a decrease (with $k > 0$).
Forming and solving
- The rate at which a population $P$ grows is proportional to $P$. Initially $P = 200$; after 3 years $P = 300$.
- $\dfrac{dP}{dt} = kP$, so $P = Ae^{kt}$, with $A = 200$.
- $300 = 200e^{3k}$, so $k = \frac{1}{3}\ln 1.5 \approx 0.135$.
Check yourself
How would you write "V decreases at a rate proportional to V"?
Show the answer
dV/dt = −kV
Negative sign, with k > 0.
5Modelling with differential equations
Newton's law of cooling
- Tea at 90°C cools in a 20°C room: $\dfrac{dT}{dt} = -k(T - 20)$.
- Separate: $\displaystyle\int \frac{1}{T - 20}\,dT = -\int k\,dt$, so $\ln(T - 20) = -kt + c$.
- $T = 20 + Ae^{-kt}$; at $t = 0$, $A = 70$.
- If $T = 60$ after 10 minutes: $40 = 70e^{-10k}$, so $k = \frac{1}{10}\ln\frac{7}{4} \approx 0.0560$.
- Long term: $T \to 20$, the room temperature.
A draining tank
- $\dfrac{dh}{dt} = -0.2\sqrt{h}$, with $h = 16$ m at $t = 0$.
- $\displaystyle\int h^{-1/2}\,dh = -0.2\int dt$, so $2\sqrt{h} = -0.2t + c$, $c = 8$.
- Empty when $h = 0$: $t = 40$ seconds.
Evaluate the model: does it predict sensible long-term behaviour? What does it ignore?
Check yourself
In T = 20 + 70e^(−kt), what does T approach as t grows?
Show the answer
20
The exponential term dies away.
6Partial fractions in differential equations
Sometimes the separated integral needs partial fractions.
Logistic-style growth
- Solve $\dfrac{dx}{dt} = x(1 - x)$ for $0 < x < 1$.
- $\displaystyle\int \frac{1}{x(1 - x)}\,dx = \int dt$.
- $\dfrac{1}{x(1 - x)} = \dfrac{1}{x} + \dfrac{1}{1 - x}$.
- $\ln x - \ln(1 - x) = t + c$, so $\dfrac{x}{1 - x} = Ae^t$.
- Rearranged: $x = \dfrac{Ae^t}{1 + Ae^t}$, which tends to 1 as $t \to \infty$.
This logistic model describes growth that levels off at a limit, unlike pure exponential growth.
Check yourself
What does the logistic solution x = Aeᵗ/(1 + Aeᵗ) tend to as t → ∞?
Show the answer
1
Growth levels off at a ceiling.
Now test yourself
This lesson has a 8-question quiz and 5 exam-style questions with mark schemes in Impera. Free, with your progress saved.
Practise in Impera