Problem: A storage tank contains 2000 gallons of gasoline that initially has 100 pounds of an additive dissolved in it. In preparation for winter, gasoline containing 2 pounds of this additive per gallon is pumped into the tank at a rate of 40 gallons per minute. The well-mixed solution is pumped out at a rate of 45 gallons per minute. How much of the additive is in the tank 20 minutes after the pumping process begins?
[I believe my setup is incorrect.]
dy/dx = (rate in)-(rate out)
y(0)=100
rate in: (2/2000)*40 = 1/25
rate out: (y/2000)*40 = y/50
dy/dx = (1/25)-(y/50)
dy/dx = (2/50)-(-y)
-Int[dy/y] = Int[dx/25]
-ln(y) = x/25 + C
C=-ln(100)
y = e^[ln(100)-(x/25)]
y(20) = e^[ln(100)-(4/5)]
Thanks in advance!
[I believe my setup is incorrect.]
dy/dx = (rate in)-(rate out)
y(0)=100
rate in: (2/2000)*40 = 1/25
rate out: (y/2000)*40 = y/50
dy/dx = (1/25)-(y/50)
dy/dx = (2/50)-(-y)
-Int[dy/y] = Int[dx/25]
-ln(y) = x/25 + C
C=-ln(100)
y = e^[ln(100)-(x/25)]
y(20) = e^[ln(100)-(4/5)]
Thanks in advance!