01 / 21

Modeling with
Differential Equations

Learn how to translate real-world situations into differential equations, the 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 relation to another variable.

\(\frac{dy}{dt} = ky\)
Growth proportional to current value
\(\frac{dP}{dt} = rP\!\left(1 - \frac{P}{K}\right)\)
Growth limited by carrying capacity

Why Model with Differential Equations?

Most natural processes are described by their rates of change, not their position. Differential equations let us capture this directly.

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

The Modeling Process

Real-World Situation Identify Rate Relationship Translate Differential Equation Solve
\(y(t)\)

The key step is translating words into math: identify what quantity is changing, what it depends on, and write that relationship using derivative notation.

Translating "Rate of Change"

1
"Proportional to \(y\)" translates to: \(\frac{dy}{dt} = ky\)
2
"Proportional to the difference" translates to: \(\frac{dy}{dt} = k(y - A)\)
3
"At a constant rate" translates to: \(\frac{dy}{dt} = c\) (a constant)
4
"Jointly proportional to \(y\) and \((K - y)\)" translates to: \(\frac{dy}{dt} = ky(K - y)\)

The Major Models

Model Equation Solution Form
Exponential Growth/Decay \(\frac{dy}{dt} = ky\) \(y = Ce^{kt}\)
Newton's Cooling \(\frac{dT}{dt} = k(T - T_s)\) \(T = T_s + Ce^{kt}\)
Logistic Growth \(\frac{dP}{dt} = rP\!\left(1 - \frac{P}{K}\right)\) \(P = \frac{K}{1 + Ae^{-rt}}\)
Mixing Problems \(\frac{dA}{dt} = \text{rate in} - \text{rate out}\) Varies by setup

Exponential vs Logistic Growth

Time \(t\)
Population
\(K\)
Exponential Logistic
Exponential
Growth is unbounded: \(\frac{dy}{dt} = ky\). Works only for short time scales.
Logistic
Growth levels off at carrying capacity \(K\): \(\frac{dP}{dt} = rP\!\left(1 - \frac{P}{K}\right)\).

Newton's Law of Cooling

The temperature of an object changes at a rate proportional to the difference between its temperature and the surrounding temperature.

Time
Temp \(T\)
\(T_s\)
\(T_0\) (initial temp)
\(T - T_s\)

How to Set Up a DE Model

1
Define the variable. What quantity is changing? Call it \(y\), \(P\), \(T\), etc. State what \(t\) represents (time, distance, etc.).
2
Identify the rate. Write \(\frac{dy}{dt}\) on the left side of your equation.
3
Express the relationship. Translate the verbal description into a mathematical expression on the right side.
4
Include initial conditions. Note the value at \(t = 0\): e.g., \(y(0) = y_0\).
5
Check the sign. Growth: \(k > 0\). Decay or cooling: \(k < 0\).

Example 1: Radioactive Decay

Problem: A radioactive substance decays at a rate proportional to the amount present. If 100 g remains initially and 80 g after 3 hours, write the differential equation and find the decay constant.

Example 2: Logistic Population

Problem: A fish population grows logistically in a lake with carrying capacity \(K = 5000\). The growth rate is \(r = 0.4\) per year and the initial population is 500. Write the differential equation.

When \(P\) is small
\(\frac{P}{K} \approx 0\), so growth looks exponential: \(\frac{dP}{dt} \approx 0.4P\).
When \(P \to K\)
\(1 - \frac{P}{K} \to 0\), so growth slows and stops: \(\frac{dP}{dt} \to 0\).

Example 3: Mixing Problem

Problem: A 200-liter tank initially contains pure water. Brine with 3 g/L of salt flows in at 5 L/min. The well-mixed solution flows out at 5 L/min. Write the DE for the amount of salt.

1
Variable: Let \(A(t)\) = grams of salt at time \(t\) minutes.
2
Rate in: \(3 \frac{\text{g}}{\text{L}} \times 5 \frac{\text{L}}{\text{min}} = 15 \frac{\text{g}}{\text{min}}\).
3
Rate out: Concentration is \(\frac{A}{200}\) g/L, outflow is 5 L/min, so rate out = \(\frac{5A}{200} = \frac{A}{40}\).
4
DE: \(\frac{dA}{dt} = 15 - \frac{A}{40}\), with \(A(0) = 0\).

Visualizing with Slope Fields

A slope field plots tiny line segments at grid points showing the slope \(\frac{dy}{dt}\) at each point. Solution curves follow these segments.

\(t\)
\(y\)
\(y(0)=1\)
\(y(0)=2\)

Equilibrium Solutions

An equilibrium solution is a constant value where \(\frac{dy}{dt} = 0\). The system stays at this value forever if it starts there.

Stable
Nearby solutions are attracted toward the equilibrium. Example: \(T \to T_s\) in Newton's cooling.
Unstable
Nearby solutions are repelled away from the equilibrium. Example: \(P = 0\) in logistic growth.

Common Mistakes

Wrong Sign on \(k\)
Using \(k > 0\) for decay or cooling. Remember: decay means the quantity decreases, so \(k < 0\).
Forgetting Units
If rate in is g/min, then \(\frac{dA}{dt}\) must also be in g/min. Keep units consistent throughout.
Confusing \(y\) with \(\frac{dy}{dt}\)
The DE describes the rate, not the function itself. Don't write \(y = ky\) when you mean \(\frac{dy}{dt} = ky\).

Summary of Models

Key Phrase DE Form Model Type
"Proportional to the amount" \(\frac{dy}{dt} = ky\) Exponential
"Proportional to the difference" \(\frac{dy}{dt} = k(y - A)\) Newton's Cooling
"Limited by capacity \(K\)" \(\frac{dP}{dt} = rP\!\left(1 - \frac{P}{K}\right)\) Logistic
"Rate in minus rate out" \(\frac{dA}{dt} = R_{\text{in}} - R_{\text{out}}\) Mixing
"Changes at a constant rate" \(\frac{dy}{dt} = c\) Linear

Question 1 of 5

A population of bacteria doubles every 4 hours. Which differential equation models this growth?

Question 2 of 5

A cup of coffee at 90°C is placed in a room at 20°C. Which equation models the temperature?

Question 3 of 5

For the logistic equation \(\frac{dP}{dt} = 0.3P\!\left(1 - \frac{P}{1000}\right)\), what are the equilibrium solutions?

Question 4 of 5

A tank holds 500 L of water. Pure water enters at 10 L/min, and the well-mixed solution exits at 10 L/min. If there are initially 50 g of salt, what is \(\frac{dA}{dt}\)?

Question 5 of 5

A quantity \(y\) decreases at a rate proportional to the square of \(y\). Which differential equation models this?