Modeling with First Order Equations
Most first-order models come from one piece of bookkeeping: how fast an amount changes is how fast it comes in minus how fast it goes out. Mixing tanks, drug levels, populations, cooling and falling objects all start there.
What the symbols mean
- Net rate
How fast the amount changes: inflow minus outflow.
Explanation
Modeling is simply turning a real situation, like salt flowing through a tank or a drug in the bloodstream, into a differential equation you can solve. It's how you go from a word problem to numbers you can actually predict with. All we're really saying is what you'd say about a bank account: the balance changes by what goes in minus what goes out. The formula is just three pieces: (how fast the amount is changing), the rate in (how much arrives per unit of time) and the rate out (how much leaves per unit of time). Every model in this lesson is that sentence with specific numbers plugged in. It can look complex once the units pile up, but it's just a few simple parts, so bear with it.
Mixing tanks. If brine with concentration flows in at rate and the well-mixed solution leaves at , then
where is the volume in the tank. Think about where each piece comes from. Salt arriving per minute is (grams per liter) times (liters per minute). Salt leaving works the same way, except the concentration going out is whatever is in the tank right now, . That's why shows up on the right side, and why these models usually come out linear, so the integrating factor from earlier handles them.
A common mistake. It's tempting to divide by the starting volume, because that's the number the problem gives you. That's only right when the flows match. If liquid comes in faster than it leaves, the tank fills, and the volume is , not a constant. The challenge problem below is exactly that case.
Falling with drag. Newton's law with air resistance proportional to speed: . Gravity is the rate in, drag is the rate out. The velocity approaches the terminal velocity , where the two cancel.
Growth and cooling. and , which you've already solved.
Checking a model: units must match on both sides, and the long-term behavior should make physical sense.
See it
Worked examples
A 1000 L tank holds water with 50 g of salt. Brine with 2 g/L enters at 5 L/min, and the mixture leaves at 5 L/min. Find the salt over time.
- 1
Salt comes in at 2 g/L times 5 L/min, and leaves at the tank's concentration times 5 L/min. The flows match, so the volume stays 1000 L: , .
Practice
Type your answer and check it. Solve them all to complete the lesson.
In the tank example, how much salt is there after a very long time?
Write for the tank example.
A population grows by . How long does it take to double?
Find the terminal velocity for kg, kg/s, m/s².
Coffee cools by with . Find .
A vat holds L of water with kg of sugar dissolved in it. Starting at , a sugar solution with kg/L flows in at L/min, and the well-stirred mixture drains at L/min. Set up the IVP for the sugar in kg: enter the right side of as an expression in .
A patient has about L of blood with mg of a drug in it. An IV adds the drug at mg/min, and the liver and kidneys clear L of blood per minute. With the drug evenly mixed, set up the IVP for the amount in mg: enter the right side of as an expression in .
A frozen turkey at C goes into a C oven. Its temperature changes at a rate proportional to the difference between it and the oven, with constant per minute. Enter the right side of as an expression in .
Which equation says: the rate of growth of a population is proportional to the average of the population and its cube root?
Which equation says: the rate of change of an object's position is proportional to the square of the product of its position and its acceleration?
The hardest one here. Get it, and you've got this lesson.
A L tank initially holds L of pure water. Brine with g of salt per liter flows in at L/min, and the well-mixed solution drains at L/min. Find the amount of salt , in grams, while the tank is filling.
Where it's used
Pharmacokinetics (how drugs build up and clear), pollution in lakes, the charge on a capacitor and the spread of a rumor are all "rate in minus rate out" models.