Suppose that a 100-gallon tank initially contains 50 gallons of salt water containing five pounds of salt. A brine mixture containing one pound of salt per gallon flows into the top of the tank at a rate of 5 gallons per minute. A well mixed solution leaves the tank at rate of 4 gallons per minute. We wish to know how much salt is in the tank, when the tank is full.
To construct our model, we will let be the time (measured in minutes) and set up a differential equation that will measure how fast the amount of salt at time is changing. We have the initial condition and
where is the volume at time The expression is the amount of salt in one gallon at time We have since the tank starts with 50 gallons and five gallons are pumped into the tank per minute while four gallons leave the tank during the same time interval. Thus, our differential equation becomes
Our equation is linear since we can rewrite it as
An integrating factor for this differential equation is
Therefore, if we multiply both sides of equation
(1.5.7) by
we get
We can now apply the product rule to obtain
Integrating both sides and simplifying gives us
Our initial condition, tells us that and
Thus, when the tank is full, and the amount of salt in the tank is pounds.