Lite / Textbooks / Feedback and Control / Chapter 4
4. Systems with memory: first-order response
Introduction
Switch on a heater and the room does not jump to its final temperature; it creeps towards it, quickly at first, then slowly. Systems with stored energy have memory, and the simplest kind, first order, is described by two numbers: a gain and a time constant τ. After one τ the response is 63% of the way there, after about four τ it is essentially done. Read τ from a step test and you have a model to control.
Figure 4.1. 63 % in one time constant (described in words)
The first-order step response y = 1 − e^(−t/τ) with points marked at 63.2% at 1τ, 86.5% at 2τ, 95% at 3τ and 98.2% at 4τ.
Explanation
Built from 5 School lessons. Each part is the lesson's own explanation.
4.1 Systems with memory
Flick a light switch and the room is bright at once. Turn on an oven and you wait ten minutes. What does the oven have that the bulb does not?
Static versus dynamic
A static system's output depends only on the input right now: a resistor's current follows its voltage instantly, a lever's output force follows the push. A dynamic system's output depends on what happened before: a cup of tea's temperature now depends on how hot it was a minute ago. Dynamic systems have memory.
Memory is stored stuff
Physically, memory is something stored that cannot change instantly: kinetic energy in a spinning rotor, heat in an oven's walls, charge on a capacitor, water in a tank. Changing the stored amount takes a finite flow over a finite time, which is why outputs lag inputs.
Describe the rate, not the value
Because the output cannot jump, we describe a dynamic system by how fast it changes: dT/dt = (heater power − losses)/heat capacity. Solve or simulate that rate equation and you get the value at every time. That is the language of this whole term.
Common mix-ups
If the output is slow, the sensor must be slow.
✓ Sensors can lag, but the physical quantity itself also changes gradually when something is being stored. Separate the two before blaming the sensor.Static and dynamic are fixed properties of a device.
✓ They depend on the timescale you care about. A thermometer is dynamic over seconds and static over hours.
Open the Lite lesson: Systems with memory
4.2 Inputs, outputs, states and parameters
A greenhouse model has a heater, a thermometer, a temperature and a wall thickness. Which of those is the model's memory?
Five kinds of quantity
Inputs are what you choose (heater power, motor voltage). Disturbances are inputs you don't choose (wind, a passenger stepping in). States are what the system remembers (temperature, speed). Outputs are what you measure, often a state seen through a sensor. Parameters are fixed numbers in the equations (mass, time constant, gain).
Parameters stay put, states move
In a single run the parameters are constants; the states change from step to step. Changing a parameter means simulating a different system. That is why a fair test changes one parameter at a time across runs.
Block diagrams
Engineers draw a model as boxes joined by arrows. Each arrow is a signal (a quantity that varies in time) and each box transforms signals. Parameters live inside the boxes. A feedback loop is an arrow that carries the output back to the input side.
Common mix-ups
Anything with a number in the model is a parameter.
✓ Numbers that evolve during a run are states; only numbers fixed for the run are parameters.
Open the Lite lesson: Inputs, outputs, states and parameters
4.3 The time constant: 63 % and counting
Why do engineers quote 63 % rather than half when they say how fast something heats up?
Two numbers describe it all
In τ·dy/dt + y = K·u, the static gain K is how much the output changes per unit of input once everything settles. The time constant τ (seconds) is how quickly it gets there. Change K and the curve stretches up; change τ and it stretches sideways; the shape never changes.
Landmarks to sketch with
After 1τ: 63 % of the change. 2τ: 86 %. 3τ: 95 %. 4τ: 98 %. 5τ: 99.3 %. The slope at the start is (y∞ − y₀)/τ: if it kept that rate, it would arrive in exactly one τ. Those numbers let you sketch any first-order response in seconds.
Time constants are physical
τ is a storage size divided by a flow rate. For an RC circuit τ = R·C. For a heated object τ = (thermal mass)/(heat-loss coefficient). Bigger storage or slower leakage means a longer τ. That is why a thick pot takes longer to boil than a thin one.
Derivation: Solving the first-order step response
Model: τ·dy/dt + y = K·u, with a constant input u applied from t = 0 and y(0) = y₀.
At equilibrium dy/dt = 0, so the final value is y∞ = K·u. Define the remaining error e = y − y∞.
Since y∞ is constant, de/dt = dy/dt, and the model becomes τ·de/dt = −e.
Separate variables: de/e = −dt/τ. Integrate: ln|e| = −t/τ + const, so e(t) = e(0)·e^(−t/τ).
Therefore y(t) = y∞ + (y₀ − y∞)·e^(−t/τ). From rest (y₀ = 0): y(t) = K·u·(1 − e^(−t/τ)).
At t = τ the remaining error is e^(−1) ≈ 0.368, so 63.2 % of the change is done. At 4τ only e^(−4) ≈ 1.8 % is left: the usual 2 % settling estimate (exactly 3.91τ).
Common mix-ups
The time constant is the time to reach the final value.
✓ It is the time to cover 63 % of the change. Getting within 2 % takes about four time constants.A bigger gain makes a first-order system respond faster.
✓ On its own, K changes only the size of the response. (Feedback changes the speed, as you'll see in week 16.)
Open the Lite lesson: The time constant: 63 % and counting
4.4 Read the plant from its step response
You're handed a heater you've never seen. One five-minute test is enough to model it. Which test, and what do you read off?
The step test
Hold the system steady, then change the input by a known Δu and log the output until it settles. K = Δy∞/Δu, the change in final output per unit input. τ is the time to cover 63 % of Δy∞. If the response has an initial delay before it starts moving, measure τ from when it starts.
Any point will do, some are better
From one reading y at time t: τ = −t / ln(1 − y/y∞). Readings near the start (small y/y∞) and near the end (y/y∞ close to 1) are sensitive to noise, because a small error in y makes a big change in the logarithm. Points between 30 % and 80 % give the most reliable τ.
Use all the data
Better still, fit the whole curve: plot ln(1 − y/y∞) against t. For a true first-order system it is a straight line with slope −1/τ. If it curves, the plant isn't first-order: a second store, a delay or a nonlinearity is showing.
Common mix-ups
You can stop the step test once the output looks nearly flat.
✓ If you underestimate y∞, every τ estimate is biased. Log for at least four or five time constants.
Open the Lite lesson: Read the plant from its step response
4.5 A greenhouse is a first-order system
Open the greenhouse door on a cold morning and the air cools in minutes. Shut it and the heater takes far longer to win it back. Why the asymmetry?
An energy balance is a first-order model
One energy store (the air and contents), one way in (the heater), one way out (the walls): C·dT/dt = P − G·(T − T_out). Rearranged, it is exactly τ·dy/dt + y = K·u with y = T − T_out, τ = C/G and K = 1/G.
Why cooling can be faster than heating
Opening the door makes G much larger, so τ = C/G becomes much smaller and the air rushes towards T_out. Shut the door and G drops back; now the heater fights the slow τ. The model is the same equation with a different parameter, which is why the asymmetry isn't mysterious.
The model's honest limits
One lumped temperature assumes the air is well mixed. Real greenhouses have warm ceilings and cold floors, soil that stores heat with its own slow τ, and sunshine that varies. A first-order model is a good start for control design; it isn't a full thermal simulation.
Derivation: From an energy balance to τ and K
Energy stored in the air and plants: C·T, with C the heat capacity (J/K). Its rate of change = heat in − heat out.
Heat in: heater power P. Heat out through the walls: G·(T − T_out), with G the loss coefficient (W/K).
So C·dT/dt = P − G·(T − T_out). Divide by G: (C/G)·dT/dt + (T − T_out) = P/G.
Compare with τ·dy/dt + y = K·u, where y = T − T_out and u = P: τ = C/G and K = 1/G.
Better insulation (smaller G) raises both τ and K: slower to respond, but each watt buys more temperature.
Common mix-ups
Better insulation makes a building heat up faster.
✓ It raises the final temperature for the same heater but also raises τ, so the approach is slower.
Open the Lite lesson: A greenhouse is a first-order system
Worked examples
Systems with memory: example 1
Classify: (a) a phone charger's output voltage versus mains input, (b) a water tank's level versus inflow, (c) an LED's brightness versus current.
Solution
(a) Practically static on human timescales (its internal filter settles in milliseconds). (b) Dynamic: the level integrates inflow minus outflow. (c) Static: brightness follows current almost instantly. Note that 'static' always means 'fast compared with what we care about'.
Inputs, outputs, states and parameters: example 1
A model of a phone battery: dQ/dt = −I(t), V = V₀(Q) − I·R. Label Q, I, V, R and V₀.
Solution
Q (stored charge) is the state. I (current drawn) is the input, or a disturbance if the user decides it. V (terminal voltage) is the output. R (internal resistance) is a parameter, and V₀(Q) is a parameterised curve. The battery remembers Q; everything else follows from it.
The time constant: 63 % and counting: example 1
K = 3, step u = 2, τ = 4 s, starting at rest. Find y at t = 4 s and at t = 8 s.
Solution
y∞ = K·u = 6. y(4) = 6(1 − e^(−1)) = 6 × 0.632 = 3.79. y(8) = 6(1 − e^(−2)) = 6 × 0.865 = 5.19.
The time constant: 63 % and counting: example 2
A probe starting at 20 °C is plunged into 80 °C water. τ = 5 s. What does it read after 10 s?
Solution
y₀ = 20, y∞ = 80. y(10) = 80 + (20 − 80)·e^(−2) = 80 − 60 × 0.135 = 71.9 °C.
Read the plant from its step response: example 1
A 10 % step in fan power changes a room's temperature by 1.8 °C once settled; it reached 1.0 °C after 12 minutes. Find K and τ.
Solution
K = 1.8 °C per 10 % = 0.18 °C per %. f = 1.0/1.8 = 0.556, so τ = −12/ln(0.444) = −12/(−0.811) = 14.8 min.
A greenhouse is a first-order system: example 1
A greenhouse settles 8 °C above outside with its heater on, and τ = 15 min. Starting at outside temperature, how far above outside is it after 30 min?
Solution
y(30) = 8(1 − e^(−30/15)) = 8(1 − 0.135) = 6.92 °C above outside.
Interactive figures, in words
Figure 4.2 from The time constant: 63 % and counting
In Explore mode, set K = 2, τ = 1.5 s, u = 1. Check the curve crosses the 63 % line at τ. Then double τ, then double K: describe in one sentence each what changes and what doesn't.
The step responder draws a curve rising from zero towards K times u. A dashed line at 63 % of the final value meets the curve at t = τ, and a second marker at 4τ shows it within 2 % of the final value. Doubling τ stretches the curve horizontally; doubling K stretches it vertically.
Laboratory
These run in a browser on the full site (they need a faster connection). Simulations are simplified educational models.
- Simulation OS: RC charging and discharging (Simulation OS experiment)
Read the time at which the capacitor reaches 63% and compare it with R × C.
Open on the full site - Equation Lab: First-order systems (Equation Lab exploration)
Change τ and the gain separately and describe what each does to the step response.
Open on the full site - BUILD: Smart greenhouse, level 2 (BUILD level)
Estimate the greenhouse's time constant from its warm-up data.
Open on the full site
Practice
Each question links to its Lite lesson, where your answer is checked on our server and a wrong answer gets a hint. Answers are never sent to your device.
- Which of these is best modelled as a dynamic system for a 1-minute experiment?
Answer it in “Systems with memory” - Physically, why can't an oven's temperature jump when you switch it on?
Answer it in “Systems with memory” - A drone hovering in wind: which is a disturbance?
Answer it in “Inputs, outputs, states and parameters” - K = 4, step u = 5 from rest, τ = 3 s. What is y at t = 3 s?
Answer it in “The time constant: 63 % and counting” - A first-order system has time constant τ = 0.75 s. How long after a step does it take to get within band = 5 % of its final value?
Answer it in “The time constant: 63 % and counting” - A step test settles 40 units above where it started. It is 25.3 units above the start at t = 6 s. What is τ, in seconds?
Answer it in “Read the plant from its step response” - Raising a heater's power by 200 W raises its settled temperature by 30 °C. What is the static gain K in °C per watt?
Answer it in “Read the plant from its step response” - A greenhouse has heat capacity C = 900 kJ/K and loss coefficient G = 500 W/K. What is τ, in minutes?
Answer it in “A greenhouse is a first-order system”
Engineering applications
Step tests
Process engineers identify a plant by giving it a small step and logging the response. The final change gives the gain; the time to 63% gives τ. Those two numbers are often enough to tune a first controller.
Thermal mass
A stone building has a long thermal time constant, so it stays cool through a hot afternoon. Designers choose materials partly for that slowness.
Watch (optional)
Streaming video uses a lot of data. Everything you need is in the text.
- “Modeling Physical Systems, An Overview” by Brian Douglas
- “The Step Response | Control Systems in Practice” by MATLAB
- “Capacitor charge time calculation - time constants” by The Engineering Mindset
Summary
- Systems that store energy respond with lag; their output depends on history, not just the present input.
- A first-order system is set by a gain K and a time constant τ: y = K(1 − e^(−t/τ)) for a unit step.
- At t = τ the response is 63.2% complete; it is within 2% after about 4τ.
- Identify a plant from a step test: gain from the final change, τ from the 63% time.
Glossary
- First-order system and time constant
- A first-order system responds to a step by approaching its new value exponentially; its time constant τ is the time to cover 63.2 % of the change. Field Guide
- Exponential growth and decay
- A quantity decays exponentially when its rate of decrease is proportional to how much is left, giving y = y0 × e^(−t/τ). Field Guide
- RC time constant
- When a capacitor charges or discharges through a resistor, the voltage changes exponentially with time constant τ = R × C. Field Guide
- Settling time and rise time
- Settling time is how long a response takes to enter and stay within a band, often 2 %, of its final value. Rise time is how long it takes to go from 10 % to 90 % of the step. Field Guide
Project: Identify a plant
Run a step test on a simulated or real first-order system, such as an RC circuit or a mug of warm water. Estimate its gain and time constant from the data in two ways (the 63% point and a log plot), compare them, and check the fitted model against a second step.
Deliverables
- The step data plotted with the 63% point marked
- Gain and τ from both methods
- A validation against the second step
Write it up on paper or in your own notes. Lite never stores what you write.
References
- Karl Johan Åström and Richard M. Murray (2008). Feedback Systems: An Introduction for Scientists and Engineers. Princeton University Press.
- Katsuhiko Ogata (2010). Modern Control Engineering, 5th edition. Prentice Hall.
- Norman S. Nise (2015). Control Systems Engineering, 7th edition. Wiley.