Lec 17 Frequency Response Design and Loop Shaping for Feedback Control

Loop Shaping Principles in Frequency Response Design

Frequency-domain feedback control design leverages pole and zero placement to directly shape the open-loop transfer function L(s)=C(s)G(s)L(s) = C(s)G(s), thereby dictating closed-loop performance, stability robustness, and disturbance attenuation. Rather than relying solely on trial-and-error root locus adjustments, frequency response design explicitly defines the required loop gain across distinct frequency bands.

The fundamental requirements for the open-loop frequency response L(jω)L(\text{j}\omega) are governed by distinct operational trade-offs:

  • Low-Frequency Range (low ω\text{low } \omega): High loop gain (∣L(jω)∣≫1|L(\text{j}\omega)| \gg 1) is essential to achieve near-zero steady-state tracking error and robust rejection of low-frequency disturbances.

  • High-Frequency Range (high ω\text{high } \omega): Low loop gain (∣L(jω)∣≪1|L(\text{j}\omega)| \ll 1) is mandatory to prevent the transmission and amplification of high-frequency measurement noise and to ensure robustness against unmodelled high-frequency plant dynamics.

  • Intermediate Crossover Range: Adequate stability margins—specifically phase margin (PMPM) and gain margin (GMGM)—must be preserved around the gain crossover region to guarantee closed-loop stability and well-damped transient dynamics.

Open-Loop versus Closed-Loop Dynamics

In standard negative unity-feedback systems, the open-loop transfer function is denoted by L(s)L(s) and the closed-loop complementary sensitivity transfer function by T(s)T(s).

L(s)=C(s)G(s)L(s) = C(s)G(s)

T(s)=L(s)1+L(s)T(s) = \frac{L(s)}{1 + L(s)}

While design calculations, stability margin measurements, and loop compensations are conducted entirely on the open-loop function L(s)L(s), system performance metrics—such as reference tracking, step response speed, and overshoot—are dictated by the closed-loop function T(s)T(s).

An aesthetically satisfactory open-loop Bode magnitude plot does not automatically assure an acceptable closed-loop time or frequency response. Consequently, both loops must be evaluated simultaneously.

Bode magnitude and phase comparison between open-loop L and closed-loop T
Closed-Loop Tracking Fidelity

When ∣L(jω)∣|L(\text{j}\omega)| is exceptionally large at low frequencies, the closed-loop magnitude satisfies:

∣T(jω)∣=∣L(jω)1+L(jω)∣≈1  ⟹  20log⁡10(1)=0 dB|T(\text{j}\omega)| = \left| \frac{L(\text{j}\omega)}{1 + L(\text{j}\omega)} \right| \approx 1 \implies 20\log_{10}(1) = 0\,\text{dB}

A closed-loop magnitude of 0 dB0\,\text{dB} represents a unity gain ratio (∣Y(jω)∣/∣R(jω)∣=1|Y(\text{j}\omega)|/|R(\text{j}\omega)| = 1), meaning the output perfectly tracks the reference command with zero amplitude attenuation. If ∣L(jω)∣|L(\text{j}\omega)| is insufficient (e.g., if open-loop gain is low), the closed-loop magnitude drops significantly below 0 dB0\,\text{dB}, indicating poor tracking.

Phase Characteristics

The closed-loop phase profile stays close to 0∘0^\circ over a broader operational bandwidth than the open-loop phase. In the low-to-mid frequency range where the open-loop phase begins to roll off significantly (e.g., dropping past −50∘-50^\circ), negative feedback maintains the closed-loop phase near 0∘0^\circ, preventing excessive phase lag between command input and system output.

Sensitivity and Complementary Sensitivity Analysis

Two fundamental transfer functions determine feedback system behavior: the sensitivity function S(s)S(s) and the complementary sensitivity function T(s)T(s).

S(s)=11+L(s)S(s) = \frac{1}{1 + L(s)}

T(s)=L(s)1+L(s)T(s) = \frac{L(s)}{1 + L(s)}

These functions satisfy the fundamental algebraic identity across all complex frequencies ss:

S(s)+T(s)=1S(s) + T(s) = 1

Magnitude profiles of sensitivity |S| and complementary sensitivity |T|
Closed-Loop System Mappings

Analyzing a standard feedback architecture with reference command R(s)R(s), error E(s)=R(s)−Y(s)E(s) = R(s) - Y(s), output disturbance D(s)D(s), and sensor noise N(s)N(s) reveals the precise governing roles of S(s)S(s) and T(s)T(s):

  • Tracking Error Response:

