Specialist Mathematics topic guides All topics

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$.

  1. 1Make $\frac{dy}{dx}$ the subject.
  2. 2Integrate both sides to get $y$ in terms of $x$, plus $c$. This is the general solution.
  3. 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$.

$$\begin{aligned}y&=2x^3-4x+c\\3&=2-4+c\ \Rightarrow\ c=5\\y&=2x^3-4x+5\end{aligned}$$

Taking the reciprocal

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$.

$$\begin{aligned}\frac{dx}{dy}&=\frac{1}{2y+2}\\x&=\int\frac{1}{2y+2}\,dy=\frac12\ln|2y+2|+c\end{aligned}$$

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}$.

  1. 1Make $\frac{dy}{dx}$ the subject.
  2. 2Take the reciprocal of both sides to get $\frac{dx}{dy}$.
  3. 3Integrate both sides with respect to $y$. This gives $x$ in terms of $y$, the general solution.
  4. 4Use the initial condition to find $c$.
  5. 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.

−2−114−4 x y

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$.

$$\begin{aligned}\int e^{-y}\,dy&=\int\left(x^2+1\right)dx\\-e^{-y}&=\frac{x^3}{3}+x+c\end{aligned}$$

You only need one constant. Put it on the $x$ side.

  1. 1Rewrite the equation as $\frac{1}{g(y)}\,dy=f(x)\,dx$.
  2. 2Integrate both sides.
  3. 3Add a constant of integration to one side only.
  4. 4Use the initial condition, if there is one, to find $c$.
  5. 5Rearrange to make $y$ the subject, if the question asks for it and it is possible.

This method covers the other two forms as well. Direct integration is the case $g(y)=1$, and taking the reciprocal is the case $f(x)=1$.

Practise

Exam questions: solving differential equations

2022 Paper 2, Question 3

Multiple choice · Technology-active · [1 mark]

Determine the solution of the differential equation $\dfrac{dy}{dx}=\dfrac{\sin(2x)}{\cos(2x)}$ given $y=0$ when $x=\dfrac{\pi}{5}$.

$$y=\int\tan(2x)\,dx=-\frac12\ln|\cos(2x)|+c$$

$$0=-\frac12\ln\left|\cos\left(\tfrac{2\pi}{5}\right)\right|+c\ \Rightarrow\ c\approx-0.59$$

(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.

$$\int\tan(y)\,dy=\int\frac{x}{x^2+1}\,dx$$

1 markCorrectly separates the variables.

$$-\ln|\cos(y)|=\frac12\ln\left(x^2+1\right)+c$$

1 markApplies suitable integration methods.

$$(0,0):\quad-\ln(1)=\frac12\ln(1)+c\ \Rightarrow\ c=0$$

1 markDetermines a value for the constant of integration.

$$\begin{aligned}\ln\left(x^2+1\right)&=-2\ln|\cos(y)|=\ln\left(\sec^2(y)\right)\\x^2+1&=\sec^2(y)\end{aligned}$$

1 markDetermines an expression for a solution that does not contain logarithms.

$$x^2=\sec^2(y)-1=\tan^2(y)\ \Rightarrow\ x=\pm\tan(y)$$

1 markExpresses $x$ in terms of $y$.

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.

Determine the value/s of $a$ such that $f(a)=a$.

$$\frac{dy}{dx}=(y-5)(y-6)\sec^2(x)\ \Rightarrow\ \int\frac{1}{(y-5)(y-6)}\,dy=\int\sec^2(x)\,dx$$

1 markFactorises and separates the variables.

$$\frac{1}{(y-5)(y-6)}=\frac{1}{y-6}-\frac{1}{y-5}$$

1 markUses partial fractions.

$$\ln|y-6|-\ln|y-5|=\tan(x)+c$$

1 markIntegrates both sides.

$$(0,4):\quad\ln\left|\frac{-2}{-1}\right|=\tan(0)+c\ \Rightarrow\ c=\ln(2)$$

1 markUses the $y$-intercept to find the constant.

At $(0,4)$, $\frac{y-6}{y-5}=2$ is positive, so the absolute value signs can go.

$$\begin{aligned}\frac{y-6}{y-5}&=2e^{\tan(x)}\\y-6&=2e^{\tan(x)}(y-5)\\y&=\frac{10e^{\tan(x)}-6}{2e^{\tan(x)}-1}\end{aligned}$$

1 markMakes $y$ the subject.

$$\frac{10e^{\tan(a)}-6}{2e^{\tan(a)}-1}=a\ \Rightarrow\ a\approx-0.484$$

1 markSolves $f(a)=a$ with technology.

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}$.

