TExcelTAD
Home › Control Systems & Automation › First-Order Systems: Time Constant and Step Response

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

τdydt+y=Ku⟹G(s)=Kτs+1,pole s=−1τ\tau\frac{dy}{dt} + y = K u \quad \Longrightarrow \quad G(s) = \frac{K}{\tau s + 1}, \qquad \text{pole } s = -\frac{1}{\tau}

For a step of size AA from rest, y(t)=KA(1−e−t/τ)y(t) = KA\left(1 - e^{-t/\tau}\right). Everything else follows:

Quantity Value Why
after 1τ1\tau 63.2 %63.2\,\% of the final value 1−e−11 - e^{-1}
initial slope KA/τKA/\tau: the tangent at t=0t = 0 reaches the final value at t=τt = \tau y˙(0)=KA/τ\dot y(0) = KA/\tau
10–90 % rise time tr=τln⁡9=2.20τt_r = \tau\ln 9 = 2.20\tau
2 % settling time ts=τln⁡50=3.91τt_s = \tau\ln 50 = 3.91\tau (about 4τ4\tau; 5 % takes 3.0τ3.0\tau)
overshoot none, ever a single real pole cannot oscillate
ramp input u=Rtu = Rt after the transient, yy follows KRtKRt but lags by exactly τ\tau in time y=KR(t−τ+τe−t/τ)y = KR(t - \tau + \tau e^{-t/\tau})
−3 dB-3\ \text{dB} bandwidth ωb=1/τ\omega_b = 1/\tau, fb=12πτf_b = \frac{1}{2\pi\tau} ∣G(jω)∣=K/1+(ωτ)2\lvert G(j\omega) \rvert = K/\sqrt{1 + (\omega\tau)^2}

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 tr⋅fb=2.2/(2π)≈0.35t_r \cdot f_b = 2.2/(2\pi) \approx 0.35: a system with a 1 kHz1\ \text{kHz} bandwidth cannot rise faster than about 0.35 ms0.35\ \text{ms}. 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:

T(s)=KpKτs+1+KpK=KpK1+KpKτ1+KpK s+1T(s) = \frac{K_p K}{\tau s + 1 + K_p K} = \frac{\frac{K_p K}{1 + K_p K}}{\frac{\tau}{1 + K_p K}\,s + 1}

Feedback divides the time constant by 1+KpK1 + K_p K and leaves a steady-state error of 11+KpK\frac{1}{1 + K_p K}. The heater loop of the intro went from τ=300 s\tau = 300\ \text{s} to 33.3 s33.3\ \text{s} with KpK=8K_p K = 8. 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 τ=8 s\tau = 8\ \text{s} (gain 1). (a) The process jumps from 6060 to 80 ∘C80\,^\circ\text{C}. (b) The process instead heats steadily at 2 K/min2\ \text{K/min}.

Find: (a) the reading after 8 s8\ \text{s}, 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 1τ1\tau: 60+0.632×20=72.6 ∘C60 + 0.632 \times 20 = 72.6\,^\circ\text{C}. tr=2.20×8=17.6 st_r = 2.20 \times 8 = 17.6\ \text{s}. ts=3.91×8=31.3 st_s = 3.91 \times 8 = 31.3\ \text{s}.
  • (b) The reading lags by τ\tau: an error of 2 K60 s×8 s=0.267 K\frac{2\ \text{K}}{60\ \text{s}} \times 8\ \text{s} = 0.267\ \text{K}, too low the whole time the process heats.
  • (c) fb=12π×8 s=0.0199 Hzf_b = \frac{1}{2\pi \times 8\ \text{s}} = 0.0199\ \text{Hz}: a fluctuation with a period of a minute is already attenuated.

Check:

python · try it yourself
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 (10 V10\ \text{V}, 1 kΩ1\ \text{k}\Omega, 10 μF10\ \mu\text{F}, τ=10 ms\tau = 10\ \text{ms}) is a first-order system with K=1K = 1. Its readouts show vC=6.32 Vv_C = 6.32\ \text{V} (63.2 %63.2\,\%) at t=10.0 mst = 10.0\ \text{ms}, 9.00 V9.00\ \text{V} (90.0 %90.0\,\%) at 23.0 ms23.0\ \text{ms} (τln⁡10\tau\ln 10) and 9.80 V9.80\ \text{V} (98.0 %98.0\,\%) at 39.1 ms39.1\ \text{ms} (3.91τ3.91\tau). Change RR or CC: the curve keeps its shape on the lab's t/τt/\tau axis, only the real-time scale changes, which is exactly what "one parameter describes the response" means.

+-R = 1.00 kOhmswitch closed at t = 0V = 10.0 V, C = 10.0 uFtau = RC = 10.0 mst10.0 mst/tau1.00vC6.32 Vi3.68 mAvR3.68 V0.02.55.07.510.001 tau2 tau3 tau4 tau5 tau6 tautv (V)0 A5.0 mA10 mAi63.2 %5 tau: 99.3 %vC(t), capacitor voltagei(t)

Guided lab: measure a time constant three ways

Hand calculation. A 10 kΩ10\ \text{k}\Omega resistor and a 10 μF10\ \mu\text{F} capacitor have τ=100 ms\tau = 100\ \text{ms}. A 1 Hz1\ \text{Hz}, 0–5 V0\text{–}5\ \text{V} square wave lets it settle each half period (5 time constants). The −3 dB-3\ \text{dB} frequency is 1.59 Hz1.59\ \text{Hz}.

Simulation. Set R=10 kΩR = 10\ \text{k}\Omega and C=10 μFC = 10\ \mu\text{F} in the RC lab (τ=100 ms\tau = 100\ \text{ms}) 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 2.202.20; (3) the −3 dB-3\ \text{dB} frequency of a sine sweep, where the phase is also −45∘-45^\circ. Expect agreement within about 10 %10\,\%, dominated by the capacitor tolerance (electrolytics are often ±20 %\pm 20\,\%) and the generator's 50 Ω50\ \Omega output resistance (negligible against 10 kΩ10\ \text{k}\Omega). Then repeat method (1) on a real sensor: a thermistor moved from room air into a cup of warm (not hot) water, logged at 10 Hz10\ \text{Hz}; expect a few seconds in water, much longer in still air.

Hazards and safe setup. Signal levels only, generator at 5 V5\ \text{V}; observe electrolytic capacitor polarity. Warm water below 50 ∘C50\,^\circ\text{C}, kept away from the electronics.

Pitfalls

  • Quoting "settled after τ\tau": 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 τ\tau 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

  1. A thermocouple has τ=2 s\tau = 2\ \text{s}. How long until it reads within 2 % of a step?
  2. A first-order system has a 10–90 % rise time of 44 ms44\ \text{ms}. What are τ\tau and the bandwidth in hertz?
  3. A plant 520s+1\frac{5}{20 s + 1} under P control with Kp=3K_p = 3: closed-loop time constant and steady-state error?
Answer
  1. 3.91×2=7.8 s3.91 \times 2 = 7.8\ \text{s}.
  2. τ=44/2.20=20 ms\tau = 44/2.20 = 20\ \text{ms}; fb=1/(2π×0.02)=7.96 Hzf_b = 1/(2\pi \times 0.02) = 7.96\ \text{Hz}.
  3. 1+15=161 + 15 = 16: τcl=20/16=1.25 s\tau_\text{cl} = 20/16 = 1.25\ \text{s}, error 1/16=6.25 %1/16 = 6.25\,\%.

Test yourself

After one time constant, a first-order step response has reached

  1. 50 %
  2. 63.2 %
  3. 90 %
  4. 98 %

The 2 % settling time of a first-order system is about

  1. 1τ1\tau
  2. 2.2τ2.2\tau
  3. 3.9τ3.9\tau
  4. 10τ10\tau

A sensor with τ=8 s\tau = 8\ \text{s} follows a temperature ramp of 2 K/min2\ \text{K/min}. Its steady reading error is

  1. 0
  2. 0.267 K0.267\ \text{K}
  3. 2 K2\ \text{K}
  4. 16 K16\ \text{K}

Proportional feedback with loop DC gain KpK=9K_p K = 9 around a first-order plant divides the time constant by

  1. 3
  2. 9
  3. 10
  4. 81