7.10 Constructing differential equations — Learn
Prerequisites: the derivative as a rate of change from Section 7.1; differentiating standard functions from Section 7.3; reading a word problem and choosing a letter for each quantity.
By the end of this section you can: turn a description of a rate into a differential equation; use proportionality and a sign to model growth, decay, cooling, motion, price and demand; and eliminate a constant from a family of curves to form a differential equation.
1. From words to an equation
A differential equation is an equation that links a derivative to the quantities it describes. To build one, follow three steps.
- Name the quantity and its rate. For a quantity that changes with time , the rate is .
- Read the relationship. "Proportional to" introduces a positive constant .
- Get the sign right. "Grows" and "increases" need a positive term; "falls", "cools" and "decays" need a minus sign.
Example 1. A population of bacteria grows at a rate proportional to the population. Write a differential equation for the population after hours.
The rate is . It is proportional to , with a positive constant:
Example 2. A cup of tea cools. The rate at which its temperature falls is proportional to the difference between the temperature and the room temperature, C. Write a differential equation for the temperature after minutes.
The rate is . The temperature difference is . The temperature falls, so the rate is negative:
The minus sign is the important part: the tea cools only while it is warmer than the room.
Example 3. A stone falls under gravity. Its velocity increases at a rate proportional to the constant , directed downwards. Write a differential equation for after seconds.
The rate of change of velocity is acceleration. The velocity increases downwards, so with downwards taken as positive,
If the stone also meets air resistance proportional to its speed, the equation becomes
Example 4. The price of a product falls at a rate proportional to the amount by which the price exceeds . Write a differential equation for .
The price falls, so the rate is negative, and it is proportional to :
2. Forming a differential equation from a family of curves
A differential equation also describes a whole family of curves. Differentiate the family and eliminate any constant.
Example 5. The curve has a constant . Form a differential equation that does not contain .
Differentiate:
But is , so
The differential equation describes every curve in the family, whatever the value of .
Example 6. The curve has a constant . Form a differential equation that does not contain .
Differentiate once:
The constant has vanished, so is the differential equation. Every curve in the family has the same gradient at a given .
Watch out. Three mistakes are common when forming differential equations.
Forgetting the minus sign for a decrease. "Cools" and "decays" mean the rate is negative. In Example 2 the equation would make the tea hotter, which is the wrong model.
Writing "proportional to" as an equals sign without the constant. The phrase introduces an unknown constant . Write , not .
Keeping the wrong variable in the rate. The rate of change of with respect to is . Do not write , which is the reciprocal. Re-check: after you write the equation, read it back in words and confirm that the sign and the rate match the sentence.
You should now be able to
- name the rate in a description and write it as a derivative;
- use a constant for "proportional to";
- use a minus sign for cooling, decay and decrease;
- model population growth, cooling, motion, and price and demand;
- form a differential equation from a family of curves by eliminating a constant.