$$k\frac{dI}{dt}=V-RI\ \Rightarrow\ \int\frac{k}{V-RI}\,dI=\int1\,dt$$

1 markCorrectly uses the separation of variables method to set up indefinite integrals.

$$-\frac{k}{R}\ln|V-RI|=t+c$$

1 markDevelops a general solution of the differential equation.

$$I=0,\ t=0:\quad c=-\frac{k}{R}\ln(V)\quad(V\gt0)$$

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.

Answer
$I=\dfrac{V}{R}\left(1-e^{-\frac{R}{k}t}\right)\lt\dfrac{V}{R}$

Part 2

Models you'll be given

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.

$$\frac{dy}{dt}=y(a-by)\qquad\Rightarrow\qquad y=\frac{a}{b+Ce^{-at}}$$

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$.

  1. 1Separate the variables, with the population on one side and $t$ on the other.
  2. 2Use partial fractions to integrate the population side. The $t$ side integrates easily.
  3. 3Use the initial condition to find the constant.
  4. 4Rearrange to make the population the subject, if the question asks for it.
  5. 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.

  1. 1Separate the variables.
  2. 2Integrate. The $m$ side gives $\ln|m|$, and the $t$ side gives $-kt+c$.
  3. 3Make $m$ the subject: $m=Ae^{-kt}$, where $A=e^c$.
  4. 4Use the starting amount to find $A$. It equals $m(0)$.
  5. 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$.

$$\frac{dT}{dt}=-k\left(T-T_m\right),\qquad k\gt0$$

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.

  1. 1Separate the variables.
  2. 2Integrate. The $T$ side gives $\ln\left|T-T_m\right|$, and the $t$ side gives $-kt+c$.
  3. 3Make $T$ the subject: $T=T_m+Ae^{-kt}$.
  4. 4Use the starting temperature to find $A$. It is the starting difference, $T(0)-T_m$.
  5. 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.

$$\int\frac{1}{P(1-0.2P)}\,dP=\int0.5\,dt$$

1 markCorrectly separates the variables.

$$\frac{1}{P(1-0.2P)}=\frac{1}{P}+\frac{0.2}{1-0.2P}$$

1 markUses partial fractions.

$$\ln|P|-\ln|1-0.2P|=0.5t+c$$

1 markUses suitable integration methods to determine a solution to the differential equation.

$$P=0.3,\ t=0:\quad c=\ln(0.3)-\ln(0.94)\approx-1.142$$

1 markDetermines the constant of integration.

$$t=5:\quad\ln|P|-\ln|1-0.2P|=2.5-1.142=1.358$$

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.

Answer
about 2.2 million

The full walkthrough of 2025 Paper 2, Question 16 goes through it mark by mark.

2020 Paper 2, Question 12

Short response · Technology-active · [9 marks]

For a certain experiment, the number of yeast cells, $N$, after $t$ hours in a test tube can be modelled by the differential equation

$$\frac{dN}{dt}=\frac{1}{1000}N(1000-N)\quad\text{for }t\ge0$$

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]

Part a)

$$\int\frac{1000}{N(1000-N)}\,dN=\int1\,dt\ \Rightarrow\ \int\left(\frac{1}{N}+\frac{1}{1000-N}\right)dN=\int1\,dt$$

1 markCorrectly uses the separation of variables technique and substitutes the given result into the differential equation.

$$\begin{aligned}\ln|N|-\ln|1000-N|&=t+c\\\ln\left|\frac{N}{1000-N}\right|&=t+c\end{aligned}$$

1 markCorrectly develops the required general solution.

Part b)

$$t=0,\ N=100:\quad\ln\left(\frac{100}{900}\right)=c\ \Rightarrow\ c=\ln\left(\frac19\right)$$

1 markCorrectly determines $c$.

$$\frac{N}{1000-N}=e^{t+\ln\left(\frac19\right)}=\frac{e^t}{9}$$

1 markSubstitutes the value of $c$ and simplifies to a function that includes the term $e^t$.

$$\begin{aligned}9N&=1000e^t-Ne^t\\N\left(9+e^t\right)&=1000e^t\\N&=\frac{1000}{1+9e^{-t}}\end{aligned}$$

1 markDevelops the solution for $N$ in the required form.

Part c)

$$900=\frac{1000}{1+9e^{-t}}\ \Rightarrow\ t\approx4.394\text{ hours}$$

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]

