Electronics · Analog circuits and feedback
Investigate analog feedback and compensation
A loop can be mathematically stable and still ring too much for its task. Compensation changes the loop’s gain and phase together, so its value is judged against a declared response requirement. We will compare two complete models rather than treating one margin number as a universal certificate.
Lesson preparation and course links
Use the analog/op-amp and signal/noise introductions, plus the AC/filter and second-order response investigations. The lesson defines loop sign, crossover, margin and its exact second-order model locally. The cancellation section is optional deeper reasoning. No hardware or program run is required.
Back to the Electronics chapterAfter reading, you can
Read loop crossover and phase margin for a stated negative-feedback model, compare two compensation choices using poles and a reference-step response, and state the limits of a local linear stability claim.
Declare the feedback sign and the operating model
Work with small perturbations about an assumed valid equilibrium. Reference r and output y use the same voltage units; the error is e=r−y, so feedback is negative. A controller C acts on e and a plant P acts on its output. The main comparison has zero initial perturbation and no external disturbance. All blocks are ideal continuous-time, single-input/single-output linear time-invariant models.
The plant is P(s)=1/(1+s/1000). The controller is C(s)=100/(1+s/p1). Here s is the Laplace variable, with units s⁻¹, and the positive parameter p1 is an angular-frequency rate in rad/s. The controller’s actual pole is at s=−p1; the plant pole is at −1000 s⁻¹. Choice A uses p1=100 rad/s, while choice B uses p1=10 rad/s.
Both retain controller DC gain 100, stable open-loop blocks and unity feedback. Moving p1 is a declared transfer-function change, representing stronger dominant-pole compensation in B. It is not a component recipe for an arbitrary amplifier, and a physical compensation edit need not preserve the same DC gain.
For the reference plot, assume a 10.0 mV perturbation remains inside the model’s valid linear range. That amplitude alone cannot establish small-signal validity for an actual device. The supplied curves and values are closed-form calculations; no loop injection, circuit simulation, startup or physical load step was performed.
Read the whole loop at its actual crossover
The declared loop is L(s)=C(s)P(s)=100/[(1+s/p1)(1+s/1000)]. Its positive-frequency magnitude is 100/√{[1+(ω/p1)²][1+(ω/1000)²]} and its phase is −atan(ω/p1)−atan(ω/1000). Here ω=2πf. Phase in degrees requires the usual radian-to-degree conversion after evaluating the arctangents.
For these two models, magnitude decreases strictly from 100 toward 0 as frequency rises, so each has one positive-frequency unity-magnitude crossing, |L(jωc)|=1. That is 0 dB loop magnitude, not the closed-loop output gain. With the stated negative-feedback sign, phase margin at that crossing is 180°+phase(L(jωc)).
Choice A crosses at approximately 3083.382 rad/s, or 490.735 Hz, with loop phase −160.174° and margin 19.826°. Choice B crosses at approximately 786.105 rad/s, or 125.113 Hz, with phase −127.442° and margin 52.558°. Keep angular frequency and cycles per second distinct when reading the table or chart.
A compensation network can add phase and change magnitude at the same time. Its new unity crossing can therefore move. Adding a network’s phase at the old crossing directly to the old margin can give a wrong result. Recompute the complete loop and identify its crossings before assigning a margin.
| Quantity | Choice A | Choice B |
|---|---|---|
| Controller parameter p1 | 100 rad/s | 10 rad/s |
| Unity crossover ωc | ≈3083.382 rad/s | ≈786.105 rad/s |
| Crossover f=ωc/(2π) | ≈490.735 Hz | ≈125.113 Hz |
| Loop phase at crossover | ≈−160.174° | ≈−127.442° |
| Phase margin | ≈19.826° | ≈52.558° |
Check poles and the actual reference response
Solving y=L(r−y) gives H(s)=Y/R=L/(1+L). For this family, H(s)=100p1×1000/[s²+(p1+1000)s+101p1×1000]. Both choices have H(0)=100/101≈0.990099. Their final output for a 10 mV reference perturbation is therefore approximately 9.90099 mV rather than exactly 10 mV.
For A, the closed-loop poles are approximately −550±j3130.096 s⁻¹. For B, they are approximately −505±j868.893 s⁻¹. Both pairs have negative real parts. Together with the stated no-hidden-unstable-mode assumptions, these explicit roots establish stability of the two nominal linear models. A margin below an arbitrary 45° target does not make A mathematically unstable.
Let α=(p1+1000)/2, ωn²=101p1×1000 and ωd=√(ωn²−α²). For the zero-state reference step of amplitude a, y(t)=aH(0){1−e^(−αt)[cos(ωd t)+(α/ωd)sin(ωd t)]}. Both selected cases are underdamped. This complete transfer fixes the reference response; phase margin alone is not being used as a general overshoot formula.
A first peaks at approximately 1.00367 ms and 15.60184 mV; B at approximately 3.61563 ms and 11.49578 mV. Overshoot relative to each final output is approximately 57.58% for A and 16.11% for B. The denominators are the 9.90099 mV final output, not the 10 mV reference.
Choose compensation against a bounded response target
Use an educational target for this exact reference model: overshoot at most 20% of final output, and error no more than 2% of final output for every time from 9 ms onward. A fails the overshoot target despite being stable. B passes the overshoot target.
A sufficient envelope check is |y−y∞|/|y∞|≤e^(−αt)/√(1−ζ²), where ζ=α/ωn. Setting that envelope to 0.02 gives Tenv=ln[1/(0.02√(1−ζ²))]/α. The resulting sufficient times are approximately 7.140413 ms for A and 8.034720 ms for B; rounding upward gives 7.141 ms and 8.035 ms respectively. Both are before 9 ms, so B meets both selected targets.
This envelope is a conservative all-later-times bound for the exact second-order response, not a measured settling time or the earliest possible entry into the band. Checking only one sample at 9 ms would not prove that it stays inside afterward. The formula provides that additional justification here.
The lower controller pole in B reduces crossover and overshoot in this chosen family, while delaying the first peak and slightly increasing the sufficient envelope time. It does not improve every response measure. A different model, disturbance or target could favour a different choice.
Recheck the model when adding delay or another network
As a separate model change, insert a pure 0.500 ms loop delay. Its magnitude is 1 at each frequency, but its phase contribution is −ω×0.000500 radians. The original unity-magnitude crossings stay the same, while phase at those crossings changes.
For B, the added phase lag at its crossing is approximately 22.5203°, reducing the apparent margin from 52.5577° to 30.0375°. The original two-pole closed-loop expression and reference-step curves no longer apply because the delayed loop is a different system. Those old curves cannot certify the delayed response target.
Similarly, the lead factor F(s)=(1+s/200)/(1+s/2000) has both phase and magnitude effects. At the geometric-mean frequency√(200×2000) rad/s, its phase contribution is approximately 54.903° and magnitude contribution is+10 dB. That is not automatically a 54.903° increase in system phase margin, because the modified loop’s unity crossing moves.
These changes call for a complete loop and closed-loop assessment under the new assumptions. A single margin at one crossing is not a universal proof when unstable open-loop modes, multiple crossings, unmodelled delays, interacting loops or nonlinear operation are present.
Separate reference tracking from other operating tests
Even in a valid linear model, a disturbance added at the plant input has transfer P/(1+L), while the reference has L/(1+L). A reference step and a load disturbance therefore need not produce the same response. State the injection location and sign before comparing a curve with a prediction.
For an optional linear-model investigation, retain the complete blocks, reference/state assumptions and exact output, then compare the crossover, poles, final value, peak and selected error bound independently. If a physical loop measurement is later attempted, its documented method must preserve the intended operating point and loading. This lesson supplies no arbitrary board loop-breaking procedure.
Real startup, clipping, slew limiting, current limiting, supply/load changes and mode switching can leave a local linear model. Validating those behaviours requires their own conditions and actual observations. The supplied block models and compensation choices have not qualified any particular amplifier, converter or physical assembly.
Choose B without claiming that A is unstable
Both declared closed loops have poles with negative real parts. Begin by recording that nominal mathematical stability result rather than assigning instability to a low but positive margin. The chosen response targets then add requirements beyond stability.
For the 10 mV reference step, final output is approximately 9.90099 mV. A peak 15.60184 mV gives approximately 57.58% overshoot relative to that final output, exceeding 20%. B peak 11.49578 mV gives approximately 16.11%, meeting the limit.
For B, α=505 s⁻¹ and ζ≈0.502494. Substitution in the envelope formula gives a sufficient 2% time of approximately 8.034720 ms. Using the conservative upward-rounded 8.035 ms still places the all-later-times bound before the 9 ms deadline.
Choose B for this exact reference-model target. Preserve the caveat that delay, load disturbance, operating-point variation and large-signal limits were not part of the comparison. If a compensation edit changes those conditions, repeat the corresponding analysis rather than reusing the old certificate.
Try the reasoning
What feedback sign and loop definition are used here?
Show the answer and reasoning
The error is e=r−y with unity negative feedback, and L=C P. The reference transfer is H=L/(1+L). A different sign or injection/reference convention requires its own loop interpretation.
Why do the positive p1 values not mean unstable controller poles?
Show the answer and reasoning
p1 is a positive rate in the denominator 1+s/p1. The actual controller pole is s=−p1. The two main controllers therefore have stable poles at −100 s⁻¹ and −10 s⁻¹.
State the two phase margins and explain why neither alone is the complete proof used for the main cases.
Show the answer and reasoning
A has approximately 19.826° and B 52.558° at their unique crossings. The main cases also state the loop sign, stable blocks and absent hidden unstable modes, and explicitly calculate closed-loop poles. A single margin is not a universal internal-stability certificate.
Why is the final output the same for A and B, and what is it for a 10 mV reference step?
Show the answer and reasoning
Both have L(0)=100 and unity feedback, so H(0)=100/101. Final output is approximately 9.90099 mV. Equal DC gain is an explicit feature of these model choices, not a guarantee for every physical compensation change.
Which choice meets at most 20% relative overshoot and the declared 2% bound from 9 ms onward?
Show the answer and reasoning
B: its relative overshoot is approximately 16.11% and a conservative sufficient envelope time is 8.035 ms. A is stable but overshoots approximately 57.58%, so it fails the selected overshoot target.
Why is B’s 16.11% overshoot divided by final output rather than directly by the 10 mV input?
Show the answer and reasoning
The defined overshoot is (peak−final)/final. The finite closed-loop DC gain makes final output approximately 9.90099 mV. Using the input would calculate a different percentage and hide the steady tracking error.
What changes when a 0.500 ms delay is added to B, and may the old step plot still certify its response?
Show the answer and reasoning
Loop magnitude and its unity crossing stay the same for an ideal pure delay, but crossing phase loses approximately 22.5203°, leaving apparent margin approximately 30.0375°. The closed-loop transfer changes, so the original two-pole step curve and target proof do not apply.
How can the normalized cancellation example have apparent 120° margin while failing internal stability?
Show the answer and reasoning
The controller zero cancels the plant’s +1 pole in the reduced loop/reference expression. The plant-input disturbance transfer retains that +1 pole, exposing a growing internal mode. One reduced stable reference transfer does not qualify every internal response.
Does the 10 mV calculated reference response establish startup or large load-step recovery for a real device?
Show the answer and reasoning
No. It assumes a valid local linear model, zero initial perturbation and the stated reference injection. Startup, nonlinear limits, actual supply/load conditions and disturbance locations need separate models and observations. No hardware or simulator evidence is supplied here.
What to carry forward
Define the negative-feedback sign, operating model and response target. Read the complete loop at its actual crossings, check the relevant closed-loop modes and compare the intended input response. Margin, tracking, internal stability and large-signal operation are related questions with different evidence.
References
Sources supporting this lesson’s explanations and examples.
- Do-it-yourself: Three Ways to Stabilize Op Amp Capacitive Loads, SSZT999Collin Wells; Texas InstrumentsReference guide
- AN-149: Modeling and Loop Compensation Design of Switching Mode Power SuppliesHenry Zhang; Analog DevicesTechnical report
Massachusetts Institute of Technology2 sources
- 2.154 Lecture 18: Control Systems — LoopshapingMassachusetts Institute of Technology OpenCourseWareCourse notes · PDF
- 6.241J Dynamic Systems and Control: Homework 8 Solutions, Exercises 17.4 and 17.5Massachusetts Institute of Technology, Department of Electrical Engineering and Computer ScienceCourse notes · PDF