E(s)R(s)=S(s)=11+L(s)\frac{E(s)}{R(s)} = S(s) = \frac{1}{1 + L(s)}

  • Output Disturbance Rejection:

Y(s)D(s)=S(s)=11+L(s)\frac{Y(s)}{D(s)} = S(s) = \frac{1}{1 + L(s)}

  • Reference Tracking Transmission:

Y(s)R(s)=T(s)=L(s)1+L(s)\frac{Y(s)}{R(s)} = T(s) = \frac{L(s)}{1 + L(s)}

  • Sensor Noise Transmission:

Y(s)N(s)=−T(s)=−L(s)1+L(s)\frac{Y(s)}{N(s)} = -T(s) = -\frac{L(s)}{1 + L(s)}

Design Implications of the Algebraic Identity

Because S(s)+T(s)=1S(s) + T(s) = 1, it is mathematically impossible to make both ∣S(jω)∣|S(\text{j}\omega)| and ∣T(jω)∣|T(\text{j}\omega)| simultaneously small at the same frequency. Feedback design partitions these requirements by frequency domain:

  1. At Low Frequencies: References and external disturbances reside primarily at low speeds (low ω\text{low } \omega). Making ∣L(jω)∣≫1|L(\text{j}\omega)| \gg 1 drives ∣S(jω)∣≪1|S(\text{j}\omega)| \ll 1 (typically below −12 dB-12\,\text{dB} or lower), forcing tracking errors to near zero and thoroughly attenuating output disturbances.

  2. At High Frequencies: Measurement noise typically concentrates at higher frequencies (high ω\text{high } \omega). Setting ∣L(jω)∣≪1|L(\text{j}\omega)| \ll 1 ensures ∣T(jω)∣≈∣L(jω)∣≪1|T(\text{j}\omega)| \approx |L(\text{j}\omega)| \ll 1, attenuating noise before it corrupts the output actuators and plant states.

Sensitivity function |S| showing disturbance attenuation at low frequencies

System Bandwidth and Performance Trade-Offs

The closed-loop bandwidth ωBW\omega_{\text{BW}} is formally defined as the frequency at which the complementary sensitivity magnitude ∣T(jω)∣|T(\text{j}\omega)| drops −3 dB-3\,\text{dB} below its low-frequency baseline (corresponding to a factor of 1/2≈0.7071/\sqrt{2} \approx 0.707 in linear magnitude).

Closed-loop complementary sensitivity magnitude showing bandwidth threshold at -3 dB

In the illustrated feedback system, the −3 dB-3\,\text{dB} drop occurs at:

ωBW≈4.49 rad/s\omega_{\text{BW}} \approx 4.49\,\text{rad/s}

Bandwidth represents a critical trade-off rather than a metric to maximize without limit:

  • Benefits of Higher Bandwidth: Accelerates closed-loop transient response, reduces rise time, and extends tracking capabilities to faster reference signals.

  • Penalties of Higher Bandwidth: Expands the window of frequencies allowed to pass into the system, directly admitting more sensor noise and exciting unmodelled high-frequency structural dynamics or resonance modes.

Stability Margins on Open-Loop Bode Plots

Stability margins quantify the robustness of a feedback system against instability caused by plant gain drift, parameter uncertainty, or unmodelled time delays. Closed-loop instability occurs when the open-loop transfer function equals the critical point:

L(jω)=−1=1∠−180∘L(\text{j}\omega) = -1 = 1\angle -180^\circ

Stability margins measure how distant L(jω)L(\text{j}\omega) remains from this critical point.

Gain Crossover Frequency and Phase Margin (PMPM)

The gain crossover frequency ωgc\omega_{\text{gc}} is the frequency where the open-loop magnitude equals 11 (0 dB0\,\text{dB}):

∣L(jωgc)∣=1  ⟹  ∣L(jωgc)∣dB=0 dB|L(\text{j}\omega_{\text{gc}})| = 1 \implies |L(\text{j}\omega_{\text{gc}})|_{\text{dB}} = 0\,\text{dB}

The phase margin is the additional negative phase shift required to bring the system to the verge of instability at ωgc\omega_{\text{gc}}:

PM=180∘+∠L(jωgc)PM = 180^\circ + \angle L(\text{j}\omega_{\text{gc}})

Open-loop Bode plot illustrating gain crossover and phase margin determination