Part a)

$$\int\frac{1}{M}\,dM=-\int k\,dt\ \Rightarrow\ \ln(M)=-kt+c\quad(M\gt0)$$

1 markSeparates the variables and integrates.

$$t=0,\ M=80:\quad c=\ln(80)\ \Rightarrow\ M=e^{-kt+\ln(80)}=80e^{-kt}$$

1 markUses the initial mass to reach the required result.

Part b)

$$40=80e^{-5k}\ \Rightarrow\ e^{-5k}=\frac12$$

1 markUses the half-life to write an equation for $k$.

$$-5k=\ln\left(\frac12\right)\ \Rightarrow\ k=\frac{\ln(2)}{5}$$

1 markDetermines the exact value of $k$.

Part c)

$$10=80e^{-kt}\ \Rightarrow\ e^{-kt}=\frac18\ \Rightarrow\ t=\frac{\ln(8)}{k}$$

1 markWrites and rearranges an equation for $t$.

$$t=\frac{3\ln(2)}{\ln(2)}\times5=15\text{ years}$$

1 markDetermines the time.

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]

Part a)

$$\int\frac{1}{T-22}\,dT=-\int k\,dt$$

1 markSeparates the variables.

$$\ln(T-22)=-kt+c\quad(T\gt22)$$

1 markIntegrates both sides.

$$t=0,\ T=95:\quad c=\ln(73)\ \Rightarrow\ T-22=73e^{-kt}\ \Rightarrow\ T=22+73e^{-kt}$$

1 markUses the initial temperature to reach the required result.

Part b)

$$70=22+73e^{-5k}\ \Rightarrow\ e^{-5k}=\frac{48}{73}$$

1 markSubstitutes the five-minute reading.

$$k=\frac15\ln\left(\frac{73}{48}\right)\approx0.0839$$

1 markDetermines the value of $k$.

Part c)

$$T(15)=22+73e^{-15k}\approx42.8^{\circ}\text{C}$$

1 markDetermines the temperature after 15 minutes.

Part d)

$$T(60)=22+73e^{-60k}\approx22.5^{\circ}\text{C}$$

1 markDetermines the temperature after one hour.

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$.

$$\int\frac{1}{T-T_r}\,dT=-\int k\,dt\ \Rightarrow\ \ln\left(T-T_r\right)=-kt+c$$

1 markSeparates the variables and integrates.

$$T=T_r+Ae^{-kt}$$

1 markWrites the general solution as an exponential function.

$$t=0,\ T=100:\quad A=100-T_r$$

1 markUses the initial temperature to find $A$.

$$\begin{aligned}60-T_r&=\left(100-T_r\right)e^{-10k}\\40-T_r&=\left(100-T_r\right)e^{-20k}\end{aligned}$$

1 markWrites two equations from the readings.

Since $e^{-20k}=\left(e^{-10k}\right)^2$, square the first equation and divide it by the second.

$$\begin{aligned}\left(60-T_r\right)^2&=\left(100-T_r\right)\left(40-T_r\right)\\3600-120T_r&=4000-140T_r\\T_r&=20\end{aligned}$$

1 markEliminates $k$ to find the room temperature.

$$40=80e^{-10k}\ \Rightarrow\ k=\frac{\ln(2)}{10}$$

1 markDetermines the exact value of $k$.

The room is at 20 °C.

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.

Answer
$T_r=20$ °C, $k=\dfrac{\ln(2)}{10}$

Game plan

Choosing a method

For the whole topic on one page, see Game plan 7 · Rates of change and differential equations in the External Game plan.

Which form is it?

  1. 1Only $x$ on the right: integrate directly.
  2. 2Only $y$ on the right: take the reciprocal, or separate.
  3. 3A function of $x$ times a function of $y$: separate the variables.
  4. 4Two linear factors in the same variable, like $P(1-0.2P)$: separate, then use partial fractions.

Finishing the question

  1. 1Add $c$ to one side as soon as you integrate.
  2. 2Find $c$ from the initial condition before you rearrange.
  3. 3Remove logarithms by taking the exponential of both sides.
  4. 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

$\frac{dN}{dt}=\frac{1}{500}N(500-N)\quad\text{for } t\ge0$

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]

Part a)

$\displaystyle \int\frac{500}{N(500-N)}\,dN=\int1\,dt\Rightarrow\int\left(\frac1N+\frac{1}{500-N}\right)dN=\int1\,dt$

1 markCorrectly separates the variables and uses the given partial fractions.

