School/□ Systems Engineer/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.
About 40 min · 3 goals · Checked by automated tests
1.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.
2.Predict
A capacitor discharges with dV/dt = −V/τ, τ = 2 s, starting at 10 V. After 2 s, what is V closest to?
Guess first. Being wrong here is how the surprise works.
3.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?
Loading the interactive…
Can't use the interactive? Read a description instead
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.
4.Checkpoint: guided practice
Check what you just discovered before going on. Hints appear after a wrong answer.
Practice 1 · a fresh version every time
A cooling temperature difference halves every 12 minutes. What is its time constant τ, in minutes?
5.Watch
→ 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.
Length: see YouTube · captions on YouTube · source
Nothing loads from YouTube until you press play.
The video is optional: everything you need is also in the lesson text and the interactive.
6.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
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.
Linear first-order ODE y′ + ky = 0. General first-order: τ·dy/dt + y = y_∞, solution y = y_∞ + (y₀ − y_∞)e^(−t/τ).
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.
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.
7.Practice on your own
Practice, not a test. Wrong answers get a hint and another try.
Practice 2
R = 10 kΩ, C = 100 µF, V(0) = 9 V. What is V at t = 2 s, in volts?
Practice 3
What percentage of the initial value remains after 5 time constants?
Practice 4
How can you check that T(t) = 20 + 70e^(−0.05t) solves dT/dt = −0.05(T − 20)?
Practice 5 · a fresh version every time
A mug of tea at 75 °C cools in a 25 °C room as T(t) = Tₐ + (T₀ − Tₐ)·e^(−kt) with k = 0.02 per minute. What is its temperature after 20 minutes, in °C?
8.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?
9.Reflect
10.Go further
- OpenStax Calculus Volume 1 (free, open textbook) ↗A complete first-year calculus text with worked examples and exercises, free to read online.
Concepts: First-order differential equations