GLOBAL KNOWLEDGE ARK

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 chapter

After 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.

01

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.

The declared unity negative-feedback loopThe error r minus y drives controller C and plant P. Output y returns with negative sign. A separate disturbance can be added at the plant input. Main responses have zero disturbance.Main comparison: e = r − y; d = 0reC(s)P(s)yd+−++Unity feedback from yReference: L/(1+L). Plant-input disturbance: P/(1+L).
Reference r enters a summing point with negative unity feedback y, forming e=r−y. The controller C drives the plant P and output is y. A separate additive disturbance d can enter between controller and plant. Main curves use d=0. Reference and disturbance transfers are different.
02

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.

Calculated loop values for the declared negative-feedback models
QuantityChoice AChoice B
Controller parameter p1100 rad/s10 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°
Two calculated loop responses and their phase marginsThe declared loop with controller pole 100 radians per second crosses unity near 3083 radians per second with phase margin 19.83 degrees. Pole 10 crosses near 786 radians per second with margin 52.56 degrees. Each loop has one crossing and the stated negative-feedback sign. These are calculated responses, not measured loop data. image/svg+xml Ark analytical plotting with Matplotlib −60 −40 −20 0 20 40 Loop magnitude (dB) A: p1 = 100 rad/s B: p1 = 10 rad/s 1 0 0 1 0 1 1 0 2 1 0 3 1 0 4 1 0 5 Angular frequency ω (rad/s; logarithmic scale) −180 −135 −90 −45 0 Loop phase (degrees) A: margin ≈ 19.83° B: margin ≈ 52.56° The declared loop has one unity-magnitude crossing L(s) = 100 / [(1 + s/p1)(1 + s/1000)] Calculated loop functions • stated negative-feedback sign • no hardware loop injection
The calculated main loops have one unity crossing each. Choice A crosses near 3083 rad/s with phase near −160.17° and margin 19.83°. B crosses near 786 rad/s with phase near −127.44° and margin 52.56°. Phase-margin segments are referenced to−180°. The curves assume the stated negative-feedback model, not an actual loop measurement.
03

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.

A lower crossover reduces ringing in this declared modelFor the assumed linear models and 10 millivolt reference step, both outputs approach 9.901 millivolts. Choice A first peaks near 15.602 millivolts; choice B near 11.496 millivolts. The shaded band is two percent of the final output and a 9 millisecond target is marked. These are closed-form reference responses, not startup, load-step or hardware measurements. image/svg+xml Ark analytical plotting with Matplotlib 0 2 4 6 8 10 12 Elapsed time (ms) 0 2 4 6 8 10 12 14 16 Output perturbation (mV) 9 ms target Reference-step responses of the declared linear models 10 mV reference perturbation; final output ≈ 9.901 mV ±2% of final output A: p1 = 100 rad/s B: p1 = 10 rad/s Closed-form calculations • zero initial perturbation • not startup or load-step measurements
For the declared 10 mV reference perturbation, both calculated outputs approach 9.90099 mV. A first peaks near 15.60184 mV and B near 11.49578 mV. The shaded band is ±2% of final output; a 9 ms deadline is marked. A rings more in this model, while both nominal closed loops are mathematically stable. These are closed-form reference responses, not startup, load-step or hardware data.
04

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.

05

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.

06

Optional: expose an unstable mode hidden by cancellation

Use a separate normalized example with a time unit of 1 second and frequency unit of 1 s⁻¹; the following s and t are dimensionless normalized variables. Let P(s)=1/(s−1) and C(s)=2(s−1)/(s+1). Algebraic cancellation gives reduced loop L=2/(s+1), whose unity crossing has apparent phase margin 120°.

The reduced reference transfer is Y/R=2/(s+3), with a stable pole. Yet the plant has an unstable mode at +1 that the controller zero has hidden from that reduced reference expression. A stable reference response does not establish internal stability.

Add a disturbance d at the plant input as shown in the block diagram. Its transfer is Y/D=P/(1+L)=(s+1)/[(s−1)(s+3)], which retains the +1 pole. A finite disturbance can excite the growing mode. This algebraic counterexample explains why the main comparison stated its no-hidden-unstable-mode condition.

The general stability test must account for the full realization, unstable open-loop modes and the relevant loop locus, not merely a convenient cancellation or one Bode annotation. The example is an analytical model; no unstable hardware experiment or simulated trace is supplied.

07

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

  1. 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.

  2. 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⁻¹.

  3. 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.

  4. 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.

  5. 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.

  6. 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.

  7. 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.

  8. 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.

  9. 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.

  1. Do-it-yourself: Three Ways to Stabilize Op Amp Capacitive Loads, SSZT999Collin Wells; Texas InstrumentsReference guideti.comRead source
  2. AN-149: Modeling and Loop Compensation Design of Switching Mode Power SuppliesHenry Zhang; Analog DevicesTechnical reportanalog.comRead source
  3. Massachusetts Institute of Technology2 sources
    1. 2.154 Lecture 18: Control Systems — LoopshapingMassachusetts Institute of Technology OpenCourseWareCourse notes · PDFocw.mit.eduRead source
    2. 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 · PDFocw.mit.eduRead source