AP Calculus BC · Study guide

Modeling Situations with Differential Equations

AP® Calculus BC · Unit 7 · Differential Equations

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.

The idea in one paragraph

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

WordsEquation
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\)
Worked Example 1 Proportional to the amount

A growing population

A bacteria population \(P\) grows at a rate proportional to its size. Write a differential equation.

  1. 1
    “The rate of change of \(P\)” is \(\dfrac{dP}{dt}\).
  2. 2
    “Proportional to \(P\)” means a constant times \(P\): \(kP\).
Answer: \(\dfrac{dP}{dt} = kP\), with \(k \gt 0\) because the population is growing.
Worked Example 2 Joint proportion

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.

  1. 1
    Have not heard: \(1000 - R\). Jointly proportional to both means proportional to their product.
Answer: \(\dfrac{dR}{dt} = kR(1000 - R)\), \(k \gt 0\).
Common Mistake 1 · Writing the amount instead of its rate

“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

Worked Example 3 Proportional to a difference

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\).

  1. 1
    Model: \(\dfrac{dT}{dt} = k(T - 20)\).
  2. 2
    Use the given rate: cooling at 7 means \(\frac{dT}{dt} = -7\) when \(T = 90\): \(-7 = k(70)\), so \(k = -0.1\).
  3. 3
    At \(T = 40\): \(\dfrac{dT}{dt} = -0.1(40 - 20) = -2\).
Answer: \(\dfrac{dT}{dt} = -0.1(T - 20)\); at 40 °C the tea is cooling at 2 °C per minute.
Figure 1. The model dT/dt = −0.1(T − 20) says the cooling rate is proportional to the gap between the tea and the room. At 90 °C the gap is 70 and the tea cools at 7 °C per minute; at 40 °C the gap is 20 and it cools at only 2 °C per minute.
Common Mistake 2 · Getting the sign of k wrong

“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.

Worked Example 4 Two effects at once

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.

  1. 1
    Rate of change of velocity = gain − loss: \(\dfrac{dv}{dt} = 9.8 - 0.2v\).
  2. 2
    It stops speeding up when \(\dfrac{dv}{dt} = 0\): \(9.8 = 0.2v\), so \(v = 49\).
Answer: \(\dfrac{dv}{dt} = 9.8 - 0.2v\); the velocity levels off at 49 m/s.
Worked Example 5 Inflow minus outflow

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.

  1. 1
    Rate of change = rate in − rate out: \(\dfrac{dA}{dt} = 5 - 0.2A\).
  2. 2
    It levels off when \(\dfrac{dA}{dt} = 0\): \(5 = 0.2A\), so \(A = 25\).
  3. 3
    Check the direction: below 25 mg, \(\frac{dA}{dt} \gt 0\) and the amount rises; above 25 mg it falls.
Answer: \(\dfrac{dA}{dt} = 5 - 0.2A\); the amount levels off at 25 mg.
Write it like this

“\(\dfrac{dT}{dt} = -0.1(T - 20)\). When \(T = 40\), \(\dfrac{dT}{dt} = -2\): the tea is cooling at 2 °C per minute.”

Common Mistake 3 · Putting the starting value inside the equation

“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

Worked Example 6 Reading a model

What does \(\dfrac{dV}{dt} = -3\sqrt{V}\) say?

  1. 1
    \(V\) decreases (negative rate), and the rate is proportional to the square root of the current volume.
  2. 2
    So 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.
Answer: The volume drains at a rate proportional to the square root of the volume.
Common Mistake 4 · Ignoring what the variables stand for

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

PhraseMath
rate of change of ydy/dt
proportional to= k ×
inversely proportional to= k ÷
decreasingrate is negative
levels off / equilibriumrate = 0