Differential Equations › Section B · First order differential equations › Topic B.7
Modeling with first order equations
Tanks, populations, falling bodies and circuits all obey first-order equations once the physical rules are written down carefully. Setting up the equation is usually the hard part; this topic shows how to do it, solve it and check that the answer makes sense.
Three stages of a model
A mathematical model turns a description of a system into an equation, solves it, and translates the answer back. Each stage can go wrong. Translation needs a clear choice of variables, units and assumptions: well mixed, constant rates, drag proportional to speed. Solving uses the methods of this section; the first-order models here are almost always linear or separable. Interpretation asks whether the answer behaves sensibly: does it stay positive, approach a plausible limit, and have the right units? A model is only as good as its assumptions, so every model in this topic states its assumptions.
Rate in minus rate out
Most first-order models are balance laws: the rate of change of a quantity equals the rate at which it enters minus the rate at which it leaves. For a tank holding \(Q(t)\) kg of dissolved salt in \(V(t)\) litres,
Each rate is a flow in litres per minute times a concentration in kg per litre, giving kg per minute. Salt arriving in brine of concentration \(c\) at \(r_{\text{in}}\) L/min enters at \(cr_{\text{in}}\). If the tank is well mixed, the outflow carries the tank's own concentration, \(\frac{Q}{V}\), at \(r_{\text{out}}\) L/min. When inflow and outflow differ, \(V\) changes with time.
Worked example: a tank that fills
A 300 L tank holds 200 L of water with 10 kg of salt. Brine with 0.25 kg/L enters at 6 L/min, and the well-mixed solution leaves at 4 L/min. How much salt is present when the tank overflows? 1. Volume: \(V = 200 + 2t\), reaching 300 L at \(t = 50\) min. 2. Balance:
that is, \(Q' = 1.5 - \frac{2Q}{100 + t}\). 3. Linear, with \(\mu = (100 + t)^2\): \(\left((100 + t)^2Q\right)' = 1.5(100 + t)^2\), so
4. \(Q(0) = 10\) gives \(C = -400{,}000\). 5. At \(t = 50\): \(Q = 75 - 17.8 \approx 57.2\) kg. Check: below the 75 kg that 300 L of pure inflow brine would hold.
Worked example: growth with removal
A protected herd of 500 animals grows naturally at 10% per year, while 30 animals per year are relocated. Assuming growth proportional to size and steady removal, \(P' = 0.1P - 30\). 1. Equilibrium: \(P' = 0\) at \(P = 300\). 2. Solve the linear equation: \(P = 300 + Ce^{0.1t}\). 3. With \(P(0) = 500\), \(C = 200\) and the herd grows: \(P = 300 + 200e^{0.1t}\). 4. With \(P(0) = 250\) instead, \(C = -50\), so \(P = 300 - 50e^{0.1t}\), which reaches 0 when \(e^{0.1t} = 6\), at \(t = 10\ln 6 \approx 17.9\) years. The equilibrium of 300 is a threshold: above it the herd thrives, below it the same removal rate wipes it out.
Falling bodies and sign conventions
Newton's second law, \(mv' = \) total force, models a falling object. Choose a positive direction first and keep to it. With downward positive, gravity contributes \(+mg\), and air resistance proportional to speed contributes \(-bv\), since it opposes the motion, so
Setting \(v' = 0\) gives the terminal velocity \(\frac{mg}{b}\), where drag balances weight. With upward positive the equation reads \(mv' = -mg - bv\), and the term \(-bv\) still opposes motion in either direction. Drag proportional to \(v^2\) is more realistic at high speed, but then the sign must be written as \(-bv|v|\) to keep it opposing the motion.
Worked example: a skydiver
An 80 kg skydiver falls from rest with drag \(16v\) newtons, \(v\) in m/s, downward positive, \(g = 9.80\) m/s². 1. Model: \(80v' = 784 - 16v\), or \(v' = 9.8 - 0.2v\), with \(v(0) = 0\). 2. Terminal velocity: \(\frac{784}{16} = 49\) m/s. 3. Solve the linear equation: \(v = 49 + Ce^{-0.2t}\), and \(v(0) = 0\) gives \(C = -49\), so
4. The skydiver reaches 90% of terminal speed when \(e^{-0.2t} = 0.1\), at \(t = 5\ln 10 \approx 11.5\) s. Check: \(v\) starts at 0, rises, and stays below 49 m/s. Linear drag is a simplification, so treat the numbers as estimates.
Circuits, decay and cooling
In a circuit with resistance \(R\), capacitance \(C\) and a constant battery voltage \(V\), the capacitor charge obeys \(Rq' + \frac{q}{C} = V\), whose solution from \(q(0) = 0\) is \(q = CV\left(1 - e^{-t/RC}\right)\). With \(R = 2000\ \Omega\), \(C = 500\ \mu\mathrm{F}\) and \(V = 12\) volts, the time constant \(\tau = RC\) is 1 s and the final charge is 6 mC; after 2 s the capacitor holds about 5.19 mC. Decay, \(N' = -\lambda N\), is the simplest balance of all: nothing enters, and the amount leaves at a rate proportional to itself, as for a radioactive sample or a drug cleared from the blood, with half-life \(\frac{\ln 2}{\lambda}\). Newton's law of cooling, \(T' = -k(T - A)\), from the Calculus topic "Separation of variables", has the same structure: a quantity relaxing exponentially toward an equilibrium.
Checking a model
Before trusting a solution, test it. 1. Units: every term in the equation must have the same units, such as kg per minute. 2. Equilibria: set the rate to zero and ask whether the steady value is plausible; salt should approach inflow concentration times volume, and a falling object should approach terminal speed. 3. Limits and signs: a population should not become negative unless the model has failed, and a cooling drink should not drop below room temperature. 4. Domain: a filling tank model stops at overflow. 5. Sensitivity: small changes in uncertain constants should not change the conclusion wildly, or the conclusion needs better data.
Common mistakes to avoid
First, using the inflow concentration for the outflow; outflow carries \(\frac{Q}{V}\), the tank's own concentration. Second, keeping \(V\) constant when inflow and outflow rates differ. Third, mixing units, such as rates per hour with time in minutes. Fourth, sign errors in force balances: drag must oppose motion, and gravity's sign depends on the chosen positive direction. Fifth, applying a solution beyond the model's domain, for instance after a tank overflows or a population reaches zero. Sixth, forgetting to state assumptions such as perfect mixing, constant rates or drag proportional to speed.
Key takeaways
Modelling means translating, solving and interpreting, with assumptions stated. Balance laws, rate in minus rate out, model tanks and populations; a well-mixed outflow carries concentration \(\frac{Q}{V}\), and \(V\) changes when flows differ. Falling bodies follow \(mv' = \) net force with a fixed sign convention, reaching terminal velocity \(\frac{mg}{b}\) under linear drag. RC circuits and cooling relax exponentially toward equilibrium with a time constant. Equilibria can be thresholds that separate very different futures. Always check units, equilibria, signs and the model's domain.
Flashcards
Flashcard
Rate of change = rate in − rate out
Test your understanding
Question 1 of 5
A 150 L tank is kept full. Brine with 0.5 kg/L of salt flows in at 3 L/min and the well-mixed solution flows out at 3 L/min. Which equation models the salt Q in kg?
Question 2 of 5
A tank starts with 400 L. Liquid enters at 5 L/min and the well-mixed solution leaves at 3 L/min. At what rate does salt leave, if the tank holds Q kg?
Question 3 of 5
A 70 kg object falls with drag 20v newtons, so 70v′ = 686 − 20v with g = 9.80 m/s². What is its terminal velocity?
Question 4 of 5
A population obeys P′ = 0.2P − 50 and starts at P(0) = 200. What happens to it?
Question 5 of 5
A capacitor charges through a resistor from a battery, starting uncharged. What fraction of its final charge does it hold after one time constant RC?
