← Index PL

Step 5: frequency response, the Bode plot and stability margins, from an animation of a hand shaking a weight to the margins of the loop function.

CDSSC · Step 5 · last review step before the Fundamentos de Realimentación block
Frequency response and Bode plots (respuesta en frecuencia, diagrama de Bode)

So far we asked: what does a system do when a step suddenly appears at its input? Here we ask something else: what does it do when we shake it rhythmically, sometimes slowly, sometimes fast? We go slowly, one step at a time:

1 Shaking a weight · 2 From measurements to a plot · 3 Why s = jω · 4 Decibels · 5 Blocks · 6 Bode step by step · 7 Bandwidth and hump · 8 Playground · 9 Margins · 10 Five applications · 11 Traps · 12 MATLAB · 13 Check yourself · 14 Summary

1 · Shaking a weight on a rubber band

You hold a rubber band with a weight hanging from it. You move your hand up and down at a steady rhythm. The input is the hand's motion u(t), the output is the weight's motion y(t). Change the rhythm with the slider (or click an orange marker under it) and watch the weight. After each change wait a few seconds: the weight needs a moment to “tune in”.

hand rhythm
hand (input u)weight (output y)right part: last 8 seconds, newest on the right

What you see at three rhythms:

“Its own rhythm”? The weight doesn't bounce by itself. True, something has to start the motion. There are two different situations: Resonance (resonancia) = the forced oscillation hits the tempo of the free oscillation. Then every push goes with the motion, so energy adds up cycle after cycle. Like a bell: strike it once and it rings at its own tone, the tone it “likes”.

The key point: in every case the weight, after a while, oscillates at the same rhythm as the hand. Only two numbers change, and each has its own math symbol:

1. Magnitude (módulo, ganancia)
|G(j\omega)|=\frac{\text{amplitude of }y}{\text{amplitude of }u}
The vertical bars |\ | mean “the size of”. Hand ±1 cm, weight ±3 cm → |G|=3. What G(j\omega) itself is comes in part 3; for now read it as “the system's answer at rhythm ω”.
2. Phase (fase)
\varphi=\angle G(j\omega)=-\frac{\text{delay}}{\text{period}}\cdot 360^\circ
The angle sign \angle (or the letter \varphi, phi) means “the angle of”. A whole period = 360°. Late by a quarter period → \varphi=-90^\circ (minus, because it is a delay).
Why doesn't the rhythm change? Right after a rhythm change the weight does two things at once: it oscillates with its own motion (this dies out, because the band and the air brake it) and it oscillates at the hand's rhythm (this stays, because the hand keeps pushing). After a while only the hand's rhythm is left. On the slides this is SS-07 p.14, bottom row: “entrada sinusoidal” → first “transitorio”, then “régimen permanente”, the steady state. A linear system can only multiply a signal and delay it; it cannot change its rhythm.
Try it yourself. The hand moves ±2 cm, the weight ±6 cm and lags by a quarter period. What are the magnitude and the phase?

2 · From measurements to a Bode plot

Imagine an experiment: set a rhythm, wait until the weight settles, write down |G| and \varphi. Then the next rhythm. If you plot these measurements you get a Bode plot (diagrama de Bode). It always has two floors, one under the other:

The rhythm \omega (omega) is “radians per second”. One full up-and-down motion is 2\pi radians, so \omega=2\pi f, where f is the number of motions per second (Hz).

Measuring bench. Left: the same weight (smaller), with its own rhythm slider. Right: your measurements. Set a rhythm, wait until the weight's swing stops changing, click “save”.

rhythm
animation
magnitude |G|: how many times more the weight moves
magnitude
phase ∠G: the weight's delay in degrees
phase
your measurementsfull curve|G| = 1 (dashed)
Save a few points (slow, resonance, fast), then click “show the full curve”. The curve passes through your measurements: a Bode plot is simply all such measurements at once.

3 · Computing instead of measuring: why s = jω

We don't want to build an experiment every time. We have a model of the system: the transfer function G(s) (función de transferencia), a fraction in s. The question of this part: what do we put in for s to get |G| and \varphi for the rhythm \omega? To answer it we first need to know what s means.

Step A: every signal has its own s

The signals in this course are built from one brick, the exponential e^{st}, where s=\sigma+j\omega is a complex number. Split it into two factors:

e^{st}=e^{(\sigma+j\omega)t}=\underbrace{e^{\sigma t}}_{\text{size: grows or dies}}\cdot\underbrace{e^{j\omega t}}_{\text{rotation: the rhythm}}
signalbuilt fromits sσwhat it does
step 1e^{0t}00constant
e^{-2t}e^{-2t}−2−2dies, no swing
\sin 3t\dfrac{e^{3jt}-e^{-3jt}}{2j}±3j0swings forever, same height
e^{-0.5t}\sin 3te^{(-0.5\pm3j)t}−0.5 ± 3j−0.5swings and dies (a bell after a hit)
e^{0.3t}\sin 3te^{(0.3\pm3j)t}0.3 ± 3j+0.3swings and grows (unstable)

So why does a sine have σ = 0? Because a sine is made only of the spinning part e^{\pm j\omega t}, with no e^{\sigma t} factor in front. Anything with a growing or dying envelope (a struck bell, an unstable oscillation) has \sigma\ne0. These s values are exactly the poles of each signal's Laplace transform: SS-04 p.12, \mathcal{L}\{\sin\omega t\}=\dfrac{\omega}{s^2+\omega^2} has poles at \pm j\omega.

Play with σ for the signal e^{\sigma t}\cos 3t:

σ (grows / dies)
signal e^{σt}·cos(3t) and its envelope
signal
signalenvelope ±e^{σt} (dashed)zero line
Try it yourself. What is the s of the signal e^{-3t}\cos 2t? Give σ and ω (the positive one).
Careful: two different kinds of s. Don't mix them. So “σ = 0” is about the input, not about the system. It does not make the system critically damped (that is ζ = 1, a property of the system). Shake a lightly damped weight and a well damped one with the same pure sine: the input is the same, the Bode plots differ. Picture a car on a shaker table: the table moves in pure sines; the car's own shock absorbers decide how much the body bounces at each rhythm.
The key move of this step
In frequency response the input is a pure sine, and a pure sine has \sigma=0. That is why we always substitute:
s=j\omega\qquad\Longrightarrow\qquad G(j\omega)
G(j\omega) is one complex number for each rhythm \omega. Its length is the magnitude |G(j\omega)|, and its angle is the phase \angle G(j\omega). Then the steady-state output is:
u=\sin(\omega t)\ \ \Rightarrow\ \ y=|G(j\omega)|\,\sin\big(\omega t+\angle G(j\omega)\big)
Condition: the system is stable (its own poles have σ < 0, so their part dies out; otherwise there is no steady state).

Step B: a complex number as an arrow

A complex number z=a+jb is a point on a map: a steps to the right along the real axis (Re), b steps up along the imaginary axis (Im). Draw an arrow from zero to that point. Move a and b and watch the length and the angle:

a (Re)
b (Im)
map of a number z (Re to the right, Im up)
map
arrow zangle, measured from the +Re axisa and b (dashed)
\text{length: }|z|=\sqrt{a^2+b^2}\qquad\text{angle: }\angle z=\arctan\frac{b}{a}\ \ (\text{for }a>0)

The length is Pythagoras on the dashed triangle. The angle starts at the positive Re axis: arrow above it → positive angle, below it → negative angle. For a<0 the plain \arctan(b/a) lands in the wrong half; the explorer shows the correct angle (calculators call it atan2).

Try it yourself. z=-1+1j. Length and angle in degrees? (Check with the sliders.)

Why we need a rule for fractions

Almost every G(s) is a fraction, like \dfrac{1}{1+j\omega}. The denominator 1+j\omega is easy to draw as an arrow. So we want to know: if I know the arrow z, what does the arrow 1/z look like? Two facts give the answer:

  1. When you multiply two complex numbers, the lengths multiply and the angles add: |z_1z_2|=|z_1|\,|z_2|, \angle(z_1z_2)=\angle z_1+\angle z_2.
  2. z\cdot\dfrac1z=1, and the number 1 is an arrow of length 1 and angle 0°.