$\ln|N|-\ln|500-N|=t+c\Rightarrow\displaystyle \ln\left|\frac{N}{500-N}\right|=t+c$

1 markCorrectly shows the mathematical reasoning needed to complete the proof.

Part b)

$t=0$, $N=20$: $\displaystyle c=\ln\left(\frac{20}{480}\right)=\ln\left(\frac{1}{24}\right)=-\ln(24)$

1 markCorrectly determines the value of $c$.

$0<N<500$, so $\displaystyle \frac{N}{500-N}=\frac{e^t}{24}\Rightarrow24N=500e^t-Ne^t\Rightarrow N\left(24+e^t\right)=500e^t$

$\displaystyle N=\frac{500e^t}{24+e^t}=\frac{500}{1+24e^{-t}}$

1 markCorrectly shows the mathematical reasoning needed to complete the proof.

Part c)

$\displaystyle 400=\frac{500}{1+24e^{-t}}\Rightarrow e^{-t}=\frac{1}{96}\Rightarrow t=\ln(96)\approx4.564$ hours

1 markDetermines the value of $t$.

4.564 hours $\approx$ 4 hours 34 minutes after 8:00 am, i.e. 12:34 pm

1 markDetermines the time of day.

Read 4.56 hours carefully. It is 4 hours and about 34 minutes, so 12:34 pm. Writing 4 hours 56 minutes loses the second mark of part c).

Answer
b) $c=-\ln(24)$c) $t=\ln(96)\approx4.56$ hours, so 12:34 pm

Question 2 of 10

Direct integration with a tangent · Technology-free · Simple familiar · [5 marks]

Consider the differential equation

$\frac{dy}{dx}=\frac{\sin(3x)}{\cos(3x)}$

for $-\frac{\pi}{6}<x<\frac{\pi}{6}$.

a)Determine the general solution of the differential equation.[2 marks]
b)Determine the particular solution of the differential equation given $y=0$ when $x=\dfrac{\pi}{9}$. Express your answer in simplified form.[2 marks]
c)Use your result from Question 2b) to determine the exact value of $y$ when $x=\dfrac{\pi}{12}$.[1 mark]

Part a)

$\displaystyle y=\int\frac{\sin(3x)}{\cos(3x)}\,dx$

1 markCorrectly represents $y$ as an integral.

$\displaystyle y=-\frac13\ln|\cos(3x)|+c$

1 markDetermines the general solution, including the constant of integration.

Part b)

$\displaystyle 0=-\frac13\ln\left(\cos\left(\frac{\pi}{3}\right)\right)+c=-\frac13\ln\left(\frac12\right)+c\Rightarrow c=-\frac13\ln(2)$

1 markCorrectly determines the value of $c$.

For $-\tfrac{\pi}{6}<x<\tfrac{\pi}{6}$, $\cos(3x)>0$: $\displaystyle y=-\frac13\ln(\cos(3x))-\frac13\ln(2)=-\frac13\ln(2\cos(3x))$

1 markDetermines the particular solution in simplified form.

Part c)

$\displaystyle y=-\frac13\ln\left(2\cos\left(\frac{\pi}{4}\right)\right)=-\frac13\ln\left(\sqrt2\right)=-\frac16\ln(2)$

1 markDetermines the exact value of $y$.

The $\frac13$ comes from the $3x$. Multiplying by 3 instead loses the second mark of part a), but the later parts can still get follow-through marks.

Answer
a) $y=-\tfrac13\ln|\cos(3x)|+c$b) $y=-\tfrac13\ln(2\cos(3x))$c) $-\tfrac16\ln(2)$

Question 3 of 10

Radioactive decay and a half-life · Technology-free · Simple familiar · [6 marks]

The mass, $M$ (milligrams), of a radioactive isotope remaining after $t$ days 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 120 milligrams.

a)Use separation of variables to show that $M=120e^{-kt}$.[2 marks]

The half-life of the isotope is eight days.

b)Determine the exact value of $k$.[2 marks]
c)Determine the time taken for the mass of the sample to reduce to 15 milligrams.[2 marks]

Part a)

$\displaystyle \int\frac1M\,dM=\int-k\,dt\Rightarrow\ln(M)=-kt+c$

1 markCorrectly separates the variables and integrates.

$t=0$, $M=120$: $c=\ln(120)$

$\ln\left(\frac{M}{120}\right)=-kt\Rightarrow M=120e^{-kt}$

1 markCorrectly shows the mathematical reasoning needed to complete the proof.

Part b)

