How Can Calculus Be Used to Solve a Tank Draining/Filling Problem?

  • Thread starter Thread starter the7joker7
  • Start date Start date
  • Tags Tags
    Tank
the7joker7
Messages
111
Reaction score
0

Homework Statement



A tank contains 90 kg of salt and 2000 L of water. Pure water enters a tank at the rate 12 L/min. The solution is mixed and drains from the tank at the rate 6 L/min.

Find the amount of salt in the tank after 1.5 hours.

Homework Equations



Assorted Calculus stuff.

The Attempt at a Solution



rate in = (.045kg per L)(12L per min) = .54kg/min

rate out = (y(t)/2000 kg per L)(6L per min) = (y(t))/(333.33)

dy/dt = .54 - ((y(t))/333.33) = (180 - y(t))/333.33

int(dy/(180 - y)) = int(dt/333.33)

-ln(180 - y) = t/333.33 + C

y(0) = 90

So -ln(90) = C

-ln(180 - y) = t/333.33 - ln(90)

180 - y = 90e^(-t/333.33)

y(t) = 180 - 90e^(t/333.33)

y(90) = 62.103

Actual Answer:

70.8661417323
 
Physics news on Phys.org
the7joker7 said:

Homework Statement



A tank contains 90 kg of salt and 2000 L of water. Pure water enters a tank at the rate 12 L/min. The solution is mixed and drains from the tank at the rate 6 L/min.

Find the amount of salt in the tank after 1.5 hours.

rate in Ri=12 L/min

rate out Ro=6L/min
concentration in Ci=0
Vo(initial volume)=2000
amount of salt in at t=0 x(o)=90 kg
concentraton out Co= x(t)*Ro/(Vo+(Ri-Ro)t) so

dx/dt=RiCi-x(t)Ro/(Vo+(Ri-Ro)t now solve this one
 
the7joker7 said:

Homework Statement



A tank contains 90 kg of salt and 2000 L of water. Pure water enters a tank at the rate 12 L/min. The solution is mixed and drains from the tank at the rate 6 L/min.

Find the amount of salt in the tank after 1.5 hours.

Homework Equations



Assorted Calculus stuff.

The Attempt at a Solution



rate in = (.045kg per L)(12L per min) = .54kg/min
Where did you get the ".045 kg per L"? That is the initial concentration of salt in the tank but has nothing to do with salt entering the tank. You are told that Pure water enters the tank at the rate of 12 L/min. There is 0 kg/min of salt entering the tank- none at all.

rate out = (y(t)/2000 kg per L)(6L per min) = (y(t))/(333.33)
Almost correct. If the volume of water in the tank were always 2000 Liters, then the concentration would be y/2000. But you have 12 L of water entering the tank every minute and only 6 L of water leaving. The amount of water in the tank is increasing by 12- 6= 6 L every minute. After t minutes, there will be 2000+ 6t Liters of water in the tank and that should be your denominator.

dy/dt = .54 - ((y(t))/333.33) = (180 - y(t))/333.33

int(dy/(180 - y)) = int(dt/333.33)

-ln(180 - y) = t/333.33 + C

y(0) = 90

So -ln(90) = C

-ln(180 - y) = t/333.33 - ln(90)

180 - y = 90e^(-t/333.33)

y(t) = 180 - 90e^(t/333.33)

y(90) = 62.103

Actual Answer:

70.8661417323
 
This time I tried...

rate in = 0 kg/min

rate out = y(t)/(2000 + 3t)(3 L/min) = y(t)/(666.66 + t)

dy/dt = -y/(666.66+t)

int(dy/-y) = int(dt/666.66+t)

-ln(-y) = t/(666.66+t) + C

y(0) = 80

So -ln(80) = C

-ln(-y) = (t/(666.66+t)) - ln(80)

y(t) = -80e^(t/333.33)

No luck this way either. (this is a new problem of the same type.)
 
the7joker7 said:
This time I tried...

rate in = 0 kg/min

rate out = y(t)/(2000 + 3t)(3 L/min) = y(t)/(666.66 + t)

dy/dt = -y/(666.66+t)

int(dy/-y) = int(dt/666.66+t)

-ln(-y) = t/(666.66+t) + C

y(0) = 80

So -ln(80) = C

-ln(-y) = (t/(666.66+t)) - ln(80)

y(t) = -80e^(t/333.33)

No luck this way either. (this is a new problem of the same type.)

have a closer look at my post #2, i set up all the necessary things you need for this problem,all you need to do is solve the diff. eq i set up!
 
the7joker7 said:
This time I tried...

rate in = 0 kg/min

rate out = y(t)/(2000 + 3t)(3 L/min) = y(t)/(666.66 + t)

dy/dt = -y/(666.66+t)

int(dy/-y) = int(dt/666.66+t)

-ln(-y) = t/(666.66+t) + C

y(0) = 80

So -ln(80) = C

-ln(-y) = (t/(666.66+t)) - ln(80)

y(t) = -80e^(t/333.33)

No luck this way either. (this is a new problem of the same type.)

Oh, sorry! It seems like you have another problem now, right? so is this a new problem? What does it originally say?
 
the7joker7 said:
rate out = y(t)/(2000 + 3t)(3 L/min) = y(t)/(666.66 + t)

.)
this defenitely cannot be right? You keep doing the same mistake as in your first problem!
 