So the lengths of z and 1/z must multiply to 1 and their angles must add to 0:

\left|\frac{1}{z}\right|=\frac{1}{|z|}\qquad \angle\frac{1}{z}=-\angle z

Check with numbers: z=1+j has length 1.414 and angle +45°. Its inverse \dfrac{1}{1+j}=0.5-0.5j has length 0.707 = 1/1.414 and angle −45°. Multiply: (1+j)(0.5-0.5j)=0.5-0.5j+0.5j+0.5=1. ✓

Example: a thermometer (1st-order system, T = 1 s)

A thermometer dipped into a cup reacts with a delay: after a temperature step it reaches 63 % after a time T. Its model and the substitution:

G(s)=\frac{1}{Ts+1}=\frac{1}{s+1}\quad\xrightarrow{\ s=j\omega\ }\quad G(j\omega)=\frac{1}{1+j\omega}
What is this example for? In part 1 you measured the magnitude and the phase (hand, weight, ruler). Here you calculate the same two numbers from the formula, with no experiment.
This map is not the pole map. On the s-plane (pole map) a pole on the right means an unstable system. Here we draw something else: the value of the number G(j\omega) (and of its denominator) for one rhythm ω. Same axes, different meaning: a point on the right here just means “positive real part of this number”. The thermometer is stable (its pole is at −1, on the left of the s-plane).
rhythm ω
Gray arrow: the denominator 1+j\omega (1 right, ω up). Blue arrow: G=1/(1+j\omega), the inverse: shorter and pointing down by the same angle.
map of the numbers 1 + jω and G(jω)
map
denominator 1 + jωG(jω) = 1/(1 + jω)

At \omega=1: the denominator has length \sqrt{1^2+1^2}=1.414 and angle 45°. So |G|=1/1.414=0.707 and \angle G=-45^\circ. In general:

|G(j\omega)|=\frac{1}{\sqrt{1+\omega^2}}\qquad \angle G(j\omega)=-\arctan\omega
ω (rad/s)denominator|G|phasemeaning
0.11 + 0.1j0.995−5.7°slow changes: the thermometer keeps up
11 + 1j0.707−45°corner (frecuencia de corte), ω = 1/T
101 + 10j0.0995−84.3°fast flicker: the thermometer averages it out
Try it yourself. The same thermometer, rhythm \omega=2 rad/s. Compute |G(j2)| and the phase in degrees (calculator in degree mode).

4 · Decibels: a handier scale for the magnitude

The magnitude can range from 0.0001 to 1000. On an ordinary axis the small values merge with zero. That is why engineers write the magnitude in decibels (decibelios):

|G|_{dB}=20\log_{10}|G(j\omega)|
ratio |G|dBmeaning
100+40100 times bigger
10+2010 times
2+62 times
10unchanged
0.707−3“corner”
0.5−6half
0.1−2010 times smaller
0.01−40100 times smaller

Two reasons:

  1. Every “times 10” is simply “+20 dB”. Huge and tiny numbers fit on one axis.
  2. Multiplying becomes adding. Two blocks one after the other multiply, G=G_1G_2. The log of a product is the sum of the logs, and angles add anyway:
|G_1G_2|_{dB}=|G_1|_{dB}+|G_2|_{dB}
\angle G_1G_2=\angle G_1+\angle G_2

So the Bode plot of the whole system = the sum of the curves of simple blocks (parts 5 and 6).

Converter
ratio = dB
dB = ratio

Decade (década) = ω times 10, one “numbered gridline” on the horizontal axis. A slope of “−20 dB/dec” means: when the rhythm grows 10 times, the magnitude shrinks 10 times.

Why 20 and not 10: the decibel for power is 10 log, and power grows with the square of the amplitude, so for amplitude it becomes 20 log. Definition from Franklin, ch. 6 (course bibliography); the FR-02 slides use dB without deriving it.

How to calculate decibels: examples

