Unit 4 · Topic 3.2 · Rates of change and differential equations
Differential equations
A differential equation tells you the gradient of a function, and your job is to find the function. Part 1 covers the forms you can solve by integrating. Part 2 applies them to the models the syllabus names: the logistic equation, radioactive decay and Newton's law of cooling. Slope fields have their own guide, Topic 3.3. Work through it in order, and tick off each skill once you can do it without help.
Skills in this topic
Only tick a skill when you could do it in an exam.
Solve $\frac{dy}{dx}=f(x)$ by integrating directly, and use an initial condition to find the particular solution. Part 1
Solve $\frac{dy}{dx}=g(y)$ by taking the reciprocal of both sides before you integrate. Part 1
Separate the variables in $\frac{dy}{dx}=f(x)g(y)$, integrate both sides and, where you can, rearrange for $y$.Part 1
Use partial fractions to solve a logistic equation, and find the value the population approaches. Part 2
Solve a radioactive decay model, and use a half-life to find the decay constant. Part 2
Solve a Newton's law of cooling model, and use given temperatures to find its constants. Part 2
Part 1
Solving differential equations
Any equation that contains a derivative, such as $\frac{dy}{dx}$, is a differential equation. Solving one means finding $y$ itself.
The general solution contains a constant of integration, $c$, so it describes a whole family of curves. An initial condition, such as $y=3$ when $x=1$, picks out one curve from the family. That curve is the particular solution.
Direct integration
When the right-hand side has only $x$ in it, integrate both sides with respect to $x$.
1Make $\frac{dy}{dx}$ the subject.
2Integrate both sides to get $y$ in terms of $x$, plus $c$. This is the general solution.
3Substitute the initial condition to find $c$. This gives the particular solution.
For example, solve $\frac{dy}{dx}=6x^2-4$ given $y=3$ when $x=1$.
Sometimes the gradient is given in terms of $y$, for example $\frac{dy}{dx}=2y+2$. You can't integrate $2y+2$ with respect to $x$, because $y$ is the function you don't know yet. Instead, take the reciprocal of both sides, so that $x$ becomes a function of $y$.
The $\frac12$ comes from the 2 in front of $y$. Differentiate $\frac12\ln|2y+2|$ to check: you get $\frac12\times\frac{2}{2y+2}=\frac{1}{2y+2}$.
1Make $\frac{dy}{dx}$ the subject.
2Take the reciprocal of both sides to get $\frac{dx}{dy}$.
3Integrate both sides with respect to $y$. This gives $x$ in terms of $y$, the general solution.
4Use the initial condition to find $c$.
5Rearrange for $y$ if the question asks for it.
Rearranged, the general solution is $y=Ae^{2x}-1$. Taking the reciprocal assumes $2y+2\ne0$, so check the line $y=-1$ separately. Its gradient is $0$ everywhere, so it is a solution too.
Try it
Every grey curve is a solution of $\frac{dy}{dx}=2y+2$. Move the slider to choose the initial condition. The orange tangent at the starting point has the gradient the differential equation gives, and the initial condition picks out one curve.
At $y=-1$ the gradient is $0$, so the solution is a horizontal line. Taking the reciprocal divides by $2y+2$, which is $0$ here, so that method can't find this solution.
Separating the variables
When the gradient is a function of $x$ multiplied by a function of $y$, collect every $y$ with $dy$ and every $x$ with $dx$. For example, solve $\frac{dy}{dx}=\left(x^2+1\right)e^y$.
(A) and (B) have $-2$ in place of $-\frac12$. (D) has the wrong sign on the constant.
Answer
(C)
2023 Paper 1, Question 18
Short response · Technology-free · Complex unfamiliar · [6 marks]
A particular solution to the differential equation $\dfrac{dy}{dx}=\dfrac{x}{\left(x^2+1\right)\tan(y)}$, where $x\ge0$ and $-\dfrac{\pi}{2}\lt y\le0$, passes through the origin.
Determine this solution in the form $x=f(y)$. Leave your answer in simplified form.
For $-\frac{\pi}{2}\lt y\le0$, $\tan(y)\le0$, but $x\ge0$. So take the negative.
$$x=-\tan(y)$$
1 markEvaluates the reasonableness of the results and expresses the solution in the form $x=f(y)$ in simplified form.
$\int\tan(y)\,dy=-\ln|\cos(y)|$ is in the formula book. The identity $1+\tan^2(y)=\sec^2(y)$ is what gets you from the logarithms to a simple answer. This question is worked step by step in the complex unfamiliar collection.
Answer
$x=-\tan(y)$
Sample IA3, Question 11
Short response · Technology-active · Complex unfamiliar · [6 marks]
A certain function $y=f(x)$, where $-\dfrac{\pi}{2}\lt x\lt\dfrac{\pi}{2}$, has a gradient of $\left(y^2-11y+30\right)\sec^2(x)$ and a $y$-intercept of 4.
This is from the QCAA sample IA3, not a past external exam. There is no published marking guide, so this solution and the marks shown are my own. The solution through $(0,4)$ has a vertical asymptote where $2e^{\tan(x)}=1$, at $x\approx-0.606$. To the right of it, $y$ rises from $-\infty$ towards $5$, so it crosses the line $y=x$ exactly once.
Answer
$a\approx-0.484$
2021 Paper 1, Question 18
Short response · Technology-free · Complex unfamiliar · [6 marks]
This differential equation can be used to determine the current $I$ (amperes) at time $t$ (seconds) with voltage $V$ (volts) in an electric circuit containing a resistance $R$ (ohms):
$$k\frac{dI}{dt}+RI=V$$
where $k$, $R$ and $V$ are positive constants and $t\ge0$.
Assuming that there is no current in the electric circuit initially, show that the size of the current can never be greater than $\dfrac{V}{R}$.
1 markUses the given condition to determine an expression for the constant of integration.
$$\ln|V-RI|=-\frac{R}{k}t+\ln(V)$$
1 markRearranges to make $\ln|V-RI|$ the subject.
$$V-RI=Ve^{-\frac{R}{k}t}$$
1 markExpresses the relationship as an exponential function.
For all $t$,$Ve^{-\frac{R}{k}t}\gt0$, so $V-RI\gt0$, which gives $I\lt\frac{V}{R}$. The current can never be greater than $\frac{V}{R}$.
1 markConsiders the value of $I$ over time to determine the required limit.
The $-\frac{k}{R}$ comes from the chain rule in reverse: the derivative of $V-RI$ with respect to $I$ is $-R$. As $t\to\infty$, the current approaches $\frac{V}{R}$, so this is the limit of the current. This question is worked step by step in the complex unfamiliar collection.
The syllabus names three models: the logistic equation, radioactive decay and Newton's law of cooling. The exam gives you the differential equation, so you don't need to memorise it. Knowing its general form and what it measures helps you recognise what to do.
The logistic equation
The logistic equation models growth that levels off, such as a population with limited food or space. It is used in the sciences and in economics.
While $y$ is small, the rate is close to $ay$, which is exponential growth. As $y$ gets close to $\frac{a}{b}$, the factor $a-by$ gets close to $0$ and the growth stops. So $y\to\frac{a}{b}$ as $t\to\infty$.
1Separate the variables, with the population on one side and $t$ on the other.
2Use partial fractions to integrate the population side. The $t$ side integrates easily.
3Use the initial condition to find the constant.
4Rearrange to make the population the subject, if the question asks for it.
5Use your solution to answer the question in context.
Do you need a separate method for this? Not really. The separation of variables steps in Part 1 will solve it. Recognising the form still saves you time in the exam: when the right-hand side is the population multiplied by a linear factor in the population, you know partial fractions are coming.
Radioactive decay
A quantity $m(t)$ that decays at a rate proportional to its size satisfies
$$\frac{dm}{dt}=-km$$
where $k$ is a positive constant, called the decay constant. The negative sign makes the rate negative, because $m$ is decreasing.
1Separate the variables.
2Integrate. The $m$ side gives $\ln|m|$, and the $t$ side gives $-kt+c$.
3Make $m$ the subject: $m=Ae^{-kt}$, where $A=e^c$.
4Use the starting amount to find $A$. It equals $m(0)$.
5Use a second piece of information, such as the half-life, to find $k$.
The half-life $h$ is the time it takes for half of the quantity to decay. From $\frac12=e^{-kh}$, you get $k=\frac{\ln(2)}{h}$.
Newton's law of cooling
Newton's law of cooling says the rate of change of an object's temperature is proportional to the difference between its temperature and the temperature of its surroundings, $T_m$.
I use this form, with the negative sign written in and $k$ positive, all through this guide. When the object is hotter than the room, $T-T_m$ is positive and the rate is negative, so the object cools. Some books write $\frac{dT}{dt}=k\left(T-T_m\right)$ with $k\lt0$. That is the same model, so read the sign of $k$ from the question.
1Separate the variables.
2Integrate. The $T$ side gives $\ln\left|T-T_m\right|$, and the $t$ side gives $-kt+c$.
3Make $T$ the subject: $T=T_m+Ae^{-kt}$.
4Use the starting temperature to find $A$. It is the starting difference, $T(0)-T_m$.
5Use a second temperature reading to find $k$, then answer the question in context.
As $t\to\infty$, $e^{-kt}\to0$, so $T\to T_m$. The object gets closer and closer to room temperature but never reaches it.
The idea
A rate that rises, then falls
The idea
Every drink heads for room temperature
Practise
Exam questions: the logistic equation
2023 Paper 1, Question 7
Multiple choice · Technology-free · [1 mark]
The differential equation for which the solution is a logistic equation of the form $y=\dfrac{a}{b+Ce^{-at}}$, where $a$, $b$ and $C$ are constants, is
The logistic differential equation has the form $\frac{dy}{dt}=y(a-by)$.
$$0.25y(1-0.01y)=y(0.25-0.0025y)$$
(A) and (C) only involve $t$, so integrating them gives a polynomial. (B) has no factor of $y$ out the front, so its solution is an exponential that approaches $100$ with no S-shape.
Answer
(D)
2025 Paper 2, Question 16
Short response · Technology-active · Complex familiar · [6 marks]
A certain population can be approximately modelled by the differential equation
$$\frac{dP}{dt}=0.5P(1-0.2P)$$
where $P$ is the population in millions and $t$ is the number of years since 1 January 2025.
Given that the population on 1 January 2025 was estimated at 0.3 million, use a calculus approach to estimate the population on 1 January 2030.
1 markDetermines an equation in terms of $P$ whose solution is the required population.
$$P\approx2.19$$
1 markEstimates the required population.
The estimated population on 1 January 2030 is about 2.2 million.
1 January 2030 is five years after the start, so $t=5$. The guide also accepts writing $1-0.2P$ as $\frac{5-P}{5}$ and using partial fractions on $\frac{1}{P(5-P)}$. Either way, this model levels off at 5 million.
a)Given $\dfrac{1000}{N(1000-N)}=\dfrac{1}{N}+\dfrac{1}{1000-N}$, show that the general solution of the differential equation can be expressed as $\ln\left|\dfrac{N}{1000-N}\right|=t+c$.[2 marks]
A scientist commenced this experiment at 9:00 am on a certain day and observed that 100 yeast cells were present at this time.
b)Show that the solution of the differential equation can be expressed as $N=\dfrac{1000}{1+9e^{-t}}$.[3 marks]
c)Determine the time of day when 900 yeast cells were present.[2 marks]
The scientist predicted that the number of yeast cells would eventually exceed 1200.
d)Evaluate the reasonableness of the scientist's prediction.[2 marks]
1 markCorrectly determines the value of $t$ when $N=900$.
4.394 hours is about 4 hours 24 minutes after 9:00 am, so the time of day is 1:24 pm.
1 markCommunicates the time of day.
Part d)
As $t\to\infty$,$e^{-t}\to0$, so $N\to1000$. The number of yeast cells never exceeds 1000.
1 markCorrectly recognises that the number of yeast cells will never exceed 1000.
$N$ can never reach 1200, so the scientist's prediction is not reasonable.
1 markComments that the prediction is not reasonable.
In a), the guide needs the line $\ln|N|-\ln|1000-N|=t+c$ or an equivalent step for the second mark. In b), it wants $N\left(9+e^t\right)=1000e^t$ or a similar step before the final form. For c), any time from 1:23 pm to 1:24 pm is accepted. By hand, $9e^{-t}=\frac19$ gives $t=\ln(81)$. This is the yeast in the animation above.
Answer
c) 1:24 pmd) not reasonable, as $N\to1000$
Practise
Questions I've written: decay and cooling
Radioactive decay and Newton's law of cooling haven't appeared directly in a QCAA external exam yet. I've written these three in the exam style, and the solutions and marks are my own.
Teacher question 1
Short response · Technology-free · [6 marks]
The mass, $M$ (grams), of a radioactive isotope remaining after $t$ years can be modelled by the differential equation
$$\frac{dM}{dt}=-kM$$
where $k$ is a positive constant and $t\ge0$.
A sample of the isotope has an initial mass of 80 grams.
a)Use separation of variables to show that $M=80e^{-kt}$.[2 marks]
The half-life of the isotope is five years.
b)Determine the exact value of $k$.[2 marks]
c)Determine the time taken for the mass of the sample to reduce to 10 grams.[2 marks]
Going from 80 g to 10 g is three halvings, so the answer to c) is three half-lives. That is a quick check.
Answer
b) $k=\dfrac{\ln(2)}{5}$c) 15 years
Teacher question 2
Short response · Technology-active · [8 marks]
Newton's law of cooling states that the rate of change of the temperature of an object is proportional to the difference between the temperature of the object and the temperature of its surroundings.
A cup of coffee is poured at 95 °C into a room held at a constant temperature of 22 °C. The temperature, $T$ (°C), of the coffee after $t$ minutes can be modelled by the differential equation
$$\frac{dT}{dt}=-k(T-22)$$
where $k$ is a positive constant and $t\ge0$.
a)Use separation of variables to show that $T=22+73e^{-kt}$.[3 marks]
The temperature of the coffee is 70 °C after five minutes.
b)Determine the value of $k$.[2 marks]
c)Determine the temperature of the coffee after 15 minutes.[1 mark]
A barista claims that the coffee will have cooled to room temperature within one hour of being poured.
d)Evaluate the reasonableness of this claim. Justify your decision.[2 marks]
After one hour the coffee is still about 0.5 °C above room temperature. In this model it never reaches 22 °C, because $73e^{-kt}\gt0$ for every $t$. So the claim is not reasonable, although by then the coffee is very close to room temperature.
1 markMakes a decision about the claim and justifies it.
In c), $e^{-15k}=\left(e^{-5k}\right)^3=\left(\frac{48}{73}\right)^3$, which avoids rounding $k$. In d), I would also give the mark for deciding the claim is reasonable in practice, as long as you quote $T(60)$ and say that the model never quite reaches 22 °C.
Answer
b) $k\approx0.0839$c) $\approx42.8$ °Cd) not reasonable, $T(60)\approx22.5$ °C
Teacher question 3
Short response · Technology-free · [6 marks]
A metal component is removed from a furnace and left to cool in a room held at a constant but unknown temperature. The temperature, $T$ (°C), of the component after $t$ minutes can be modelled by the differential equation
$$\frac{dT}{dt}=-k\left(T-T_r\right)$$
where $k$ is a positive constant and $T_r$ (°C) is the temperature of the room.
The temperature of the component is 100 °C when it is removed from the furnace, 60 °C after 10 minutes and 40 °C after 20 minutes.
Determine the temperature of the room and the exact value of $k$.
The differences from room temperature are 80, 40 and 20 °C at equal 10-minute steps. Each one is half the one before, which is what an exponential model does over equal steps. That gives you a check on both answers.
2Only $y$ on the right: take the reciprocal, or separate.
3A function of $x$ times a function of $y$: separate the variables.
4Two linear factors in the same variable, like $P(1-0.2P)$: separate, then use partial fractions.
Finishing the question
1Add $c$ to one side as soon as you integrate.
2Find $c$ from the initial condition before you rearrange.
3Remove logarithms by taking the exponential of both sides.
4Give a reason when you drop absolute value signs or choose a sign.
Mistakes I see a lot
writing $\ln|2y+2|$ for $\int\frac{1}{2y+2}\,dy$, and losing the $\frac12$
adding a constant of integration to both sides
writing $e^{t+c}$ as $e^t+e^c$ instead of $e^te^c$
losing the negative sign in a decay or cooling model
giving $t$ when the question asks for a time of day
Practice
Practice questions
Ten questions of my own, worth 55 marks in total. Each one is labelled with the skill it practises, so if one goes wrong you know which part of the guide to go back to. Check whether each one is Technology-free or Technology-active before you start.
Question 1 of 10
A logistic model with given partial fractions · Technology-active · Simple familiar · [6 marks]
For a certain experiment, the number of bacteria, $N$, in a culture after $t$ hours can be modelled by the differential equation
a)Given $\dfrac{500}{N(500-N)}=\dfrac1N+\dfrac{1}{500-N}$, show that the general solution of the differential equation can be expressed as
$\ln\left|\frac{N}{500-N}\right|=t+c$[2 marks]
A scientist commenced this experiment at 8:00 am on a certain day and observed that 20 bacteria were present at this time.
b)Show that the solution of the differential equation can be expressed as
$N=\frac{500}{1+24e^{-t}}$[2 marks]
c)Determine the time of day when 400 bacteria were present.[2 marks]
Leaving out the $\frac12$ gives $y=4e^{x}-3$, which doesn't satisfy the differential equation. That loses the second mark of part a), but you can still get the other marks.
Answer
a) $y=4e^{2x}-3$b) $x=\tfrac12\ln(3)$
Question 5 of 10
Newton's law of cooling; reading a rate · Technology-active · Simple familiar · [6 marks]
A cup of tea is poured at $90^\circ$C in a room held at a constant temperature of $20^\circ$C. The temperature, $T$ ($^\circ$C), of the tea after $t$ minutes can be modelled by Newton's law of cooling
$\frac{dT}{dt}=-k(T-20)$
where $k$ is a positive constant and $t\ge0$.
a)Use separation of variables to show that $T=20+70e^{-kt}$.[2 marks]
The temperature of the tea is $60^\circ$C after ten minutes.
b)Determine the exact value of $k$.[1 mark]
c)Use the differential equation to determine the rate at which the temperature of the tea is changing when its temperature is $50^\circ$C. Give your answer rounded to two decimal places.[1 mark]
d)Determine the time taken for the tea to cool to $30^\circ$C. Give your answer rounded to two decimal places.[2 marks]
In part c), use the differential equation with $T=50$. Leaving out the room temperature, or substituting $t=50$ into the solution, doesn't get the mark. In part d), carry the exact value of $k$ so rounding doesn't shift your answer.
Answer
b) $k=\tfrac{1}{10}\ln\left(\tfrac74\right)\approx0.0560$c) $-1.68$ °C per minuted) 34.77 minutes
Taking logarithms term by term, to get $y=x$ or $y=x+1$, loses the third mark of part b). Neither one passes through $(0,\ln(2))$.
Answer
b) $y=\ln\left(e^x+1\right)$c) $\ln(4)$
Question 7 of 10
Checking a logistic solution; the greatest rate · Technology-free · Simple familiar · [5 marks]
The number of people, $y$ (thousands), who have downloaded a new app $t$ weeks after its release can be modelled by the logistic function
$y=\frac{10}{1+4e^{-2t}}$
for $t\ge0$.
a)Show that $y$ satisfies the differential equation $\dfrac{dy}{dt}=0.2y(10-y)$.[2 marks]
b)Use the differential equation in Question 7a) to determine the number of people who have downloaded the app when the rate of downloads is greatest.[2 marks]
c)Determine the exact time at which the rate of downloads is greatest.[1 mark]
Completing the square, $2y-0.2y^2=5-0.2(y-5)^2$, also works in part b). At $y=10$ the rate is zero, which is where growth stops.
Answer
b) 5000 peoplec) $t=\ln(2)$ weeks
Question 8 of 10
A model with an inflow; a limiting value · Technology-active · Simple familiar · [5 marks]
A drug is delivered into a patient's bloodstream through a drip at a constant rate. At the same time, the drug is removed from the bloodstream by the body. The amount of the drug, $A$ (mg), in the bloodstream $t$ hours after the drip is started can be modelled by the differential equation
$\frac{dA}{dt}=3-0.2A$
for $0\le A<15$.
There is no drug in the bloodstream when the drip is started.
a)Use separation of variables to show that $A=15\left(1-e^{-0.2t}\right)$.[3 marks]
b)Determine the time taken for the amount of the drug in the bloodstream to reach 12 mg. Give your answer rounded to two decimal places.[1 mark]
c)Explain why the amount of the drug in the bloodstream never exceeds 15 mg.[1 mark]
$A=15-15e^{-0.2t}$ and $15e^{-0.2t}>0$ for all $t$, so $A<15$; $A\to15$ as $t\to\infty$.
1 markExplains using the solution or the differential equation.
In part c), you can also argue from the differential equation: $\frac{dA}{dt}\gt0$ while $A\lt15$, and $\frac{dA}{dt}=0$ when $A=15$. Leaving out the $-5$ in part a) gives a negative amount and loses the second mark.
Answer
b) $t=5\ln(5)\approx8.05$ hoursc) $15e^{-0.2t}\gt0$, so $A\lt15$
1 markDetermines the solution in the form $y=f(x)$.
$\displaystyle y=\frac{2+e^{x^2}}{2-e^{x^2}}$
1 markShows logical organisation, having fully attempted the question.
Leaving out the $\frac12$ in the partial fractions gives an answer that doesn't satisfy the differential equation. That loses the second mark, but the rest can still follow through. The solution only exists for $|x|\lt\sqrt{\ln(2)}$, although you don't need to state that.
Answer
$y=\dfrac{2+e^{x^2}}{2-e^{x^2}}$
Question 10 of 10
A logistic model; evaluating a claim · Technology-active · Complex familiar · [6 marks]
A certain population of native frogs can be modelled by the differential equation
$\frac{dP}{dt}=0.4P(1-0.05P)$
where $P$ is the population in thousands and $t$ is the number of years since 1 January 2026. The population on 1 January 2026 was estimated at 2 thousand.
An ecologist claims that, according to this model, the population will exceed 18 thousand on 1 January 2036.
Use a calculus approach to evaluate the reasonableness of the ecologist's claim. Justify your decision using mathematical reasoning.
$\displaystyle \frac{dP}{dt}=0.02P(20-P)\Rightarrow\int\frac{20}{P(20-P)}\,dP=\int0.4\,dt$, where $\displaystyle \frac{20}{P(20-P)}=\frac1P+\frac{1}{20-P}$
1 markCorrectly separates the variables and determines the partial fractions.
$t=0$, $P=2$: $\displaystyle c=\ln\left(\frac{2}{18}\right)=-\ln(9)$, so $\displaystyle \frac{P}{20-P}=\frac{e^{0.4t}}{9}\Rightarrow P=\frac{20}{1+9e^{-0.4t}}$
1 markDetermines the particular solution.
1 January 2036: $t=10$, $\displaystyle P(10)=\frac{20}{1+9e^{-4}}\approx17.17$ thousand
1 markDetermines the population on 1 January 2036.
$17.17<18$, so the population will not exceed 18 thousand on 1 January 2036 (it reaches 18 thousand only when $t\approx10.99$ years).
1 markUses mathematical reasoning to justify the decision.
The ecologist's claim is not reasonable.
1 markStates an appropriate evaluation of the reasonableness of the claim.
Arguing only that the population levels off at 20 thousand, which is more than 18, doesn't answer the question about 2036 and loses the last two marks. Taking $P(10)$ straight from a technology solver doesn't get the first three marks.
Answer
$P(10)\approx17.17$ thousand, which is less than 18the claim is not reasonable
Keep practising
Ready for something harder?
2023 Paper 1, Question 18 and 2021 Paper 1, Question 18 are both worked step by step in the complex unfamiliar collection, alongside the other complex unfamiliar questions from every past paper.