$t=8$, $M=60$: $60=120e^{-8k}$

1 markCorrectly forms an equation using the half-life.

$\displaystyle e^{-8k}=\frac12\Rightarrow-8k=-\ln(2)\Rightarrow k=\frac{\ln(2)}{8}$

1 markDetermines the exact value of $k$.

Part c)

$\displaystyle 15=120e^{-kt}\Rightarrow e^{-kt}=\frac18$

1 markSubstitutes $M=15$ and isolates the exponential.

$\displaystyle -\frac{\ln(2)}{8}t=-3\ln(2)\Rightarrow t=24$ days

1 markDetermines the time taken.

From 120 mg to 15 mg is three halvings, $120\to60\to30\to15$, so the answer is three half-lives. That reasoning gets both marks of part c) on its own.

Answer
b) $k=\dfrac{\ln(2)}{8}$c) 24 days

Question 4 of 10

Taking the reciprocal; an initial condition · Technology-free · Simple familiar · [5 marks]

Consider the differential equation

$\frac{dy}{dx}=2y+6$

where $y>-3$, and $y=1$ when $x=0$.

a)Use separation of variables to determine the particular solution of the differential equation. Express $y$ in terms of $x$.[4 marks]
b)Determine the exact value of $x$ when $y=9$.[1 mark]

Part a)

$\displaystyle \frac{dx}{dy}=\frac{1}{2y+6}\Rightarrow\int1\,dx=\int\frac{1}{2y+6}\,dy$

1 markCorrectly separates the variables.

$\displaystyle x=\frac12\ln(2y+6)+c$

1 markCorrectly integrates, including the factor $\tfrac12$.

$x=0$, $y=1$: $\displaystyle 0=\frac12\ln(8)+c\Rightarrow c=-\frac12\ln(8)$

1 markDetermines the value of the constant.

$\displaystyle 2x=\ln\left(\frac{2y+6}{8}\right)\Rightarrow2y+6=8e^{2x}\Rightarrow y=4e^{2x}-3$

1 markExpresses $y$ in terms of $x$.

Part b)

$\displaystyle 9=4e^{2x}-3\Rightarrow e^{2x}=3\Rightarrow x=\frac12\ln(3)$

1 markDetermines the exact value of $x$.

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]

Part a)

$\displaystyle \int\frac{1}{T-20}\,dT=\int-k\,dt\Rightarrow\ln|T-20|=-kt+c$

1 markCorrectly separates the variables and integrates.

$t=0$, $T=90$: $c=\ln(70)$

$T-20=70e^{-kt}\Rightarrow T=20+70e^{-kt}$

1 markCorrectly shows the mathematical reasoning needed to complete the proof.

Part b)

$\displaystyle 60=20+70e^{-10k}\Rightarrow e^{-10k}=\frac47\Rightarrow k=\frac{1}{10}\ln\left(\frac74\right)\ (\approx0.0560)$

1 markDetermines the exact value of $k$.

Part c)

$\displaystyle \frac{dT}{dt}=-k(50-20)=-30k\approx-1.68^{\circ}$C per minute (decreasing at $1.68^{\circ}$C per minute)

1 markDetermines the rate of change of temperature.

Part d)

$\displaystyle 30=20+70e^{-kt}\Rightarrow e^{-kt}=\frac17$

1 markSubstitutes $T=30$ and isolates the exponential.

$\displaystyle t=\frac{\ln(7)}{k}\approx34.77$ minutes

1 markDetermines the time taken.

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

Question 6 of 10

Separating an exponential · Technology-free · Simple familiar · [5 marks]

Consider the differential equation

$\frac{dy}{dx}=e^{x-y}$

where $y=\ln(2)$ when $x=0$.

a)Show that the differential equation can be written as $e^{y}\dfrac{dy}{dx}=e^{x}$.[1 mark]
b)Determine the particular solution of the differential equation in the form $y=f(x)$.[3 marks]
c)Determine the exact value of $y$ when $x=\ln(3)$.[1 mark]

Part a)

$\displaystyle \frac{dy}{dx}=e^{x-y}=\frac{e^x}{e^y}\Rightarrow e^y\frac{dy}{dx}=e^x$

1 markCorrectly shows the mathematical reasoning needed to complete the proof.

Part b)

$\displaystyle \int e^y\,dy=\int e^x\,dx\Rightarrow e^y=e^x+c$

1 markCorrectly separates the variables and integrates.

$x=0$, $y=\ln(2)$: $2=1+c\Rightarrow c=1$

