What Is Modeling With Differential Equations?
Modeling with differential equations means writing an equation for how fast a quantity changes, then solving it to predict the quantity itself. You rarely know a formula for the amount of salt, heat or people directly; you usually know a rule for its rate of change, and that rule is the model.
Most first models come from one of two templates. The balance law, for anything that flows in and out:
and the proportional law, for anything that grows or shrinks in step with its own size:
where:
or is the quantity being tracked (salt in kilograms, population, temperature gap), a function of time
is its rate of change, in units of the quantity per unit time
is a constant of proportionality: means growth, means decay
the rate in and rate out are measured in the same units as , which is the first check on any model
The derivative here is doing its original job, measuring a derivative as a rate of change. A model is only finished when it also has a starting value, such as , which turns it into an initial value problem with one answer instead of a family.
How Do You Build A Differential Equation From A Word Problem?
Build the model in six steps, and do them in this order every time. Most wrong models come from skipping step 1 or step 6, not from bad algebra.
Name the variables and units. Decide what measures (minutes or hours) and what the unknown is (kilograms of salt, not concentration, for example).
Pick the governing rule. Is it a balance (things flow in and out), a proportional rate, or a force law?
Translate each phrase into symbols. Use the table below.
Attach the starting value. Every "initially" or "at the start" becomes an initial condition.
Solve. Choose a method by the equation's shape.
Check the model. Units, signs, long-run behaviour and a sanity comparison with reality.
The translation step is where language trips people up, so here is the phrasebook:
Phrase in the problem | What it becomes |
|---|---|
"the rate at which changes" | |
"proportional to " | for some constant |
"proportional to the difference between and the room temperature " | |
"decreases", "is lost", "leaks out" | a minus sign in front of that term |
"enters at 3 L/min with 0.2 kg/L of salt" | rate in kg/min |
"the solution is kept well mixed" | rate out outflow rate |
"the population cannot exceed " | a factor (logistic) |
"air resistance proportional to speed" | a drag force |
A model only needs to be as detailed as the question. Asking "when will this tea be drinkable?" needs Newton's law of cooling; asking how heat moves through the cup wall needs a partial differential equation in space and time. That second, more complex kind of question is how differential equations model complex physical phenomena: more variables, more equations coupled together, and usually a computer to solve them.
What Assumptions Does Every Model Make?
Every differential equation model rests on simplifying assumptions, and the honest way to model is to write them down. An assumption is not a weakness; a hidden assumption is.
Model | Key assumption | What breaks if it is false |
|---|---|---|
Exponential growth | Unlimited food and space; constant growth rate | Predicts infinite population; switch to logistic |
Newton's law of cooling | Room temperature stays constant; the object has one uniform temperature | A large object in a small room warms the room |
Mixing tank | The tank is well mixed, so the outflow concentration equals the tank concentration | Layers form; the model needs a PDE in space |
Falling body with drag | Drag is proportional to speed () | At high speed drag is closer to ; terminal speed changes |
Logistic growth | A fixed carrying capacity and no harvesting or migration | Seasonal or harvested populations need extra terms |
The well-mixed assumption deserves a second look, because it answers the question students ask most about mixing problems: why is the rate out equal to concentration times flow? Because if the tank is well mixed so the salt is spread evenly, every litre leaving carries the tank's current concentration , so salt leaves at kilograms per litre times the litres leaving per minute.
Which Classic Models Should You Know?
Five models cover most first-course problems, and each one is a balance law or a proportional law in disguise. The table is the reference; the examples below work each one through.
Model | Differential equation | Solution | Long-run behaviour |
|---|---|---|---|
Growth or decay | Grows without limit () or decays to 0 () | ||
Newton's law of cooling | Settles at room temperature | ||
Mixing (equal flows) | Tank concentration approaches the inflow concentration | ||
Falling body, linear drag | for | Terminal velocity | |
Logistic growth | , | Levels off at the carrying capacity |
Each solution comes from a standard method. Growth, cooling and the logistic equation separate cleanly, so they belong to separable differential equations. Mixing and falling-body equations are first-order linear, the home ground of the integrating factor method. Growth and decay have a page of their own on exponential growth and decay, including half-life and doubling time, so they are not re-derived here.
How Do You Check Whether A Model Is Any Good?
Check a model before you trust its numbers: units, signs, equilibrium, special cases and data. These checks take a minute and catch most modeling errors before any solving starts.
Units: every term in the equation must carry the units of . Kilograms per minute cannot be added to litres per minute.
Signs: a hot object in a cool room must have . If your cooling equation makes the tea heat up, a sign is wrong.
Equilibrium: set and solve. The equilibrium value should make physical sense (room temperature, carrying capacity, inflow concentration).
Special cases: turn a parameter off and see if the model reduces to something you trust. With no drag, gives free fall.
Data: if a measurement exists (the tea was 70 degrees after 5 minutes), use it to fix the constant, then compare later predictions with later measurements.
A slope field shows the equilibrium check at a glance: horizontal slope marks along a line mean an equilibrium, and arrows pointing toward it mean a stable one. The direction fields page shows how to sketch one by hand. When no formula exists, numerical methods (Euler's method and its descendants) step the model forward from the initial value.
Examples Of Modeling With Differential Equations
Example 1
A culture of 500 bacteria grows at a rate proportional to its size and reaches 4000 after 6 hours. When will it reach 10,000?
Model: rate proportional to amount.
Use the data point :
The population doubles every 2 hours. Solve :
Final answer: about 8.6439 hours.
Example 2
A tank holds 300 litres of brine containing 60 kg of salt. Pure water flows in at 3 L/min and the well-mixed solution flows out at 5 L/min. How much salt is left after 60 minutes?
A first attempt treats the volume as fixed at 300 litres:
Now test the model. The tank loses litres every minute, so it is empty at . The fixed-volume model still predicts kg of salt in an empty tank, which is impossible. The volume is changing, and the concentration must use the current volume:
Separate the variables and integrate:
At :
The corrected model also gives exactly when the tank empties at , which passes the reality check the first model failed.
Final answer: about 16.73 kg of salt.
Example 3
A cup of tea at 90 degrees Celsius sits in a 20 degree room and cools to 70 degrees in 5 minutes. When does it reach 40 degrees?
Newton's law of cooling:
Use :
Solve :
Final answer: about 18.62 minutes.
Example 4
A 60 kg skydiver falls from rest with air resistance newtons, where is the speed in m/s. Take downward as positive and . Find the speed after 10 seconds and the terminal velocity.
Force balance (Newton's second law, gravity down, drag up):
This is linear; its solution is
Setting gives the terminal velocity m/s. The link between velocity, acceleration and position is laid out on the page on velocity and acceleration.
Final answer: about 42.37 m/s after 10 seconds; terminal velocity 49 m/s.
Example 5
A pond can support at most 1000 fish. It starts with 100 fish, and the population follows logistic growth with per month. How many fish are there after 4 months, and when is the population growing fastest?
The growth rate is largest when , half the carrying capacity. Solve :
Final answer: about 451 fish after 4 months; fastest growth at about 4.39 months.
Example 6
A savings account earns 4 percent interest per year, compounded continuously, and the owner withdraws 2000 currency units per year continuously. The account starts at 40,000. Does it last, and if not, when does it run out?
Balance law: interest in, withdrawals out.
Equilibrium first: gives . Starting below it, the withdrawals outpace the interest, so the balance falls. The solution is
Set :
Final answer: it does not last; it runs out after about 40.24 years. Starting at 50,000 or more, it would last forever.
Why Do We Model With Differential Equations?
We model with differential equations because the laws we actually know are laws about change. "We know the rule of change before we know the answer." Newton's second law, Newton's law of cooling and the balance of salt in a tank all describe rates, and Joseph Fourier built his 1822 theory of heat on Newton's cooling law, as the history of the differential equation records.
Modeling gives three things a formula alone cannot:
Prediction from a rule: you can forecast tomorrow's amount from today's amount and the rule, even before anyone has measured tomorrow.
Understanding through equilibrium: setting the rate to zero tells you where a system settles, often the most useful answer of all.
Control: engineers and doctors change one parameter (a drip rate, a drag coefficient) and read off the effect before trying it for real.
Where Is Modeling With Differential Equations Used?
Modeling with differential equations is used wherever something flows, grows, cools or moves. A few of the places it does real work:
Medicine: drug levels in the bloodstream follow balance laws, which set dosing intervals.
Epidemiology: infection models track susceptible, infected and recovered groups with coupled differential equations.
Environment: pollution in a lake follows the same rate-in, rate-out law as the salt tank in Example 2.
Engineering: circuits, springs and suspension systems are second-order models; see the classification on the ordinary differential equations page.
Archaeology: radiocarbon dating runs the decay model backwards to estimate age.
Finance: continuously compounded balances with deposits or withdrawals, as in Example 6.
Where Solutions Go Off The Rails
Most modeling errors happen before any calculus: in the sentence-to-symbol step. These four do the most damage.
Mistake 1: A Sign That Makes The Tea Heat Up
Where it slips in: Writing Newton's law of cooling from memory.
Don't do this: Do not write with ; for hot tea, and the tea would heat up forever.
The correct way: Write with , then check: hot object, negative rate.
Mistake 2: Holding The Volume Fixed When The Flows Differ
Where it slips in: Mixing problems where inflow and outflow rates are not equal.
Don't do this: Do not divide by the starting volume for the whole problem.
The correct way: Write first, then use as the concentration, as in Example 2.
The rusher is the one most likely to fall here: the problem says "300 litres", and the number goes straight into the denominator. Writing the volume as its own line, before the salt equation, is the habit that fixes it, because the changing volume is then impossible to miss.
Mistake 3: Mixing Units Inside One Equation
Where it slips in: Problems that give flow in litres per minute but ask for an answer in hours, or give a growth rate per year and a time in months.
Don't do this: Do not combine terms measured per minute with terms measured per hour.
The correct way: Convert everything to one time unit in step 1, and write the units next to every term once.
Mistake 4: Trusting Exponential Growth Too Far
Where it slips in: Long-range predictions from .
Don't do this: Do not extend an exponential model for decades; it predicts populations larger than the space or food can hold.
The correct way: Check the long-run behaviour. If the real system must level off, switch to a logistic model with a carrying capacity.
The memorizer tends to know every solution formula in the classic-models table and still pick the wrong one, because the formulas were learned without the sentence that produced them. Saying the rule out loud first ("the rate is proportional to the gap from room temperature") is what makes the right model choose itself.
Practice Problems On Modeling With Differential Equations
A radioactive substance decays at a rate proportional to the amount present and has a half-life of 10 years. Write the differential equation and find .
A metal block at 100 degrees cools in a 25 degree room with , in minutes. Find .
A 200-litre tank of pure water receives brine with 0.5 kg of salt per litre at 4 L/min, and the well-mixed solution leaves at 4 L/min. Write the model, solve it, and find the salt after 50 minutes.
For , find the equilibrium populations and the population at which growth is fastest.
Find the terminal velocity for .
For , find the balance at which the account neither grows nor shrinks.
Answer to Problem 1: with per year.
Answer to Problem 2: , so degrees.
Answer to Problem 3: with , so and kg.
Answer to Problem 4: equilibria at and ; fastest growth at .
Answer to Problem 5: m/s.
Answer to Problem 6: .
Bottom Line
Modeling with differential equations means writing a rule for how fast a quantity changes, then solving it for the quantity itself.
Most first models are either a balance law (rate in minus rate out) or a proportional law ().
Every model rests on assumptions such as a well-mixed tank or a constant room temperature, and the honest model states them.
Check units, signs, equilibrium and long-run behaviour before trusting any number a model produces.
The most common errors are a wrong sign, a volume held fixed when the flows differ, and mixed units.
Where To Go From Here
Work through Practice Problems 1 to 6, writing the units next to every term; if Problem 3 trips you up, return to Example 2 and the "What Assumptions Does Every Model Make?" table before trying it again.
Book a free demo class with Bhanzu:
Read More
Was this article helpful?
Your feedback helps us write better content
