Forming Differential Equations

A sentence about rates becomes an equation.

Read the sentence for its two sides

A sentence about how something changes is a differential equation written in words. "A population grows at a rate proportional to its size" names both sides. "The rate" at which the population P grows is dP/dt, the change in P per unit time. "Its size" is P. "Proportional to" means equal to a constant times, so the sentence becomes dP/dt = kP.

The constant k is positive here, because the population grows. Nothing in the sentence says how big k is; a reading fixes that. If the population is growing by 50 a year when it is 1000, then 50 = k × 1000 and k = 0.05 per year.

The sign says which way

A hot drink cools toward the temperature R of the room, faster when it is much hotter than the room and slower as it gets close. What drives the change is the gap T − R, and the temperature falls, so dT/dt = −k(T − R), with k > 0.

Check the sign both ways. For tea at 90 degrees in a room at 20 with k = 0.1 per minute, the gap is 70 and dT/dt = −0.1 × 70 = −7 degrees per minute: the tea cools. At 50 degrees the rate is −0.1 × 30 = −3 degrees per minute, slower. A cold drink at 5 degrees has a gap of −15, so dT/dt = +1.5 degrees per minute and it warms. One equation covers both, because the sign of the gap does the work.

Writing −kT instead would drive the temperature toward 0, not toward the room.

Rate, driver, constant

Every translation takes the same three moves. Name the rate: d(what changes)/dt. Name what drives it. Join the two with a constant k, and give it the sign that makes the quantity rise or fall as the sentence says.

"Water leaks from a tank at a rate proportional to the volume left" gives dV/dt = −kV: V is what changes, V drives it, and leaking makes it fall.

"The radius of a crystal grows at a rate inversely proportional to its radius" gives dr/dt = k/r: inversely proportional means a constant divided by the driver.

"A rumor spreads through N people at a rate proportional to the product of those who have heard it and those who have not" gives dx/dt = kx(N − x), where x is the number who have heard it.

"The depth of water falls at a rate proportional to the square root of the depth" gives dy/dt = −k√y, with y the depth.

More than one thing changing

When water runs into a tank at 5 liters a minute and leaks out at a rate proportional to the volume, the rate is what comes in minus what goes out: dV/dt = 5 − kV. With k = 0.1 per minute the volume stops changing when 5 = 0.1V, at V = 50 liters.

Sometimes the rate in the sentence belongs to a different quantity from the one asked about. A balloon’s volume grows at a steady 20 cubic centimeters per second, and the question is about its radius. The chain rule links them: dV/dt = (dV/dr)(dr/dt), and for a sphere dV/dr = 4πr². So dr/dt = 20/(4πr²). When r = 5 centimeters, dr/dt = 1/(5π) ≈ 0.0637 centimeters per second.

Then solve it

Once the equation is written, separating the variables solves it. dT/dt = −0.1(T − 20) separates to (1/(T − 20)) dT = −0.1 dt, which integrates to ln|T − 20| = −0.1t + c, so T − 20 = Ae^(−0.1t).

The tea starts at 90, so A = 70 and T = 20 + 70e^(−0.1t). After 10 minutes T = 20 + 70e^(−1) ≈ 45.75 degrees, and the derivative there, from a difference quotient, is −2.575, which is −0.1 × 25.75, as the equation says. The tea reaches 30 degrees when e^(−0.1t) = 1/7, at t = 10 ln 7 ≈ 19.5 minutes.

tT

Temperature T against time t in minutes, both solving dT/dt = −0.1(T − 20). The gold curve starts at 90 and falls, passing 45.75 at t = 10. The dashed curve starts at 5 and rises. Both close in on the dashed horizontal line T = 20, the room, from opposite sides.

The usual mistakes

Writing a constant rate. "Grows at a rate proportional to its size" is dP/dt = kP, not dP/dt = k: the size has to appear.

Leaving out the minus sign. A leak is dV/dt = −kV with k > 0; without the minus, the volume would grow.

Using the temperature instead of the gap. Cooling toward a room at R is dT/dt = −k(T − R), not −kT.

Writing a solution instead of a rate. P = kt is a formula for P, not a statement about dP/dt.

Reading inversely proportional as a product. dr/dt = k/r, not kr.

A sentence about a water butt

In the application below, the first step is the translation: the depth falls at a rate proportional to its square root, with a minus sign because it falls. The rest is separating and integrating.

Worked example: A Water Butt Emptying Through Its Tap: A Sentence About a Rate Turned Into an Equation and Solved