1 markDetermines the value of $c$.

$e^y=e^x+1\Rightarrow y=\ln\left(e^x+1\right)$

1 markDetermines the particular solution in the form $y=f(x)$.

Part c)

$y=\ln\left(e^{\ln(3)}+1\right)=\ln(4)\ (=2\ln(2))$

1 markDetermines the exact value of $y$.

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]

Part a)

$\displaystyle y=10\left(1+4e^{-2t}\right)^{-1}\Rightarrow\frac{dy}{dt}=\frac{80e^{-2t}}{\left(1+4e^{-2t}\right)^2}$

1 markCorrectly differentiates $y$ with respect to $t$.

$\displaystyle 0.2y(10-y)=\frac{2}{1+4e^{-2t}}\left(10-\frac{10}{1+4e^{-2t}}\right)=\frac{2}{1+4e^{-2t}}\times\frac{40e^{-2t}}{1+4e^{-2t}}=\frac{80e^{-2t}}{\left(1+4e^{-2t}\right)^2}=\frac{dy}{dt}$

1 markCorrectly shows the mathematical reasoning needed to complete the proof.

Part b)

$\displaystyle \frac{dy}{dt}=2y-0.2y^2\Rightarrow\frac{d}{dy}\left(\frac{dy}{dt}\right)=2-0.4y=0$

1 markCorrectly differentiates the rate with respect to $y$ and equates to zero.

$y=5$, a maximum of the concave-down quadratic, so 5000 people

1 markDetermines the number of people.

Part c)

$\displaystyle 5=\frac{10}{1+4e^{-2t}}\Rightarrow4e^{-2t}=1\Rightarrow t=\frac12\ln(4)=\ln(2)$ weeks

1 markDetermines the exact time.

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]

Part a)

$\displaystyle \int\frac{1}{3-0.2A}\,dA=\int1\,dt$

1 markCorrectly separates the variables.

$-5\ln|3-0.2A|=t+c$

1 markCorrectly integrates, including the factor $-5$.

$t=0$, $A=0$: $c=-5\ln(3)$

$\displaystyle \ln\left(\frac{3-0.2A}{3}\right)=-0.2t\Rightarrow3-0.2A=3e^{-0.2t}\Rightarrow A=15\left(1-e^{-0.2t}\right)$

1 markCorrectly shows the mathematical reasoning needed to complete the proof.

Part b)

$\displaystyle 12=15\left(1-e^{-0.2t}\right)\Rightarrow e^{-0.2t}=0.2\Rightarrow t=5\ln(5)\approx8.05$ hours

1 markDetermines the time taken.

Part c)

$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$

Question 9 of 10

Separating with partial fractions · Technology-free · Complex familiar · [6 marks]

A particular solution to the differential equation

$\frac{dy}{dx}=x\left(y^2-1\right)$

for $y>1$.

passes through the point $(0,3)$.

Determine this solution in the form $y=f(x)$.

$\displaystyle \int\frac{1}{y^2-1}\,dy=\int x\,dx$

1 markCorrectly separates the variables.

$\displaystyle \frac{1}{(y-1)(y+1)}=\frac{1}{2}\left(\frac{1}{y-1}-\frac{1}{y+1}\right)$

1 markCorrectly determines the partial fractions.

$\displaystyle \frac12\ln\left|\frac{y-1}{y+1}\right|=\frac{x^2}{2}+c$

1 markCorrectly integrates both sides.

$(0,3)$: $\displaystyle \frac12\ln\left(\frac24\right)=c\Rightarrow c=-\frac12\ln(2)$

1 markDetermines the value of $c$.

$y>1$, so $\displaystyle \frac{y-1}{y+1}>0$: $\displaystyle \ln\left(\frac{y-1}{y+1}\right)=x^2-\ln(2)\Rightarrow\frac{y-1}{y+1}=\frac12e^{x^2}$

$2y-2=ye^{x^2}+e^{x^2}\Rightarrow y\left(2-e^{x^2}\right)=2+e^{x^2}\Rightarrow\displaystyle y=\frac{2+e^{x^2}}{2-e^{x^2}}$

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.

$\displaystyle \ln\left|\frac{P}{20-P}\right|=0.4t+c$

1 markCorrectly integrates both sides.

$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.

Past questions and marking-guide steps are from the 2020–2025 QCAA Specialist Mathematics external assessments and sample assessment, © State of Queensland (QCAA) 2020–2025, licensed under CC BY 4.0, and have been adapted. Tangent Tuition is not affiliated with the QCAA.