At the start, the tank contains
(0.25 lb/gal) * (100 gal) = 25 lb
of sugar. Let be the amount of sugar in the tank at time . Then .
Sugar is added to the tank at a rate of <em>P</em> lb/min, and removed at a rate of
and so the amount of sugar in the tank changes at a net rate according to the separable differential equation,
Separate variables, integrate, and solve for <em>S</em>.
Use the initial value to solve for <em>C</em> :
The solution is being drained at a constant rate of 1 gal/min; there will be 5 gal of solution remaining after time
has passed. At this time, we want the tank to contain
(0.5 lb/gal) * (5 gal) = 2.5 lb
of sugar, so we pick <em>P</em> such that