For the system defined by L(s)=50(s+1)(s+2)(s+5)L(s) = \frac{50}{(s+1)(s+2)(s+5)}:

  • Gain crossover frequency: ωgc≈2.56 rad/s\omega_{\text{gc}} \approx 2.56\,\text{rad/s}

  • Phase at crossover: ∠L(jωgc)≈−147.6∘\angle L(\text{j}\omega_{\text{gc}}) \approx -147.6^\circ

  • Phase margin calculation:

PM=180∘+(−147.6∘)≈32.4∘PM = 180^\circ + (-147.6^\circ) \approx 32.4^\circ

A positive phase margin indicates that the phase has not yet reached −180∘-180^\circ at the 0 dB0\,\text{dB} crossing, ensuring closed-loop stability for typical minimum-phase systems.

Phase Crossover Frequency and Gain Margin (GMGM)

The phase crossover frequency ωpc\omega_{\text{pc}} is the frequency where the open-loop phase equals −180∘-180^\circ:

∠L(jωpc)=−180∘\angle L(\text{j}\omega_{\text{pc}}) = -180^\circ

The gain margin is the reciprocal of the open-loop magnitude at ωpc\omega_{\text{pc}}, expressed in decibels as the negative of the magnitude:

GMdB=−∣L(jωpc)∣dBGM_{\text{dB}} = -|L(\text{j}\omega_{\text{pc}})|_{\text{dB}}

Open-loop Bode plot illustrating phase crossover and gain margin determination

For the system L(s)=50(s+1)(s+2)(s+5)L(s) = \frac{50}{(s+1)(s+2)(s+5)}:

  • Phase crossover frequency: ωpc≈4.12 rad/s\omega_{\text{pc}} \approx 4.12\,\text{rad/s}

  • Magnitude at crossover: ∣L(jωpc)∣dB≈−8.0 dB|L(\text{j}\omega_{\text{pc}})|_{\text{dB}} \approx -8.0\,\text{dB}

  • Gain margin calculation:

GM=−(−8.0 dB)=+8.0 dBGM = -(-8.0\,\text{dB}) = +8.0\,\text{dB}

A gain margin of +8.0 dB+8.0\,\text{dB} means the loop gain can increase by a factor of 108/20≈2.5110^{8/20} \approx 2.51 before the system becomes unstable.

Crucial Distinctions Regarding Stability

The phase dropping below −180∘-180^\circ at some frequency does not, by itself, imply instability. Instability occurs only if the magnitude is greater than or equal to 0 dB0\,\text{dB} (≥1\ge 1) when the phase crosses −180∘-180^\circ. Gain and phase margins evaluate robustness locally around the crossover frequencies. For non-minimum phase plants, open-loop unstable poles, or systems with multiple crossovers, full Nyquist stability criterion analysis is required.

Proportional Gain Variation and Stability Trade-Offs

Adjusting the proportional gain KK uniformly scales the entire open-loop magnitude curve vertically by 20log⁡10(K) dB20\log_{10}(K)\,\text{dB} across all frequencies without altering the phase curve.

Closed-loop magnitude response |T| for proportional gains K=2, K=12, and K=40

Examining the closed-loop tracking response ∣T(jω)∣|T(\text{j}\omega)| across three gain configurations (K=2K = 2, K=12K = 12, and K=40K = 40) highlights clear performance trade-offs:

  • Baseline Low Gain (K=2K = 2, dashed gray curve): Low-frequency closed-loop magnitude sits at approximately −10 dB-10\,\text{dB}, showing poor reference tracking and sluggish bandwidth.

  • Moderate Gain (K=12K = 12, solid orange curve): Low-frequency magnitude approaches 0 dB0\,\text{dB}, producing accurate steady-state tracking and widening bandwidth to approximately 4.49 rad/s4.49\,\text{rad/s} while maintaining a smooth roll-off without peaking.

  • High Gain (K=40K = 40, dotted black curve): Increases bandwidth further and shifts the gain crossover to the right. However, pushing ωgc\omega_{\text{gc}} toward higher frequencies reduces the phase margin, causing a prominent resonant peak near ω≈7 rad/s\omega \approx 7\,\text{rad/s}. This peak reflects underdamped transient oscillations, excessive overshoot, and increased susceptibility to noise amplification.

Dynamic Compensation: Lead and Lag Controllers

When pure proportional control cannot reconcile steady-state accuracy with transient stability, dynamic compensators alter magnitude and phase curves over targeted frequency bands.

