Differential-Equations · Unit 8 · Video 4 · Interactive Practice

The Mixing Tank: Salt Balance and k = r/V

IKey Formulas

FormulaNameWhere it comes from
dxdt=rCe−r xV\frac{dx}{dt} = rC_e - r\,\frac{x}{V}Salt balance (amount xx)Rate in minus rate out; outflow concentration =x/V= x/V (well mixed)
dCdt+rV C=rV Ce(t)\frac{dC}{dt} + \frac{r}{V}\,C = \frac{r}{V}\,C_e(t)Concentration formx=CVx = CV with VV constant, then divide by VV
k=rVk = \frac{r}{V}, units 1time\frac{1}{\text{time}}Analog of the conductivityFraction of the tank's volume that flows out per unit time
A=11+(ω/k)2,ϕ=tan⁡−1ωkA = \frac{1}{\sqrt{1+(\omega/k)^2}}, \quad \phi = \tan^{-1}\frac{\omega}{k}Response to Ce=cos⁡ωtC_e = \cos\omega tC1=Acos⁡(ωt−ϕ)C_1 = A\cos(\omega t - \phi), from Unit 7

Key Insight: The tank equation is form 1, y′+ky=kqe(t)y' + ky = kq_e(t), term for term: y=Cy = C, qe=Ceq_e = C_e (the external input) and k=r/Vk = r/V. Only the ratio r/Vr/V matters, not rr or VV separately.

IIVisualization 1 — The Salt Balance

Salt enters at rCerC_e and leaves at r x/Vr\,x/V, so xx climbs toward x=VCex = VC_e, where the two rates balance.

IIIVisualization 2 — From Amounts to Concentration

Rewriting the salt balance in terms of C=x/VC = x/V turns it into form 1 with k=r/Vk = r/V.

Step 1 — Balance the amount xx

dxdt=rCe⏟rate in−r⋅xV⏟rate out\frac{dx}{dt} = \underbrace{rC_e}_{\text{rate in}} - \underbrace{r\cdot\frac{x}{V}}_{\text{rate out}} dxdt+rV x=rCe(t)\frac{dx}{dt} + \frac{r}{V}\,x = rC_e(t)

IVVisualization 3 — How Closely the Lake Follows Its Input

A daily cycle cos⁡ωt\cos\omega t with ω=2π/24\omega = 2\pi/24 per hour: raising k=r/Vk = r/V shrinks ω/k\omega/k, lifting AA and shrinking the lag.

💡 The plotted curve is the steady periodic response; the transient from the starting concentration dies out like e−kte^{-kt}.

VQuiz Questions

Problem 1 · Reading Off k and the Inflow

Given: A well-mixed tank holds V=50V = 50 L. Liquid flows in and out at r=2r = 2 L/min, and the incoming liquid carries Ce=4C_e = 4 g/L of salt. Find kk and the rate at which salt enters.

What is k?

What is the salt inflow rate?

✅ Correct! k=r/V=2/50=0.04k = r/V = 2/50 = 0.04 per minute, and salt enters at rCe=2⋅4=8rC_e = 2 \cdot 4 = 8 g/min.
❌ That is V/rV/r, upside down. V/r=25V/r = 25 min is a time; kk is the fraction of the tank flowing out per minute, r/Vr/V.
❌ Right number, wrong units. r/Vr/V is (L/min)/L, so kk has units of one over time: min−1\text{min}^{-1}.
❌ Check kk. kk is the ratio r/Vr/V, volume per time divided by volume.
❌ That is VCeVC_e, an amount in grams. It is the salt the tank holds once its concentration reaches CeC_e, not a rate.
❌ Check the inflow. Rate in = flow rate × incoming concentration: (L/min)·(g/L) = g/min.
Show solution

The constant is the ratio of flow rate to volume:

k=rV=2 L/min50 L=0.04 min−1.k = \frac{r}{V} = \frac{2\ \text{L/min}}{50\ \text{L}} = 0.04\ \text{min}^{-1}.

The salt inflow rate is the liquid's flow rate times its concentration; the liters cancel:

rCe=2 Lmin⋅4 gL=8 gmin.rC_e = 2\ \tfrac{\text{L}}{\text{min}} \cdot 4\ \tfrac{\text{g}}{\text{L}} = 8\ \tfrac{\text{g}}{\text{min}}.

So dxdt+0.04 x=8\frac{dx}{dt} + 0.04\,x = 8: one twenty-fifth of the tank flows out each minute.

Problem 2 · The Outflow Rate

Given: A well-mixed tank of volume V=20V = 20 L has flow rate r=3r = 3 L/min in and out. Right now it contains x=40x = 40 g of salt. Find the rate at which salt is leaving.

✅ Correct! Rate out =r⋅xV=3⋅4020=6= r \cdot \frac{x}{V} = 3 \cdot \frac{40}{20} = 6 g/min.
❌ That multiplies rr by the amount xx. The units are L·g/min, not a rate of salt; rr must multiply the outflow concentration x/Vx/V.
❌ That is the concentration x/Vx/V. It is in g/L; multiply by the flow rate rr to get grams per minute.
❌ That is k=r/Vk = r/V. It is the fraction of the tank leaving per minute; multiply it by xx to get the salt leaving.
❌ Not quite. The well-mixed outflow has the tank's concentration x/Vx/V.
Show solution

Because the tank is well mixed, the outflow concentration is the tank concentration:

xV=40 g20 L=2 g/L.\frac{x}{V} = \frac{40\ \text{g}}{20\ \text{L}} = 2\ \text{g/L}.

The salt outflow rate is the flow rate times that concentration:

