A 100-gallon tank initially contains 100 gallons of sugar water at a concentration of .25lbs of sugar/gallon. Suppose that sugar is added to the tank at a rate of p pounds/min. Suppose that sugar water is removed at a rate of 1gallon/min and that the water in the tank is well mixed. What value of P should we pick so that that when 5 gallons of sugar solution is left in the tank the concentration is .5lbs of sugar/gallon?
I have that S(t)=k(100-t)-P(ln(100-t)(100-t))
So when t=0, I have 100k-100Pln(100)=25 and when t=95, I have 5k-5Pln(5)=2.5
I have tried solving this system of equation but even my ODE mind cannot wrap around the solution. I have that P= 1/(4ln20), am I on the right path?
Hint: find an expression for the concentration when there are 5 gallons left in terms of $P$. That is, the concentration after 95 minutes.
Now find the value of $P$ that will result in there being $.5$ concentration in those $5$ gallons, i.e. so there will be 2.5 pounds of sugar.