Lead Compensation

A lead compensator introduces a zero at a lower frequency and a pole at a higher frequency:

Clead(s)=s+zs+p,z<pC_{\text{lead}}(s) = \frac{s + z}{s + p}, \quad z < p

In the standard realization Clead(s)=s+2s+20C_{\text{lead}}(s) = \frac{s + 2}{s + 20}, the zero break frequency is at ω=2 rad/s\omega = 2\,\text{rad/s} and the pole break frequency is at ω=20 rad/s\omega = 20\,\text{rad/s}.

Lead compensation Bode plot comparing uncompensated and lead-compensated loops
  • Magnitude Effect: Increases magnitude between break frequencies with a +20 dB/decade+20\,\text{dB/decade} slope before flattening at the pole frequency.

  • Phase Effect: Adds a positive phase lead hump across the intermediate frequency band, reaching peak phase contribution at the geometric mean ωm=z⋅p\omega_m = \sqrt{z \cdot p}.

  • Functional Role: Placed near the crossover frequency ωgc\omega_{\text{gc}}, phase lead counters plant phase lag, improves phase margin, enhances damping, and increases system response speed.

Lag Compensation

A lag compensator introduces a pole at a lower frequency and a zero at a higher frequency:

Clag(s)=s+zs+p,p<zC_{\text{lag}}(s) = \frac{s + z}{s + p}, \quad p < z

In the standard realization Clag(s)=s+2s+0.2C_{\text{lag}}(s) = \frac{s + 2}{s + 0.2}, the pole break frequency is at ω=0.2 rad/s\omega = 0.2\,\text{rad/s} and the zero break frequency is at ω=2 rad/s\omega = 2\,\text{rad/s}.

Lag compensation Bode plot comparing uncompensated and lag-compensated loops
  • Magnitude Effect: Attenuates middle- and high-frequency loop gain, rolling down magnitude by −20 dB/decade-20\,\text{dB/decade} before flattening out past the zero.

  • Phase Effect: Introduces negative phase lag over an intermediate frequency band.

  • Functional Role: A lag compensator does not automatically boost absolute low-frequency gain; it enables substantial low-frequency gain increases during overall loop retuning while pulling the crossover frequency downward into a region where phase margin is naturally higher.

Classic PID Architectures and Frequency Shaping

Applying proportional, integral, and derivative terms to a representative second-order plant:

G(s)=1(s+1)(s+3)G(s) = \frac{1}{(s+1)(s+3)}

illustrates the structural frequency-shaping capabilities of classic PID controllers.

Proportional-Integral (PI) Control

CPI(s)=Kp+Kis=Kps+KisC_{\text{PI}}(s) = K_p + \frac{K_i}{s} = \frac{K_p s + K_i}{s}

Bode plot comparison between P-only and PI control
  • Frequency Response Profile: Introduces a pole at the origin (s=0s = 0) and a finite zero at ω=Ki/Kp\omega = K_i / K_p.

  • Performance Impact: Low-frequency gain rises at −20 dB/decade-20\,\text{dB/decade} toward infinity as ω→0\omega \to 0, driving steady-state error to zero for step references (Type-1 system behavior).

  • Stability Impact: Adds a continuous −90∘-90^\circ phase lag at low frequencies. Unless the zero is placed well below crossover, this phase lag reduces the phase margin and degrades transient damping.

Proportional-Derivative (PD) Control (Filtered)

A pure derivative term (KdsK_d s) is physically unrealizable because its gain grows unbounded as ω→∞\omega \to \infty, excessively amplifying high-frequency sensor noise. Practical PD controllers incorporate a high-frequency filter pole (τ≪1\tau \ll 1):

CPD(s)=Kp+Kdsτs+1C_{\text{PD}}(s) = K_p + \frac{K_d s}{\tau s + 1}

Bode plot comparison between P-only and filtered PD control
  • Frequency Response Profile: Introduces a zero that adds positive phase lead and boosts gain across mid-to-high frequencies, with the filter pole arresting high-frequency gain growth.

  • Performance Impact: Phase lead increases phase margin, improves damping, and dampens transient overshoot without lowering bandwidth.

Proportional-Integral-Derivative (PID) Control (Filtered)

Filtered PID control integrates the low-frequency error-clearing mechanism of the integrator with the transient phase-lead shaping of the filtered derivative:

