Lite / Engineering Complex Systems / Week 8
Rate equations and exponential decay
A hot drink cools fastest when it is hottest. A capacitor discharges fastest when it is fullest. Write that sentence as an equation and the solution writes itself.
Why should I care?
This is the first model in the course that says how fast something changes rather than what it is. The same equation, with different letters, describes thermal sensors, RC filters, tank draining, first-order robot joints and the first-order systems of next term's control unit.
- Write dy/dt = −ky for RC discharge and dT/dt = −k(T − Tₐ) for cooling, naming every quantity with units.
- Solve dy/dt = −ky by separating variables and check the solution by differentiation.
- Use the time constant and half-life to predict the response.
Predict
A capacitor discharges with dV/dt = −V/τ, τ = 2 s, starting at 10 V. After 2 s, what is V closest to?
- 0 V
- 3.7 V
- 5 V
- 8 V
Guess first, then reveal
V = 10·e^(−t/τ), so after one time constant V = 10e⁻¹ ≈ 3.7 V. It does not reach zero, and it is not halfway: it has lost 63% of its voltage.
Discover
Choose the capacitor data. Turn on the log view: the points should lie on a straight line. Adjust k until the model line matches, then press Best fit. Read τ and the half-life. Why is ln(V) straight when V is curved?
What the interactive shows (text version)
In the decay-fit lab the capacitor readings fall from 9 V towards zero. In the log view, ln V against time is a straight line whose slope is −k; the best fit gives k close to 0.45 per second, so τ ≈ 2.2 s and a half-life of about 1.5 s. The readout states k, τ, half-life and the RMS error.
Watch (optional)
Watch for: Watch the introduction for the idea of a differential equation as a rule for change, and note why most real ones are solved numerically.
Introduces differential equations through a pendulum and shows why engineers so often solve them by stepping forward in time.
“Differential equations, a tourist's guide | DE1” by 3Blue1Brown (opens YouTube; streaming video uses a lot of data)
The video is optional. Everything you need is in this lesson's text.
Understand
Writing the equation
RC discharge: the current through R is V/R and it drains the capacitor: C·dV/dt = −V/R, so dV/dt = −V/(RC), τ = RC. Newton's cooling: heat flow is proportional to the temperature difference, so dT/dt = −k(T − Tₐ). Both: rate ∝ distance from equilibrium.
The time constant
τ (seconds or minutes) sets the speed. After 1τ, 37% of the initial difference remains; after 3τ, 5%; after 5τ, under 1%. Engineers call a first-order system 'settled' after about 4–5τ. For R = 10 kΩ and C = 100 µF, τ = 1 s.
Why the solution must be exponential
Only one family has a rate proportional to its value: e^(kt), from week 3's chain rule. So once you see 'rate ∝ amount', you can write the exponential solution straight away, then fit k (week 9). The equation also gives the units: k is per second, so kt has no units, as an exponent must.
Explain it another way
Intuitive
Each second, the drink loses the same fraction of its 'extra' heat above room temperature. Losing a fixed fraction repeatedly is what exponential decay means.
Technical
Linear first-order ODE y′ + ky = 0. General first-order: τ·dy/dt + y = y_∞, solution y = y_∞ + (y₀ − y_∞)e^(−t/τ).
Mathematical
Uniqueness: if y and z both solve y′ = −ky with the same y(0), then d/dt[(y − z)e^(kt)] = 0, so y = z. The exponential is the only solution.
Applied
Temperature sensors in housings respond with a time constant of seconds to minutes. A controller that reads one too early sees a lagging value; engineers either wait 3–5τ or model the lag and correct for it.
Derivation: Solving dy/dt = −ky
Model: the rate of decrease is proportional to the amount: dy/dt = −k·y, k > 0, with y(0) = y₀.
Separate variables (for y > 0): (1/y) dy = −k dt.
Integrate both sides: ln y = −kt + C.
Exponentiate: y = e^C·e^(−kt). At t = 0, y = e^C = y₀, so y(t) = y₀·e^(−kt).
Check by differentiating: dy/dt = y₀·(−k)·e^(−kt) = −k·y ✓.
Time constant τ = 1/k: y(τ) = y₀e⁻¹ ≈ 0.368y₀. Half-life: e^(−kt) = ½ gives t½ = ln 2/k = τ·ln 2.
Cooling: let u = T − Tₐ; then du/dt = dT/dt = −k·u, so T(t) = Tₐ + (T₀ − Tₐ)e^(−kt).
Worked example 1
R = 10 kΩ, C = 100 µF, V(0) = 9 V. Find τ and V at 2 s.
τ = RC = 10⁴ × 10⁻⁴ = 1 s. V(2) = 9e⁻² = 1.22 V.
Common mix-ups
After one time constant the quantity has halved.
✓ After τ it is at 37%; it halves after τ·ln 2 ≈ 0.69τ.The drink cools towards 0 °C.
✓ It cools towards the room temperature Tₐ: only the difference decays.
Practice
Practice, not a test. Answers are checked on our server; a wrong answer gets a hint and another try. Nothing is saved.
Apply it
A greenhouse temperature sensor has τ = 40 s. The air jumps from 20 °C to 30 °C. What does the sensor read after 40 s, 2 minutes and 3 minutes? How long should the controller wait before trusting it to within 0.5 °C?
Reflect
Describe in words what dy/dt = −ky says about a system, without mentioning exponentials.
Write your answer on paper or in your own notes. Lite never stores what you write.
Go further
- OpenStax Calculus Volume 1 (free, open textbook)
A complete first-year calculus text with worked examples and exercises, free to read online.