Math Core

Lesson 7.1 · Differential Equations

Modeling with differential equations

Many real situations are easier to describe by how fast something changes than by a formula for the thing itself. A population grows faster when there are more organisms; hot coffee cools faster when it is much hotter than the room. A differential equation captures a rule like that in symbols, and learning to write and read one is the first step toward solving it.

What a differential equation is

Definition

Differential equation

A differential equation is an equation that involves an unknown function and one or more of its derivatives. For example,

dydt=0.4y,dydx=x−y,y′′+9y=0.\frac{dy}{dt} = 0.4y, \qquad \frac{dy}{dx} = x - y, \qquad y'' + 9y = 0.

The order of a differential equation is the highest derivative that appears. The first two above are first order; the third is second order.

Notice what is different from the equations you solved in algebra. In x2−5x+6=0x^2 - 5x + 6 = 0, the unknown is a number. In dydt=0.4y\dfrac{dy}{dt} = 0.4y, the unknown is a whole function y(t)y(t), and the equation tells you how that function's rate of change relates to its current value.

In AP Calculus AB, almost every differential equation you meet is first order and written in the form

dydx=(some expression in x and y).\frac{dy}{dx} = (\text{some expression in } x \text{ and } y).

Translating words into a differential equation

Word problems describe rates in sentences. The key vocabulary is the word proportional.

  • "yy is proportional to xx" means y=kxy = kx for some constant kk.
  • "yy is inversely proportional to xx" means y=kxy = \dfrac{k}{x}.
  • "The rate of change of yy with respect to tt" means dydt\dfrac{dy}{dt}.

Put those together and you can translate almost any statement.

StatementDifferential equation
The rate of change of PP with respect to tt is proportional to PP.dPdt=kP\dfrac{dP}{dt} = kP
The rate of change of hh is proportional to the square root of hh.dhdt=kh\dfrac{dh}{dt} = k\sqrt{h}
The rate of change of AA is inversely proportional to AA.dAdt=kA\dfrac{dA}{dt} = \dfrac{k}{A}
The rate of change of TT is proportional to the difference between TT and 70.dTdt=k(T−70)\dfrac{dT}{dt} = k(T - 70)
The rate of change of NN is proportional to the product of NN and 1000−N1000 - N.dNdt=kN(1000−N)\dfrac{dN}{dt} = kN(1000 - N)

The constant kk is called the constant of proportionality. Its sign carries meaning: if the quantity is growing, the rate is positive; if it is shrinking, the rate is negative. Many textbooks write a decreasing model with an explicit minus sign, like dhdt=−kh\dfrac{dh}{dt} = -k\sqrt{h} with k>0k > 0, so the sign is visible at a glance.

Reading a model

A differential equation dydt=f(t,y)\dfrac{dy}{dt} = f(t, y) is a rule that gives the rate of change of yy at every moment from the current values of tt and yy.

  • Plug in the current values to get the instantaneous rate, with units of (yy-units) per (tt-unit).
  • dydt>0\dfrac{dy}{dt} > 0 means yy is increasing at that moment; dydt<0\dfrac{dy}{dt} < 0 means it is decreasing.

Worked example: Translating a statement

A town's population PP grows at a rate proportional to the population. When P=20,000P = 20{,}000 people, the population is growing by 600 people per year. Write a differential equation for PP, including the value of the constant.

Solution. "Rate proportional to the population" gives dPdt=kP\dfrac{dP}{dt} = kP. Use the given moment to find kk:

600=k(20,000)⟹k=0.03.600 = k(20{,}000) \quad\Longrightarrow\quad k = 0.03.

So dPdt=0.03P\dfrac{dP}{dt} = 0.03P, with tt in years. The model says the town grows by 3% of its current size per year, at every instant.

Newton's law of cooling

A classic model says that an object cools (or warms) at a rate proportional to the difference between its temperature and the temperature of its surroundings. If TT is the object's temperature and AA is the constant ambient (room) temperature, then

dTdt=−k(T−A),k>0.\frac{dT}{dt} = -k(T - A), \qquad k > 0.

Check that the signs make sense. If the object is hotter than the room, T−A>0T - A > 0, so dTdt<0\dfrac{dT}{dt} < 0 and it cools. If the object is colder than the room, T−A<0T - A < 0, so dTdt>0\dfrac{dT}{dt} > 0 and it warms up. And the bigger the gap, the faster the change.

