Loop shaping manipulates the open-loop frequency response (magnitude and phase) to meet bandwidth, crossover frequency, and stability margin specifications. By adding compensators, the designer reshapes the Bode plot to achieve desired closed-loop bandwidth and transient response.
You know how to read a Bode plot and extract stability margins. Gain margin tells you how much additional gain the loop can tolerate before going unstable; phase margin tells you how far the phase is from −180° at the gain crossover frequency. Loop shaping inverts this skill: instead of reading margins from a given system, you design the open-loop Bode plot to achieve target margins. You control the shape; the closed-loop behavior follows.
Design targets typically specify a crossover frequency ωc (which sets the closed-loop bandwidth and thus the speed of response), a phase margin PM (which governs damping — 45°–60° gives a well-damped step response), and a gain margin GM (which governs robustness to plant variations — 6 dB is a common minimum). You start with the plant's Bode plot, which you cannot change, and add a compensator in series. Compensator magnitude and phase add directly to the plant's on the log-scale Bode plot. Your task is to shape the sum to hit the targets.
Two fundamental compensator types give you the building blocks. A lead compensator (a zero higher in frequency than its pole) contributes positive phase in a frequency band — used to boost phase margin near crossover. It simultaneously increases the magnitude slope, which raises the crossover frequency. A lag compensator (a pole higher than its zero) provides high gain at low frequencies, improving steady-state tracking accuracy, while contributing only a small phase penalty at crossover if placed well below ωc. The design workflow is iterative: identify the crossover frequency you want, check how much phase the uncompensated plant provides there, add lead to close the phase gap, use lag to fix low-frequency gain without disturbing crossover, then verify both margins and bandwidth on the resulting plot.
The systematic procedure is: (1) from transient-response specs, determine required ωc and PM; (2) evaluate the plant at ωc — how much gain adjustment and phase boost are needed? (3) design lead or lag to provide what's missing; (4) verify final margins and bandwidth. Loop shaping works with asymptotic approximations because the goal is a feasible design with adequate margins, not an exact solution. The compensator you design here will be physically realized as op-amp circuits, passive RC networks, or digital filters — the topic your next unit addresses.
No topics depend on this one yet.