Salt water flows into a tank, mixes, and flows out again. Before any solving method enters, someone has to decide which quantity the model follows, how it changes, and in which units each term is measured. Those decisions produce the differential equation, and checking the units catches many mistakes before they reach the solution. This lesson builds one such model, solves it, and rewrites it in variables without units, where its structure is easiest to see.
Key terms
State and parameter
Definition In a model built on a differential equation, the state is the changing quantity that the model follows, the unknown function whose rate of change the equation specifies. A parameter is a quantity that stays fixed while the model runs and selects one model from a family, such as a volume or a flow rate. An initial value such as is data for one initial-value problem, and a quantity computed from the state, such as a concentration, is not a separate state.
In plain words The state is what changes and gets a derivative. Parameters are the settings chosen before the clock starts. Confusing the two leads to differentiating a constant or to treating a changing quantity as fixed.
Example A tank holds of salt water. Brine with concentration flows in at , and the mixture flows out at , so the volume stays . At the start the tank holds of salt. A natural state is the salt amount in grams, with in minutes. The numbers , , and are parameters, and the concentration in the tank is the derived quantity .
Balance law
Definition A balance law for the amount of a substance in a region says that
where each rate is an amount per unit time, and production and loss happen inside the region. For a substance carried by a flow of liquid, the rate equals the volume flow rate times the concentration of that liquid.
In plain words The amount in the tank changes only because some enters, some leaves, or some is made or destroyed inside. Each of these is written as a rate, and the derivative is their signed sum.
Example For the tank, salt enters at . If the tank is well mixed, the outflow has the tank’s concentration , so salt leaves at grams per minute, and no salt is produced or destroyed. With in grams and in minutes, the model is
with . The rate is zero at the equilibrium amount . The difference satisfies , so and
Its derivative equals , and . The amount rises toward , and the concentration in grams per liter approaches the incoming . The model assumes perfect mixing, a constant incoming concentration and equal flow rates. If the flow rates differed, the volume would change and the outflow term would become .
Units
Definition A unit is a fixed reference amount of a physical dimension, such as the gram for mass, the liter for volume and the minute for time. A physical quantity is a number times a unit, as in , and units multiply, divide and cancel like algebraic factors. A derivative carries the units of divided by the units of , because it is a limit of quotients . Converting units, as with , changes the number but not the quantity.
In plain words A number in a model means little until you know what it counts. Carrying the units through every step shows what each term measures.
Example In the inflow rate the liters cancel,
The outflow coefficient has units of inverse minutes, so is in grams per minute. Measured in seconds, with , the same rates are and , so the model reads . Its solution is the same curve, because .
Dimensional consistency
Definition An equation is dimensionally consistent if all terms that are added, subtracted or set equal have the same dimension, and every argument of a function such as , , or is dimensionless. A consistent equation stays true in every system of units once each quantity is converted. Consistency is necessary for a correct model, but it does not show that the model is correct.
In plain words You cannot add grams to grams per minute, and you cannot take the exponential of a time. If the units on the two sides of an equals sign disagree, the model is wrong somewhere. If they agree, it can still be wrong, for example in a sign.
Example Every term of
is in grams per minute. In the solution with in minutes, the stands for , so is a pure number and the exponential makes sense. Writing the outflow as the amount itself, without a rate coefficient, would subtract grams from grams per minute, and the check fails at once. The equation passes the check, but its sign says that the outflow adds salt, so it is still wrong.
Characteristic scales
Definition A characteristic scale for a variable is a fixed quantity with the same dimension as that variable, built from the parameters and sometimes the data, that measures the typical size of the variable or of its changes. For a constant-volume, well-mixed tank with flow rate , natural scales for the amount and for time are
The amount scale is the equilibrium amount, and the time scale is the time the flow needs to carry in one tank volume. Scales are choices, and other choices lead to equivalent but less tidy equations.
In plain words A characteristic scale is a unit suggested by the problem itself rather than by a ruler or a clock. Good scales turn the main features of the solution, such as an equilibrium or a time constant, into simple numbers like .
Example For the tank, and . The time scale is a relaxation time. After the gap to equilibrium has shrunk from to , about of its starting size. It is not the time at which the tank reaches equilibrium, which never happens at a finite time, because for every .
Nondimensionalization
Definition Nondimensionalization rewrites a model in dimensionless variables, obtained by dividing each variable by a characteristic scale of the same dimension, such as and . Since and , the chain rule gives
After dividing through by a common rate, the equation relates pure numbers, and any parameters that remain appear only in dimensionless combinations. The physical prediction does not change, only the units in which it is read.
In plain words Measure the amount in multiples of its natural scale and time in multiples of the natural time. The equation then shows its mechanism without the clutter of particular numbers.
Example For the tank, and , so in grams per minute. Substituting into gives , and dividing by the common rate leaves
Its solution is the amount found above divided by , with . The same steps for any constant-volume, well-mixed tank with the scales and give again, so only the starting value tells such tanks apart.
Check yourself
- A tank holds of pure water. Brine with of salt flows in at , and the well-mixed liquid flows out at . Write the balance law for the salt amount in grams, with in minutes, check its units, and find the equilibrium amount.
Show the answer
Salt enters at and leaves at grams per minute, so
with . Both terms are in grams per minute, since the coefficient has units . Setting the rate to zero gives the equilibrium amount , a concentration of , which matches the incoming brine.
- For the tank of this lesson, a classmate writes the outflow term as and gets . Use units to locate the error, and say what the wrong model would predict in the long run.
Show the answer
The product has units , gram liters per minute, so it cannot be subtracted from a rate in grams per minute. The outflow carries the concentration , not the amount, and the correct term is grams per minute. The wrong equation has the equilibrium , a concentration of , while a well-mixed tank of constant volume fed with brine approaches .
- Nondimensionalize the tank of question 1 with its natural scales, solve the dimensionless problem, and find the time at which the tank holds half its equilibrium amount.
Show the answer
The scales are and . With and , the chain rule gives , so , that is
The solution is , since its derivative equals and . Half the equilibrium amount means , so and . In minutes this is , when the tank holds of salt.