DIFFERENTIAL EQUATIONS • APPLICATIONS OF FIRST-ORDER ODES

Setting Up DEs from Word Problems — Setting Up Differential Equations from Word Problems

Learn to translate real-world scenarios into the differential equations that model them.

Historical Context & Motivation

Before there were computers, scientists and mathematicians needed a way to describe how things change over time. A population of bacteria grows faster when there are more bacteria. A hot cup of coffee cools down more quickly when it is much hotter than its surroundings. The language that captures these ideas is the differential equation — an equation that relates a quantity to its own rate of change. The ability to translate a word problem into a differential equation is the critical first step in using this powerful tool.

Throughout history, some of humanity's greatest breakthroughs came from recognizing that a physical process could be described by a rate equation. Isaac Newton modeled the cooling of objects. Thomas Malthus described population growth with rates. These pioneers showed that setting up the right equation is often harder — and more important — than solving it.

1687
Newton's Laws of Motion
Isaac Newton published the Principia Mathematica, expressing force as mass times the rate of change of velocity — one of the first differential equations ever written.
1701
Newton's Law of Cooling
Newton proposed that the rate at which an object cools is proportional to the temperature difference between the object and its environment, creating a classic first-order ODE word problem.
1798
Malthusian Population Model
Thomas Malthus described population growth as proportional to the current population, leading to the exponential growth differential equation dP/dt = kP.
1838
Logistic Growth Model
Pierre-François Verhulst refined Malthus's model by including a carrying capacity, producing the logistic equation — a more realistic word-problem-to-DE translation.

The central question this lesson addresses is: given a real-world scenario described in words, how do you identify the variables, the rates, and the relationships so that you can write the correct differential equation? Once you master this translation step, solving the equation becomes a separate (and often easier) task.

Core Principles & Definitions

Setting up a differential equation from a word problem requires you to identify a few key ingredients. You need to know what quantity is changing, what it depends on, and how the rate of change is related to other quantities. Let's break these ideas into foundational principles you can rely on every time.

1

Identify the Dependent Variable

The dependent variable is the quantity that changes — for example, population P, temperature T, or amount of substance A. Ask yourself: "What is the problem tracking over time?"
2

Identify the Independent Variable

The independent variable is usually time (t), but it can be distance, position, or another parameter. This is the variable with respect to which you differentiate.
3

Express the Rate of Change

The rate of change is the derivative. Phrases like "grows at a rate," "decreases proportionally," or "changes at a rate" all signal dy/dt or dQ/dt in your equation.
4

Translate Proportionality

"Proportional to" means you multiply by a constant k. If a problem says the rate of decay is proportional to the current amount, you write dA/dt = −kA, where k > 0.
5

Include Initial Conditions

An initial condition pins down the specific solution. Phrases like "initially," "at time zero," or "starts with" give you y(0) = y₀.
KEY TAKEAWAY
Think of setting up a differential equation like writing a recipe from a cooking show. The host describes what's happening in words — "add sugar at a rate that depends on how sweet the batter already is." Your job is to convert that description into a precise, mathematical recipe: dS/dt = k · S. The equation is just the recipe card; the word problem is the chef talking.

Visual Explanation — From Words to Equations

The diagram below illustrates the step-by-step process of translating a word problem into a differential equation. Each colored stage represents one decision you make as you move from English to mathematics. Follow the flow from left to right, and notice how each piece of the word problem maps to a specific mathematical element.

The pipeline shows the five steps from reading a word problem to writing the complete initial value problem. The keyword-to-math table at the bottom is your quick-reference cheat sheet for common phrases.

Notice that the process is sequential. You first figure out what is changing (Step 1), then give it a variable name (Step 2), express its rate as a derivative (Step 3), match the words to the right-hand side of the equation (Step 4), and finally anchor the equation with any starting values given in the problem (Step 5). If you get stuck, return to the keyword table — it covers the vast majority of phrases you'll see in textbook problems.

Mathematical Framework

A first-order ordinary differential equation (ODE) involves a function and its first derivative. In word problems, the function represents a real quantity — temperature, population, money — and its first derivative represents the rate at which that quantity changes. Here are the four most common equation templates you'll encounter.

