ENع
←Margin to overshoot
Lesson 34 · Frequency response

From phase margin to overshoot

15 min12 steps5 questionsAdvanced
About this lesson

The phase margin you read off an open-loop Bode plot predicts how much the closed loop will overshoot a step. Follow one loop, a gain K and the plant 1/(s(s+2)): read the crossover and the margin, turn the margin into a damping ratio, turn the damping ratio into a percent overshoot, then run the step and watch the prediction come true. Finally, run the chain backwards to choose K for a 10% overshoot.

You'll learn to

Tick what you feel confident about. These self-checks do not affect your lesson score.

Fig 34 · Interactive
01 / 12

Will it overshoot?

A gain K = 4 drives a plant 1/(s(s+2)), and the output is fed back and compared with the input. We will apply a step of 1. How far past 1 will the output swing? We answer from the open-loop Bode plot, before running anything.

open loop    L(s) = K / (s (s + 2)),  K = 4
closed loop  T(s) = L / (1 + L)
input        r = unit step (0 → 1 at t = 0)

question: the peak of y(t), read from
the plot of L(jω) alone
Loading figure…
or ← →
Read the lesson step by step
  1. Will it overshoot?

    A gain K = 4 drives a plant 1/(s(s+2)), and the output is fed back and compared with the input. We will apply a step of 1. How far past 1 will the output swing? We answer from the open-loop Bode plot, before running anything.

    open loop    L(s) = K / (s (s + 2)),  K = 4
    closed loop  T(s) = L / (1 + L)
    input        r = unit step (0 → 1 at t = 0)
    
    question: the peak of y(t), read from
    the plot of L(jω) alone
  2. Find the crossover

    On the magnitude plot, follow |L| down to 0 dB, where the loop gain is exactly 1. That frequency is the gain crossover ωc. For K = 4 it is 1.57 rad/s.

    |L(jω)| = K / (ω · √(ω² + 4))
    
    |L| = 1  (0 dB)  at  ωc = 1.57 rad/s
    
    Below ωc the loop gain is above 1;
    above ωc it is below 1.
  3. Read the phase margin

    Go straight down to the phase plot at ωc. The phase there is −128.2°. The phase margin is how far that sits above −180°: 180 − 128.2 = 51.8°. The lesson on gain margin and phase margin defined it.

    import cmath, math
    K = 4.0
    L = lambda w: K / (1j * w * (1j * w + 2))
    lo, hi = 0.01, 100.0
    for _ in range(100):          # find |L| = 1
        w = math.sqrt(lo * hi)
        if abs(L(w)) > 1: lo = w
        else: hi = w
    pm = 180 + math.degrees(cmath.phase(L(w)))
    print(round(w, 2), round(pm, 1))  # 1.57 51.8
  4. Margin gives damping

    Closing this loop gives K/(s² + 2s + K), a standard second-order system. For it, the phase margin depends on the damping ratio ζ alone. Solving the formula backwards, 51.8° gives ζ = 0.50.

    T(s) = K / (s² + 2s + K) = ωn² / (s² + 2ζωn s + ωn²)
    
    PM = atan( 2ζ / √(√(1 + 4ζ⁴) − 2ζ²) )
    
    PM 51.8°  →  ζ = 0.50
    (check: ωn = √4 = 2, 2ζωn = 2, ζ = 0.5)
  5. Damping gives overshoot

    The damping ratio fixes the overshoot of a second-order step: %OS = 100·e^(−ζπ/√(1−ζ²)). With ζ = 0.50 that is 16.3%. So the prediction: the output peaks at about 1.163.

    %OS = 100 · exp(−ζπ / √(1 − ζ²))
         = 100 · exp(−0.5π / 0.866)
         = 16.3 %
    
    predicted peak  y = 1.163
    chain:  PM 51.8° → ζ 0.50 → 16.3 %
  6. Run the step

    Now apply the step. The output rises, swings past 1 and peaks at 1.163 after 1.81 s, exactly the 16.3% we predicted, then settles at 1. The open-loop plot told us this in advance.

    y(t) = 1 − e^(−ζωn t)(cos ωd t + ζ/√(1−ζ²) sin ωd t)
    ωn = 2 rad/s, ζ = 0.5, ωd = 1.732 rad/s
    
    peak  y = 1.163  at  t = 1.81 s
    predicted from the margin: 1.163
  7. Turn the gain up

    Raise K to 25. The magnitude curve lifts by 16 dB, so it crosses 0 dB later, at 4.80 rad/s. The phase curve does not move, but there it is −157.4°, so the margin falls to 22.6°.

    K 4 → 25   (+15.9 dB, the whole |L| curve lifts)
    
    ωc   1.57 → 4.80 rad/s
    phase at ωc  −128.2° → −157.4°
    PM   51.8° → 22.6°
    
    The phase curve does not depend on K.
  8. Small margin, big swing

    22.6° means ζ = 0.20 and 52.7% overshoot: the output rings up to 1.527. The gain margin is still infinite, because the phase never reaches −180°. Only the phase margin warned us.

    PM 22.6° → ζ 0.20 → 52.7 %
    run:  peak 1.527 at 0.64 s
    
    gain margin: ∞ (phase only tends to −180°
    as ω → ∞), yet the step rings hard.
  9. Turn the gain down

    Lower K to 2. The crossover drops to 0.91 rad/s, where the phase is only −114.5°, so the margin grows to 65.5°. That means ζ = 0.71 and just 4.3% overshoot, but a slower rise.

    K = 2
    ωc 0.91 rad/s   phase −114.5°
    PM 65.5° → ζ 0.71 → 4.3 %
    peak 1.043 at 3.14 s
    
    more margin: calmer but slower
  10. A rule of thumb

    For quick work, engineers use ζ ≈ PM/100. Our three gains: 22.6° gives 0.20 (rule 0.23), 51.8° gives 0.50 (0.52), 65.5° gives 0.71 (0.66). It holds up to about 60° to 70°.

      K      PM      ζ exact   PM/100
      25   22.6°     0.20      0.23
       4   51.8°     0.50      0.52
       2   65.5°     0.71      0.66
    
    ζ ≈ PM / 100  (Franklin, Powell, Emami-Naeini)
  11. Design backwards

    Now run the chain the other way. We want at most 10% overshoot, so ζ ≥ 0.591, so the phase margin must be at least 58.6°. Slide K until the Bode plot shows that margin: K = 2.86. The step peaks at 1.100.

    import math
    os_max = 0.10
    z = -math.log(os_max) / math.sqrt(math.pi**2 + math.log(os_max)**2)
    pm = math.degrees(math.atan(2*z / math.sqrt(math.sqrt(1 + 4*z**4) - 2*z**2)))
    K = (2 / (2*z))**2          # wn = sqrt(K), 2*z*wn = 2
    print(round(z, 3), round(pm, 1), round(K, 2))  # 0.591 58.6 2.86
  12. When the link is exact

    The formula is exact only when the closed loop is a pure two-pole system, as here. For other loops treat it as an estimate: it works when two poles dominate, and extra poles, zeros or time delay shift the real overshoot.

    exact      L = K / (s (s + a))  →  T = 2nd order
    estimate   higher order, two dominant poles
    check      any closed-loop zero, extra pole
               or delay: simulate the step
    
    The margin still ranks designs: less
    margin, more ringing.

Quiz Unlocks after the last step.