Question

In: Computer Science

A. Set up the IVP for the following mixture problem: Suppose that a large tank containing...

A. Set up the IVP for the following mixture problem:

Suppose that a large tank containing 1000 gallons of pure water and that water containing 0.5 pounds of salt per gallon flows into the tank at a rate of 10 gallons per minute. The contents of the tank are kept thoroughly mixed and pumped out at the same rate so that the water level in the tank will remain constant. How much salt will be in the tank after 1 minute. Initially the tank contains no salt. Please use x(t) be the amount of salt at any time t in the tank.

B. Write codes to solve the IVP analytically and numerically using Sage Math Cell coding. Put your sage codes in the space provide below.

C.  Use your codes, to determine the exact amount of salt and an approximate amount of salt after 1 minute with different step size h = 0.5, 0.1, and 0.05. Thanks!

Solutions

Expert Solution

We want a function that gives the amount of salt at time t, but all the information is about how the amount
of salt is changing.
Let s(t) = amount, in kg of salt at time t. Then we have
ds
dt
= (rate of salt into tank) − (rate of salt out of tank)
= (0.05 kg/L · 5 L/min) + (0.04 kg/L · 10 L/min) −

s kg
1000 L
· 15 L/min
= 0.25 kg/min + 0.4 kg/min −
15s
1000
kg/min
So we get the differential equation
ds
dt
= 0.65 −
15s
1000
=
65
100

15s
1000
ds
dt
=
130 − 3s
200
We separate s and t to get
1
130 − 3s
ds =
1
200
dt
Integrate
Z
1
130 − 3s
ds =
Z
1
200
dt

1
3
· ln |130 − 3s| =
1
200
t + C1
ln |130 − 3s| = −
3
200
t + C2
|130 − 3s| = e− 3
200 t+C2
|130 − 3s| = C3e
−3t/200
130 − 3s = C4e
−3t/200
−3s = −130 + C4e
−3t/200
s =
130 − C4e
−3t/200
3
Since we begin with pure water, we have s(0) = 0. Substituting,
0 =
130 − C4e
−3·0/200
3
0 = 130 − C4
C4 = 130
1Stewart, Calculus, Early Transcendentals, p. 607, #48.
So our function is
s(t) = 130 − 130e−3t/200
3
After one hour (60 min), we have
s(60) = 130 − 130e−3·60/200
3
s(60) ≈ 25.7153
Thus, after one hour there is about 25.72 kg of salt in the tank


Related Solutions

5. (Mixing Problem) A very large tank is initially filled with 100 gallons of water containing...
5. (Mixing Problem) A very large tank is initially filled with 100 gallons of water containing 5 pounds of salt. Beginning at time t = 0, a brine solution with a concentration of 1 pound of salt per gallon flows into the top of the tank at 3 gallons per second, the mixture is stirred, and the mixture flows out of the bottom of the tank at 2 gallons per second. (a) Letting w = pounds of salt in the...
A large tank containing a mystery liquid is filled to a depth of L = 35...
A large tank containing a mystery liquid is filled to a depth of L = 35 m. The upper surface of the liquid is exposed to the atmosphere (of density 1.2 kg/m3). A pipe of cross-sectional area Ain = 0.01 m2 is inserted in to the liquid. The other ’outlet’ end of the pipe, of smaller cross sectional area Aout = 0.005 m2, is placed outside the liquid at a height of h = 2 m below the surface of...
A large tank containing a mystery liquid is filled to a depth of L = 35...
A large tank containing a mystery liquid is filled to a depth of L = 35 m. The upper surface of the liquid is exposed to the atmosphere (of density 1.2 kg/m3). A pipe of cross-sectional area Ain = 0.01 m2 is inserted in to the liquid. The other ’outlet’ end of the pipe, of smaller cross sectional area Aout = 0.005 m2, is placed outside the liquid at a height of h = 2 m below the surface of...
2.       A tank initially contains 120 L of pure water. A salt mixture containing a concentration of...
2.       A tank initially contains 120 L of pure water. A salt mixture containing a concentration of 1.5 g/L enters the tank at a rate of 2 L/min, and the well-stirred mixture leaves the tank at the same rate. Find an expression for the amount of salt in the tank at any time t. Also, find the limiting amount of salt in the tank as t →∞.
Set up and solve the given BVP heat problem. Suppose there is a rod of length...
Set up and solve the given BVP heat problem. Suppose there is a rod of length L coinciding on the x-axis from 0 ≤ x ≤ L with insulated ends, and with an initial temperature profile of f(x). Solve the Heat Equation
I need to come up with a separation and purification scheme procedure of a mixture containing...
I need to come up with a separation and purification scheme procedure of a mixture containing 45% 4-aminoacetophenone, 45% 1,2,4,5-tetrachlorobenzene, and 10% 1,4-dibromobenzene. How would I go about this? Please explain step by step. We also need recrystallization. Addition Information ( The mixture will contain 45% of the neutral compound, 45% of acidic/basic compound, and 10% of neutral impurity (1,4-dibromobenzene). The goal is to isolate the neutral compound (which is present in your mixture up to 45%) and the acidic/basic...
A large vented tank containing water at 20 C has a pipe discharging to the atmosphere...
A large vented tank containing water at 20 C has a pipe discharging to the atmosphere horizontally from the bottom. The pipe is 2.3 cm in diameter, has a surface roughness of 0.046mm, and is 40m long. The velocity in the pipe is 3.5 m/s. The flow in the pipe is turbulent. Neglecting minor losses, what is the water level in the tank above the centerline of the outlet pipe? 2.1 m 28.3 m 13.6 m 39.2 m With the...
Given the following information set up the problem in a transportation table and solve for the...
Given the following information set up the problem in a transportation table and solve for the minimum-cost plan: PERIOD 1 2 3   Demand    550       700      750         Capacity                 Regular    500       500      440           Overtime    50       50      50           Subcontract    120       120      100         Beginning inventory    100            Costs           Regular time $   60 per unit     Overtime $   80 per unit     Subcontract $   90 per unit       Inventory...
Given the following information set up the problem in a transportation table and solve for the...
Given the following information set up the problem in a transportation table and solve for the minimum-cost plan: PERIOD 1 2 3 Demand 550 700 750 Capacity Regular 500 500 440 Overtime 50 50 50 Subcontract 120 120 100 Beginning inventory 100 Costs Regular time $ 60 per unit Overtime $ 80 per unit Subcontract $ 90 per unit Inventory carrying cost $ 1 per unit per month Back-order cost $ 3 per unit per month Suppose that an inventory...
Given the following information set up the problem in a transportation table and solve for the...
Given the following information set up the problem in a transportation table and solve for the minimum-cost plan: PERIOD 1 2 3 Demand 550 700 750 Capacity Regular 500 500 440 Overtime 50 50 50 Subcontract 120 120 100 Beginning inventory 100 Costs Regular time $ 60 per unit Overtime $ 80 per unit Subcontract $ 90 per unit Inventory carrying cost $ 1 per unit per month Back-order cost $ 3 per unit per month Suppose that an inventory...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT