01 / 20

Modeling with
Differential Equations

Learn to translate real-world scenarios into differential equations, the mathematical language that describes how things change.

Calculus 2

What is a Differential Equation?

A differential equation is an equation that relates a function to one or more of its derivatives. It tells us how a quantity changes in terms of itself and other variables.

\(\frac{dy}{dx}\)
The derivative: the rate of change of \(y\) with respect to \(x\)
Solution
A function \(y(x)\) that satisfies the equation when substituted back in

Why Model with Them?

Many real-world phenomena are described not by what something is, but by how it changes. Differential equations let us capture these dynamics mathematically.

Population
Growth rate depends on current population size
Temperature
Cooling rate depends on temperature difference
Finance
Interest growth depends on current balance

Anatomy of a Differential Equation

\(\dfrac{dP}{dt} = kP\)
Rate of change
Growth constant
Current value
1
Dependent variable \(P\): the quantity we track (population, temperature, etc.)
2
Independent variable \(t\): what the quantity changes with respect to (usually time)
3
Parameters like \(k\): constants that control the rate or behavior

The Modeling Process

Real-world
scenario
Identify
variables
Write the
DE
Solve

Exponential Growth: \(\frac{dy}{dt} = ky\)

When a quantity grows at a rate proportional to its current value, we get the exponential growth model. The constant \(k > 0\) means growth; \(k < 0\) means decay.

Newton's Law of Cooling

A hot object cools at a rate proportional to the difference between its temperature and the ambient temperature \(T_a\):

Proportional vs. Constant Rate

Constant Rate Proportional Rate
Equation \(\frac{dy}{dt} = k\) \(\frac{dy}{dt} = ky\)
Solution \(y = kt + C\) \(y = Ce^{kt}\)
Graph shape Straight line Exponential curve
Example Dripping faucet fills a bucket at 2 L/min Bacteria double every hour
Key phrase "at a constant rate" "proportional to"

How to Set Up a DE

1
Identify the dependent variable: What quantity is changing? Call it \(y\), \(P\), \(T\), etc.
2
Identify the independent variable: With respect to what? Usually time \(t\).
3
Express the rate: Write the derivative \(\frac{dy}{dt}\) in words first: "rate of change of \(y\)."
4
Translate the relationship: "proportional to \(y\)" becomes \(= ky\); "decreases by 5 per hour" becomes \(= -5\).
5
Include initial conditions: If given, write \(y(0) = y_0\) to fully define the problem.

Example 1: Bacterial Growth

Problem: A colony of bacteria grows at a rate proportional to its current population. At time \(t = 0\), the population is 500. Write a differential equation and initial condition.

1
Dependent variable: \(P\) = population count
2
Independent variable: \(t\) = time (hours)
3
"Rate proportional to current population": \(\frac{dP}{dt} = kP\)

Example 2: Cooling Coffee

Problem: A cup of coffee at \(90^\circ\text{C}\) is placed in a room at \(22^\circ\text{C}\). The temperature decreases at a rate proportional to the difference between the coffee and room temperature. Write the DE.

1
Dependent variable: \(T\) = coffee temperature
2
Ambient temperature: \(T_a = 22\)
3
"Decreases at a rate proportional to \((T - T_a)\)": \(\frac{dT}{dt} = -k(T - 22)\)

Example 3: Tank Mixing

Problem: A tank holds \(100 \text{ L}\) of pure water. Brine containing \(3 \text{ g/L}\) of salt flows in at \(2 \text{ L/min}\). The well-mixed solution drains at the same rate. Let \(S(t)\) be grams of salt at time \(t\). Write the DE.

1
Rate in: \(3 \text{ g/L} \times 2 \text{ L/min} = 6 \text{ g/min}\)
2
Rate out: concentration \(\times\) flow = \(\frac{S}{100} \times 2 = \frac{S}{50} \text{ g/min}\)
3
Net rate: \(\frac{dS}{dt} = \text{Rate In} - \text{Rate Out}\)

Beyond Exponential: Logistic Growth

Real populations can't grow forever. Logistic growth includes a carrying capacity \(M\) that limits growth as the population approaches it:

When \(P\) is small, \(\frac{P}{M} \approx 0\), so growth is nearly exponential. As \(P \to M\), the factor \(\left(1 - \frac{P}{M}\right) \to 0\) and growth slows to zero.

Translating Key Phrases

English Phrase Mathematical Translation
"rate of change of \(y\)" \(\frac{dy}{dt}\)
"proportional to \(y\)" \(= ky\)
"proportional to the difference" \(= k(y - A)\)
"increases at a constant rate of 5" \(\frac{dy}{dt} = 5\)
"decreases at a rate of 3% per year" \(\frac{dy}{dt} = -0.03\,y\)
"rate in minus rate out" \(\frac{dy}{dt} = R_{\text{in}} - R_{\text{out}}\)

Common Mistakes

✕ Missing the Negative Sign
Decay and cooling require \(k < 0\) or an explicit negative. Writing \(\frac{dT}{dt} = k(T - T_a)\) without the minus sign gives heating, not cooling.
✕ Confusing \(y\) with \(\frac{dy}{dt}\)
"The population is proportional to time" means \(P = kt\). "The rate is proportional" means \(\frac{dP}{dt} = kP\). The word "rate" signals a derivative.
✕ Forgetting Initial Conditions
A DE alone has infinitely many solutions. You need \(y(0) = y_0\) to pin down the one solution that matches the scenario.

Question 1 of 5

A radioactive substance decays at a rate proportional to the amount present. If \(A(t)\) is the amount at time \(t\), which differential equation models this?

Question 2 of 5

A tank has \(200 \text{ L}\) of solution. Pure water flows in at \(4 \text{ L/min}\), and the mixed solution flows out at \(4 \text{ L/min}\). If \(S(t)\) is the grams of salt at time \(t\), what is \(\frac{dS}{dt}\)?

Question 3 of 5

Newton's Law of Cooling states that the rate of change of temperature is proportional to the difference between the object's temperature \(T\) and the ambient temperature \(T_a = 20\). The object is cooling. Which equation is correct?

Question 4 of 5

A population of fish grows logistically with carrying capacity \(M = 1000\) and growth rate \(k\). Which differential equation models this?

Question 5 of 5

A savings account earns interest at a continuous rate of \(5\%\) per year on its current balance \(B\). Which is the correct differential equation for \(B(t)\)?