Differential Equations · Undergraduate
Modeling with First-Order Equations: Mixing, Cooling and Falling
Quick answer
Many situations are described by a rate of change: rate in minus rate out for a tank of brine, a temperature gap that shrinks in proportion to its size, a fall slowed by air resistance. Each gives a first-order linear equation of the form y′ = a − by, whose solution is y = a/b + Ce^(−bt). The quantity approaches the equilibrium a/b exponentially, and the initial condition fixes C.
What you'll learn
- Write a rate-in minus rate-out model for a mixing tank
- Apply Newton's law of cooling and find its constant from data
- Model falling with air resistance and find terminal velocity
- Identify the equilibrium a model approaches
One shape, many situations
Each model in this lesson says that a quantity changes at a rate made of a constant push and a pull proportional to the quantity itself:
This is a first-order linear equation with constant coefficients. Its solution is
The constant is the equilibrium: setting gives , and every solution approaches it exponentially when .
Why rate in minus rate out
A tank of brine, a cup of coffee and a falling body look nothing alike, but each is an accounting statement. The rate a quantity changes equals everything that adds to it minus everything that takes away from it. Write each term in terms of the quantity and the equation follows. The models differ only in what “in” and “out” mean.
Worked examples
- A(t)
- equilibrium A = 20
Common mistakes
Practice problems
-
A -L tank holds kg of salt. Pure water flows in at L/min and the mixture flows out at L/min. Find and .
Answer
; kg
Full solution
Nothing comes in, and salt leaves at kg/min, so . Then .
-
A pie at C cools in a C room with per minute. Find its temperature after minutes.
Answer
About C
Full solution
, so .
-
A drug enters the blood at mg/h and is removed at mg/h, where is the amount present. Starting from , what amount does approach, and when is it half of that?
Answer
mg; at h
Full solution
, so . Half of is reached when .
-
Find the terminal velocity of a -kg body with air resistance newtons. Use .
Answer
m/s
Full solution
At terminal velocity .
-
Write the equation for a -L tank, starting with kg of salt, into which brine with kg/L flows at L/min while the mixture leaves at L/min.
Answer
,
Full solution
In: kg/min. Out: . The solution is .
-
What is the equilibrium of , and is it approached from any starting value?
Answer
; yes
Full solution
, and for every .
-
In Example 2, what is the coffee’s temperature after minutes?
Answer
About C
Full solution
, so .
-
A student models the tank in Example 1 with . What went wrong?
Answer
The outflow should use the concentration : .
Full solution
treats every liter leaving as carrying all of the salt. Each liter carries kg.
Frequently asked questions
How do you set up a mixing problem?
Let A(t) be the amount of substance in the tank. Then dA/dt = (rate in) − (rate out), where the rate out is the outflow rate times the concentration A/V.
What is Newton's law of cooling?
dT/dt = −k(T − Tₐ): an object's temperature changes at a rate proportional to the difference from the surrounding temperature Tₐ. The solution is T = Tₐ + (T₀ − Tₐ)e^(−kt).
What is terminal velocity?
The speed at which air resistance balances gravity, so the velocity stops changing. For v′ = g − (c/m)v it is mg/c.
What is an equilibrium solution?
A constant solution, found by setting the rate of change to zero. In y′ = a − by it is y = a/b, and every other solution approaches it when b > 0.
How do you find k in a cooling problem?
Use a second measurement. If T = Tₐ + (T₀ − Tₐ)e^(−kt) and the temperature is known at one later time, solve that equation for k with a logarithm.