First-Order Systems: Time Constant and Step Response
A temperature probe in a protective steel sleeve (a thermowell) is dropped into a hot bath, and the reading creeps up instead of jumping. A motor's speed rises smoothly after a voltage step. A proportional loop around the heater block settles without overshoot. All three are first-order systems, described by one number that every control engineer estimates at a glance: the time constant. This lesson collects what that number predicts for steps, ramps and sine waves, and how to measure it.
The model and its step response
For a step of size from rest, . Everything else follows:
| Quantity | Value | Why |
|---|---|---|
| after | of the final value | |
| initial slope | : the tangent at reaches the final value at | |
| 10–90 % rise time | ||
| 2 % settling time | (about ; 5 % takes ) | |
| overshoot | none, ever | a single real pole cannot oscillate |
| ramp input | after the transient, follows but lags by exactly in time | |
| bandwidth | , |
The circuit versions (RC and RL) were done in Circuit Theory and first-order ODEs; here the same numbers are used to read specifications. Note the product rule : a system with a bandwidth cannot rise faster than about . Oscilloscope makers use the same rule for their front ends.
First-order closed loops
A proportional controller around a first-order plant gives a first-order closed loop:
Feedback divides the time constant by and leaves a steady-state error of . The heater loop of the intro went from to with . Speed is bought with gain, and gain is limited by the actuator, by sensor noise, and by every lag the first-order model leaves out.
Worked example: a sensor in a thermowell
Given: an RTD in a thermowell with (gain 1). (a) The process jumps from to . (b) The process instead heats steadily at .
Find: (a) the reading after , the 10–90 % rise time and the 2 % settling time; (b) the steady error of the reading during the ramp; (c) the sensor's bandwidth.
Solve:
- (a) After : . . .
- (b) The reading lags by : an error of , too low the whole time the process heats.
- (c) : a fluctuation with a period of a minute is already attenuated.
Check:
import numpy as np
import control as ct
tau = 8.0
G = ct.tf([1.0], [tau, 1.0])
t = np.linspace(0, 120, 120001)
y = 60 + 20 * ct.step_response(G, T=t).outputs
info = ct.step_info(G, T=t, SettlingTimeThreshold=0.02, RiseTimeLimits=(0.1, 0.9))
print(f"reading at t = tau: {y[8000]:.2f} C, rise {info['RiseTime']:.2f} s, 2 % settling {info['SettlingTime']:.2f} s")
ramp = 2.0 / 60.0 # K/s, as a deviation from 60 C
u = ramp * t
yr = ct.forced_response(G, t, u).outputs
print(f"ramp at 2 K/min: error after 120 s = {u[-1] - yr[-1]:.3f} K (tau * rate = {tau * ramp:.3f} K)")
resp = ct.frequency_response(G, [1 / tau])
print(f"bandwidth 1/tau = {1 / tau:.3f} rad/s = {1 / (2 * np.pi * tau):.4f} Hz, "
f"|G| there = {resp.magnitude.item():.4f}, phase {np.degrees(resp.phase.item()):.1f} deg")reading at t = tau: 72.64 C, rise 17.58 s, 2 % settling 31.30 s
ramp at 2 K/min: error after 120 s = 0.267 K (tau * rate = 0.267 K)
bandwidth 1/tau = 0.125 rad/s = 0.0199 Hz, |G| there = 0.7071, phase -45.0 deg
In the lab: reading a time constant
The RC lab at its defaults (, , , ) is a first-order system with . Its readouts show () at , () at () and () at (). Change or : the curve keeps its shape on the lab's axis, only the real-time scale changes, which is exactly what "one parameter describes the response" means.
Guided lab: measure a time constant three ways
Hand calculation. A resistor and a capacitor have . A , square wave lets it settle each half period (5 time constants). The frequency is .
Simulation. Set and in the RC lab () and read the times at 63.2 %, 90 % and 98 %.
What you would measure. With a function generator and a scope: (1) the 63.2 % time on the rising edge; (2) the 10–90 % rise time divided by ; (3) the frequency of a sine sweep, where the phase is also . Expect agreement within about , dominated by the capacitor tolerance (electrolytics are often ) and the generator's output resistance (negligible against ). Then repeat method (1) on a real sensor: a thermistor moved from room air into a cup of warm (not hot) water, logged at ; expect a few seconds in water, much longer in still air.
Hazards and safe setup. Signal levels only, generator at ; observe electrolytic capacitor polarity. Warm water below , kept away from the electronics.
Pitfalls
- Quoting "settled after ": after one time constant 37 % of the change is still missing.
- Reading a time constant from a response that has dead time at the start: measure from when the response begins, or fit an FOPDT model (Thermal and Fluid Systems).
- Assuming a first-order sensor is accurate during ramps: it lags by times the rate, a bias, not noise.
- Making a P loop "faster" by raising gain without checking that the plant really is first order: hidden lags turn it into a second-order or worse loop that overshoots.
Practice
- A thermocouple has . How long until it reads within 2 % of a step?
- A first-order system has a 10–90 % rise time of . What are and the bandwidth in hertz?
- A plant under P control with : closed-loop time constant and steady-state error?
Answer
- .
- ; .
- : , error .
Test yourself
After one time constant, a first-order step response has reached
- 50 %
- 63.2 %
- 90 %
- 98 %
The 2 % settling time of a first-order system is about
A sensor with follows a temperature ramp of . Its steady reading error is
- 0
Proportional feedback with loop DC gain around a first-order plant divides the time constant by
- 3
- 9
- 10
- 81