CPID(s)=Kp+Kis+Kdsτs+1C_{\text{PID}}(s) = K_p + \frac{K_i}{s} + \frac{K_d s}{\tau s + 1}

Bode plot comparison between P-only and filtered PID control
  • Frequency Response Profile: Possesses an integrator pole at the origin, two zeros, and a high-frequency roll-off pole.

  • Performance Impact: Provides near-infinite open-loop gain at low frequencies for zero tracking error, uses phase lead around crossover to preserve stability margins, and limits gain at very high frequencies to attenuate sensor noise.

Comparative Controller Summary

Controller Type

Primary Frequency-Domain Effect

Core Design Trade-off & Functionality

P

Uniformly raises gain across all frequencies without altering phase profile.

May increase bandwidth and improve slow tracking, but reduces phase and gain margins; cannot eliminate steady-state error.

PI

Provides infinite DC gain via an integrator pole at the origin; introduces −90∘-90^\circ phase lag at low frequencies.

Eliminates step steady-state error; degrades phase margin near crossover if the zero is tuned improperly.

PD (filtered)

Injects positive phase lead across mid frequencies; elevates mid-to-high frequency gain up to the filter break frequency.

Improves transient damping and phase margin; derivative filter must be properly tuned to avoid excessive noise transmission.

PID (filtered)

Combines infinite low-frequency gain with phase-lead shaping across the crossover region.

Balances zero steady-state error, fast transient settling, and high-frequency noise attenuation. Requires coordinated multi-parameter tuning.

Core Conceptual Review

Low-Frequency Loop Gain

High loop gain is desirable at low frequencies because tracking error satisfies E(s)=11+L(s)R(s)=S(s)R(s)E(s) = \frac{1}{1 + L(s)} R(s) = S(s) R(s). Operating with ∣L(jω)∣≫1|L(\text{j}\omega)| \gg 1 forces ∣S(jω)∣≪1|S(\text{j}\omega)| \ll 1 and drives closed-loop gain ∣T(jω)∣≈1|T(\text{j}\omega)| \approx 1 (0 dB0\,\text{dB}). This ensures faithful command tracking and strong rejection of low-frequency external load disturbances.

High-Frequency Closed-Loop Gain

Low closed-loop gain is desirable at high frequencies because measurement noise predominantly occupies high frequency bands. Because the transfer function from measurement noise to output is Y(s)/N(s)=−T(s)Y(s)/N(s) = -T(s), driving ∣T(jω)∣≪1|T(\text{j}\omega)| \ll 1 by making ∣L(jω)∣≪1|L(\text{j}\omega)| \ll 1 at high frequencies ensures high-frequency noise is attenuated rather than injected into the plant.

Phase Margin Improvement via Controller Zeros

A controller zero introduces a phase contribution of +arctan⁡(ω/z)+\arctan(\omega/z), providing a positive phase lead that shifts the open-loop phase curve upward. When placed strategically below the gain crossover frequency, this positive phase shift raises the total phase above the −180∘-180^\circ line at crossover, directly expanding the phase margin PM=180∘+∠L(jωgc)PM = 180^\circ + \angle L(\text{j}\omega_{\text{gc}}).

Transition to Modern Control: State-Space Modeling

Frequency response design, transfer functions, and Bode plot loop shaping represent the culmination of Classical Control Theory, which relies primarily on Single-Input Single-Output (SISO) modeling within the Laplace (ss-domain).

Modern Control Theory shifts from input-output transfer functions to internal state-variable formulations in the time domain. Systems are represented using first-order coupled matrix differential equations:

x˙(t)=Ax(t)+Bu(t)\mathbf{\dot{x}}(t) = \mathbf{A}\mathbf{x}(t) + \mathbf{B}\mathbf{u}(t)

y(t)=Cx(t)+Du(t)\mathbf{y}(t) = \mathbf{C}\mathbf{x}(t) + \mathbf{D}\mathbf{u}(t)

where:

  • x(t)\mathbf{x}(t) is the internal state vector,

  • u(t)\mathbf{u}(t) is the control input vector,

  • y(t)\mathbf{y}(t) is the system output vector,

  • A\mathbf{A}, B\mathbf{B}, C\mathbf{C}, and D\mathbf{D} are the system, input, output, and feedthrough matrices, respectively.

State-space representations accommodate Multi-Input Multi-Output (MIMO) systems, time-varying dynamics, non-zero initial conditions, and modern optimal or learning-based state-feedback control frameworks.