EXPONENTIAL GROWTH / DECAY
dy/dt = ky
y = quantity at time t; k = growth rate constant (positive for growth, negative for decay); t = time. Arises when the rate of change is proportional to the current amount.
NEWTON'S LAW OF COOLING
dT/dt = −k(T − Tₑ)
T = object temperature; Tₑ = environment (ambient) temperature; k > 0 is the cooling constant. The rate of temperature change is proportional to the difference between the object and its surroundings.
MIXING / TANK PROBLEMS
dA/dt = (rate in) − (rate out)
A = amount of substance in the tank at time t. "Rate in" is the concentration flowing in multiplied by the flow rate. "Rate out" depends on (A / volume) × outflow rate. This template captures any inflow-minus-outflow scenario.
LOGISTIC GROWTH
dP/dt = kP(1 − P/M)
P = population; k = intrinsic growth rate; M = carrying capacity (maximum sustainable population). Growth slows as P approaches M because of limited resources.

Each of these templates is a translation of a specific type of word problem. When you see language about something growing or decaying "in proportion to itself," reach for the first template. When the problem mentions a temperature difference, use Newton's cooling law. When liquid flows in and out of a container, think mixing. When growth has a natural cap, think logistic. The key skill is pattern recognition: matching the story to the correct mathematical skeleton.

Detailed Breakdown — Keyword-to-Equation Map

One of the trickiest parts of setting up a differential equation is decoding the English phrasing. Different textbooks and problems use different words, but they tend to fall into predictable patterns. The table below maps common phrases to their mathematical meaning, and the diagram that follows visualizes how multiple cues in a single problem combine to form one equation.

Common word-problem phrases and their mathematical translations
Phrase in Word ProblemMathematical TranslationExample Equation Piece
"rate of change of y"The derivative dy/dtdy/dt = …
"proportional to y"Multiply by constant k… = ky
"increases" / "grows"Positive sign on the ratedy/dt = +( … )
"decreases" / "decays"Negative sign on the ratedy/dt = −( … )
"at a constant rate of 5 per hour"dy/dt equals a constantdy/dt = 5
"the difference between y and A"Subtract: (y − A) or (A − y)… = k(A − y)
"initially" / "at time zero" / "starts with"Initial condition y(0) = valuey(0) = y₀
This diagram dissects a bacteria growth problem. The initial condition (blue), dependent variable (violet), rate cue (pink), and relationship (green) all converge to form the complete initial value problem at the bottom.

When you practice this approach on multiple problems, you'll start to see the same patterns everywhere. A word problem about radioactive decay uses the same structure as one about depreciation of a car's value. A mixing problem in chemistry looks just like a dilution problem in pharmacology. The specific numbers change, but the skeleton of the differential equation remains the same.

Worked Example — Newton's Law of Cooling

Let's walk through a complete example. Read the problem carefully, and then follow each step as we translate the English description into a differential equation.

📝 PROBLEM STATEMENT
A cup of coffee is initially at 90 °C. It is placed in a room where the temperature is 22 °C. The coffee cools at a rate proportional to the difference between its temperature and the room temperature. Set up the differential equation and initial condition that model this situation.
Setting Up Newton's Law of Cooling
1
Step 1 — Identify the Changing QuantityThe coffee's temperature is changing over time. So the dependent variable is temperature. We'll call it T, and it depends on time t.
Dependent variable: T(t)
2
Step 2 — Identify Constants and Given ValuesThe room temperature is 22 °C and does not change, so it is a constant. We'll call it Tₑ = 22. The initial coffee temperature is 90 °C, so T(0) = 90. There is a proportionality constant k that we don't know numerically, but we include it in the equation.
Tₑ = 22, T(0) = 90, k > 0 (unknown)
3
Step 3 — Translate the Rate Statement"The coffee cools at a rate" tells us dT/dt is on the left side. Since the coffee is cooling (temperature is decreasing), the derivative is negative. The phrase "proportional to the difference between its temperature and the room temperature" tells us the right side involves k × (T − Tₑ). We attach a negative sign because the temperature is decreasing.
dT/dt = −k(T − Tₑ)
4
Step 4 — Substitute Known ConstantsReplace Tₑ with 22 to get the specific equation for this problem.
dT/dt = −k(T − 22)
5
Step 5 — State the Complete Initial Value ProblemCombine the differential equation with the initial condition to form the complete initial value problem (IVP).
dT/dt = −k(T − 22), T(0) = 90

Notice that we were not asked to solve the equation — just to set it up. This is often the hardest part! If you were asked to solve it, you would use separation of variables, but that's a separate skill. The critical achievement here is going from a paragraph of English to a precise mathematical statement.

Comparing Common First-Order ODE Models