Question A water butt with straight sides empties through a tap at its foot. Torricelli's law says that the depth of water falls at a rate proportional to the square root of the depth. The depth is 64 centimeters when the tap is opened, and 49 centimeters five minutes later. (a) Find the depth after 20 minutes. (b) Find when the butt is empty.

  1. 1.Let h be the depth in centimeters and n the number of minutes since the tap was opened. The depth falls at a rate proportional to √h, so dhdn = −k√h with k > 0, the minus sign because the depth is falling.

    0164964052040n, minutesdepth h, cm0478052040n, minutesthe root of hdh/dn = −k√h, the minus because the depth falls
    0164964052040n, minutesdepth h, cm0478052040n, minutesthe root of hdh/dn = −k√h, the minus because the depth falls
    The depth falls at a rate proportional to √h, so dhdn = −k√h, the minus sign because it falls.
  2. 2.Separate the variables and integrate: ∫ h−12dh = −k∫ dn, so 2√h = −kn + C, which is tidier written as √h = A − k2n.

    0164964052040n, minutesdepth h, cm0478052040n, minutesthe root of hdh/dn = −k√h, the minus because the depth fallsseparate:√h = A − 0.5kn, a straight line
    0164964052040n, minutesdepth h, cm0478052040n, minutesthe root of hdh/dn = −k√h, the minus because the depth fallsseparate:√h = A − 0.5kn, a straight line
    Separating gives 2√h = −kn + C, so √h is a straight line in n: that is the right thing to plot.
  3. 3.At n = 0 the depth is 64, so √64 = 8 = A. At n = 5 the depth is 49, so 7 = 8 − 5k2, giving k2 = 0.2. Hence √h = 8 − 0.2n, that is h = (8 − 0.2n)2.

    0164964052040n, minutesdepth h, cm0478052040n, minutesthe root of ha straight linedh/dn = −k√h, the minus because the depth fallsseparate:√h = A − 0.5kn, a straight lineA = 8, and 7 = 8 − 2.5k, so√h = 8 − 0.2n
    0164964052040n, minutesdepth h, cm0478052040n, minutesthe root of ha straight linedh/dn = −k√h, the minus because the depth fallsseparate:√h = A − 0.5kn, a straight lineA = 8, and 7 = 8 − 2.5k, so√h = 8 − 0.2n
    At n = 0, √h = 8; at n = 5, √h = 7. So the line is √h = 8 − 0.2n and h = (8 − 0.2n)2.
  4. 4.(a) At n = 20, √h = 8 − 4 = 4, so the depth is h = 42 = 16 centimeters.

    0164964052040n, minutesdepth h, cm0478052040n, minutesthe root of ha straight line16 cm at 20 mindh/dn = −k√h, the minus because the depth fallsseparate:√h = A − 0.5kn, a straight lineA = 8, and 7 = 8 − 2.5k, so√h = 8 − 0.2n(a) at n = 20,√h = 4, so h = 16 cm
    0164964052040n, minutesdepth h, cm0478052040n, minutesthe root of ha straight line16 cm at 20 mindh/dn = −k√h, the minus because the depth fallsseparate:√h = A − 0.5kn, a straight lineA = 8, and 7 = 8 − 2.5k, so√h = 8 − 0.2n(a) at n = 20,√h = 4, so h = 16 cm
    (a) At n = 20, √h = 8 − 4 = 4, so the depth is 42 = 16 centimeters.
  5. 5.(b) The butt is empty when h = 0, that is when 8 − 0.2n = 0, so n = 40 minutes. Check: the rule gives (8 − 1)2 = 49 at n = 5, as it must, and the emptying slows down as it should, losing 15 centimeters in the first five minutes and only 1 centimeter in the last five.

    0164964052040n, minutesdepth h, cm0478052040n, minutesthe root of ha straight line16 cm at 20 minempty at 40dh/dn = −k√h, the minus because the depth fallsseparate:√h = A − 0.5kn, a straight lineA = 8, and 7 = 8 − 2.5k, so√h = 8 − 0.2n(a) at n = 20,√h = 4, so h = 16 cm(b)√h = 0 at n = 40 minutes
    0164964052040n, minutesdepth h, cm0478052040n, minutesthe root of ha straight line16 cm at 20 minempty at 40dh/dn = −k√h, the minus because the depth fallsseparate:√h = A − 0.5kn, a straight lineA = 8, and 7 = 8 − 2.5k, so√h = 8 − 0.2n(a) at n = 20,√h = 4, so h = 16 cm(b)√h = 0 at n = 40 minutes
    (b) The butt is empty when √h = 0, that is 40 minutes after the tap was opened.

Answer: (a) the depth is 16 centimeters; (b) the butt is empty 40 minutes after the tap was opened

Common mistakes

  • Reading the sentence as ordinary decay, dhdn = −kh, and solving it as h = 64e−kn. The rate is proportional to the square root of the depth, not to the depth, and the difference is not a detail: an exponential never reaches zero, so that model says the butt never empties, while the real one is dry after 40 minutes.
  • Reading √h = 8 − 0.2n at n = 20 as h = 4. The 4 is the square root of the depth, so the depth is 42 = 16 centimeters. Squaring is the last step and it is easy to leave out when the number that comes out looks like an answer.

More using integration problems, worked step by step →

Practice Forming Differential Equations in the app