Second-order response: natural frequency and damping ratio
About this lesson
A second-order system answers a step in one of four ways: it swings for ever, rings and settles, rises cleanly, or creeps. Two numbers decide which: the natural frequency ωn and the damping ratio ζ. Push one cart through five dampers, watch its two poles slide round a circle on the s-plane, and read the response straight from where they sit.
One push, many answers
A 1 kg cart is tied to a wall by a spring and a damper. At t = 0 a steady 4 N push starts. The cart will end up at 4/16 = 0.25 m. How it gets there depends on just two numbers.
cart m = 1 kg spring k = 16 N/m damper b = ? N·s/m (we will try five) push F = 4 N from t = 0 final position F / k = 4 / 16 = 0.25 m Besides the final value, a first-order system needs one number, its time constant. A second-order one needs two.
Read the lesson step by step
One push, many answers
A 1 kg cart is tied to a wall by a spring and a damper. At t = 0 a steady 4 N push starts. The cart will end up at 4/16 = 0.25 m. How it gets there depends on just two numbers.
cart m = 1 kg spring k = 16 N/m damper b = ? N·s/m (we will try five) push F = 4 N from t = 0 final position F / k = 4 / 16 = 0.25 m Besides the final value, a first-order system needs one number, its time constant. A second-order one needs two.The standard form
Newton's law gives m·ẍ + b·ẋ + k·x = F. Divide by m and rename the coefficients: ẍ + 2ζωn·ẋ + ωn²·x = ωn²·F/k. Second-order systems are usually written this way, so two numbers, ωn and ζ, describe it.
m·ẍ + b·ẋ + k·x = F (Newton) divide by m: ẍ + (b/m)·ẋ + (k/m)·x = (k/m)·F/k name them: k/m = ωn² b/m = 2ζωn ẍ + 2ζωn·ẋ + ωn²·x = ωn²·(F/k) transfer function (zero initial state): X(s)/(F/k) = ωn² / (s² + 2ζωn·s + ωn²)ωn: how fast it swings
The natural frequency ωn = √(k/m) = √16 = 4 rad/s. Take the damper out (b = 0) and the cart swings between 0 and 0.50 m for ever, once every 2π/4 = 1.57 s. A stiffer spring or a lighter cart swings faster.
import math m, k = 1.0, 16.0 wn = math.sqrt(k / m) # rad/s period = 2 * math.pi / wn # s print(f"{wn:.0f} {period:.2f}") # => 4 1.57ζ: how much it is damped
The damping ratio ζ = b / (2√(km)) = b/8. It compares our damper with the critical one, b = 8 N·s/m, that just stops overshoot. ζ = 0: no damping. Below 1: overshoot. ζ = 1: critical. Above 1: overdamped.
ζ = b / (2·√(k·m)) = b / (2·√16) = b / 8 b (N·s/m) ζ kind 0 0 undamped 1.6 0.2 underdamped 4 0.5 underdamped 8 1 critically damped 10 1.25 overdamped ζ has no units: it is a ratio of two dampers.Two poles hold both numbers
The poles are the roots of s² + 2ζωn·s + ωn². They are complex numbers s = σ + jω, drawn on the s-plane. With no damper they sit on the imaginary axis at ±4j: a swing at 4 rad/s that never dies down.
den = [1, 2·ζ·ωn, ωn²] s = −ζ·ωn ± ωn·√(ζ² − 1) ζ = 0 s = ±4j (no decay) ζ < 1 s = −ζωn ± jωd, ωd = ωn·√(1 − ζ²) |s| = ωn, cos θ = ζ ζ = 1 s = −4, −4 (a double pole) ζ > 1 two real polesUnderdamped: ζ = 0.2
With b = 1.6, ζ = 0.2 and the poles move left to −0.8 ± 3.92j. The cart overshoots to 0.382 m, 52.7 % past 0.25 m, at 0.80 s, then rings at ωd = 3.92 rad/s while the swings shrink.
import math wn, zeta = 4.0, 0.2 wd = wn * math.sqrt(1 - zeta**2) # ringing, rad/s tp = math.pi / wd # peak time, s os = 100 * math.exp(-zeta * math.pi / math.sqrt(1 - zeta**2)) print(f"{wd:.2f} {tp:.2f} {os:.1f}") # => 3.92 0.80 52.7More damping: ζ = 0.5
Raise b to 4, so ζ = 0.5. The poles slide round the circle to −2 ± 3.46j. Overshoot falls to 16.3 % (peak 0.291 m at 0.91 s), and the cart stays within 2 % of 0.25 m after 2.02 s.
ζ = 0.5 ωn = 4 poles −ζωn ± ωn√(1−ζ²) = −2 ± 3.46j peak 0.291 m at 0.91 s (16.3 % over) 2 % band reached for good at 2.02 s compare ζ = 0.2: 52.7 % over, 2 % band only at 4.90 sCritically damped: ζ = 1
At b = 8, ζ = 1: the two poles meet on the real axis at −4. The cart rises with no overshoot and stays within 2 % of 0.25 m after 1.46 s: the fastest response that never overshoots.
ζ = 1 s = −4 (twice) y(t) = 1 − (1 + ωn·t)·e^(−ωn·t) = 1 − (1 + 4t)·e^(−4t) overshoot none 2 % band 1.46 sOverdamped: ζ = 1.25
Push b up to 10 (ζ = 1.25) and the poles split along the real axis to −2 and −8. Still no overshoot, but the slow pole at −2 drags: the 2 % band takes 2.10 s. More damping made it slower, not faster.
ζ = 1.25 s = −ζωn ± ωn√(ζ²−1) = −5 ± 3 = −2 and −8 y(t) = 1 − (4/3)·e^(−2t) + (1/3)·e^(−8t) 2 % band: ζ = 1 1.46 s ζ = 1.25 2.10 s the e^(−2t) term is the slow oneRead the response from the poles
Watch ζ sweep from 0 to 1.25. Up to ζ = 1 the poles stay 4 from the origin. Their real part, −ζωn, sets how fast the swings die. Their imaginary part, ωd, sets how fast they swing. Past ζ = 1 they split.
pole s = σ ± jω σ = −ζωn decay rate: e^(σt) ω = ωn·√(1 − ζ²) ringing frequency ωd |s| = ωn the natural frequency cos θ = ζ θ from the negative real axis Same ωn, different ζ: same circle, different place on it.Check it in Python
A few lines of plain Python step the equation forward 0.1 ms at a time for all five dampers. The peaks match the exact curves. With python-control, tf([16], den) builds the same system and step_info reports its overshoot. The cart replays ζ = 0.5.
from math import sqrt m, k, F = 1.0, 16.0, 4.0 for b in (0.0, 1.6, 4.0, 8.0, 10.0): wn = sqrt(k / m) zeta = b / (2 * sqrt(k * m)) x = v = peak = 0.0 dt = 0.0001 for n in range(50000): # 5 s a = (F - b * v - k * x) / m v += a * dt x += v * dt peak = max(peak, x) print(f"zeta {zeta:.2f} peak {peak:.3f} m") # => zeta 0.00 peak 0.500 m # => zeta 0.20 peak 0.382 m # => zeta 0.50 peak 0.291 m # => zeta 1.00 peak 0.250 m # => zeta 1.25 peak 0.250 m
5 quick questions
Choose one answer per question. You can change your choices before checking them.
01A 4 kg cart sits on a spring with k = 100 N/m. What is its natural frequency ωn?
ωn = √(k/m) = √(100/4) = √25 = 5 rad/s.
02For the lesson's cart (m = 1 kg, k = 16 N/m), which damper gives critical damping?
ζ = b / (2√(km)) = b / (2·√16) = b/8, so ζ = 1 when b = 8 N·s/m.
03A system has poles at −2 ± 3.46j. What kind of step response does it have?
Complex poles with a negative real part mean an underdamped response. Here ωn = √(2² + 3.46²) ≈ 4 and ζ = 2/4 = 0.5: 16.3 % overshoot.
04Raising ζ from 1 to 1.25 for the same ωn moves the poles from a double pole at −4 to −2 and −8. What happens to the step response?
Past ζ = 1 the poles split along the real axis. The one nearer the origin decays slowly and dominates, so an overdamped system is slower than a critically damped one.
05Two underdamped systems have the same ωn but different ζ. On the s-plane, what do their poles have in common?
For ζ < 1 the poles are −ζωn ± jωn√(1 − ζ²), and their distance from the origin is √((ζωn)² + ωn²(1 − ζ²)) = ωn. Changing ζ slides them round that circle.
Glossary
- Second-order system
- A system described by a second-order differential equation, such as a mass on a spring with a damper. It has two poles.
- Natural frequency (ωn)
- How fast the system would swing with no damping, in rad/s. For a mass-spring system ωn = √(k/m). It is the poles' distance from the origin when ζ ≤ 1.
- Damping ratio (ζ)
- How much damping there is, compared with the amount that just stops overshoot. For a mass-spring-damper ζ = b / (2√(km)). It has no units.
- Underdamped
- 0 < ζ < 1. The response overshoots and rings at ωd = ωn√(1 − ζ²) while the swings die away.
- Critically damped
- ζ = 1. A double pole at −ωn. The fastest step response that never overshoots.
- Overdamped
- ζ > 1. Two separate real poles. No overshoot, but slower than critical damping.
- Percent overshoot
- How far the response goes past its final value, as a percentage: 100·e^(−ζπ/√(1−ζ²)) for an underdamped second-order system.
- Pole
- A root of the transfer function's denominator. Its real part sets how fast a term decays; its imaginary part sets how fast it oscillates.
Notes and sources
- The cart, spring and damper are illustrative values (m = 1 kg, k = 16 N/m, F = 4 N, b = 0, 1.6, 4, 8 or 10 N·s/m), chosen so ωn = 4 rad/s exactly. Every curve and number in the figure is the exact solution of the equation of motion for these values.
- The settling times (2.02 s, 1.46 s, 2.10 s) are measured on the exact curves: the last moment the cart is more than 2 % away from 0.25 m. The quick formulas for peak time, overshoot and settling time are the next lesson, "Rise time, peak time, overshoot and settling time".
- The same maths appears in the Circuits lessons "Step response of RLC circuits" and "Characteristic roots and damping", where ζ comes from R, L and C instead of b, m and k. The equation of motion itself is built in "Writing the equation of motion: springs, masses and dampers".
- The Python steps the equation forward 0.1 ms at a time (semi-implicit Euler) and reaches the same peaks as the exact curves to three decimals. python-control (python-control.readthedocs.io) offers tf, step_response and step_info, which use the same 2 % settling band by default.
- N. S. Nise, Control Systems Engineering, 8th ed., Wiley (ch. 4, §4.5–4.6: second-order systems, the general second-order system)
- K. Ogata, Modern Control Engineering, 5th ed., Pearson (ch. 5, §5-3: second-order systems)
- G. F. Franklin, J. D. Powell, A. Emami-Naeini, Feedback Control of Dynamic Systems, 8th ed., Pearson (ch. 3: dynamic response)
- MIT OpenCourseWare 16.06 Principles of Automatic Control (S. Hall), lecture notes 5–6
- MIT OpenCourseWare 6.302 Feedback Systems (Roberge, Dawson, Lundberg)
- python-control documentation: step_info (overshoot, peak time, 2 % settling time)
Quiz Unlocks after the last step.