Worked example: Evaluating a rate

A cup of tea is poured at 190∘190^\circF in a room kept at 70∘70^\circF. Its temperature TT, in degrees Fahrenheit, satisfies dTdt=−0.1(T−70)\dfrac{dT}{dt} = -0.1(T - 70), where tt is in minutes.

(a) How fast is the tea cooling when it is poured?

(b) What is the temperature of the tea at the moment it is cooling at 3∘3^\circF per minute?

Solution. (a) At T=190T = 190:

dTdt=−0.1(190−70)=−12.\frac{dT}{dt} = -0.1(190 - 70) = -12.

The tea is cooling at 12∘12^\circF per minute (the rate of change is −12-12 degrees per minute).

(b) "Cooling at 3 degrees per minute" means dTdt=−3\dfrac{dT}{dt} = -3:

−3=−0.1(T−70)⟹T−70=30⟹T=100∘F.-3 = -0.1(T - 70) \quad\Longrightarrow\quad T - 70 = 30 \quad\Longrightarrow\quad T = 100^\circ\text{F}.

Using the equation to describe behavior

You can learn a lot from a differential equation before solving it. Since the right side tells you the sign of the derivative, it tells you when the quantity rises and falls.

Worked example: Where is the solution increasing?

A fish population yy (in hundreds) is modeled by dydt=0.2y(8−y)\dfrac{dy}{dt} = 0.2y(8 - y) for y>0y > 0. For which population values is the population increasing? What happens when y=8y = 8?

Solution. For y>0y > 0, the factor 0.2y0.2y is positive, so the sign of dydt\dfrac{dy}{dt} matches the sign of 8−y8 - y.

  • If 0<y<80 < y < 8, then 8−y>08 - y > 0, so dydt>0\dfrac{dy}{dt} > 0 and the population is increasing.
  • If y>8y > 8, then dydt<0\dfrac{dy}{dt} < 0 and the population is decreasing.
  • If y=8y = 8, then dydt=0\dfrac{dy}{dt} = 0: the population is not changing at all. A population of 800 fish stays at 800.

A value of yy that makes dydt=0\dfrac{dy}{dt} = 0 for all tt, like y=8y = 8 above, gives a constant solution called an equilibrium solution. You will see these again when you study slope fields.

Common mistake

Don't confuse the quantity with its rate. In dTdt=−0.1(T−70)\dfrac{dT}{dt} = -0.1(T - 70), the number 70 is a temperature, and plugging in T=190T = 190 gives a rate (−12-12 degrees per minute), not a temperature. Always ask whether the question wants TT or dTdt\dfrac{dT}{dt}, and give units that match.

Tip

To check a translation, test the sign. If the story says the quantity is shrinking, make sure your equation produces a negative dydt\dfrac{dy}{dt} for realistic values of yy.

Practice

Practice 1

The rate of change of a quantity AA with respect to time tt is inversely proportional to the square of AA. Which differential equation models this situation, where kk is a constant?

Practice 2

A population satisfies dPdt=0.03P\dfrac{dP}{dt} = 0.03P, where tt is in years. At what rate, in organisms per year, is the population growing when P=5000P = 5000?

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 3

A metal rod heated to 350∘350^\circC is placed in a room kept at 22∘22^\circC. The rod's temperature TT changes at a rate proportional to the difference between TT and the room temperature. Which equation models TT, where kk is a positive constant?

Practice 4

The temperature TT of a bowl of soup, in degrees Celsius, satisfies dTdt=−0.2(T−20)\dfrac{dT}{dt} = -0.2(T - 20), where tt is in minutes. Find dTdt\dfrac{dT}{dt} when T=85T = 85.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 5

A quantity y>0y > 0 satisfies dydt=y(6−y)\dfrac{dy}{dt} = y(6 - y). For which values of yy is yy increasing?

Practice 6

Water drains from a tank so that the volume VV, in liters, satisfies dVdt=−2V\dfrac{dV}{dt} = -2\sqrt{V}, where tt is in minutes. What is the volume at the moment the water is draining at 10 liters per minute?

Enter a number. Fractions like 3/4 and sqrt(2) are OK.

Practice 7

A quantity yy changes at a rate proportional to yy. When y=50y = 50, dydt=4\dfrac{dy}{dt} = 4. Find dydt\dfrac{dy}{dt} when y=80y = 80.

Enter a number. Fractions like 3/4 and sqrt(2) are OK.