All three situations on this page have the same skeleton. There is an unknown quantity, a constant source and a loss or gain proportional to the unknown. Once the equation is written as y′ + a·y = b the solution and its steady state follow from “Constant Coefficients and the Steady State” with no new idea.
situation unknown a b steady state b/a
capacitor q 2 5 5/2
tank y 1/20 10 200
loan B −1/20 −6 120
The capacitor
A capacitor with capacitance C is charged through a resistor R from a source of voltage V. The charge q satisfies R·q′ + q/C = V. With R = 1, C = 1/2 and V = 5 in consistent units, dividing by R gives q′ + 2q = 5. The steady state is C·V = 5/2, the charge at which the capacitor's voltage equals the source's. From an empty capacitor the charge approaches 5/2 and is below it at every finite time.
The tank
A tank holds 20 litres of well-mixed brine. Brine at 10 units of salt per litre flows in at one litre per minute, and the mixture flows out at the same rate. The salt y gains 10 per minute and loses y/20 per minute, since a twentieth of the tank leaves each minute. So y′ = 10 − y/20, which is y′ + y/20 = 10. The steady state is 200, the inflow concentration times the volume.
The loan
A balance of 100 earns interest at 5% a year, charged continuously, and is repaid at 6 a year. The balance gains B/20 and loses 6, so B′ = B/20 − 6. Moving the B term to the left changes its sign: B′ − B/20 = −6, so a = −1/20 and b = −6. The steady state is b/a = (−6)/(−1/20) = 120.
That number has a meaning. At a balance of 120 the interest is 120/20 = 6 a year, exactly the payment, so the balance neither falls nor grows. It is a knife edge, not a destination: a < 0 makes it repelling. The loan starts at 100, below it, so the gap is −20 and grows.
B = 120 + (100 − 120)·e^(t/20)
B = 120 − 20·e^(t/20)
B = 0: e^(t/20) = 6
t = 20·ln 6 ≈ 35.8352 years
The payoff time is where the balance is zero. It needs a natural logarithm, ln 6 ≈ 1.79176, which is irrational, so the figure ≈ 35.8352 is rounded. The lab does not print a payoff time; it prints the closed form, and the number is yours to compute from it. You can check the sign change in the lab's Euler view with a step of one year and at least 36 steps: the rounded closed-form column falls through zero between year 35 and year 36.
Compare the naive estimate. A balance of 100 repaid at 6 a year would take 100/6 ≈ 16.6667 years if no interest were charged. At year 17 the closed form gives 120 − 20·e^(17/20) ≈ 73.2071, rounded: more than seventy are still owed. The real payoff is more than twice as long, because the balance gains interest all the way down.
Example · The same loan starting just above the steady stateStart the same loan at B(0) = 130 instead. The gap to 120 is +10, so B = 120 + 10·e^(t/20), and the balance grows without limit: the interest on 130 is 6.5 a year and the payment is only 6.
The knife edge is exactly B = 120. A payment of 6 a year pays off a loan of 100 but not a loan of 130, and the equation says so at once through the sign of the gap.