Skip to content
Tutorials Center
My learning

Topics

Lesson 10 of 37 ยท Time-domain Analysis

Test Signals and First-Order Response

Learn standard test inputs (impulse, step, ramp), derive the first-order step response and its time constant, and estimate T from noisy data with Python.

Time-domain analysis asks a concrete question: what does the output do over time when the input is a known signal? We cannot test every possible input, so engineers use a few standard test signals. If a system handles them well, it usually behaves well in practice. This lesson introduces those signals and then analyses the simplest dynamic system, the first-order lag, in full.

Standard test signals

Signal r(t) for t >= 0 Laplace R(s) What it represents
Impulse delta(t) 1 A sudden kick, a hammer blow
Step 1 1/s A sudden set-point change, a switch flipping
Ramp t 1/s^2 A set point moving at constant speed
Parabola t^2 / 2 1/s^3 A set point with constant acceleration
Sinusoid sin(w t) w/(s^2 + w^2) Vibration, periodic disturbances

The step is the favourite. It is easy to apply in an experiment, it contains both a fast change and a long steady period, and the output reveals speed, overshoot and accuracy in one picture. Ramp and parabola inputs matter for tracking tasks, covered in Steady-State Error.

First-order systems

A first-order system has one pole and the form

Text
G(s) = K / (T s + 1)

K is the DC gain and T is the time constant. For a unit step input, Y(s) = K / (s (T s + 1)). Partial fractions give K/s - K T/(T s + 1) = K/s - K/(s + 1/T), hence

Text
y(t) = K (1 - e^(-t/T))

The response rises exponentially toward K. At fixed multiples of T it reaches fixed fractions of the final value:

t y / K
T 0.632
2T 0.865
3T 0.950
4T 0.982
5T 0.993

From these numbers come the standard specifications for a first-order system:

  • Rise time (10% to 90%): t_r = 2.2 T
  • Settling time (2% band): t_s = 4 T (5% band: 3 T)
  • Overshoot: none, ever. A first-order step response never exceeds its final value.
  • Initial slope: K/T, so the tangent at t = 0 hits the final value at t = T.

First-order step response

Time constant T 63% of the final value at t = T.
Rise time 2.2 T from 10% to 90%.
Settling time About 4 T to within 2%.
No overshoot Monotonic approach.

One number, T, describes the whole response.

1 / 2

Checking the numbers

Python First-order step response versus the formulas

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Ramp and impulse responses

For G(s) = K/(Ts + 1):

  • Impulse response: y(t) = (K/T) e^(-t/T). It starts at K/T and decays.
  • Ramp response: y(t) = K (t - T + T e^(-t/T)). After the transient, the output is a ramp that lags the ideal output K t by the constant K T (a time lag of T).

The impulse response is the derivative of the step response, and the step response is the derivative of the ramp response. Linear time-invariant systems always have this property.

Estimating T from measured data

In practice you often have a measured step response and need K and T. Two simple methods:

  1. 63.2% method: find the time at which the output reaches 63.2% of its final value. That time is T.
  2. Log-slope method: plot ln(1 - y/K) against t. For a first-order system this is a straight line with slope -1/T. A line fit uses all the data, so it is less sensitive to noise.
Python Estimating the time constant from noisy data

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Both estimates land close to the true values, and the fit is usually more consistent. This is the simplest form of system identification, which becomes important when no physics-based model is available.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. A first-order system has G(s) = 4/(2s+1). What is the output 2 seconds after a unit step?

    The time constant is T = 2 s, and at t = T the step response reaches 63.2% of its final value K = 4.
  2. 2. What is the 2% settling time of a first-order system with time constant T?

    e^(-4) is about 0.018, so after 4T the response is within 2% of the final value.
  3. 3. How much overshoot can a first-order system's step response have?

    The response K(1 - e^(-t/T)) increases monotonically to K and never exceeds it.
  4. 4. In the ramp response of K/(Ts+1), how does the output compare with K t in steady state?

    y(t) = K(t - T + T e^(-t/T)) tends to K t - K T, a constant lag of K T.

Summary

  • Standard test signals are the impulse, step, ramp, parabola and sinusoid; the step is the most useful.
  • First-order step response: y = K(1 - e^(-t/T)), with rise time 2.2 T and 2% settling time about 4 T; it never overshoots.
  • The pole at -1/T fixes the speed: further left means faster.
  • Impulse, step and ramp responses are derivatives or integrals of each other.
  • You can estimate K and T from data with the 63.2% rule or a log-slope fit.

Next: Second-Order Response