With a calculator: the log button is \log_{10}. Type the ratio, press log, multiply by 20.

\begin{aligned}|G|=3:&\quad 20\log_{10}3=20\cdot0.477=9.5\text{ dB}\\ |G|=0.707:&\quad 20\log_{10}0.707=20\cdot(-0.151)=-3.0\text{ dB}\end{aligned}

Without a calculator: split the number into a product of numbers from the table. Multiplying ratios = adding dB (that is the whole trick of the logarithm).

\begin{aligned}200=2\cdot100\ &\Rightarrow\ +6+40=46\text{ dB}\\ 0.05=0.5\cdot0.1\ &\Rightarrow\ -6-20=-26\text{ dB}\end{aligned}

Back, from dB to a ratio: split the dB into numbers from the table and multiply their ratios. Or with a calculator: 10 to the power (dB/20).

26\text{ dB}=20+6\ \Rightarrow\ 10\cdot2=20\qquad\text{(calculator: }10^{26/20}=10^{1.3}=19.95\text{)}
Try it yourself (no calculator). How many dB is a ratio of 20? How many dB is 0.02? What ratio is 34 dB?
Try it yourself. How many dB is a magnitude of 0.5? What ratio is +40 dB?

5 · Bode building blocks

Almost every G(s) can be split into a product of five kinds of simple blocks. Each block has an asymptote: an approximation with straight lines that is easy to draw by hand. Pick a block and turn its parameter. Blue line = exact curve, dashed orange = asymptote.

magnitude in dB
magnitude
phase in degrees
phase
exact curveasymptote (dashed)0 dB (dashed)
The asymptote rules and corner errors come from Franklin, ch. 6. There is no separate Bode deck in the slides (the guía docente treats it as a prerequisite).
Try it yourself. Pole \dfrac{1}{0.5s+1}. Where is the corner, and how many dB does the asymptote show at \omega=20 rad/s?

6 · How to draw a Bode plot step by step

A recipe for paper, on the example G(s)=\dfrac{100}{s(s+10)} (a motor: voltage → shaft angle). Click “next”: each step adds one thing to the plot.

magnitude in dB
magnitude
phase in degrees
phase
K = 10integrator 1/spole, corner 10sum of asymptotesexact curve
Try it yourself. G(s)=\dfrac{1000}{(s+1)(s+100)}. Bring it to Bode form and give: the level to the left of the first corner (dB), the first corner, the slope between the corners and the slope after the second corner.

7 · Bandwidth ↔ speed, hump ↔ overshoot

The Bode plot also tells how fast the system answers a step and whether it overshoots. Two definitions:

Bandwidth (ancho de banda, ω_BW)
the fastest rhythm the system can still follow: where the magnitude drops 3 dB below its level for slow rhythms (FR-06 p.10, Franklin figure 6.5). Headphones have a “frequency range” of 20 Hz–20 kHz: a heavy membrane cuts the high notes.
Resonance hump (cresta de resonancia, Mr)
how far the magnitude jumps above its starting level before it falls. This is the weight from part 1 at resonance. It appears when the damping ζ (zeta, “shock-absorber strength”) is small.

Why bandwidth = speed? A sharp step is a mix of all rhythms at once. A system with a narrow bandwidth cuts off the fast components, so the edge of the step gets rounded and the response is slow.

Comparison 1: a slow and a fast thermometer

Two thermometers: a thick one (T = 1 s) and a thin one (T = 0.2 s). Left: Bode, right: the response to a temperature step.

magnitude in dB
magnitude
phase in degrees
phase
step response
step
Bandwidth 5 times wider → response 5 times faster. For a 1st-order system \omega_{BW}=1/T and t_s(5\%)=3T, so t_s=3/\omega_{BW}.

Comparison 2: three shock absorbers

The same spring and mass (\omega_n=5 rad/s, its own rhythm), three shock absorbers: weak ζ = 0.1, medium ζ = 0.4, good ζ = 0.7.

magnitude in dB
magnitude
phase in degrees
phase
step response
step
Weak shock absorber: a high hump on the Bode plot and a lot of wobble after the step (overshoot Mp, sobreoscilación). The same lack of braking seen from two sides, so the hump and Mp grow together.
Table from 2nd-order formulas. The last column is needed in part 9 (the phase margin of the loop that closes into this system, FR-02 p.13). For 2nd order the rise time is t_r\approx1.8/\omega_n (Franklin, ch. 3, outside the slides).
Try it yourself. A 1st-order sensor has a bandwidth of 4 rad/s. What are its T and its settling time t_s (5 %)?

8 · Playground: building a Bode plot from blocks

Now everything at once. Switch blocks on, turn the parameters, compare the exact curve with the asymptotes and watch the step next to it. The buttons at the top load ready-made systems.

K
−20 dB/dec, −90°
pair ζ
magnitude in dB
magnitude
phase in degrees
phase
step response of the same G
step
exactasymptotes (dashed)bandwidth ω_BW0 dB, final value (dashed)
A zero alone without a pole: the Bode plot can be drawn, a step cannot (numerator of higher degree than the denominator, such a system does not exist physically).

9 · Margins: the Bode plot of the loop function L(jω)

The loop in two sentences. In a control loop the signal goes round: controller D → plant G → sensor H → back to the summing junction, which subtracts the measurement from the target. One trip round is the loop function (función de lazo) L=D\,G\,H, and the closed-loop poles lie where 1+L(s)=0.

The stability boundary means poles on the imaginary axis, i.e. exactly s=j\omega. Then 1+L(j\omega)=0, so L(j\omega)=-1. The number −1 as an arrow has length 1 and angle −180°:

L(j\omega)=-1\iff |L(j\omega)|=1\ (0\text{ dB})\ \ \text{and}\ \ \angle L(j\omega)=-180^\circ
Microphone next to a loudspeaker. Sound goes round: microphone → amplifier → speaker → air → microphone. If for some tone the trip flips it by 180° (and the summing junction adds its own minus, together a full 360°, so the tone comes back “in phase”) and does not quiet it (magnitude ≥ 1), the tone gets louder each round: a squeal. The margins say how far you are from the squeal:
Gain margin, MG
(margen de ganancia, FR-02 p.4) Find the rhythm \omega_f where the phase = −180° (frecuencia de cruce de fase). Read the magnitude there. MG = how many dB are missing to 0 dB. “How much more you can turn up the volume knob.”
|L(j\omega_f)|_{dB}+MG=0
Phase margin, MF
(margen de fase, FR-02 p.5) Find the rhythm \omega_g where the magnitude = 0 dB (frecuencia de cruce de ganancia). Read the phase there. MF = how many degrees are missing to −180°. “How much extra delay it tolerates.”
\angle L(j\omega_g)-MF=-180^\circ
Try it yourself. On a loop Bode plot: at \omega_g (magnitude 0 dB) the phase is −140°. At \omega_f (phase −180°) the magnitude is −8 dB. Give MF and MG.

Lab: controller gain and margins

A P controller is block K: it shifts only the magnitude curve up, the phase stays put. Watch ωg run to the right, MF shrink, and the closed-loop poles move to the right. The orange markers under the slider are the gains where the verdict changes (MF = 30°, the stability edge): click one, then nudge the slider around it.

gain
|L(jω)| in dB
L magnitude
∠L(jω) in degrees
L phase
closed-loop step, target r = 1
step
closed-loop poles (s-plane: right of the Im axis = unstable)
poles
L(jω)MG (segment at ωf)MF (segment at ωg)0 dB and −180° (dashed)|T(jω)|
Things to check: oven FR-03 p.7: D = 10 gives MG = 0 dB and MF = 0°, poles on the Im axis (the same comes out of 1 + L = 0). Robot arm: Kp = 2.55 → MF ≈ 65°, the rule gives ζ ≈ 0.65, the true ζ = 0.70. The arm without a filter has MG = ∞ (the phase never reaches −180°), so P alone cannot destabilize it. A 0.05 s sensor filter pulls the phase down and turns it into a limit Kp = 15.

Guide: exactly where to look to read PM and GM

The motor from the practical exam (L = K·500/(s(s+500))) and the oven from FR-03 p. 7. Green = phase margin MF (margen de fase), red = gain margin MG (margen de ganancia). Under the Bode plot a small step response shows what the numbers mean in time.

Plant
K

Top: |L| (magnitud). Bottom: ∠L (fase). Thick blue = selected K, thin grey = the other K values (the phase is the same for every K).

Wcp (|L| = 0 dB)
MF = Pm
Wcg (phase = −180°)
MG = Gm
K max

Link: closed-loop step response for this K

Small MF = big overshoot. MG < 0 = the curve leaves the plot. Dashed = final value.

Special cases (click “Show”)

What you seeWhat it means
The magnitude never crosses 0 dBWcp does not exist → MF = ∞
The phase never crosses −180°Wcg does not exist → MG = ∞, stable for every K
At −180° the magnitude is exactly 0 dBMG = 0 dB, MF = 0° → the edge
At −180° the magnitude is ABOVE 0 dBMG < 0 dB → unstable

MATLAB: margin(L) draws the same, with Gm and Pm in the title. [Gm,Pm,Wcg,Wcp] = margin(L) gives the numbers (Gm as a ratio, mag2db(Gm) in dB). Several K at once: bode(50*G,125*G,1000*G).

10 · Five applications side by side

Plants alone (no loop), Bode and step on shared axes. The buttons under the table switch systems on and off. The motor (an integrator) keeps rising forever after a step, so its ramp leaves the step plot at the top instead of squashing the other curves.

magnitude in dB
magnitude
phase in degrees
phase
step response
steps

Quiz on the five applications

11 · Traps

dB vs ratio. −6 dB is “half”, not “minus six times”. MATLAB margin returns Gm as a ratio: MG_{dB}=20\log_{10}G_m.
rad/s vs Hz. \omega=2\pi f. MATLAB's Bode uses rad/s by default. A “1 Hz” suspension is 6.28 rad/s on the plot.
Degrees vs radians. The Bode phase is in degrees, but atan in MATLAB returns radians: use atand or multiply by 180/π.
L vs T. You read margins on the Bode plot of the open loop L. You read bandwidth and the hump on the closed loop T = L/(1+L). They are different curves: |T| ≈ 1 below ωg, |T| ≈ |L| above (FR-02 p.9–16).
The asymptote is not the curve. At a pole's corner the true curve lies 3 dB lower. At ωn of a pair: -20\log_{10}(2\zeta) relative to the asymptote, i.e. +14 dB for ζ = 0.1.
Phase wrapping. −270° and +90° are the same angle. MATLAB sometimes draws a 360° phase jump. When looking for −180°, follow the continuity of the curve or set PhaseWrapping to 'off'.
Margins on L = D·G·H, not on G. The controller and the sensor belong to the loop. A good MF of G alone says nothing if D = 50.
Only for minimum-phase L (FR-02 p.6). A pole or zero on the right (e.g. FR-03 p.8, 1/(s-1)): MG/MF give nonsense, check 1+L=0.
MATLAB names are the other way round from the slides. Wcg = where MG is measured (phase −180°, on the slides \omega_f). Wcp = where MF is measured (magnitude 0 dB, on the slides \omega_g). Franklin (FR-06 p.12) writes \omega_c instead of \omega_g.

12 · MATLAB

%% Step 5: Bode and margins
s = tf('s');
G = 1/(s+1);                      % thermometer, T = 1 s
bode(G), grid on                  % magnitude in dB (top), phase in degrees (bottom), ω in rad/s
[mag,phase,w] = bode(G);          % numbers instead of a picture
magdB = 20*log10(squeeze(mag));   % squeeze: bode returns a 1x1xN array
opts = bodeoptions;
opts.FreqUnits = 'Hz';            % axis in Hz instead of rad/s
opts.PhaseWrapping = 'off';
bode(G, opts), grid on

