Constructing differential equation models
import { Aside } from ‘@astrojs/starlight/components’;
A differential equation connects an unknown quantity to one or more of its rates of change. At A level, constructing a model usually means translating a sentence such as “the population grows at a rate proportional to its size” into an equation such as
This lesson is about building and interpreting such equations. Methods for finding their solutions are covered in separable differential equations.
Prerequisites
Section titled “Prerequisites”You should be able to:
- interpret as the rate at which changes with ;
- distinguish positive, negative and zero gradients;
- rearrange formulae;
- use units to check an equation;
- understand direct proportion.
The central translation
Section titled “The central translation”If depends on time , then
The words after “rate” determine the right-hand side.
| Statement | Differential equation |
|---|---|
| increases at a constant rate | |
| decreases at a constant rate | |
| The rate of increase of is proportional to | , |
| The rate of decrease of is proportional to | , |
| The rate of change of is proportional to | |
| The rate of change of is proportional to |
The constant of proportionality is not optional. “Proportional to ” means “equal to for some constant ”.
Example 1: constant filling rate
Section titled “Example 1: constant filling rate”Water enters a tank at litres per minute. Let be the volume of water, in litres, after minutes.
The described rate is the rate of change of volume with time, so
If the tank initially contains litres, the complete initial value model is
The units agree:
Notice that is not another differential equation. It selects the particular situation that begins with litres.
Proportional growth and decay
Section titled “Proportional growth and decay”Suppose the rate of change of is proportional to . Direct proportion gives
If is increasing and , then . For decay, either write , or more clearly write
Both conventions are valid, but the meaning of must be stated.
Example 2: bacterial population
Section titled “Example 2: bacterial population”A bacterial population grows at a rate proportional to its current population. Initially there are bacteria. After two hours, the instantaneous growth rate is bacteria per hour.
Let be the number of bacteria after hours. The verbal statement gives
At , the extra information says
It does not yet determine , because the value of is unknown. If the question also stated that , then
Thus the model would be
The unit of follows from dimensional consistency:
Example 3: radioactive decay
Section titled “Example 3: radioactive decay”The mass of a radioactive substance decreases at a rate proportional to the mass remaining. At time , the mass is mg.
Using for the decay constant,
The negative sign matters. When , the equation guarantees that , so the mass decreases.
Growth towards a limiting value
Section titled “Growth towards a limiting value”Not all growth remains proportional to the amount already present. Sometimes the rate is controlled by the gap between the current value and a limiting value.
If approaches a surrounding temperature , a simple model is
- If , then , so increases.
- If , then , so decreases.
- If , then , so there is no further change.
This sign analysis is a powerful way to test a proposed model without solving it.
Example 4: charging a battery
Section titled “Example 4: charging a battery”A simplified battery model assumes that the rate of increase of charge is proportional to the unused capacity. The maximum charge is units and the initial charge is units.
Unused capacity is , so
A common incorrect model is . That predicts faster charging as the battery becomes fuller. The stated context says the opposite: charging slows because becomes smaller.
Population models with limited resources
Section titled “Population models with limited resources”Unrestricted proportional growth, , assumes that resources never become scarce. A simple model with a carrying capacity is
Equivalently,
The factors have clear roles:
- makes growth slow when the population is very small;
- represents the remaining capacity;
- at and ;
- for ;
- for .
Example 5: fish population
Section titled “Example 5: fish population”A lake supports at most fish. A model assumes that the growth rate is proportional both to the current population and to the unused capacity. Initially there are fish.
Let be the population after years. Then
If , then , but the factor is relatively small. The population is still growing, but resource pressure has slowed its growth.
Kinematics as differential equations
Section titled “Kinematics as differential equations”In one-dimensional motion,
A rule for acceleration is therefore a differential equation for velocity, position, or both.
Example 6: acceleration depending on velocity
Section titled “Example 6: acceleration depending on velocity”A cyclist’s acceleration is modelled as proportional to the difference between a limiting speed of and the current speed . The cyclist starts from rest.
The difference is , so
Check the behaviour:
- at , acceleration is positive;
- as approaches , acceleration approaches ;
- if the model were used with , acceleration would be negative.
The model therefore makes an equilibrium speed.
Example 7: resistance proportional to velocity
Section titled “Example 7: resistance proportional to velocity”A particle of mass falls vertically. Take downward as positive. Its weight is downward, while resistance of magnitude acts upward when .
Newton’s second law gives
Hence
At terminal speed, acceleration is zero:
This conclusion comes from interpreting the differential equation. No full solution is needed.
Price-demand and market adjustment
Section titled “Price-demand and market adjustment”Differential equations can model how a price changes in response to excess demand. Let
- be price;
- be demand at price ;
- be supply at price .
A basic adjustment assumption is
If demand exceeds supply, then and price rises. If supply exceeds demand, then and price falls.
Example 8: linear supply and demand
Section titled “Example 8: linear supply and demand”Suppose
and price changes at a rate proportional to excess demand. Then
The equilibrium price occurs when :
For , . For , . The model therefore predicts adjustment towards a price of .
Initial conditions and parameters
Section titled “Initial conditions and parameters”A differential equation describes a family of possible histories. An initial condition provides the value of the dependent variable at a specified starting point:
Do not confuse these three kinds of information:
Parameters such as , and describe how the system behaves. Variables such as , and change within the model.
State the assumptions
Section titled “State the assumptions”A mathematical model is a deliberate simplification. Strong answers make its assumptions visible. Depending on context, assumptions might include:
- time is treated as continuous;
- a population is large enough to be represented by a continuous variable;
- environmental conditions remain unchanged;
- the proportionality constant does not vary with time;
- no migration, harvesting or sudden external event occurs;
- forces included in the equation are the only significant forces;
- supply and demand respond instantly to price;
- measurements and initial values are exact enough for the purpose.
An equation can be manipulated perfectly and still be a poor model if its assumptions are unreasonable.
Testing a model before solving it
Section titled “Testing a model before solving it”For an equation of the form
ask the following questions.
1. Does the sign make sense?
Section titled “1. Does the sign make sense?”If the context says is increasing, the model should give in the relevant range.
2. Where are the equilibria?
Section titled “2. Where are the equilibria?”Equilibrium values satisfy
At such a value, the model predicts no instantaneous change.
3. What happens near a boundary?
Section titled “3. What happens near a boundary?”If represents mass or population, can the model predict ? If it does, the model may only be valid for a restricted interval.
4. Are the units consistent?
Section titled “4. Are the units consistent?”Every term added or subtracted must have the same units. In
is dimensionless, so must have units of inverse time.
Common misconceptions
Section titled “Common misconceptions”Treating proportional as equal
Section titled “Treating proportional as equal”Incorrect:
Correct general model:
The incorrect equation silently fixes in the chosen units.
Attaching the derivative to the wrong variable
Section titled “Attaching the derivative to the wrong variable”If population changes with time, write , not and not .
Losing the direction of change
Section titled “Losing the direction of change”“Decreases at a rate proportional to ” requires either
or with an explicit statement that .
Using a total change as an instantaneous rate
Section titled “Using a total change as an instantaneous rate”is a change over three time units. is the instantaneous rate at . They are different quantities and usually have different units.
Solving when only a model is requested
Section titled “Solving when only a model is requested”If a question asks you to formulate a differential equation, stop once the variables, equation, conditions and assumptions have been stated. Solving an unnecessary equation wastes time and can introduce errors.
Self-check
Section titled “Self-check”Question 1
Section titled “Question 1”The rate at which a medicine leaves the bloodstream is proportional to the amount present. Initially, mg is present. Construct a model using a positive constant .
Answer
Because the amount decreases,
Question 2
Section titled “Question 2”A rumour spreads through a school of students. The rate of spread is proportional both to the number who know the rumour and the number who do not. Initially students know it. Construct a model.
Answer
The number who do not know the rumour is . Therefore
Question 3
Section titled “Question 3”A car’s acceleration is times the difference between its current speed and a target speed of . The car begins at . Correct the wording if necessary, then give the physically sensible model.
Answer
For the car to accelerate towards the target from below, the relevant difference must be target minus current speed. Thus
Writing would make the initial acceleration negative and move the car away from the target.
Question 4
Section titled “Question 4”Demand and supply are and . Price changes at twice the excess demand per week. Construct the equation and find the equilibrium price without solving the differential equation.
Answer
At equilibrium, , so
What to learn next
Section titled “What to learn next”- Learn how to solve first-order models in separable differential equations.
- Learn how to extract information from a solution in interpreting differential equation models.
- Review physical rate relationships in connected rates of change.
The essential skill is translation: define the quantities, identify what controls the rate, select the sign, add the initial condition, then test whether the model behaves sensibly.