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) and 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=source tank volumepipe flow rate
Setting Up Tank Cascades and Decay Chains
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 fractionTank B loss fraction=100 gal5 gal/min=0.05,=50 gal5 gal/min=0.10
Match Tank A's outflow to Tank B's inflowEvery pound of salt (or radioactive atom) that leaves A enters B, while B also loses 10% of its own amount out the bottom at the same time:
A′B′=leaves A−0.05A=enters from A+0.05A−leaves B0.10B
Whether A and B measure pounds of salt in two tanks or atoms in a decay chain A5%B10%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) and B(t) at any time t, starting with A(0)=20 pounds in Tank A and pure fresh water 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, so we can solve for A(t) on its own and plug the result straight into Tank B's equation.
Solving a One-Way Cascade
Text solution
Solve Tank A alone and substitute into Tank BSince A′=−0.05A with A(0)=20 gives A(t)=20e−0.05t, substituting A(t) into B′ turns Tank B's equation into a first-order linear equation:
Combine the feeding and draining exponentials when the two drain rates differPlugging the trial form c1e−0.05t into B′+0.10B=1e−0.05t divides the inflow coefficient by the difference in drain rates 0.10−0.05, and applying B(0)=0 to B(t)=c1e−0.05t+c2e−0.10t fixes c2:
Multiply by an integrating factor when both tanks share the same drain rateIf Tank B also holds 100 gallons so its drain rate matches Tank A's 0.05, we cannot divide by 0.05−0.05=0. Instead, multiplying B′+0.05B=1e−0.05t by e0.05t turns the left side into a single derivative by the product rule:
In both cases, the salt in Tank B starts at 0, climbs to a single peak while salt pours in from Tank A, and drains back toward 0 as Tank A's salt runs low.
When Tank B drains at a rate k different from 0.05, the same steps give B(t)=k−0.05e−0.05t−e−kt: the vertical gap between the two exponentials, divided by the difference in their rates. As Tank B's volume approaches Tank A's 100 gallons, k approaches 0.05, so the gap and the difference both shrink toward 0, and their quotient smoothly approaches te−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′ depends on B and B′ depends on A at the same time. We want to find A(t) and B(t) for two 10-gallon looped tanks starting with A(0)=3 pounds and B(0)=0 pounds.
Because neither equation can be solved alone, we use eigenvalues to find the system's natural modes (v1v2)ert, which are the special starting ratios where both tanks change together at the exact same exponential rate ert.
Looped Tanks and Natural Modes
Text solution
Divide each tank's total outflow and inflow by the 10-gallon volume of the tank each flow comes fromTank A loses 30 gal/min total (1030=3) and receives 10 gal/min from Tank B (1010=1), while Tank B receives 20 gal/min from Tank A (1020=2) and loses 20 gal/min total (1020=2):
A′B′=−3A+1B=+2A−2B
Find the eigenvalues and eigenvectors of the coefficient matrixSetting the characteristic polynomial of (−321−2) to zero gives the two natural rates r=−1 and r=−4 and their corresponding mode vectors:
Match the starting amounts A(0)=3 and B(0)=0 at t=0Writing the general solution as a combination of the two modes and plugging in t=0 gives c1 and c2:
So the e−4t imbalance terms die out quickly, leaving A(t)≈1e−t and B(t)≈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 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) and B(t) when the 20 gal/min outside pipe into Tank A pumps in salty brine at 0.3 pounds/gallon, starting from fresh water A(0)=0 and B(0)=0.
Incoming Brine and Steady-State Equilibrium
Text solution
Add the outside salt inflow and set A′=0,B′=0 to find the steady statePumping 20 gal/min at 0.3 lb/gal adds 20×0.3=6 lb/min of salt to Tank A, and both tanks stop changing when salt coming in balances salt going out:
Add the decaying modes to the steady state and plug in t=0 across the entire equationBecause the tank volumes and internal pipes did not change, we add the same two natural modes to (33) and use A(0)=0,B(0)=0 on the full sum:
Both tanks start at 0 pounds and climb to a permanent equilibrium of 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 10-gallon tanks are filled with 0.3 lb/gal brine (10 gal×0.3 lb/gal=3 lb), though you should still write out the A′=0,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),B(t), and the final distribution of salt when a 100-gallon Tank A (starting with A(0)=30 pounds) and a 50-gallon Tank B (starting with B(0)=0 pounds) pump water back and forth at 5 gal/min in a sealed closed loop with no outside inlets or drains.
Closed Loops and Conservation of Salt
Text solution
Write the closed-loop equations and check conservation of saltAll 5 gal/min leaving the 100-gallon Tank A (1005=0.05) goes into Tank B, and all 5 gal/min leaving the 50-gallon Tank B (505=0.10) goes back into Tank A, so the two derivatives add to zero:
Find the permanent r=0 steady mode and the decaying equalizing modeSolving the characteristic equation for (−0.050.050.10−0.10) gives r1=0 (where e0t=1 stays constant forever) and r2=−0.15:
As t→∞, the e−0.15t equalizing term dies out, and the 30 pounds of salt settle permanently into 20 pounds in the 100-gallon Tank A and 10 pounds in the 50-gallon Tank B, giving both tanks the same concentration of 0.20 lb/gal.
Here is how the two modes split and trade that fixed 30 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 source tank volumepipe flow. A 5 gal/min pipe leaving a 100-gallon Tank A and pouring into a 50-gallon Tank B takes −0.05A out of A′ and puts +0.05A into B′.
How you solve the system depends on how the pipes are connected:
One-way chain (A→B, no return pipe)
You do not need matrices or eigenvalues when Tank A's equation has no B term. Solve A′ first and substitute A(t) into B′. When the two drain rates differ (A′=−0.05A,B′=0.05A−0.10B), B(t) is a difference of the two exponentials 20e−0.05t−20e−0.10t; when the two drain rates match (A′=−0.05A,B′=0.05A−0.05B), multiply by the integrating factor e0.05t to get B(t)=te−0.05t.
Open loop with fresh water (A⇆B with drains)
Both equations depend on both tanks (A′=−3A+B,B′=2A−2B), so find the eigenvalues and eigenvectors of the matrix. Both eigenvalues are negative: the fast opposite-sign mode (1−1)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 to set the long-run ratio A:B=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), set A′=0 and B′=0 first to find the nonzero steady state (33), add the decaying modes on top of it, and plug t=0 into the entire expression (33)+c1(12)e−t+c2(1−1)e−4t.
Closed loop with no drains (A′+B′=0)
With no outside inlets or drains (A′=−0.05A+0.10B,B′=0.05A−0.10B), total salt A(t)+B(t) never changes. One eigenvalue is always r=0, giving a constant mode (21) that splits the total salt in the exact ratio of the tank volumes (100 gal:50 gal), paired with one decaying equalizing mode (1−1)e−0.15t.
6
Practice
1
Radioactive element A decays into element B at 4% per hour, and element B decays into stable element C at 12% per hour. Starting with A(0)=80 grams and B(0)=0 grams, write the system of differential equations for A and B and solve for A(t) and B(t).
Does element A depend on element B, or can you solve A′ on its own and substitute A(t) into B′?
Element A loses 4% per hour into B, and element B loses 12% per hour into C:
A′B′=−0.04A,=0.04A−0.12B
Solving A′=−0.04A with A(0)=80 gives A(t)=80e−0.04t. Substitute A(t) into B′:
B′+0.12B=0.04(80e−0.04t)=3.2e−0.04t
(Be careful to multiply 80e−0.04t by the 0.04 decay rate before solving for c1; forgetting the 0.04 factor and dividing 80 by 0.12−0.04=0.08 gives the wrong coefficient 1000.)
Plugging B(t)=c1e−0.04t+c2e−0.12t into B′+0.12B=3.2e−0.04t and using B(0)=0:
Tank A holds 50 gallons of water and receives 5 gallons/min of pure fresh water from outside while draining at 5 gallons/min into Tank B. Tank B also holds 50 gallons and drains out the bottom at 5 gallons/min. If Tank A starts with 15 pounds of salt and Tank B starts with 5 pounds of salt, write the differential equations and find A(t) and B(t).
Compare the drain rate fractions volumeflow for Tank A and Tank B: which method is needed when both tanks drain at the same percentage rate?
Each tank loses 50 gal5 gal/min=0.10 of its salt per minute:
A′B′=−0.10A,=0.10A−0.10B
With A(0)=15, Tank A has A(t)=15e−0.10t. Substituting into B′ gives:
B′+0.10B=0.10(15e−0.10t)=1.5e−0.10t
Because both rates are 0.10, multiply through by the integrating factor e0.10t and integrate:
dtd(e0.10tB)=1.5⟹e0.10tB=1.5t+C
(Don't assume C=0 automatically: here Tank B starts with B(0)=5 pounds of salt rather than fresh water, and leaving out C=5 gives the wrong answer 1.5te−0.10t.)
Tank A holds 30 gallons and Tank B holds 10 gallons. Tank A receives 40 gallons/min of fresh water from outside and 20 gallons/min pumped back from Tank B, while sending 30 gallons/min into Tank B and 30 gallons/min out a drain. Tank B receives the 30 gallons/min from Tank A, pumps 20 gallons/min back to Tank A, and sends 10 gallons/min out a drain. Starting with A(0)=5 pounds and B(0)=1 pound of salt, set up the system, find the natural modes, solve for A(t) and B(t), and give the long-run ratio A: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 30 gallons while Tank B holds 10 gallons.
Tank A (30 gal) loses 30+30=60 gal/min (3060=2) and receives 20 gal/min from the 10-gallon Tank B (1020=2). Tank B (10 gal) receives 30 gal/min from the 30-gallon Tank A (3030=1) and loses 20+10=30 gal/min (1030=3):
A′B′=−2A+2B,=A−3B
(Be careful not to divide the 20 gal/min return pipe by Tank A's 30 gallons instead of its source Tank B's 10 gallons, which gives the wrong equation A′=−2A+32B.)
Find the eigenvalues and eigenvectors of (−212−3):
As e−4t dies out first, the slower e−t mode takes over with ratio A:B=2:1:
A′B′modes and A(t)B(t)long-run ratio =−2A+2B,=A−3B;(21)e−t(1−1)e−4t;=4e−t+e−4t,=2e−t−e−4t;A:B=2:1
4
Tank A and Tank B each hold 10 gallons and start full of pure fresh water, A(0)=0 and B(0)=0. Brine with a concentration of 0.5 pounds of salt per gallon is pumped from outside into Tank A at 20 gallons/min, and a return pipe from Tank B pumps 20 gallons/min into Tank A. Tank A sends 30 gallons/min into Tank B and 10 gallons/min out a drain, while Tank B sends 20 gallons/min back to Tank A and 10 gallons/min out a drain. Write the forced system, find the steady-state equilibrium, and solve for A(t) and B(t).
How many pounds of salt per minute enter Tank A from outside, and what are A′ and B′ equal to at the steady-state equilibrium?
The outside pipe adds 20 gal/min×0.5 lb/gal=10 lb/min of salt into Tank A. Dividing each internal flow by 10 gal gives the system and its A′=0,B′=0 steady state:
Add the modes to the steady state (55) and plug in A(0)=0,B(0)=0 at t=0:
(A(t)B(t))=(55)+c1(23)e−t+c2(1−1)e−6t
(Don't plug A(0)=0,B(0)=0 into the natural modes alone before adding (55), because doing so gives c1=0,c2=0 and the constant wrong answer A(t)=5,B(t)=5.)
A′B′steady state A(t)B(t)=−4A+2B+10,=3A−3B;(A,B)=(5,5);=5−4e−t−e−6t,=5−6e−t+e−6t
5
In a sealed closed loop with no outside inlets or drains, Tank A holds 60 gallons and Tank B holds 20 gallons. A pipe pumps 6 gallons/min from Tank A to Tank B, and another pipe pumps 6 gallons/min from Tank B back to Tank A. At t=0, Tank A contains 16 pounds of salt and Tank B contains 24 pounds of salt. Write the system of equations, find A(t) and B(t), and determine the final amount of salt in each tank as t→∞.
Since no salt ever leaves the closed loop, what are the two eigenvalues, and how does the r=0 mode split the conserved total of 16+24=40 pounds of salt?
Tank A loses 606=0.10 per minute to Tank B, and Tank B loses 206=0.30 per minute to Tank A:
A′B′=−0.10A+0.30B,=0.10A−0.30B
Find the eigenvalues and modes of (−0.100.100.30−0.30):
(Be careful not to flip −0.10v1+0.30v2=0 into the wrong vector (13): Tank A holds 3 times the water volume of Tank B, so at equal concentration Tank A holds 3 times as much salt, giving 30 pounds in A and 10 pounds in B rather than 10 and 30.)
Match A(0)=16 and B(0)=24 in (A(t)B(t))=c1(31)+c2(1−1)e−0.40t: