Writing Differential Equations
A differential equation describes how a quantity changes, instead of what it equals. This guide shows how to turn a sentence about a rate into an equation and how to read what an equation says.
A differential equation is an equation that contains a derivative, such as \(\frac{dy}{dt} = ky\). It states a rule for the rate of change, usually in terms of the current amount. To write one, translate the words: “the rate of change of \(y\)” is \(\frac{dy}{dt}\); “proportional to” means “equals a constant times”; “the difference between” means subtraction. A given rate at a known amount then fixes the constant.
1What a differential equation is
Ordinary equations say what a quantity is: \(P = 500\). A differential equation says how it changes: \(\frac{dP}{dt} = 0.03P\) means “at every moment, the population grows at 3% of its current size per unit of time.” The solution is a function, not a number.
2Translating words
| Words | Equation |
|---|---|
| y changes at a rate proportional to y | \(\frac{dy}{dt} = ky\) |
| y changes at a rate proportional to the square of y | \(\frac{dy}{dt} = ky^2\) |
| rate proportional to the difference between y and M | \(\frac{dy}{dt} = k(y - M)\) |
| rate jointly proportional to y and (L − y) | \(\frac{dy}{dt} = ky(L - y)\) |
| y increases at a constant rate c | \(\frac{dy}{dt} = c\) |
A growing population
A bacteria population \(P\) grows at a rate proportional to its size. Write a differential equation.
- 1“The rate of change of \(P\)” is \(\dfrac{dP}{dt}\).
- 2“Proportional to \(P\)” means a constant times \(P\): \(kP\).
A rumor spreading
In a school of 1,000 students, a rumor spreads at a rate jointly proportional to the number \(R\) who have heard it and the number who have not. Write the model.
- 1Have not heard: \(1000 - R\). Jointly proportional to both means proportional to their product.
“The population grows at a rate proportional to its size” is about \(\frac{dP}{dt}\), not \(P\). Writing \(P = kt\) describes something else entirely.
3Finding the constant
Cooling tea
Tea cools at a rate proportional to the difference between its temperature \(T\) and the room temperature, 20 °C. When \(T = 90\), it is cooling at 7 °C per minute. Find the model and the cooling rate at \(T = 40\).
- 1Model: \(\dfrac{dT}{dt} = k(T - 20)\).
- 2Use the given rate: cooling at 7 means \(\frac{dT}{dt} = -7\) when \(T = 90\): \(-7 = k(70)\), so \(k = -0.1\).
- 3At \(T = 40\): \(\dfrac{dT}{dt} = -0.1(40 - 20) = -2\).
“Cooling at 7 °C per minute” means \(\frac{dT}{dt} = -7\). With \(T - 20 \gt 0\), the constant must be negative. A positive \(k\) would make hot tea get hotter.
A falling object with air resistance
An object’s velocity \(v\) (m/s) increases because of gravity, 9.8 m/s², and decreases because of air resistance equal to \(0.2v\). Write the model and find the velocity at which the object stops speeding up.
- 1Rate of change of velocity = gain − loss: \(\dfrac{dv}{dt} = 9.8 - 0.2v\).
- 2It stops speeding up when \(\dfrac{dv}{dt} = 0\): \(9.8 = 0.2v\), so \(v = 49\).
Medicine through a drip
A drip delivers medicine into a patient’s bloodstream at 5 mg per hour. The body removes the medicine at a rate proportional to the amount \(A\) (mg) present, with constant 0.2 per hour. Write the model and find the amount at which it levels off.
- 1Rate of change = rate in − rate out: \(\dfrac{dA}{dt} = 5 - 0.2A\).
- 2It levels off when \(\dfrac{dA}{dt} = 0\): \(5 = 0.2A\), so \(A = 25\).
- 3Check the direction: below 25 mg, \(\frac{dA}{dt} \gt 0\) and the amount rises; above 25 mg it falls.
“\(\dfrac{dT}{dt} = -0.1(T - 20)\). When \(T = 40\), \(\dfrac{dT}{dt} = -2\): the tea is cooling at 2 °C per minute.”
“The tea starts at 90 °C” is an initial condition, \(T(0) = 90\), written next to the model. Writing \(\frac{dT}{dt} = -0.1(90 - 20)\) would say the tea cools at 7 °C per minute forever.
4Reading a model
What does \(\dfrac{dV}{dt} = -3\sqrt{V}\) say?
- 1\(V\) decreases (negative rate), and the rate is proportional to the square root of the current volume.
- 2So the tank drains quickly when it is full and slowly when it is nearly empty, as water does through a hole in the bottom of a tank.
Units check a model: in \(\frac{dV}{dt} = -3\sqrt{V}\) with \(V\) in liters and \(t\) in minutes, the 3 must have units that make the right side liters per minute.
Quick reference
| Phrase | Math |
|---|---|
| rate of change of y | dy/dt |
| proportional to | = k × |
| inversely proportional to | = k ÷ |
| decreasing | rate is negative |
| levels off / equilibrium | rate = 0 |