Different word problems lead to different types of first-order differential equations. It's helpful to see the major models side by side so you can quickly identify which one fits a given scenario. The table below summarizes the four most common models, along with their strengths and limitations.

Four fundamental first-order ODE models and their applications
ModelEquationBest ForLimitation
Exponential Growthdy/dt = kyPopulation growth, compound interest, radioactive decayUnrealistic for large populations (no cap on growth)
Newton's CoolingdT/dt = −k(T − Tₑ)Cooling/heating of objects in a constant-temperature environmentAssumes ambient temperature doesn't change
Mixing ProblemdA/dt = (rate in) − (rate out)Salt in tanks, pollutant dilution, IV drip modelsAssumes perfect and instant mixing
Logistic GrowthdP/dt = kP(1 − P/M)Population with resource limits, market saturationSingle-species only; doesn't model predator-prey dynamics
KEY TAKEAWAY
Think of these four models as templates in a word processor. You don't write a letter from scratch every time — you pick the template that fits and fill in the blanks. Similarly, most word problems fit one of these four equation templates. Your job is to recognize which template matches the scenario, then plug in the specific variables and constants from the problem.

Connection to Advanced Theory

The skills you develop here — reading a situation, identifying variables, and writing a rate equation — extend far beyond first-order ODEs. In more advanced courses, you'll encounter second-order equations (springs and circuits), systems of equations (predator-prey models), and partial differential equations (heat flow in a rod). The setup process remains fundamentally the same: translate the physics into math.

How first-order ODE setup skills extend to advanced topics
ConceptFirst-Order (This Lesson)Advanced Extension
Type of derivativeFirst derivative dy/dt onlySecond derivative d²y/dt² (acceleration, spring systems)
Number of unknownsOne dependent variableMultiple coupled variables (e.g., prey and predator populations)
Independent variableUsually just time (t)Time and space (x, t) for partial differential equations
Setup strategyIdentify rate, translate proportionalitySame strategy — just more variables and relationships to manage

The takeaway is encouraging: if you master the art of setting up first-order equations from word problems, you have already learned the core reasoning pattern that applies to every level of differential equations. Future courses will introduce more complex equations, but the translation process — words to variables to derivatives to equations — stays the same.

Practice Problems

Try these five problems on your own before checking the answers. For each one, your goal is to write the differential equation and initial condition — you do not need to solve the equation.

PROBLEM 1CONCEPTUAL
A word problem states: "The number of fish in a lake increases at a rate proportional to the current number of fish." What type of differential equation model does this describe, and why?
PROBLEM 2BASIC CALCULATION
A radioactive substance has an initial mass of 200 grams and decays at a rate proportional to the amount present. Write the differential equation and initial condition.
PROBLEM 3INTERMEDIATE
A metal rod at 150 °C is placed in a refrigerator kept at 4 °C. The rod cools at a rate proportional to the difference between the rod's temperature and the refrigerator's temperature. Additionally, a small heater adds heat to the rod at a constant rate of 3 °C per minute. Write the differential equation and initial condition.
PROBLEM 4APPLIED
A 500-liter tank is initially filled with pure water. Brine containing 0.04 kg of salt per liter flows into the tank at 6 liters per minute. The well-mixed solution flows out at 6 liters per minute. Write the differential equation for the amount of salt A(t) in the tank at time t, along with the initial condition.
PROBLEM 5CRITICAL THINKING
A population of deer in a forest grows logistically with a carrying capacity of 800. Hunters remove deer at a constant rate of 10 per month. If the initial population is 200, set up the differential equation. Then explain: could there be an equilibrium population, and if so, how would you find it without solving the full equation?

Lesson Summary

Setting up differential equations from word problems is the art of translating English descriptions into mathematical rate equations. The process follows a consistent pattern: identify the dependent variable (what is changing), define the independent variable (usually time), express the rate of change as a derivative, translate key phrases like "proportional to" into multiplication by a constant k, and attach any initial conditions provided in the problem.

The four major templates you should know are exponential growth/decay (dy/dt = ky), Newton's law of cooling (dT/dt = −k(T − Tₑ)), mixing problems (dA/dt = rate in − rate out), and logistic growth (dP/dt = kP(1 − P/M)). Recognizing which template matches a given scenario is the single most important skill. Once you write the equation correctly, solving it is a separate and often more straightforward step.

Varsity Tutors • Differential Equations • Setting Up DEs from Word Problems