Differential EquationsApplications of Systems1 of 3
Applications of Systems · 1

Two-Tank Mixing and Decay Chains

We already know how to track salt in a single mixing tank, and now we need to track salt or radioactive atoms flowing through two connected tanks or a decay chain.

1

Setting Up Tank Cascades and Decay Chains

We want to write a system of differential equations for the amounts A(t)\tankA{A(t)} and B(t)\tankB{B(t)} when Tank A drains into Tank B, or when radioactive element A decays into element B.

In a single well-mixed tank where water enters and leaves at the same rate, the volume stays constant, and the rate of change of salt is the salt rate coming in minus the salt rate going out, and each pipe leaving a tank carries out its rate coefficient times the salt in that tank, where

Rate coefficient\displaystyle \text{Rate coefficient} =pipe flow ratesource tank volume\displaystyle = \frac{\text{pipe flow rate}}{\text{source tank volume}}
Tank A\text{Tank A}
A\htmlClass{lc-blue}{A}
100 gal100\text{ gal}
5 gal/min5\text{ gal/min}
fresh\text{fresh}
5 gal/min5\text{ gal/min}
Tank B\text{Tank B}
B\htmlClass{lc-orange}{B}
50 gal50\text{ gal}
5 gal/min5\text{ gal/min}
A\htmlClass{lc-blue}{A}
5%5\%
B\htmlClass{lc-orange}{B}
10%10\%
CC
Setting Up Tank Cascades and Decay Chains
A\htmlClass{lc-blue}{A}
B\htmlClass{lc-orange}{B}
A\htmlClass{lc-blue}{A}
B\htmlClass{lc-orange}{B}
CC
stable\text{stable}
A′=  ?\htmlClass{lc-pink}{A'} = \;?
B′=  ?\htmlClass{lc-pink}{B'} = \;?
Text solution
Find the fraction leaving each tank per minuteDivide each pipe's flow rate by the volume of the tank it leaves so we know what fraction of that tank's salt goes out with the water:
Tank A loss fraction=5 gal/min100 gal=0.05,Tank B loss fraction=5 gal/min50 gal=0.10\displaystyle \begin{aligned} \text{Tank A loss fraction} &= \frac{5\text{ gal/min}}{100\text{ gal}} \\ &= 0.05, \\ \text{Tank B loss fraction} &= \frac{5\text{ gal/min}}{50\text{ gal}} \\ &= 0.10 \end{aligned}
Match Tank A's outflow to Tank B's inflowEvery pound of salt (or radioactive atom) that leaves A\tankA{A} enters B\tankB{B}, while B\tankB{B} also loses 10%10\% of its own amount out the bottom at the same time:
A′=−0.05A⏟leaves AB′=+0.05A⏟enters from A−0.10B⏟leaves B\displaystyle \begin{aligned} \rate{A'} &= \underbrace{-0.05\tankA{A}}_{\text{leaves } \tankA{A}} \\ \rate{B'} &= \underbrace{+0.05\tankA{A}}_{\text{enters from } \tankA{A}} - \underbrace{0.10\tankB{B}}_{\text{leaves } \tankB{B}} \end{aligned}

Whether A\tankA{A} and B\tankB{B} measure pounds of salt in two tanks or atoms in a decay chain A→5%B→10%C\tankA{A} \xrightarrow{5\%} \tankB{B} \xrightarrow{10\%} C, they follow the exact same system of equations.

2

Solving a One-Way Cascade

Now we want to find the formulas for the salt amounts A(t)\tankA{A(t)} and B(t)\tankB{B(t)} at any time tt, starting with A(0)=20\tankA{A(0)} = 20 pounds in Tank A and pure fresh water B(0)=0\tankB{B(0)} = 0 in Tank B.

Because the pipe only flows one way from Tank A down into Tank B, Tank A's equation does not depend on B\tankB{B}, so we can solve for A(t)\tankA{A(t)} on its own and plug the result straight into Tank B's equation.

Solving a One-Way Cascade
A′=−0.05AB′=0.05A−0.10B\begin{aligned}\htmlClass{lc-pink}{A'} &= -0.05\htmlClass{lc-blue}{A} \\ \htmlClass{lc-pink}{B'} &= 0.05\htmlClass{lc-blue}{A} - 0.10\htmlClass{lc-orange}{B}\end{aligned}
fresh\text{fresh}
A(0)=20\htmlClass{lc-blue}{A(0)} = 20
B(0)=0\htmlClass{lc-orange}{B(0)} = 0
B(t)=  ?\htmlClass{lc-orange}{B(t)} = \;?
Text solution
Solve Tank A alone and substitute into Tank BSince A′=−0.05A\rate{A'} = -0.05\tankA{A} with A(0)=20\tankA{A(0)} = 20 gives A(t)=20e−0.05t\tankA{A(t)} = 20e^{-0.05t}, substituting A(t)\tankA{A(t)} into B′\rate{B'} turns Tank B's equation into a first-order linear equation:
B′=0.05(20e−0.05t)−0.10B=1e−0.05t−0.10B  ⟹  B′+0.10B=1e−0.05t\displaystyle \begin{aligned} \rate{B'} &= 0.05\left(\tankA{20e^{-0.05t}}\right) - 0.10\tankB{B} \\ &= \tankA{1e^{-0.05t}} - 0.10\tankB{B} \\ &\implies \rate{B'} + 0.10\tankB{B} = \tankA{1e^{-0.05t}} \end{aligned}
Combine the feeding and draining exponentials when the two drain rates differPlugging the trial form c1e−0.05t\tankA{c_1 e^{-0.05t}} into B′+0.10B=1e−0.05t\rate{B'} + 0.10\tankB{B} = \tankA{1e^{-0.05t}} divides the inflow coefficient by the difference in drain rates 0.10−0.05\homog{0.10} - \tankA{0.05}, and applying B(0)=0\tankB{B(0)} = 0 to B(t)=c1e−0.05t+c2e−0.10t\tankB{B(t)} = \tankA{c_1 e^{-0.05t}} + \homog{c_2 e^{-0.10t}} fixes c2\homog{c_2}:
(−0.05+0.10)c1e−0.05t=1e−0.05t  ⟹  0.05c1=1  ⟹  c1=20B(0)=20+c2=0  ⟹  c2=−20B(t)=20e−0.05t⏟slow feeding−20e−0.10t⏟fast draining\displaystyle \begin{gathered} \begin{aligned} (\tankA{-0.05} + \homog{0.10})\tankA{c_1 e^{-0.05t}} &= \tankA{1e^{-0.05t}} \\ \implies 0.05\tankA{c_1} &= 1 \\ \implies \tankA{c_1} &= 20 \\ \tankB{B(0)} = 20 + \homog{c_2} &= 0 \\ \implies \homog{c_2} &= -20 \end{aligned} \\ \tankB{B(t)} = \underbrace{\tankA{20e^{-0.05t}}}_{\text{slow feeding}} - \underbrace{\homog{20e^{-0.10t}}}_{\text{fast draining}} \end{gathered}
Multiply by an integrating factor when both tanks share the same drain rateIf Tank B also holds 100100 gallons so its drain rate matches Tank A's 0.05\tankA{0.05}, we cannot divide by 0.05−0.05=0\homog{0.05} - \tankA{0.05} = 0. Instead, multiplying B′+0.05B=1e−0.05t\rate{B'} + 0.05\tankB{B} = \tankA{1e^{-0.05t}} by e0.05t\intfactor{e^{0.05t}} turns the left side into a single derivative by the product rule:
e0.05tB′+0.05e0.05tB=1  ⟹  ddt(e0.05tB)=1e0.05tB=t+C→B(0)=0e0.05tB=t  ⟹  B(t)=te−0.05t\displaystyle \begin{aligned} \intfactor{e^{0.05t}}\rate{B'} + 0.05\intfactor{e^{0.05t}}\tankB{B} &= 1 \\ \implies \rate{\frac{d}{dt}}\left(\intfactor{e^{0.05t}}\tankB{B}\right) &= 1 \\ \intfactor{e^{0.05t}}\tankB{B} &= t + C \\ \xrightarrow{\tankB{B(0)} = 0} \intfactor{e^{0.05t}}\tankB{B} &= t \\ \implies \tankB{B(t)} &= te^{-0.05t} \end{aligned}

In both cases, the salt in Tank B starts at 00, climbs to a single peak while salt pours in from Tank A, and drains back toward 00 as Tank A's salt runs low.

When Tank B drains at a rate k\homog{k} different from 0.05\tankA{0.05}, the same steps give B(t)=e−0.05t−e−ktk−0.05\tankB{B(t)} = \dfrac{\tankA{e^{-0.05t}} - \homog{e^{-kt}}}{\homog{k} - \tankA{0.05}}: the vertical gap between the two exponentials, divided by the difference in their rates. As Tank B's volume approaches Tank A's 100100 gallons, k\homog{k} approaches 0.05\tankA{0.05}, so the gap and the difference both shrink toward 00, and their quotient smoothly approaches te−0.05tte^{-0.05t} instead of blowing up.

Tank B’s salt curve comes from the gap between the two decay rates, and changes smoothly even when both tanks match and the gap disappears.
3

Looped Tanks and Natural Modes

A one-way cascade lets us solve Tank A first, but once we add a return pipe pumping water from Tank B back into Tank A, A′\rate{A'} depends on B\tankB{B} and B′\rate{B'} depends on A\tankA{A} at the same time. We want to find A(t)\tankA{A(t)} and B(t)\tankB{B(t)} for two 1010-gallon looped tanks starting with A(0)=3\tankA{A(0)} = 3 pounds and B(0)=0\tankB{B(0)} = 0 pounds.

Tank A\text{Tank A}
A\htmlClass{lc-blue}{A}
10 gal10\text{ gal}
20 gal/min20\text{ gal/min}
fresh\text{fresh}
20 gal/min20\text{ gal/min}
Tank B\text{Tank B}
B\htmlClass{lc-orange}{B}
10 gal10\text{ gal}
10 gal/min10\text{ gal/min}
10 gal/min10\text{ gal/min}
10 gal/min10\text{ gal/min}

Because neither equation can be solved alone, we use eigenvalues to find the system's natural modes (v1v2)ert\begin{pmatrix} \tankA{v_1} \\ \tankB{v_2} \end{pmatrix} e^{rt}, which are the special starting ratios where both tanks change together at the exact same exponential rate erte^{rt}.

Looped Tanks and Natural Modes
fresh\text{fresh}
A(0)=3\htmlClass{lc-blue}{A(0)} = 3
B(0)=0\htmlClass{lc-orange}{B(0)} = 0
Text solution
Divide each tank's total outflow and inflow by the 1010-gallon volume of the tank each flow comes fromTank A loses 30 gal/min30\text{ gal/min} total (3010=3\tfrac{30}{10} = 3) and receives 10 gal/min10\text{ gal/min} from Tank B (1010=1\tfrac{10}{10} = 1), while Tank B receives 20 gal/min20\text{ gal/min} from Tank A (2010=2\tfrac{20}{10} = 2) and loses 20 gal/min20\text{ gal/min} total (2010=2\tfrac{20}{10} = 2):
A′=−3A+1BB′=+2A−2B\displaystyle \begin{aligned} \rate{A'} &= -3\tankA{A} + 1\tankB{B} \\ \rate{B'} &= +2\tankA{A} - 2\tankB{B} \end{aligned}
Find the eigenvalues and eigenvectors of the coefficient matrixSetting the characteristic polynomial of (−312−2)\begin{pmatrix} -3 & 1 \\ 2 & -2 \end{pmatrix} to zero gives the two natural rates r=−1\modeone{r = -1} and r=−4\modetwo{r = -4} and their corresponding mode vectors:
(−3−r)(−2−r)−(1)(2)=r2+5r+4=(r+1)(r+4)=0  ⟹  r=−1,−4r=−1:−2v1+1v2=0  ⟹  v2=2v1  ⟹  (12)e−t⏟slow draining moder=−4:1v1+1v2=0  ⟹  v2=−v1  ⟹  (1−1)e−4t⏟fast imbalance mode\displaystyle \begin{aligned} &(-3-r)(-2-r) - (1)(2) \\ &\quad = r^2 + 5r + 4 \\ &\quad = (r+1)(r+4) = 0 \\ &\quad \implies r = \modeone{-1}, \modetwo{-4} \\ &\modeone{r = -1}:\quad -2\tankA{v_1} + 1\tankB{v_2} = 0 \\ &\quad \implies \tankB{v_2} = 2\tankA{v_1} \\ &\quad \implies \underbrace{\modeone{\begin{pmatrix} 1 \\ 2 \end{pmatrix} e^{-t}}}_{\text{slow draining mode}} \\ &\modetwo{r = -4}:\quad 1\tankA{v_1} + 1\tankB{v_2} = 0 \\ &\quad \implies \tankB{v_2} = -\tankA{v_1} \\ &\quad \implies \underbrace{\modetwo{\begin{pmatrix} 1 \\ -1 \end{pmatrix} e^{-4t}}}_{\text{fast imbalance mode}} \end{aligned}
Match the starting amounts A(0)=3\tankA{A(0)} = 3 and B(0)=0\tankB{B(0)} = 0 at t=0t = 0Writing the general solution as a combination of the two modes and plugging in t=0t = 0 gives c1\modeone{c_1} and c2\modetwo{c_2}:
(A(t)B(t))=c1(12)e−t+c2(1−1)e−4tt=0:{c1+c2=32c1−c2=0  ⟹  c2=2c1  ⟹  3c1=3  ⟹  c1=1,c2=2A(t)=1e−t+2e−4t,B(t)=2e−t−2e−4t\displaystyle \begin{aligned} \begin{pmatrix} \tankA{A(t)} \\ \tankB{B(t)} \end{pmatrix} &= \modeone{c_1 \begin{pmatrix} 1 \\ 2 \end{pmatrix} e^{-t}} \\ &\quad + \modetwo{c_2 \begin{pmatrix} 1 \\ -1 \end{pmatrix} e^{-4t}} \\ t = 0:\quad &\begin{cases}\begin{aligned} \modeone{c_1} + \modetwo{c_2} &= 3 \\ 2\modeone{c_1} - \modetwo{c_2} &= 0 \end{aligned}\end{cases} \\ &\implies \modetwo{c_2} = 2\modeone{c_1} \\ &\implies 3\modeone{c_1} = 3 \\ &\implies \modeone{c_1} = 1, \quad \modetwo{c_2} = 2 \\ \tankA{A(t)} &= \modeone{1e^{-t}} + \modetwo{2e^{-4t}}, \\ \tankB{B(t)} &= \modeone{2e^{-t}} - \modetwo{2e^{-4t}} \end{aligned}

So the e−4t\modetwo{e^{-4t}} imbalance terms die out quickly, leaving A(t)≈1e−t\tankA{A(t)} \approx \modeone{1e^{-t}} and B(t)≈2e−t\tankB{B(t)} \approx \modeone{2e^{-t}}: Tank B settles into having twice as much salt as Tank A while the salt in both tanks drains toward zero.

What happens if we start the two tanks with different amounts of salt, or start them right in that 1:2\modeone{1:2} ratio?

Because the fast mode dies out first, Tank B always settles into having twice as much salt as Tank A while both tanks drain, and starting them in that 1:2 ratio turns the fast mode off from the start.
4

Incoming Brine and Steady-State Equilibrium

When only fresh water enters from outside, all the salt eventually washes out to zero. Now we want to find the long-run steady-state equilibrium and the formulas A(t)\tankA{A(t)} and B(t)\tankB{B(t)} when the 20 gal/min20\text{ gal/min} outside pipe into Tank A pumps in salty brine at 0.3 pounds/gallon\outside{0.3}\text{ pounds/gallon}, starting from fresh water A(0)=0\tankA{A(0)} = 0 and B(0)=0\tankB{B(0)} = 0.

Incoming Brine and Steady-State Equilibrium
20 gal/min20\text{ gal/min}
0.3 lb/gal\htmlClass{lc-green}{0.3}\text{ lb/gal}
A(0)=0\htmlClass{lc-blue}{A(0)} = 0
B(0)=0\htmlClass{lc-orange}{B(0)} = 0
Text solution
Add the outside salt inflow and set A′=0,B′=0\rate{A'} = 0, \rate{B'} = 0 to find the steady statePumping 20 gal/min20\text{ gal/min} at 0.3 lb/gal\outside{0.3}\text{ lb/gal} adds 20×0.3=6 lb/min20 \times \outside{0.3} = \outside{6}\text{ lb/min} of salt to Tank A, and both tanks stop changing when salt coming in balances salt going out:
{A′=−3A+1B+6=0B′=2A−2B=0  ⟹  2A=2B  ⟹  B=A−3A+1A+6=0  ⟹  −2A=−6  ⟹  (AB)=(33)⏟steady-state equilibrium\displaystyle \begin{aligned} &\begin{cases}\begin{aligned} \rate{A'} &= -3\tankA{A} + 1\tankB{B} + \outside{6} = 0 \\ \rate{B'} &= 2\tankA{A} - 2\tankB{B} = 0 \end{aligned}\end{cases} \\ &\implies 2\tankA{A} = 2\tankB{B} \implies \tankB{B} = \tankA{A} \\ &{-}3\tankA{A} + 1\tankA{A} + \outside{6} = 0 \\ &\implies -2\tankA{A} = -6 \\ &\implies \underbrace{\begin{pmatrix} \tankA{A} \\ \tankB{B} \end{pmatrix} = \outside{\begin{pmatrix} 3 \\ 3 \end{pmatrix}}}_{\text{steady-state equilibrium}} \end{aligned}
Add the decaying modes to the steady state and plug in t=0t = 0 across the entire equationBecause the tank volumes and internal pipes did not change, we add the same two natural modes to (33)\outside{\begin{pmatrix} 3 \\ 3 \end{pmatrix}} and use A(0)=0,B(0)=0\tankA{A(0)} = 0, \tankB{B(0)} = 0 on the full sum:
(A(t)B(t))=(33)+c1(12)e−t+c2(1−1)e−4tt=0:{3+c1+c2=03+2c1−c2=0  ⟹  {c1+c2=−32c1−c2=−3  ⟹  3c1=−6  ⟹  c1=−2,c2=−1A(t)=3−2e−t−1e−4t,B(t)=3−4e−t+1e−4t\displaystyle \begin{aligned} \begin{pmatrix} \tankA{A(t)} \\ \tankB{B(t)} \end{pmatrix} &= \outside{\begin{pmatrix} 3 \\ 3 \end{pmatrix}} + \homog{c_1 \begin{pmatrix} 1 \\ 2 \end{pmatrix} e^{-t}} \\ &\quad + \homog{c_2 \begin{pmatrix} 1 \\ -1 \end{pmatrix} e^{-4t}} \\ t = 0:\quad &\begin{cases}\begin{aligned} \outside{3} + \homog{c_1} + \homog{c_2} &= 0 \\ \outside{3} + 2\homog{c_1} - \homog{c_2} &= 0 \end{aligned}\end{cases} \\ &\implies \begin{cases}\begin{aligned} \homog{c_1} + \homog{c_2} &= -3 \\ 2\homog{c_1} - \homog{c_2} &= -3 \end{aligned}\end{cases} \\ &\implies 3\homog{c_1} = -6 \\ &\implies \homog{c_1} = -2, \\ &\qquad \homog{c_2} = -1 \\ \tankA{A(t)} &= \outside{3} - \homog{2e^{-t}} - \homog{1e^{-4t}}, \\ \tankB{B(t)} &= \outside{3} - \homog{4e^{-t}} + \homog{1e^{-4t}} \end{aligned}

Both tanks start at 00 pounds and climb to a permanent equilibrium of 3\outside{3} pounds of salt each as the exponential terms fade to zero.

When a single outside brine pipe feeds the system with no other fresh-water inlets diluting it, you can check your steady state right away: once the initial water flushes out, both 1010-gallon tanks are filled with 0.3 lb/gal\outside{0.3}\text{ lb/gal} brine (10 gal×0.3 lb/gal=3 lb10\text{ gal} \times \outside{0.3}\text{ lb/gal} = \outside{3}\text{ lb}), though you should still write out the A′=0,B′=0\rate{A'} = 0, \rate{B'} = 0 algebra to show how you got it.

5

Closed Loops and Conservation of Salt

In every open loop, drain pipes carry water out of the system. Now we want to find A(t)\tankA{A(t)}, B(t)\tankB{B(t)}, and the final distribution of salt when a 100100-gallon Tank A (starting with A(0)=30\tankA{A(0)} = 30 pounds) and a 5050-gallon Tank B (starting with B(0)=0\tankB{B(0)} = 0 pounds) pump water back and forth at 5 gal/min5\text{ gal/min} in a sealed closed loop with no outside inlets or drains.

Closed Loops and Conservation of Salt
100 gal100\text{ gal}
A(0)=30\htmlClass{lc-blue}{A(0)} = 30
5 gal/min5\text{ gal/min}
50 gal50\text{ gal}
B(0)=0\htmlClass{lc-orange}{B(0)} = 0
5 gal/min5\text{ gal/min}
Text solution
Write the closed-loop equations and check conservation of saltAll 5 gal/min5\text{ gal/min} leaving the 100100-gallon Tank A (5100=0.05\tfrac{5}{100} = 0.05) goes into Tank B, and all 5 gal/min5\text{ gal/min} leaving the 5050-gallon Tank B (550=0.10\tfrac{5}{50} = 0.10) goes back into Tank A, so the two derivatives add to zero:
A′=−0.05A+0.10BB′=+0.05A−0.10B  ⟹  A′+B′=0  ⟹  A(t)+B(t)=30\displaystyle \begin{aligned} \rate{A'} &= -0.05\tankA{A} + 0.10\tankB{B} \\ \rate{B'} &= +0.05\tankA{A} - 0.10\tankB{B} \\ &\implies \rate{A'} + \rate{B'} = 0 \\ &\implies \tankA{A(t)} + \tankB{B(t)} = 30 \end{aligned}
Find the permanent r=0\modeone{r = 0} steady mode and the decaying equalizing modeSolving the characteristic equation for (−0.050.100.05−0.10)\begin{pmatrix} -0.05 & 0.10 \\ 0.05 & -0.10 \end{pmatrix} gives r1=0\modeone{r_1 = 0} (where e0t=1\modeone{e^{0t}} = 1 stays constant forever) and r2=−0.15\modetwo{r_2 = -0.15}:
(−0.05−r)(−0.10−r)−(0.10)(0.05)=r2+0.15r=r(r+0.15)=0  ⟹  r1=0,r2=−0.15r1=0:−0.05v1+0.10v2=0  ⟹  0.05v1=0.10v2  ⟹  v1=2v2  ⟹  (21)⏟permanent steady moder2=−0.15:0.10v1+0.10v2=0  ⟹  v2=−v1  ⟹  (1−1)e−0.15t⏟equalizing mode\displaystyle \begin{aligned} &(-0.05-r)(-0.10-r) \\ &\quad - (0.10)(0.05) \\ &\quad = r^2 + 0.15r \\ &\quad = r(r + 0.15) = 0 \\ &\quad \implies \modeone{r_1 = 0}, \quad \modetwo{r_2 = -0.15} \\ &\modeone{r_1 = 0}: \\ &\quad -0.05\tankA{v_1} + 0.10\tankB{v_2} = 0 \\ &\quad \implies 0.05\tankA{v_1} = 0.10\tankB{v_2} \\ &\quad \implies \tankA{v_1} = 2\tankB{v_2} \\ &\quad \implies \underbrace{\modeone{\begin{pmatrix} 2 \\ 1 \end{pmatrix}}}_{\text{permanent steady mode}} \\ &\modetwo{r_2 = -0.15}: \\ &\quad 0.10\tankA{v_1} + 0.10\tankB{v_2} = 0 \\ &\quad \implies \tankB{v_2} = -\tankA{v_1} \\ &\quad \implies \underbrace{\modetwo{\begin{pmatrix} 1 \\ -1 \end{pmatrix} e^{-0.15t}}}_{\text{equalizing mode}} \end{aligned}
Apply A(0)=30\tankA{A(0)} = 30 and B(0)=0\tankB{B(0)} = 0 at t=0t = 0Combining the constant mode and the decaying mode tells us how the 3030 pounds of salt are shared at any time tt:
(A(t)B(t))=c1(21)+c2(1−1)e−0.15tt=0:{2c1+c2=301c1−c2=0  ⟹  c2=c1  ⟹  3c1=30  ⟹  c1=10,c2=10A(t)=20+10e−0.15t,B(t)=10−10e−0.15t\displaystyle \begin{aligned} \begin{pmatrix} \tankA{A(t)} \\ \tankB{B(t)} \end{pmatrix} &= \modeone{c_1 \begin{pmatrix} 2 \\ 1 \end{pmatrix}} \\ &\quad + \modetwo{c_2 \begin{pmatrix} 1 \\ -1 \end{pmatrix} e^{-0.15t}} \\ t = 0:\quad &\begin{cases}\begin{aligned} 2\modeone{c_1} + \modetwo{c_2} &= 30 \\ 1\modeone{c_1} - \modetwo{c_2} &= 0 \end{aligned}\end{cases} \\ &\implies \modetwo{c_2} = \modeone{c_1} \\ &\implies 3\modeone{c_1} = 30 \\ &\implies \modeone{c_1} = 10, \quad \modetwo{c_2} = 10 \\ \tankA{A(t)} &= \modeone{20} + \modetwo{10e^{-0.15t}}, \\ \tankB{B(t)} &= \modeone{10} - \modetwo{10e^{-0.15t}} \end{aligned}

As t→∞t \to \infty, the e−0.15t\modetwo{e^{-0.15t}} equalizing term dies out, and the 3030 pounds of salt settle permanently into 20\modeone{20} pounds in the 100100-gallon Tank A and 10\modeone{10} pounds in the 5050-gallon Tank B, giving both tanks the same concentration of 0.20 lb/gal0.20\text{ lb/gal}.

Here is how the two modes split and trade that fixed 3030 pounds of salt until both tanks reach the same concentration.

In a sealed loop, the total salt never changes, and in the end it splits to match the tank sizes so both tanks reach the same concentration.

Key concepts

Every two-tank or decay-chain problem starts with the same rule: once water in equals water out for each tank, each pipe's rate coefficient is pipe flowsource tank volume\frac{\text{pipe flow}}{\text{source tank volume}}. A 5 gal/min5\text{ gal/min} pipe leaving a 100100-gallon Tank A and pouring into a 5050-gallon Tank B takes −0.05A-0.05\tankA{A} out of A′\rate{A'} and puts +0.05A+0.05\tankA{A} into B′\rate{B'}.

How you solve the system depends on how the pipes are connected:

One-way chain (A→B\tankA{A} \to \tankB{B}, no return pipe)

You do not need matrices or eigenvalues when Tank A's equation has no B\tankB{B} term. Solve A′\rate{A'} first and substitute A(t)\tankA{A(t)} into B′\rate{B'}. When the two drain rates differ (A′=−0.05A,B′=0.05A−0.10B\rate{A'} = -0.05\tankA{A}, \rate{B'} = 0.05\tankA{A} - 0.10\tankB{B}), B(t)\tankB{B(t)} is a difference of the two exponentials 20e−0.05t−20e−0.10t\tankA{20e^{-0.05t}} - \homog{20e^{-0.10t}}; when the two drain rates match (A′=−0.05A,B′=0.05A−0.05B\rate{A'} = -0.05\tankA{A}, \rate{B'} = 0.05\tankA{A} - 0.05\tankB{B}), multiply by the integrating factor e0.05t\intfactor{e^{0.05t}} to get B(t)=te−0.05t\tankB{B(t)} = te^{-0.05t}.

Open loop with fresh water (A⇆B\tankA{A} \leftrightarrows \tankB{B} with drains)

Both equations depend on both tanks (A′=−3A+B,B′=2A−2B\rate{A'} = -3\tankA{A} + \tankB{B}, \rate{B'} = 2\tankA{A} - 2\tankB{B}), so find the eigenvalues and eigenvectors of the matrix. Both eigenvalues are negative: the fast opposite-sign mode (1−1)e−4t\modetwo{\begin{pmatrix} 1 \\ -1 \end{pmatrix} e^{-4t}} dies out first, clearing the initial imbalance away from the slow mode's ratio and leaving the slow same-sign mode (12)e−t\modeone{\begin{pmatrix} 1 \\ 2 \end{pmatrix} e^{-t}} to set the long-run ratio A:B=1:2\tankA{A} : \tankB{B} = \modeone{1 : 2} as the salt in both tanks drains out.

Open loop with incoming brine (constant forcing term)

When outside brine adds a constant salt rate (A′=−3A+B+6,B′=2A−2B\rate{A'} = -3\tankA{A} + \tankB{B} + \outside{6}, \rate{B'} = 2\tankA{A} - 2\tankB{B}), set A′=0\rate{A'} = 0 and B′=0\rate{B'} = 0 first to find the nonzero steady state (33)\outside{\begin{pmatrix} 3 \\ 3 \end{pmatrix}}, add the decaying modes on top of it, and plug t=0t = 0 into the entire expression (33)+c1(12)e−t+c2(1−1)e−4t\outside{\begin{pmatrix} 3 \\ 3 \end{pmatrix}} + \homog{c_1 \begin{pmatrix} 1 \\ 2 \end{pmatrix} e^{-t}} + \homog{c_2 \begin{pmatrix} 1 \\ -1 \end{pmatrix} e^{-4t}}.

Closed loop with no drains (A′+B′=0\rate{A'} + \rate{B'} = 0)

With no outside inlets or drains (A′=−0.05A+0.10B,\rate{A'} = -0.05\tankA{A} + 0.10\tankB{B}, B′=0.05A−0.10B\rate{B'} = 0.05\tankA{A} - 0.10\tankB{B}), total salt A(t)+B(t)\tankA{A(t)} + \tankB{B(t)} never changes. One eigenvalue is always r=0\modeone{r = 0}, giving a constant mode (21)\modeone{\begin{pmatrix} 2 \\ 1 \end{pmatrix}} that splits the total salt in the exact ratio of the tank volumes (100 gal:50 gal100\text{ gal} : 50\text{ gal}), paired with one decaying equalizing mode (1−1)e−0.15t\modetwo{\begin{pmatrix} 1 \\ -1 \end{pmatrix} e^{-0.15t}}.

6

Practice

1

Radioactive element A decays into element B at 4%4\% per hour, and element B decays into stable element C at 12%12\% per hour. Starting with A(0)=80\tankA{A(0)} = 80 grams and B(0)=0\tankB{B(0)} = 0 grams, write the system of differential equations for A\tankA{A} and B\tankB{B} and solve for A(t)\tankA{A(t)} and B(t)\tankB{B(t)}.

Does element A depend on element B, or can you solve A′\rate{A'} on its own and substitute A(t)\tankA{A(t)} into B′\rate{B'}?

Element A loses 4%4\% per hour into B, and element B loses 12%12\% per hour into C:
A′=−0.04A,B′=0.04A−0.12B\displaystyle \begin{aligned} \rate{A'} &= -0.04\tankA{A}, \\ \rate{B'} &= 0.04\tankA{A} - 0.12\tankB{B} \end{aligned}
Solving A′=−0.04A\rate{A'} = -0.04\tankA{A} with A(0)=80\tankA{A(0)} = 80 gives A(t)=80e−0.04t\tankA{A(t)} = 80e^{-0.04t}. Substitute A(t)\tankA{A(t)} into B′\rate{B'}:
B′+0.12B\displaystyle \rate{B'} + 0.12\tankB{B} =0.04(80e−0.04t)\displaystyle = 0.04\left(\tankA{80e^{-0.04t}}\right) =3.2e−0.04t\displaystyle = \tankA{3.2e^{-0.04t}}
(Be careful to multiply 80e−0.04t\tankA{80e^{-0.04t}} by the 0.040.04 decay rate before solving for c1\tankA{c_1}; forgetting the 0.040.04 factor and dividing 8080 by 0.12−0.04=0.08\homog{0.12} - \tankA{0.04} = 0.08 gives the wrong coefficient 10001000.)
Plugging B(t)=c1e−0.04t+c2e−0.12t\tankB{B(t)} = \tankA{c_1 e^{-0.04t}} + \homog{c_2 e^{-0.12t}} into B′+0.12B=3.2e−0.04t\rate{B'} + 0.12\tankB{B} = \tankA{3.2e^{-0.04t}} and using B(0)=0\tankB{B(0)} = 0:
(−0.04+0.12)c1=3.2  ⟹  0.08c1=3.2  ⟹  c1=40,B(0)=40+c2=0  ⟹  c2=−40\displaystyle \begin{aligned} (\tankA{-0.04} + \homog{0.12})\tankA{c_1} &= 3.2 \\ \implies 0.08\tankA{c_1} &= 3.2 \\ \implies \tankA{c_1} &= 40, \\ \tankB{B(0)} = 40 + \homog{c_2} &= 0 \\ \implies \homog{c_2} &= -40 \end{aligned}
A′=−0.04A,B′=0.04A−0.12B;A(t)=80e−0.04t,B(t)=40e−0.04t−40e−0.12t\displaystyle \begin{aligned} \rate{A'} &= -0.04\tankA{A}, \\ \rate{B'} &= 0.04\tankA{A} - 0.12\tankB{B}; \\ \tankA{A(t)} &= 80e^{-0.04t}, \\ \tankB{B(t)} &= 40e^{-0.04t} - 40e^{-0.12t} \end{aligned}
2

Tank A holds 5050 gallons of water and receives 55 gallons/min of pure fresh water from outside while draining at 55 gallons/min into Tank B. Tank B also holds 5050 gallons and drains out the bottom at 55 gallons/min. If Tank A starts with 1515 pounds of salt and Tank B starts with 55 pounds of salt, write the differential equations and find A(t)\tankA{A(t)} and B(t)\tankB{B(t)}.

Compare the drain rate fractions flowvolume\tfrac{\text{flow}}{\text{volume}} for Tank A and Tank B: which method is needed when both tanks drain at the same percentage rate?

Each tank loses 5 gal/min50 gal=0.10\frac{5\text{ gal/min}}{50\text{ gal}} = 0.10 of its salt per minute:
A′=−0.10A,B′=0.10A−0.10B\displaystyle \begin{aligned} \rate{A'} &= -0.10\tankA{A}, \\ \rate{B'} &= 0.10\tankA{A} - 0.10\tankB{B} \end{aligned}
With A(0)=15\tankA{A(0)} = 15, Tank A has A(t)=15e−0.10t\tankA{A(t)} = 15e^{-0.10t}. Substituting into B′\rate{B'} gives:
B′+0.10B\displaystyle \rate{B'} + 0.10\tankB{B} =0.10(15e−0.10t)\displaystyle = 0.10\left(\tankA{15e^{-0.10t}}\right) =1.5e−0.10t\displaystyle = \tankA{1.5e^{-0.10t}}
Because both rates are 0.100.10, multiply through by the integrating factor e0.10t\intfactor{e^{0.10t}} and integrate:
ddt(e0.10tB)\displaystyle \rate{\frac{d}{dt}}\left(\intfactor{e^{0.10t}}\tankB{B}\right) =1.5  ⟹  e0.10tB\displaystyle = 1.5 \implies \intfactor{e^{0.10t}}\tankB{B} =1.5t+C\displaystyle = \tankA{1.5t} + \homog{C}
(Don't assume C=0\homog{C} = 0 automatically: here Tank B starts with B(0)=5\tankB{B(0)} = 5 pounds of salt rather than fresh water, and leaving out C=5\homog{C} = 5 gives the wrong answer 1.5te−0.10t1.5te^{-0.10t}.)
Plugging in t=0t = 0 with B(0)=5\tankB{B(0)} = 5 gives C=5\homog{C} = 5:
A′=−0.10A,B′=0.10A−0.10B;A(t)=15e−0.10t,B(t)=(1.5t+5)e−0.10t\displaystyle \begin{aligned} \rate{A'} &= -0.10\tankA{A}, \\ \rate{B'} &= 0.10\tankA{A} - 0.10\tankB{B}; \\ \tankA{A(t)} &= 15e^{-0.10t}, \\ \tankB{B(t)} &= (1.5t + 5)e^{-0.10t} \end{aligned}
3

Tank A holds 3030 gallons and Tank B holds 1010 gallons. Tank A receives 4040 gallons/min of fresh water from outside and 2020 gallons/min pumped back from Tank B, while sending 3030 gallons/min into Tank B and 3030 gallons/min out a drain. Tank B receives the 3030 gallons/min from Tank A, pumps 2020 gallons/min back to Tank A, and sends 1010 gallons/min out a drain. Starting with A(0)=5\tankA{A(0)} = 5 pounds and B(0)=1\tankB{B(0)} = 1 pound of salt, set up the system, find the natural modes, solve for A(t)\tankA{A(t)} and B(t)\tankB{B(t)}, and give the long-run ratio A:B\tankA{A} : \tankB{B} as the salt drains out.

Divide each pipe's flow rate by the volume of the source tank that pipe leaves: notice that Tank A holds 3030 gallons while Tank B holds 1010 gallons.

Tank A (30 gal30\text{ gal}) loses 30+30=60 gal/min30 + 30 = 60\text{ gal/min} (6030=2\frac{60}{30} = 2) and receives 20 gal/min20\text{ gal/min} from the 1010-gallon Tank B (2010=2\frac{20}{10} = 2). Tank B (10 gal10\text{ gal}) receives 30 gal/min30\text{ gal/min} from the 3030-gallon Tank A (3030=1\frac{30}{30} = 1) and loses 20+10=30 gal/min20 + 10 = 30\text{ gal/min} (3010=3\frac{30}{10} = 3):
A′=−2A+2B,B′=A−3B\displaystyle \begin{aligned} \rate{A'} &= -2\tankA{A} + 2\tankB{B}, \\ \rate{B'} &= \tankA{A} - 3\tankB{B} \end{aligned}
(Be careful not to divide the 20 gal/min20\text{ gal/min} return pipe by Tank A's 3030 gallons instead of its source Tank B's 1010 gallons, which gives the wrong equation A′=−2A+23B\rate{A'} = -2\tankA{A} + \frac{2}{3}\tankB{B}.)
Find the eigenvalues and eigenvectors of (−221−3)\begin{pmatrix} -2 & 2 \\ 1 & -3 \end{pmatrix}:
(−2−r)(−3−r)−(2)(1)=r2+5r+4=(r+1)(r+4)=0  ⟹  r=−1,−4r=−1:−1v1+2v2=0  ⟹  v1=2v2  ⟹  (21)e−tr=−4:2v1+2v2=0  ⟹  v2=−v1  ⟹  (1−1)e−4t\displaystyle \begin{aligned} &(-2-r)(-3-r) - (2)(1) \\ &\quad = r^2 + 5r + 4 \\ &\quad = (r+1)(r+4) = 0 \\ &\quad \implies r = \modeone{-1}, \modetwo{-4} \\ &\modeone{r = -1}:\quad -1\tankA{v_1} + 2\tankB{v_2} = 0 \\ &\quad \implies \tankA{v_1} = 2\tankB{v_2} \\ &\quad \implies \modeone{\begin{pmatrix} 2 \\ 1 \end{pmatrix} e^{-t}} \\ &\modetwo{r = -4}:\quad 2\tankA{v_1} + 2\tankB{v_2} = 0 \\ &\quad \implies \tankB{v_2} = -\tankA{v_1} \\ &\quad \implies \modetwo{\begin{pmatrix} 1 \\ -1 \end{pmatrix} e^{-4t}} \end{aligned}
Apply A(0)=5\tankA{A(0)} = 5 and B(0)=1\tankB{B(0)} = 1 at t=0t = 0:
{2c1+c2=51c1−c2=1  ⟹  3c1=6  ⟹  c1=2,c2=1\displaystyle \begin{aligned} &\begin{cases}\begin{aligned} 2\modeone{c_1} + \modetwo{c_2} &= 5 \\ 1\modeone{c_1} - \modetwo{c_2} &= 1 \end{aligned}\end{cases} \\ &\implies 3\modeone{c_1} = 6 \\ &\implies \modeone{c_1} = 2, \quad \modetwo{c_2} = 1 \end{aligned}
As e−4t\modetwo{e^{-4t}} dies out first, the slower e−t\modeone{e^{-t}} mode takes over with ratio A:B=2:1\tankA{A} : \tankB{B} = \modeone{2 : 1}:
A′=−2A+2B,B′=A−3B;modes (21)e−t and (1−1)e−4t;A(t)=4e−t+e−4t,B(t)=2e−t−e−4t;long-run ratio A:B=2:1\displaystyle \begin{aligned} \rate{A'} &= -2\tankA{A} + 2\tankB{B}, \\ \rate{B'} &= \tankA{A} - 3\tankB{B}; \\ \text{modes } &\begin{pmatrix} 2 \\ 1 \end{pmatrix}e^{-t} \\ \text{ and } &\begin{pmatrix} 1 \\ -1 \end{pmatrix}e^{-4t}; \\ \tankA{A(t)} &= 4e^{-t} + e^{-4t}, \\ \tankB{B(t)} &= 2e^{-t} - e^{-4t}; \\ \text{long-run ratio } &\tankA{A} : \tankB{B} = 2 : 1 \end{aligned}
4

Tank A and Tank B each hold 1010 gallons and start full of pure fresh water, A(0)=0\tankA{A(0)} = 0 and B(0)=0\tankB{B(0)} = 0. Brine with a concentration of 0.5\outside{0.5} pounds of salt per gallon is pumped from outside into Tank A at 2020 gallons/min, and a return pipe from Tank B pumps 2020 gallons/min into Tank A. Tank A sends 3030 gallons/min into Tank B and 1010 gallons/min out a drain, while Tank B sends 2020 gallons/min back to Tank A and 1010 gallons/min out a drain. Write the forced system, find the steady-state equilibrium, and solve for A(t)\tankA{A(t)} and B(t)\tankB{B(t)}.

How many pounds of salt per minute enter Tank A from outside, and what are A′\rate{A'} and B′\rate{B'} equal to at the steady-state equilibrium?

The outside pipe adds 20 gal/min×0.5 lb/gal=10 lb/min20\text{ gal/min} \times \outside{0.5}\text{ lb/gal} = \outside{10}\text{ lb/min} of salt into Tank A. Dividing each internal flow by 10 gal10\text{ gal} gives the system and its A′=0,B′=0\rate{A'} = 0, \rate{B'} = 0 steady state:
{A′=−4A+2B+10=0B′=3A−3B=0  ⟹  B=A  ⟹  −2A+10=0  ⟹  (A,B)=(5,5)\displaystyle \begin{aligned} &\begin{cases}\begin{aligned} \rate{A'} &= -4\tankA{A} + 2\tankB{B} + \outside{10} = 0 \\ \rate{B'} &= 3\tankA{A} - 3\tankB{B} = 0 \end{aligned}\end{cases} \\ &\implies \tankB{B} = \tankA{A} \\ &\implies -2\tankA{A} + \outside{10} = 0 \\ &\implies (\tankA{A}, \tankB{B}) = \outside{(5, 5)} \end{aligned}
Find the natural modes of (−423−3)\begin{pmatrix} -4 & 2 \\ 3 & -3 \end{pmatrix}:
(−4−r)(−3−r)−(2)(3)=r2+7r+6=(r+1)(r+6)=0  ⟹  r=−1,−6r=−1:−3v1+2v2=0  ⟹  (23)e−tr=−6:2v1+2v2=0  ⟹  (1−1)e−6t\displaystyle \begin{aligned} &(-4-r)(-3-r) - (2)(3) \\ &\quad = r^2 + 7r + 6 \\ &\quad = (r+1)(r+6) = 0 \\ &\quad \implies r = \homog{-1}, \homog{-6} \\ &\homog{r = -1}:\quad -3\tankA{v_1} + 2\tankB{v_2} = 0 \\ &\quad \implies \homog{\begin{pmatrix} 2 \\ 3 \end{pmatrix} e^{-t}} \\ &\homog{r = -6}:\quad 2\tankA{v_1} + 2\tankB{v_2} = 0 \\ &\quad \implies \homog{\begin{pmatrix} 1 \\ -1 \end{pmatrix} e^{-6t}} \end{aligned}
Add the modes to the steady state (55)\outside{\begin{pmatrix} 5 \\ 5 \end{pmatrix}} and plug in A(0)=0,B(0)=0\tankA{A(0)} = 0, \tankB{B(0)} = 0 at t=0t = 0:
(A(t)B(t))=(55)+c1(23)e−t+c2(1−1)e−6t\displaystyle \begin{aligned} \begin{pmatrix} \tankA{A(t)} \\ \tankB{B(t)} \end{pmatrix} &= \outside{\begin{pmatrix} 5 \\ 5 \end{pmatrix}} + \homog{c_1 \begin{pmatrix} 2 \\ 3 \end{pmatrix} e^{-t}} \\ &\quad + \homog{c_2 \begin{pmatrix} 1 \\ -1 \end{pmatrix} e^{-6t}} \end{aligned}
(Don't plug A(0)=0,B(0)=0\tankA{A(0)} = 0, \tankB{B(0)} = 0 into the natural modes alone before adding (55)\outside{\begin{pmatrix} 5 \\ 5 \end{pmatrix}}, because doing so gives c1=0,c2=0\homog{c_1} = 0, \homog{c_2} = 0 and the constant wrong answer A(t)=5,B(t)=5\tankA{A(t)} = 5, \tankB{B(t)} = 5.)
{5+2c1+c2=05+3c1−c2=0  ⟹  5c1=−10  ⟹  c1=−2,c2=−1\displaystyle \begin{aligned} &\begin{cases}\begin{aligned} \outside{5} + 2\homog{c_1} + \homog{c_2} &= 0 \\ \outside{5} + 3\homog{c_1} - \homog{c_2} &= 0 \end{aligned}\end{cases} \\ &\implies 5\homog{c_1} = -10 \\ &\implies \homog{c_1} = -2, \quad \homog{c_2} = -1 \end{aligned}
A′=−4A+2B+10,B′=3A−3B;steady state (A,B)=(5,5);A(t)=5−4e−t−e−6t,B(t)=5−6e−t+e−6t\displaystyle \begin{aligned} \rate{A'} &= -4\tankA{A} + 2\tankB{B} + 10, \\ \rate{B'} &= 3\tankA{A} - 3\tankB{B}; \\ \text{steady state } &(\tankA{A}, \tankB{B}) = (5, 5); \\ \tankA{A(t)} &= 5 - 4e^{-t} - e^{-6t}, \\ \tankB{B(t)} &= 5 - 6e^{-t} + e^{-6t} \end{aligned}
5

In a sealed closed loop with no outside inlets or drains, Tank A holds 6060 gallons and Tank B holds 2020 gallons. A pipe pumps 66 gallons/min from Tank A to Tank B, and another pipe pumps 66 gallons/min from Tank B back to Tank A. At t=0t = 0, Tank A contains 1616 pounds of salt and Tank B contains 2424 pounds of salt. Write the system of equations, find A(t)\tankA{A(t)} and B(t)\tankB{B(t)}, and determine the final amount of salt in each tank as t→∞t \to \infty.

Since no salt ever leaves the closed loop, what are the two eigenvalues, and how does the r=0\modeone{r = 0} mode split the conserved total of 16+24=4016 + 24 = 40 pounds of salt?

Tank A loses 660=0.10\frac{6}{60} = 0.10 per minute to Tank B, and Tank B loses 620=0.30\frac{6}{20} = 0.30 per minute to Tank A:
A′=−0.10A+0.30B,B′=0.10A−0.30B\displaystyle \begin{aligned} \rate{A'} &= -0.10\tankA{A} + 0.30\tankB{B}, \\ \rate{B'} &= 0.10\tankA{A} - 0.30\tankB{B} \end{aligned}
Find the eigenvalues and modes of (−0.100.300.10−0.30)\begin{pmatrix} -0.10 & 0.30 \\ 0.10 & -0.30 \end{pmatrix}:
(−0.10−r)(−0.30−r)−(0.30)(0.10)=r2+0.40r=r(r+0.40)=0  ⟹  r1=0,r2=−0.40r1=0:−0.10v1+0.30v2=0  ⟹  v1=3v2  ⟹  (31)r2=−0.40:0.30v1+0.30v2=0  ⟹  v2=−v1  ⟹  (1−1)e−0.40t\displaystyle \begin{aligned} &(-0.10-r)(-0.30-r) \\ &\quad - (0.30)(0.10) \\ &\quad = r^2 + 0.40r \\ &\quad = r(r + 0.40) = 0 \\ &\quad \implies \modeone{r_1 = 0}, \quad \modetwo{r_2 = -0.40} \\ &\modeone{r_1 = 0}: \\ &\quad -0.10\tankA{v_1} + 0.30\tankB{v_2} = 0 \\ &\quad \implies \tankA{v_1} = 3\tankB{v_2} \\ &\quad \implies \modeone{\begin{pmatrix} 3 \\ 1 \end{pmatrix}} \\ &\modetwo{r_2 = -0.40}: \\ &\quad 0.30\tankA{v_1} + 0.30\tankB{v_2} = 0 \\ &\quad \implies \tankB{v_2} = -\tankA{v_1} \\ &\quad \implies \modetwo{\begin{pmatrix} 1 \\ -1 \end{pmatrix} e^{-0.40t}} \end{aligned}
(Be careful not to flip −0.10v1+0.30v2=0-0.10\tankA{v_1} + 0.30\tankB{v_2} = 0 into the wrong vector (13)\begin{pmatrix} 1 \\ 3 \end{pmatrix}: Tank A holds 33 times the water volume of Tank B, so at equal concentration Tank A holds 33 times as much salt, giving 30\modeone{30} pounds in A and 10\modeone{10} pounds in B rather than 1010 and 3030.)
Match A(0)=16\tankA{A(0)} = 16 and B(0)=24\tankB{B(0)} = 24 in (A(t)B(t))=c1(31)+c2(1−1)e−0.40t\begin{pmatrix} \tankA{A(t)} \\ \tankB{B(t)} \end{pmatrix} = \modeone{c_1 \begin{pmatrix} 3 \\ 1 \end{pmatrix}} + \modetwo{c_2 \begin{pmatrix} 1 \\ -1 \end{pmatrix} e^{-0.40t}}:
{3c1+c2=161c1−c2=24  ⟹  4c1=40  ⟹  c1=10,c2=−14\displaystyle \begin{aligned} &\begin{cases}\begin{aligned} 3\modeone{c_1} + \modetwo{c_2} &= 16 \\ 1\modeone{c_1} - \modetwo{c_2} &= 24 \end{aligned}\end{cases} \\ &\implies 4\modeone{c_1} = 40 \\ &\implies \modeone{c_1} = 10, \quad \modetwo{c_2} = -14 \end{aligned}
A′=−0.10A+0.30B,B′=0.10A−0.30B;A(t)=30−14e−0.40t,B(t)=10+14e−0.40t;as t→∞,Tank A approaches 30 poundsand Tank B approaches 10 pounds\displaystyle \begin{gathered} \begin{aligned} \rate{A'} &= -0.10\tankA{A} + 0.30\tankB{B}, \\ \rate{B'} &= 0.10\tankA{A} - 0.30\tankB{B}; \\ \tankA{A(t)} &= 30 - 14e^{-0.40t}, \\ \tankB{B(t)} &= 10 + 14e^{-0.40t}; \end{aligned} \\ \text{as } t \to \infty, \\ \text{Tank A approaches } 30\text{ pounds} \\ \text{and Tank B approaches } 10\text{ pounds} \end{gathered}