Last edited:
Okay, I regened the problem again.

A tank contains `70` kg of salt and `1000` L of water. Pure water enters a tank at the rate `8` L/min. The solution is mixed and drains from the tank at the rate `4` L/min.

Find the amount of salt in the tank after 2.5 hours.

It's the same concept as the two above, so what was I doing wrong there?
 
the7joker7 said:
Okay, I regened the problem again.

A tank contains `70` kg of salt and `1000` L of water. Pure water enters a tank at the rate `8` L/min. The solution is mixed and drains from the tank at the rate `4` L/min.

Find the amount of salt in the tank after 2.5 hours.

It's the same concept as the two above, so what was I doing wrong there?

initial volume Vo=1000 L
Rate in Ri=8 L/min
Concentration in Ci=0
Rate out Ro=4 L/min
Concentration out = x(t)*Ro/(Vo+(Ri-Ro)t)

so

dx/dt= Ri*Ci- x(t)*Ro/(Vo+(Ri-Ro)t)

remember Co depends on the amount of the salt on the tank, and also on the volume of the tank, so

Co= x(t)/V, but the volume on the tank V, depends on the initial volume, and also on how the volume is changing over time as we pipe in and out water so, V=Vo+(Ri-Ro)t

Do you see your flaws now?
 
  • #10
Okay...before I try to punch in the problem, does this look right to everyone?

dx/dt = -(x(t)*4)/(1000 + (4)t)

Co = x(t)/(1000+(4)t)\

int(dx/-x) = int(dt/(1000+4t))

-ln(-x) = t/(1000+4t) + C

y(0) = 70

so -ln(70) = C

-ln(-x) = (t/(1000+4t) - ln(70)

x(t) = -70e^(t/(1000+4t))
 
  • #11
the7joker7 said:
This time I tried...

rate in = 0 kg/min

rate out = y(t)/(2000 + 3t)(3 L/min) = y(t)/(666.66 + t)

dy/dt = -y/(666.66+t)

int(dy/-y) = int(dt/666.66+t)

-ln(-y) = t/(666.66+t) + C
The integration is wrong. You can't just ignore the "t" in the denominator!
Do a substitution: Let u= 2000/3+ t (I hate using approximations to fractions!) so that du= dt and the integral on the right becomes \int du/u.

Also the integral of 1/(-y) is -ln|y|. Since y is the amount of salt in the tank, which can't be negative, you should have -ln(y). I think it would be simpler to leave the negative sign outside the integral.

y(0) = 80

So -ln(80) = C

-ln(-y) = (t/(666.66+t)) - ln(80)

y(t) = -80e^(t/333.33)

No luck this way either. (this is a new problem of the same type.)
 
Last edited by a moderator:
  • #12
the7joker7 said:
Okay...before I try to punch in the problem, does this look right to everyone?

dx/dt = -(x(t)*4)/(1000 + (4)t)

Co = x(t)/(1000+(4)t)\

int(dx/-x) = int(dt/(1000+4t))

-ln(-x) = t/(1000+4t) + C

y(0) = 70

so -ln(70) = C

-ln(-x) = (t/(1000+4t) - ln(70)

x(t) = -70e^(t/(1000+4t))

you did not integrate correctly!
 
  • #13
I'm a little confused as to the integration...do I just take out the negative to get...

x(t) = 70e^(t/(1000+4t))

Here are my integration steps, what exactly did I do wrong?

int(dx/x) = int(dt/(1000+4t))

-ln(x) = t/(1000+4t) + C
 
  • #14
your right hand side is not correctly integrated, you are doing the same mistake there!

\int \frac{dt}{1000+4t} let u=1000+4t, \ \ du=4dt=>dt=\frac{1}{4}du so

\frac{1}{4}\int\frac{du}{u}=\frac{1}{4}ln(u)+C now go back and substitute for u, what do you get?
 
Last edited:
  • #15
So is this...

x(t) = 70e^(.25ln(1000 + 4t)))

The formula I want?
 
  • #16
x(0)=70, right?

x(t)=e^{C-.25ln(1000+4t)}=Ae^{-ln(1000+4t)^{\frac{1}{4}}}=A(1000+4t)^{-(\frac{1}{4})} now x(0)=70=A(1000+4*0)^\frac{-1}{4}, what do u get for A?

EDIT: i forgot a minus sign on the power, i edited it!
 
Last edited:
  • #17
12.45?
 
  • #18
So are you saying the x(t) function is

12.45(1000 + 4x)^(1/4)

Because that function increases over time, I need one that decreases.
 
  • #19
the7joker7 said:
So are you saying the x(t) function is

12.45(1000 + 4x)^(1/4)

Because that function increases over time, I need one that decreases.


I edited my post #16, i had forgotten a minus sign on the power, have another look at it!
 
Back
Top