Reading the open-loop Bode plot: type, gain and crossover
About this lesson
Cut a feedback loop open, shake it with sine waves and plot what comes out: that is the open-loop Bode plot. One motor-and-dish loop is read end by end. The low-frequency slope gives the system type, the height of the low end gives the error constant, and the gain crossover, with the phase there, tells you how fast and how calm the closed loop will be. The ten-times-gain test shows the trade before the loop is ever closed. How to sketch a Bode plot is in the Circuits lesson on transfer functions and Bode plots.
Cut the loop open
A gain K = 2.5 drives a motor that turns a dish. To judge the closed loop, we first open the feedback switch and test the open loop L(s) = K·G(s) alone: shake its input, watch its output.
plant G(s) = 1 / ( s (1 + s/4) (1 + s/40) ) control K = 2.5 open loop L(s) = K G(s) closed loop T(s) = L / (1 + L) Everything about T can be read from L. So we measure L, with the switch open.
Read the lesson step by step
Cut the loop open
A gain K = 2.5 drives a motor that turns a dish. To judge the closed loop, we first open the feedback switch and test the open loop L(s) = K·G(s) alone: shake its input, watch its output.
plant G(s) = 1 / ( s (1 + s/4) (1 + s/40) ) control K = 2.5 open loop L(s) = K G(s) closed loop T(s) = L / (1 + L) Everything about T can be read from L. So we measure L, with the switch open.One sine in, one sine out
Send a sine at ω = 1 rad/s. The output is a sine at the same ω, 2.42 times bigger (+7.7 dB) and 105.5° late. Those two numbers are |L(jω)| and ∠L(jω): one dot on each Bode plot.
import cmath, math K = 2.5 def L(w): s = 1j * w return K / (s * (1 + s / 4) * (1 + s / 40)) g = L(1) db = 20 * math.log10(abs(g)) ph = math.degrees(cmath.phase(g)) print(round(db, 1), round(ph, 1)) # 7.7 -105.5Sweep: the Bode plot
Now sweep ω from 0.1 to 100 rad/s and plot every dot: gain in decibels and phase in degrees, both against log ω. That pair of curves is the open-loop Bode plot. Next, we read it, end by end.
ω (rad/s) |L| (dB) ∠L (°) 0.1 +28.0 −91.6 1 +7.7 −105.5 10 −20.9 −172.2 100 −68.6 −245.9 decibels: 20·log10|L| +20 dB = ×10, 0 dB = ×1, −20 dB = ×0.1Low end slope: the type
At the low end the gain falls 20 dB per decade and the phase sits near −90°. That is the signature of one 1/s, one integrator: a type 1 loop. So a step is followed with zero error at rest.
low-frequency slope loop type step error 0 dB/dec type 0 1/(1+Kp) −20 dB/dec type 1 0 −40 dB/dec type 2 0 here at ω = 0.1: +28.0 dB, ∠L = −91.6° (the 1/s is the motor: angle = speed integrated)Low end height: the gain
Extend the low-frequency line. It is K/ω, so it meets 0 dB at ω = K = 2.5 rad/s. That frequency is the velocity constant Kv = 2.5. A ramp input is followed with a lag of 1/Kv = 0.40 per unit slope.
low end L(jω) ≈ K / (jω) |K/ω| = 1 at ω = K Kv = lim s·L(s) = 2.5 (s → 0) ramp error = 1 / Kv = 0.40 Raise the low end, and Kv and the accuracy rise with it.Corners bend the curves
Each plant pole bends the curves. At 4 rad/s the slope steepens to −40 dB/decade, at 40 to −60. The phase falls past −135° and on towards −270°. How to sketch these lines is in the Circuits lesson on Bode plots.
break slope after phase there — −20 dB/dec −90° (the 1/s) ω = 4 −40 dB/dec −140.7° ω = 40 −60 dB/dec −219.3° every pole: −20 dB/dec more, −90° more (a zero would do the opposite)Crossover: where |L| = 1
The gain crossover ωc is where the curve crosses 0 dB: here 2.19 rad/s. Below ωc the loop gain is big, so the closed loop follows the reference. Above it, it barely follows. So ωc roughly sets the speed.
import cmath, math K = 2.5 L = lambda w: K / (1j*w * (1 + 1j*w/4) * (1 + 1j*w/40)) lo, hi = 0.01, 100.0 # |L| falls as w rises for _ in range(60): mid = math.sqrt(lo * hi) lo, hi = (mid, hi) if abs(L(mid)) > 1 else (lo, mid) wc = math.sqrt(lo * hi) print(round(wc, 2)) # 2.19The phase at crossover
Read the phase at ωc: −121.8°, which is 58.2° short of −180°. At −180° a sine of size 1 comes back inverted and the loop feeds itself. How far we stay from that edge is the phase margin.
at ωc = 2.19 rad/s |L| = 1 (0 dB) ∠L = −121.8° distance to −180° = 58.2° The phase reaches −180° at ω = √(4·40) = 12.65 rad/s, well above ωc here. (Margins have their own lesson.)Close the loop: a step
Close the switch and send a unit step. With crossover at 2.19 rad/s and 58.2° to spare, the dish peaks at 1.26 s, overshoots 10% and settles within 2% by 1.9 s. No error at rest: type 1.
closed loop T(s) = 400 / (s³ + 44s² + 160s + 400) peak 1.10 at 1.26 s overshoot 10 % settles 1.9 s (2 % band) final 1.00 (type 1: no step error)Ten times the gain
Set K = 25. The whole gain curve lifts 20.0 dB, the phase curve does not move. Kv becomes 25, crossover slides right to 9.47 rad/s, and the phase there is −170.4°: only 9.6° from −180°.
K = 2.5 K = 25 Kv 2.5 25 ramp error 0.40 0.04 ωc (rad/s) 2.19 9.47 ∠L at ωc −121.8° −170.4° to −180° 58.2° 9.6° ×10 in gain = +20 dB, same phaseFaster, but shakier
Close the loop again. The higher crossover makes it quicker: peak at 0.35 s, not 1.26 s. But with little phase to spare it overshoots 76% and rings until 4.9 s. The Bode plot showed this trade before we closed the loop.
K = 2.5 K = 25 peak time 1.26 s 0.35 s overshoot 10 % 76 % settles (2%) 1.9 s 4.9 s Routh: stable only for K < 44. High low end = accurate, high ωc = fast, phase near −180° at ωc = shaky.
5 quick questions
Choose one answer per question. You can change your choices before checking them.
01An open-loop Bode plot falls at −40 dB/decade at low frequency and its phase sits near −180° there. What type is the loop?
Each pole at s = 0 adds −20 dB/decade and −90° at the low end. −40 dB/decade with −180° means two integrators: type 2.
02A type 1 loop's low-frequency −20 dB/decade line, extended, meets 0 dB at ω = 8 rad/s. What is the steady-state error for a unit ramp?
For a type 1 loop the low end is Kv/ω, which is 1 (0 dB) at ω = Kv. So Kv = 8 and the ramp error is 1/Kv = 0.125.
03In the figure, K goes from 2.5 to 25. What happens to the open-loop Bode plot?
A positive gain K multiplies |L| (adds 20·log10 K dB) and adds no phase. Ten times the gain is exactly +20 dB, with the same shape.
04Why did the K = 25 loop overshoot 76% while the K = 2.5 loop overshot only 10%?
Raising K moves the crossover right, where the phase is closer to −180°. Little phase to spare at crossover means a lightly damped, ringing closed loop.
05Roughly, what does the gain crossover frequency ωc tell you about the closed loop?
Below ωc the loop gain is large and the output follows the reference; above it, it barely does. So ωc is a good first guess of the closed-loop bandwidth and speed.
Glossary
- Open-loop transfer function L(s)
- Everything around the loop multiplied together, here L = K·G. With unity feedback the closed loop is T = L/(1 + L), so reading L tells you about T.
- Bode plot
- Two plots against frequency on a log axis: the magnitude |L(jω)| in decibels and the phase ∠L(jω) in degrees.
- Decibel (dB)
- 20·log10 of a gain. 0 dB is ×1, +20 dB is ×10, −20 dB is ×0.1.
- System type
- The number of poles of L(s) at s = 0 (pure integrators). On the Bode plot it is the low-frequency slope divided by −20 dB/decade.
- Velocity constant Kv
- Kv = lim s·L(s) as s → 0 for a type 1 loop. A unit ramp leaves an error of 1/Kv. On the Bode plot it is where the low-frequency −20 dB/decade line meets 0 dB.
- Gain crossover ωc
- The frequency where |L(jω)| = 1, that is 0 dB. It sets the rough speed of the closed loop.
- Phase margin
- How far the phase at the gain crossover sits above −180°. Little margin means a ringing, nearly unstable closed loop. It has its own lesson.
Notes and sources
- The plant is an illustrative motor and dish, G(s) = 1/(s(1 + s/4)(1 + s/40)), not a real datasheet. Every curve in the figure is computed from it: the Bode plots from L(jω), the step responses by integrating the closed-loop equation (RK4, 1 ms steps).
- Reading Kv off the plot works for a type 1 loop because its low end is K/ω, which equals 1 at ω = K. A type 0 loop shows its position constant Kp as the flat low-frequency height; a type 2 loop's −40 dB/decade line meets 0 dB at ω = √Ka.
- "ωc sets the speed" is a rule of thumb, not an equation: the closed-loop bandwidth is usually between ωc and about twice ωc. The lesson on bandwidth makes this precise.
- The Python on the steps is plain Python 3 with the cmath and math modules. python-control computes the same numbers with control.bode_plot and control.margin.
- N. S. Nise, Control Systems Engineering, 8th ed., Wiley (ch. 10, frequency response techniques)
- K. Ogata, Modern Control Engineering, 5th ed., Pearson (ch. 7, control systems analysis and design by the frequency-response method)
- G. F. Franklin, J. D. Powell, A. Emami-Naeini, Feedback Control of Dynamic Systems, 8th ed., Pearson (ch. 6, the frequency-response design method)
- MIT OpenCourseWare 16.06 Principles of Automatic Control (S. Hall)
- MIT OpenCourseWare 6.302 Feedback Systems (Roberge, Dawson, Lundberg)
- python-control documentation: control.bode_plot
- python-control documentation: control.margin (gain and phase crossover frequencies)
Quiz Unlocks after the last step.