Salt dissolving in a tank, coffee cooling on a desk and a capacitor charging in a flash unit seem to have nothing in common. Each is a quantity that moves toward a target value at a rate proportional to how far away it is. Writing down that rate correctly, with the right units, is most of the work, and the equation that comes out is always a first order linear one.
Key terms
Input-output balance
Definition If is the amount of some quantity in a system at time , and it changes only by flows in and out, then
where each rate is measured in units of per unit of time.
In plain words The amount changes by what comes in minus what goes out. This is bookkeeping, and it is where every model in this lesson starts.
Example A bank account earns interest per year compounded continuously and receives deposits of dollars per year. The balance of rates is
with in dollars and in years.
Mixing tanks
Definition A tank holds liters of a well-stirred solution containing kilograms of salt. Solution with concentration kilograms per liter flows in at liters per minute, and the mixture flows out at liters per minute, with , and constant. If the tank holds liters at time , then and
valid while and the tank does not overflow.
In plain words Salt comes in at the inflow concentration and leaves at the current concentration in the tank, which is the amount divided by the volume.
Example A tank holds liters of pure water. Brine with kilograms of salt per liter flows in at liters per minute, and the mixture flows out at the same rate. Then and
With the integrating factor this gives
After minutes the tank holds kilograms, and in the long run , which is kilograms per liter times liters.
Newton’s law of cooling
Definition Newton’s law of cooling says that the temperature of an object in surroundings at constant temperature changes at a rate proportional to the difference,
With the solution is
In plain words A hot object cools quickly at first and then more and more slowly as it nears room temperature. A cold object warms up the same way.
Example Coffee at degrees Celsius sits in a room at degrees. After minutes it is at degrees. Then , so
It reaches degrees when , that is at
RC and RL circuits
Definition In a series circuit with resistance ohms, capacitance farads and a source of volts, the charge in coulombs on the capacitor satisfies
and the current is in amperes. In a series circuit with resistance and inductance henries, the current satisfies
For constant and , the solutions are
In plain words The voltage drops around the loop add up to the source voltage. A capacitor charges toward and the current in an inductor builds up toward .
Example Take ohms, farads and volts, so second. The charge is coulombs, which is about coulombs after one second. For an RL circuit with henries, ohms and volts, amperes.
Units
Definition In a correct model every term of the equation has the same units, and every exponent such as or is a pure number. A rate constant like has units of .
In plain words Check the units before solving. A mismatch almost always means a missing factor.
Example In the tank equation the inflow term has units
the same as . For the RC circuit, an ohm is a volt per ampere and a farad is a coulomb per volt, so is measured in coulombs per ampere. An ampere is a coulomb per second, so that unit is the second, and is a pure number.
Initial conditions
Definition An initial condition gives the state of the system at the starting time, such as , , or . Since each model is a first order linear equation with continuous coefficients, one initial condition determines exactly one solution. In an RL circuit the current cannot jump, so if the switch closes at with no current flowing, then .
In plain words The equation describes how the system changes. The initial condition says what it was doing when you started watching.
Example Suppose the tank above starts with kilograms of salt instead of none. The general solution is , and gives , so
Interpreting the parameters
Definition The tank with constant volume, the cooling model and the circuits with a constant source all have the form
with constants and . The number is the equilibrium value, and the time constant is the time it takes the gap to shrink by a factor of . The gap halves every time units. In the examples, for a tank with constant volume , for cooling, and for the circuits.
In plain words The equilibrium tells you where the system is headed, and the time constant tells you how fast it gets there. After about five time constants the gap is below one percent.
Example For the coffee, minutes and the temperature gap halves every minutes. For the tank, minutes and kilograms. Since , after minutes the tank is within one percent of its final salt content.
Check yourself
- A body at degrees is placed in a room at degrees and cools with per minute. What is its temperature after minutes?
Show the answer
The temperature is degrees.
- A tank holds liters of water with kilograms of salt. Pure water flows in at liters per minute and the mixture flows out at liters per minute. Find .
Show the answer
The balance of rates is
so kilograms.
- What is the time constant of an RL circuit with henries and ohms, and what current does it approach with a volt source?
Show the answer
The time constant is seconds, and the current approaches amperes.