%% Margins on the loop function L = D*G*H  (FR-03 p.7)
D  = 5;
Gp = 6/((s+1)*(s+2)*(s+3));
L  = D*Gp;
figure, margin(L)                 % Bode + MG, MF and frequencies in the title
[Gm,Pm,Wcg,Wcp] = margin(L)       % Gm is a RATIO; Wcg = ωf, Wcp = ωg
GmdB = 20*log10(Gm)

%% Closed loop: bandwidth and step
T = feedback(L,1);
bandwidth(T)                      % ωab in rad/s (−3 dB below T(0))
figure, bode(L, T), grid on, legend('L','T')
figure, step(T), grid on
linearSystemAnalyzer(L)           % in older versions: ltiview(L)

13 · Check yourself

Z1. Decibels. How many dB is an amplitude ratio of 5? What ratio is −40 dB?
Z2. Magnitude and phase at the corner. G=\dfrac{10}{s+10}. Give |G(j10)| in dB and the phase in degrees.
Z3. Sketch by the rules. G=\dfrac{1000}{s(s+100)}. Give the asymptote value at ω = 1 (dB), the corner frequency and the slope after the corner.
Z4. The hump. 2nd-order pair with \omega_n=5, \zeta=0.1. How high is the hump (dB above 0) and at what ω?
Z5. Oven margins. L=\dfrac{6D}{(s+1)(s+2)(s+3)}, D = 1. Where is the phase −180°, what is MG, and at what D does the loop lose stability?
Z6. MF → ζ → Mp. The loop has MF = 45°. Estimate ζ of the closed loop and its overshoot in %.
Z7. MATLAB. [Gm,Pm,Wcg,Wcp] = margin(L) returns Gm = 3.2. How many dB is that, and by how many times can Kp be raised?
Z8. Kp up. A robot-arm loop, L=K_p\dfrac{20}{s(s+10)}. You raise Kp. What happens on the Bode plot?
Z9. Bode → step. Two systems without a hump: A has a bandwidth of 2 rad/s, B has 20 rad/s. Which step is faster?
Z10. Where to read the margins? The Bode of plant G has MF = 60°. The loop has a controller D = 5 and a sensor H = 1.

14 · Summary on one card

Sine in, sine out (SS-07 p.14, stable system)
\begin{aligned}u&=\sin(\omega t)\\ \Rightarrow\ y_{ss}&=|G(j\omega)|\,\sin\big(\omega t+\angle G(j\omega)\big)\end{aligned}
Decibels
|G|_{dB}=20\log_{10}|G(j\omega)|
Margins on the loop function L (FR-02 p.4–5)
|L(j\omega_f)|_{dB}+MG=0
\angle L(j\omega_g)-MF=-180^\circ
Loop stable when MG > 0 and MF > 0 (FR-02 p.6)
\zeta\approx\frac{MF}{100}\qquad \omega_g\le\omega_{ab}<2\,\omega_g
blockmagnitudephase
Khorizontal line at 20\log K0°
1/s−20 dB/dec, through 0 dB at ω = 1−90° always
1/(Ts+1)flat, from 1/T −20 dB/dec (−3 dB at the corner)0° → −90°, −45° at the corner
Ts+1flat, from 1/T +20 dB/dec0° → +90°
2nd-order pairflat, from \omega_n −40 dB/dec, hump when ζ < 0.70° → −180°, −90° at ωn

15 · Next

That was the last review step. Next comes the Fundamentos de Realimentación block: sensitivity and robust margins (FR-03), steady-state error (FR-04), disturbances (FR-05), specifications (FR-06).

Sources: FR-02 p.2–16 (Bode of L, MG, MF, ζ ≈ MF/100, ωg ≤ ωab < 2ωg, L vs T), FR-06 p.10, 12, 16 (Bode specifications, Franklin figures), FR-03 p.7–10 (oven, unstable plant, distance from −1 = 1/|S|), SS-07 p.14 (sine → steady state), SS-04 p.12 (Laplace transform of a sine), SS-10 (Mp). Outside the slides (Franklin, Feedback Control of Dynamic Systems, ch. 3 and 6, course bibliography): asymptote rules, formulas for Mr, ωr, ω_BW, t_r ≈ 1.8/ωn, the dB definition.