r⋅xV=3 Lmin⋅2 gL=6 gmin.r\cdot\frac{x}{V} = 3\ \tfrac{\text{L}}{\text{min}} \cdot 2\ \tfrac{\text{g}}{\text{L}} = 6\ \tfrac{\text{g}}{\text{min}}.

Equivalently kxkx with k=3/20=0.15 min−1k = 3/20 = 0.15\ \text{min}^{-1}: 0.15⋅40=60.15 \cdot 40 = 6 g/min.

Problem 3 · Filling a Fresh-Water Tank with Brine

Given: The video's tank: V=10V = 10 L of fresh water (x(0)=0x(0) = 0), flow rate r=1r = 1 L/min, incoming concentration Ce=3C_e = 3 g/L. Find the concentration equation and the amount of salt after 1010 minutes.

Which equation does C satisfy?

How much salt is in the tank at t = 10 min?

✅ Correct! C′+110C=110⋅3C' + \tfrac{1}{10}C = \tfrac{1}{10}\cdot 3, and x(10)=30(1−e−1)≈19.0x(10) = 30(1 - e^{-1}) \approx 19.0 g.
❌ The right side was not divided by VV. Dividing VC′+rC=rCeV C' + rC = rC_e by VV gives rVCe=310\frac{r}{V}C_e = \frac{3}{10} on the right: the same kk multiplies both sides.
❌ Check kk. Here k=r/V=1/10k = r/V = 1/10 per minute, and form 1 has the same kk on both sides.
❌ That is the long-run amount VCeVC_e. The tank only approaches 3030 g; after one time constant 1/k=101/k = 10 min it has covered 1−e−11 - e^{-1} of the way.
❌ That is C(10)C(10) in g/L. Multiply by V=10V = 10 L to get the amount of salt.
❌ Check x(10)x(10). Starting from 00, xx rises toward VCe=30VC_e = 30 g as 30(1−e−kt)30(1 - e^{-kt}).
Show solution

Here k=rV=110 min−1k = \frac{r}{V} = \frac{1}{10}\ \text{min}^{-1}, so form 1 reads

C′+110C=110⋅3=310.C' + \tfrac{1}{10}C = \tfrac{1}{10}\cdot 3 = \tfrac{3}{10}.

The constant input Ce=3C_e = 3 is a steady state, and C(0)=0C(0) = 0, so

C(t)=3(1−e−t/10),x(t)=VC(t)=30(1−e−t/10).C(t) = 3\big(1 - e^{-t/10}\big), \qquad x(t) = VC(t) = 30\big(1 - e^{-t/10}\big).

At t=10t = 10 min: x(10)=30(1−e−1)≈30(0.632)≈19.0x(10) = 30(1 - e^{-1}) \approx 30(0.632) \approx 19.0 g.

Check in amounts: dxdt+110x=3\frac{dx}{dt} + \frac{1}{10}x = 3 gives the same x(t)x(t), and x′(0)=3x'(0) = 3 g/min is the inflow rate rCerC_e.

Problem 4 · The Polluted Lake

Given: The pollutant concentration in a lake's inflow varies about its average as cos⁡ωt\cos\omega t with a 2424-hour period, ω=2π24=π12\omega = \frac{2\pi}{24} = \frac{\pi}{12} per hour. The lake's flow rate and volume give k=r/V=π12k = r/V = \frac{\pi}{12} per hour. Find the amplitude of the lake's response and how many hours its peaks trail the input's.

What is the amplitude A?

How long after an input peak does the response peak?

✅ Correct! ω/k=1\omega/k = 1 gives A=1/2A = 1/\sqrt{2} and ϕ=π/4\phi = \pi/4, a time lag of ϕ/ω=3\phi/\omega = 3 hours.
❌ The square root is missing. A=1/1+(ω/k)2=1/2A = 1/\sqrt{1 + (\omega/k)^2} = 1/\sqrt{2}, not 1/(1+1)1/(1 + 1).
❌ The amplitude can never exceed 11. 11 is the amplitude of the incoming signal; 2\sqrt{2} is the modulus of 1+i(ω/k)1 + i(\omega/k) before taking the reciprocal.
❌ Check AA. Compute ω/k\omega/k first, then A=1/1+(ω/k)2A = 1/\sqrt{1 + (\omega/k)^2}.
❌ That is the phase lag ϕ\phi in radians, not a time. Divide by ω\omega: ϕ/ω\phi/\omega hours.
❌ Check the lag. ϕ=tan⁡−1(ω/k)\phi = \tan^{-1}(\omega/k) is an angle; the time lag is ϕ/ω\phi/\omega.
Show solution

The ratio is ωk=π/12π/12=1\frac{\omega}{k} = \frac{\pi/12}{\pi/12} = 1. Then

A=11+12=12≈0.71,ϕ=tan⁡−1(1)=π4.A = \frac{1}{\sqrt{1 + 1^2}} = \frac{1}{\sqrt{2}} \approx 0.71, \qquad \phi = \tan^{-1}(1) = \frac{\pi}{4}.

The response is 12cos⁡(ωt−π4)=12cos⁡(ω(t−3))\frac{1}{\sqrt{2}}\cos\big(\omega t - \frac{\pi}{4}\big) = \frac{1}{\sqrt{2}}\cos\big(\omega(t - 3)\big), since

ϕω=π/4π/12=3 hours.\frac{\phi}{\omega} = \frac{\pi/4}{\pi/12} = 3\ \text{hours}.

To follow the input more closely, the lake needs a larger k=r/Vk = r/V: a faster flow or a smaller volume.

Solved: 0 / 4