Write differential equations from statements about rates, solve them by direct integration or separation of variables, find general and particular solutions, and interpret exponential, cooling and draining models.
Each is in the Maths AI glossary, with every other term in the subject.
An equation that contains one or more derivatives of an unknown function; a solution is a function that makes the equation true for every value of the variable in its domain.
The solution of a differential equation that contains an arbitrary constant (one constant for a first-order equation), so that it describes the whole family of functions satisfying the equation.
The law that the rate of change of the temperature of an object is proportional to the difference between its temperature and the constant temperature
With a free account, Augment remembers where you stopped and what you have practiced.
The order of the highest derivative that appears in a differential equation: first order if only the first derivative appears, second order if the second derivative is the highest, and so on.
The single solution of a differential equation that satisfies a given initial condition, found by substituting the condition into the general solution to fix the arbitrary constant.
A method for solving a differential equation of the form by rewriting it as and integrating each side with respect to its own variable.
The law that water flows out of a small hole at depth below the surface with speed ; for a tank of constant cross-section it gives for a constant .
Identify a differential equation and state its order, and verify that a given function is a solution by differentiating and substituting.
Write down a differential equation from a description of a rate of change in context, including "proportional to" statements, signs for decreasing quantities and parameters.
Solve a differential equation of the form by direct integration.
Solve a separable differential equation by separation of variables, with one constant of integration.
Distinguish between the general solution and a particular solution, and use an initial condition to find the particular solution.
Show that is the general solution of
Apply separation of variables to Newton's law of cooling, Torricelli's law for a draining tank and motion with resistance.
Determine long-term behaviour by setting a rate equal to zero, and comment on the limitations of a differential equation model.
Many laws of nature and of economics are statements about rates of change. A population grows faster when there are more individuals to reproduce; a hot drink cools faster when it is much hotter than the room; a tank drains faster when it is full. Each statement links a quantity to its own rate of change, and writing it in symbols gives an equation that contains a derivative: a differential equation. Solving that equation turns a rule about how fast something changes into a formula for how much there is at any time.
Setting up and solving differential equations is the core of modelling with calculus. The exponential models of subtopic 2.5, Modelling with functions, reappear as solutions of the simplest growth equation, which explains why exponential functions describe so many real processes. The same technique, separation of variables, solves the models of cooling, draining and falling that recur throughout science and engineering.
The Revision Village introduction to differential equations sets up a first model from a statement about a rate and solves it: the same two stages, writing the equation and then solving it, run through every model of the subtopic.
YouTubeAn ordinary equation such as has a number as its unknown. A differential equation has a function as its unknown, and it describes that function through its derivative. The equation
In contexts the variable is usually time , and the unknown is whatever quantity changes: a population , a temperature , a volume , a velocity . The letter in the numerator of the derivative is the dependent variable (the unknown function) and the letter in the denominator is the independent variable. In
Differential equations are classified by the highest derivative they contain. Equations with only a first derivative describe how a quantity changes; equations with a second derivative describe how its rate of change changes, as in Newton's second law of motion, where acceleration is the second derivative of position.
Differential equation | Unknown function | Independent variable | Order |
|---|---|---|---|
First-order equations are solved by direct integration or by separation of variables. Second-order equations are solved in subtopic 5.18, Second-order differential equations, by rewriting them as two first-order equations.
Because a solution is a function, checking a proposed solution means differentiating it and substituting both the function and its derivative into the equation. If the two sides agree for every value of the variable, the function is a solution. This check needs no solving technique at all, and it is the quickest way to confirm an answer found by separation of variables.
The two sides are equal for every , so the claim is true. The calculation also works with replaced by any constant, which is a first sign that a differential equation has a whole family of solutions.
Every differential equation model starts from a sentence about a rate. The rate of change of a quantity with respect to time is , measured in units of per unit of time. "The rate of change of the population" is
The phrase "is proportional to" means "is a constant multiple of", exactly as in direct variation in subtopic 2.5. If is proportional to , then for some constant of proportionality . Applied to a rate, "the rate of growth of is proportional to
A derivative is positive while a quantity increases and negative while it decreases. When a context says a quantity is decreasing, leaking, decaying, cooling or slowed by resistance, the derivative must be negative. The usual convention keeps the constant positive and puts the minus sign in the equation, so that measures the size of the effect and the sign shows its direction.
Statement in words | Differential equation () |
|---|---|
The population grows at a rate proportional to its size. |
In the rumour model the rate is large at first, when almost everyone has not heard, and falls to zero as approaches 8000. Reading an equation back into words like this is a reliable check that it describes the situation intended: each term should have a meaning, and the sign of the derivative should match whether the quantity rises or falls.
Models often contain several constants with meanings in the context, for example for a computer virus, where is the number of computers in a city and measures how easily the virus spreads. Such letters are parameters: they are fixed for a given situation, so in calculus they are treated exactly like numbers. The product
Two physical laws are used so often in modelling that they have names. Each one states a rate, so each one is a differential equation as soon as it is written in symbols.
The minus sign makes the law work in both directions. A hot object has , so
The second law describes water draining through a small hole in the base of a tank, as in the diagram of a cylindrical tank. Evangelista Torricelli found in 1643 that the water leaves the hole at the speed it would reach by falling freely through the depth , which is where is the acceleration due to gravity.

The rate at which volume leaves is the area of the hole times the speed of the water, . For a cylinder of cross-section area , the volume is
All the physical details (the hole size, the tank's cross-section, gravity) combine into one constant . In practice is rarely calculated from these details; it is found from a measurement, such as the depth after a few minutes of draining.
The simplest differential equations give the derivative as a function of the independent variable alone, . Finding means finding a function whose derivative is
Because of the constant of integration, the answer is a whole family of functions. For , the integral gives
The family of curves in the graph of is the whole set of solutions of
For the curve through , substituting and into
Most rate laws involve the unknown itself: cannot be integrated directly, because cannot be found while
Equations of this shape are called separable. ,
Dividing both sides of by puts everything involving
The last step is the chain rule read backwards: if is an anti-derivative of , then
Integrating both sides seems to produce two constants, . Subtracting
Rearrange so that all terms in the unknown (and its ) are on one side and all terms in the independent variable are on the other:
The Khan Academy video on separable equations works through this sequence with a first example, including the step where the single constant appears.
YouTubeWhen the unknown appears as a factor , separating gives , and making
The equation says the rate of change is proportional to the amount present. Separating the variables gives the general solution in four lines.
Since can be any positive number and the allows either sign, can be any non-zero constant. The constant function also satisfies the equation (both sides are 0), so the general solution
The sign of decides the behaviour. For the solution shows exponential growth; for it shows exponential decay towards 0. The family of solutions of
For with , the time for to double satisfies
The exponential form and the form from subtopic 2.5 describe the same functions. Since
Form | Growth factor per unit time | Constant in | Example |
|---|---|---|---|
The virus model is solved in exactly the same way, with treated as a single constant. The parameters stay as letters until numerical values are needed, which keeps the meaning of each constant visible in the answer.
Newton's law is separable, with
At , , so
The long-term temperature can be read from the differential equation without solving it. The rate is zero exactly when , so once the object reaches room temperature it stays there:
The draining-tank equation
So falls linearly with time, and is a quadratic in . Unlike exponential decay, the tank empties in a finite time:
The graph of the depth shows the level falling quickly while the tank is full and slowly near the bottom, as Torricelli's law predicts. The formula is a parabola that would rise again for , which makes no physical sense: once the tank is empty, it stays empty.
A value of the unknown at which the rate of change is zero is an equilibrium: if the quantity starts there, it never changes. Equilibria can be found from the differential equation alone, by solving , and they often give the long-term value without any integration. The full theory of equilibrium points for systems of equations is in subtopic 5.17, Phase portraits.
A falling object with air resistance proportional to its velocity has . The velocity stops changing when
Exponential growth cannot continue for ever in a limited environment. The logistic model adds a factor that slows growth as the population approaches a carrying capacity .
When is small, and the equation is close to
The logistic curve with , and starts at
When data are fitted to the logistic equation, rearranging it helps. Dividing by gives
Differential equations from contexts are examined on HL Paper 1 as short questions of 5 to 8 marks (set up and solve by separation, find a constant from a second data point, find when a quantity reaches a value) and on Papers 2 and 3 as the opening of long modelling questions that continue with Euler's method, regression or coupled systems. Common command terms are write down (a differential equation from words, or an equilibrium), show that (a given solution, by separating the variables and using the initial conditions), find (the general solution, a constant, a time), hence and comment (on the validity of a model for large ).
Markschemes award an M1 for an attempt to separate the variables (reaching ), separate A1 marks for each side, an A1 for the constant of integration, and an M1 for clearly using the initial condition, where "" or "initially" must be seen. In a "show that" question every step must be written, and the final line, the given result, must be stated.
The examiners' reports for questions of this kind point to two recurring problems. Candidates who could solve failed with , because the parameters seemed unfamiliar, and many switched between
Doubling times and times to reach a value must come from the model, not from the data table. A doubling time read off a table of observed values is not what the question asks for when a fitted model is available, and markschemes do not follow through from it.
State the order of each differential equation: (a) ; (b)
(a) First order. (b) Second order.
,
A differential equation links an unknown function to its derivatives; its order is that of the highest derivative, and a solution is a function, checked by differentiating and substituting.
"Proportional to" means "equals a constant multiple of"; decreasing quantities need a negative rate, written with ; parameters are treated as constants.
I can state the order of a differential equation and name its unknown function and independent variable.
I can verify that a function solves a differential equation by differentiating and substituting, without relying on one value.
I can translate "proportional to", "rate of decrease" and "inversely proportional" into a differential equation with the correct sign.
I can treat parameters such as , and as constants when integrating.
I can solve
39 exam-style questions on this subtopic, written in the style of the IB papers. The first has its markscheme open. Counted on
Amara pours a cup of coffee in a kitchen where the room temperature is a constant 21°C. The temperature of the coffee, °C, minutes after it is poured, decreases at a rate proportional to the difference between and the room temperature. When , .
Write down a differential equation that models this situation, using as the constant of proportionality, where .
1 mark
A biologist studies a colony of bacteria in a laboratory dish. The number of bacteria, , at time hours, increases at a rate that is proportional to , so that
Consider the differential equation
The entries of the mathematics: applications and interpretation formula booklet that 5.14 uses. Each opens in the explained booklet.
1 |
1 |
1 |
2 |
2 |
(b) Determine whether is a solution of . [2]
(a) Differentiate the proposed solution, using the chain rule for .
Substitute into the right-hand side.
Both sides equal for every , so
(b) If , then
The mass of a drug in the body decreases at a rate proportional to the mass present. |
The volume of water in a leaking tank decreases at a rate proportional to the square root of . |
The number of people who have heard a rumour increases at a rate proportional to the number who have not yet heard it, in a town of 8000. |
The gradient of a curve at any point is inversely proportional to the -coordinate. |
An object falls with acceleration reduced by air resistance proportional to the square of its velocity. |
(c) A new phone is bought by people at a rate proportional to the product of the number who already own it and the number who do not, in a market of people.
(d) The velocity of a cyclist coasting on level ground decreases at a rate proportional to the square of the velocity.
(a) The rate is , positive because increases: , where is a constant.
(b) The volume decreases, so the rate is negative. The rate is proportional to , and the factor 3 can be absorbed into the constant:
(c) The number who do not own the phone is . The rate of increase of is proportional to :
(d) The velocity decreases, so , where
A cup of tea at 80 °C in a 20 °C room cools four times as fast as when it has reached 35 °C, because the difference has fallen from 60 °C to 15 °C.
Halving the depth of water divides the outflow speed by .
There were 1500 downloads on the day of launch, so .
(a) Find the general solution of the differential equation. [2]
(b) Find the particular solution. [2]
(c) Find the number of downloads after 20 days, and the day on which the total first exceeds 2000. [3]
(a) The right-hand side depends on only, so integrate directly, using (subtopic 5.11). Since , the modulus is not needed.
(b) Use when .
The particular solution is , or
(c) , so about 1930 downloads.
Solve with the GDC (graph both sides and find the intersection, or use the equation solver): . The total first exceeds 2000 during day 29 (after 28.1 days). The logarithmic growth means each extra 500 downloads takes longer than the last.
Write integral signs on both sides and integrate each side with respect to its own variable.
Add one constant of integration on the independent-variable side.
Use the initial condition to find (substituting now is often simplest).
Rearrange to make the unknown the subject, if asked or if it helps interpretation.
Check: differentiate the answer, or at least confirm it satisfies the initial condition.
The right-hand side is , a function of times a function of , so separate the variables by multiplying both sides by .
Integrate each side with respect to its own variable, with one constant.
Use when :
The initial value is positive, so take the positive root:
Check: at , . Differentiating
Separate: divide by and multiply by .
Use the initial condition straight away: , so .
Take the exponential of both sides. Since initially, .
When , , so
: factor |
: |
(c) Find the mass after 10 days, and the time when the mass reaches 50 kg. [3]
(d) Comment on the validity of the model for large . [1]
(a) , where is a constant.
(b) Separate the variables. M1
Then
Doubling in 4 days means when : , so
(c)
For 50 kg: , so and
(d) The model predicts unlimited growth, but the pond has limited space and nutrients, so the growth rate must eventually slow; the model is only valid for the early stage of growth.
(a) Find the general solution of the differential equation. [4]
(b) Find the value of . [3]
(c) Find the time taken for the number of infected computers to double. [2]
(d) Explain why the model cannot be valid after about 36 days. [2]
(a) Separate the variables, keeping as a constant.
(b) gives . Then :
(c) Doubling time
(d) Setting gives
(b) Find the value of . [2]
(c) Estimate the time of death. [3]
(a) Newton's law with : . Separate the variables. M1
( throughout, so no modulus is needed.) Then . At
(b) At , :
(c) Death occurred at a negative time when .
Death occurred about 3.70 hours, or about 3 hours 42 minutes, before 22:00: at about 18:18.
In practice this is only an estimate: a body does not cool exactly as Newton's law assumes (clothing, air movement and body size all change ), so forensic estimates are given as a time range.
(a) Show that . [6]
(b) Find the time taken for the tank to empty. [2]
(c) Find the rate at which the depth is decreasing when . [2]
(a) Separate the variables. M1
A1 (left side) A1 (right side with )
When , :
When , :
Then , so
(b) when , so minutes. (M1)A1
(c)
(a) Find the terminal velocity predicted by the model. [2]
(b) By solving the differential equation, show that . [5]
(c) Find the time taken to reach 90% of the terminal velocity. [2]
(a) At terminal velocity : , so (39.2 to 3 s.f.).
(b) Separate the variables.
The left side has a linear inner function with coefficient , so its integral is
Rearrange: , so
Initially (dropped from rest), so .
(c) gives
As , and , confirming part (a).
Write and differentiate with the chain rule.
Now work out the right-hand side. First,
so
The two sides are the same expression, so is a solution for every value of : it is the general solution.
(b) By solving the differential equation, show that . [5]
(c) Find the value of . [2]
(d) The bar can be handled safely once its temperature is below 100 °C. Find the time taken for the bar to reach 100 °C. [2]
(e) Find the rate at which the temperature is decreasing when . [2]
(f) A worker states that the bar will eventually cool to 25 °C. Comment on this statement using the model. [1]
(a) A1
(b) M1
A1 A1
; when ,
AG
Note: the M1 for the initial condition requires or "initially" to be seen.
(c) (M1)
(d) (M1)
minutes (35.0039…) A1
(e) (M1)
decreasing at °C per minute A1
Note: accept if the context makes the decrease clear.
(f) for all , so always: the bar approaches 25 °C but, according to the model, never reaches it (in practice it becomes indistinguishable from 25 °C) R1
Total [13]
The number of subscribers to a streaming service increases at a rate proportional to the number of people in a market of 50,000 who have not yet subscribed. Write down a differential equation for . [2]
Show that is a solution of . [3]
Find the particular solution of for which when . [5]
Solve , given that when . Hence find the value of when . [6]
A yeast population grows according to , where is in hours, and . Find the population after 6 hours and the doubling time. [4]
The depth metres of water in a tank satisfies , with in minutes, and when . Find an expression for in terms of , and the time taken for the tank to empty. [6]
A cup of coffee at 92 °C is placed in a room at 22 °C. After 4 minutes its temperature is 75 °C. Using Newton's law of cooling, find its temperature after 10 minutes and the time at which it reaches 50 °C. [7]
A parachutist's velocity satisfies , with when . (a) Write down the terminal velocity. (b) Find in terms of . (c) Find the time taken to reach 30 m s⁻¹. [8]
A fish population, with in years, follows . (a) Write down the long-term population if . (b) Find the population at which the growth rate is greatest, and that greatest rate. [5]
; . Equal for all .
, , , so .
, , so ; at , (3 s.f.).
; ; doubling time hours.
, , so and ; empty when minutes.
; gives ; °C; gives minutes.
(a) . (b) , leading to . (c) , s.
(a) 5000 (the carrying capacity, where ). (b) The rate has at ; greatest rate fish per year.
The general solution contains the arbitrary constant (a family of curves); an initial condition picks out the particular solution.
has general solution , where is the initial value; the doubling time or half-life is , and converts to .
Newton's law of cooling gives , approaching .
Torricelli's law gives ; the tank empties in finite time, and the model holds only until then.
Setting the rate equal to zero gives equilibria and long-term values, such as terminal velocity and the carrying capacity of the logistic model.
I can recognise a separable equation and separate the variables correctly.
I can integrate each side with respect to its own variable and write a single constant of integration.
I can rearrange into without splitting the exponential of a sum.
I can explain the difference between a general solution and a particular solution.
I can find a constant such as from a second data point, and a doubling time or half-life from .
I can solve Newton's law of cooling and Torricelli's law, and interpret the results in context.
I can find an equilibrium or terminal velocity by setting the rate equal to zero.
I can show that a given logistic function satisfies the logistic differential equation.
I can comment on the validity of an exponential model for large times.
Note: Accept equivalent forms such as .
[1 mark]
By solving your differential equation, show that .
3 marks
M1
A1
and when ,
AG
Note: Award M1 for separating the variables with integral signs seen. The modulus sign is not required since .
[3 marks]
After 5 minutes the temperature of the coffee is 70°C. Find the value of .
2 marks
(M1)
A1
[2 marks]
Amara likes to drink her coffee when its temperature has fallen to 45°C. Find how long after pouring the coffee this occurs.
2 marks
(M1)
(minutes) A1
Note: Follow through from their in part (c). Accept from use of .
[2 marks]
When there are 2000 bacteria in the colony, the colony is growing at a rate of 140 bacteria per hour.
Find the value of .
1 mark
Initially there are 500 bacteria. Solve the differential equation to find an expression for in terms of .
3 marks
Find the time taken for the number of bacteria to reach 10 000.
2 marks
Find the general solution of the differential equation, giving your answer in the form .
3 marks
Given that when , find the value of when .
3 marks