Fundamentals / Mechanical engineering / Control engineering

Frequency response, disturbance rejection and robustness

A loop that tracks slowly changing commands may amplify a disturbance at another frequency. Work from the sinusoidal response to a defensible choice of bandwidth.

From first principles

Read sinusoidal tracking and disturbance rejection from one loop

For a stable linear time-invariant plant driven at angular frequency \(\omega\), time derivatives of \(e^{i\omega t}\) multiply it by \(i\omega\). After transients decay, the ratio of complex output and input amplitudes is therefore the transfer function evaluated at \(s=i\omega\). Its magnitude measures the amplitude ratio; its argument measures phase shift. With an ideal negative-feedback sensor define loop transfer \(L=PC\) for plant \(P\) and controller \(C\).

\[U=C(R-Y),\]
\[Y=PU+D=L(R-Y)+D .\]

Here \(D\) is a disturbance added to the physical output. Rearrangement separates the contributions of the command and disturbance at the same frequency.

\[Y=\frac{L}{1+L}R+\frac{1}{1+L}D,\]
\[T=\frac{L}{1+L},\]
\[S=\frac{1}{1+L}.\]

Adding the two ratios gives \(S+T=1\). Large loop magnitude generally permits tracking and disturbance reduction at low frequency. When the loop phasor approaches \(-1\), the common denominator becomes small; phase information is therefore essential when interpreting a measured gain curve.

Derivation and applications

Infer damping and bandwidth from a resonant frequency sweep

A measured sinusoidal peak need not occur at the undamped natural frequency. Consider a stable second-order plant with positive static gain \(K\), no finite zero and transfer \(G(s)=K\omega_n^2/(s^2+2\zeta\omega_ns+\omega_n^2)\). A slow swept-sine test measures the steady response after transients have decayed. With the frequency ratio \(r=\omega/\omega_n\), the squared magnitude has a denominator that is a quadratic in \(r^2\).

\[\frac{K^2}{|G(i\omega)|^2}=(1-r^2)^2+4\zeta^2r^2=1+(4\zeta^2-2)r^2+r^4 .\]

Find the minimum of the denominator at a positive frequency by differentiating with respect to \(r^2\). A positive root requires \(\zeta<1/\sqrt2\). Substitution at this root gives the peak gain relative to the measured static gain.

\[r_p^2=1-2\zeta^2,\]
\[M_p=\frac{|G(i\omega_p)|}{K}=\frac{1}{2\zeta\sqrt{1-\zeta^2}} .\]

A different frequency occurs where the gain has fallen to \(K/\sqrt2\). Set the squared denominator to two and select the positive root in \(r^2\). This bandwidth is referenced to the DC gain, even when the system has a large resonant peak.

\[r_{\rm bw}^2=1-2\zeta^2+\sqrt{(1-2\zeta^2)^2+1}.\]

The location of the measured peak approaches \(\omega_n\) only for small damping. As damping approaches the threshold from below, the peak moves to zero frequency and becomes difficult to distinguish from the static response.

Worked example

Interpret a peak in a stage measurement

A stage has \(\zeta=0.300\) and \(\omega_n=20.0\) rad/s. The predicted peak occurs at \(20\sqrt{0.820}=18.1\) rad/s. Its amplitude is \(1/[0.600\sqrt{0.910}]=1.75\) times the static response. The DC-referenced bandwidth is

\[20\sqrt{0.820+\sqrt{1.6724}}=29.1\,\mathrm{rad/s}.\]

A test recording only the peak frequency would therefore underestimate the bandwidth.

Change the inputs and inspect this calculation below

Second application

Estimate damping without measuring phase

A second stage shows a peak twice its static gain at 12.0 Hz. Solving \(4\zeta^2(1-\zeta^2)=1/4\) on the resonant branch gives \(\zeta^2=(1-\sqrt{3/4})/2\) and \(\zeta=0.259\). Its natural frequency is

\[12.0/\sqrt{1-2\zeta^2}=12.9\,\mathrm{Hz}.\]

The phase should be \(-90^\circ\) there, offering a separate frequency-response check on the no-zero model.

Interactive calculation · Change the inputs of this example

Use the adjustable quantities to test the two worked calculations above. The plot recomputes this derivation’s balance or constitutive relation; its numerical readout reports the quantities needed for the forward calculation and the inverse or design question. Keep the fixed assumptions stated in the readout when comparing with the example values.

Read a complex gain as an experiment

Drive a stable linear plant with a small sinusoid about its operating point. Once the transient dies away, the output is a sinusoid at the same angular frequency. Inserting \(u=Ue^{i\omega t}\) and \(y=Ye^{i\omega t}\) in the differential equation gives

\[Y=P(i\omega)U.\]

The modulus gives the amplitude ratio and the argument gives the time shift as a fraction of a cycle. The units on a Bode plot matter: for a dimensional plant gain its magnitude in decibels presupposes a reference gain. The product around a feedback loop is dimensionless.

For \(P=K/(1+s\tau)\), the modulus falls to \(K/\sqrt{2}\) at \(\omega=1/\tau\), where its phase is \(-45^\circ\). Above this break, doubling frequency roughly halves the output amplitude. Adding a transport delay multiplies the frequency response by \(e^{-i\omega T}\); the magnitude is unchanged while phase falls by \(\omega T\) radians. A magnitude measurement alone cannot detect this mechanism.

Background · How does a timing offset appear in a measured frequency response?

If the output data acquisition channel lags the input clock by a fixed \(\Delta t\), every recorded sinusoid has the correct amplitude but an additional phase lag. Multiplying the physical response by the time-delay factor gives

\[G_{\rm measured}(i\omega)=e^{-i\omega\Delta t}G_{\rm plant}(i\omega),\]
\[\Delta\varphi=-\omega\Delta t.\]

At 20 Hz a 5 ms offset produces a −36° phase error. At 2 Hz it produces only −3.6°. If the magnitude agrees with a plant model but the unwrapped phase discrepancy grows nearly linearly with frequency, repeat the sweep with a common input pulse on both acquisition channels. A real process delay and a clock offset have the same transfer factor but different remedies.

Derive the sensitivity functions

Let \(u=C(r-y-n)\) for command \(r\) and sensor noise \(n\), with disturbance \(d\) added directly to the physical plant output \(y=Pu+d\). Substitution gives

\[S=(1+PC)^{-1},\]
\[T=PC(1+PC)^{-1},\]
\[y=Tr+Sd-Tn .\]

The identity \(S+T=1\) holds for complex numbers at each frequency. A slow output disturbance is strongly rejected when the loop gain is large and far from \(-1\). Sensor noise at the same frequency is then nearly reproduced by the physical output with opposite sign. At high frequencies a deliberately small loop gain protects the output against measurement noise. If the disturbance enters at the actuator instead, its output transfer function is \(PS\). Mark its point of entry before reading any plot.

How much delay can a loop tolerate?

For a unity feedback loop take \(L(s)=4/[s(1+s)]\), with time in seconds. A unity-gain crossover satisfies \(\omega^2(1+\omega^2)=16\). The positive root gives

\[\omega_c=\sqrt{(\sqrt{65}-1)/2}=1.88\,\mathrm{rad/s}.\]

At that frequency the phase is

\[-90^\circ-\tan^{-1}1.88=-152.0^\circ.\]

A further \(28.0^\circ\) of lag would bring the Nyquist curve through \(-1\), where the closed-loop denominator vanishes. For pure delay alone the first corresponding delay is about \(0.489/1.88=0.260\) s. A 0.10 s delay consumes about \(10.8^\circ\) at crossover.

This estimate uses this plant's unique gain crossover and its initially stable closed loop. Multiple crossovers, unstable plant poles and poorly measured resonances require inspection of the entire Nyquist curve. Even before a pole crosses into instability, the distance to \(-1\) controls amplification: \(|S|=1/|1+L|\). For example \(L=-0.9+0.1i\) gives \(|S|=7.07\). A loop with low steady error may therefore magnify a narrow band of disturbance by a factor of seven.

Translate specifications into a measurement

Suppose a speed drive must reject load variations below 0.5 rad/s while its encoder contains noise above 20 rad/s. First locate the disturbance and noise on the block diagram. Specify maximum allowed output amplitude per unit amplitude at each point. Shape the gain, then inspect the two resulting transfer functions across the entire frequency range, including the transition between bands. Raising proportional gain alone shifts the crossover into regions of additional lag. A measured resonance there can set the achievable speed even when the motor model at low frequency is excellent.

Derive the phase contributed by a lead compensator

Suppose a plant has enough low-frequency authority to reject a slowly varying disturbance, but its phase at the desired gain crossover leaves too little damping margin. A real lead compensator \(C(s)=K(1+s/\omega_z)/(1+s/\omega_p)\) with \(0<\omega_z<\omega_p\) contributes phase \(\phi=\arctan(\omega/\omega_z)-\arctan(\omega/\omega_p)\). It also raises gain towards high frequencies. A useful design therefore fixes the desired crossover, calculates the new phase there and then accounts for the gain change rather than assuming crossover stays where it was.

Differentiate phase with respect to \(\ln\omega\). Its stationary point satisfies \((\omega/\omega_z)/[1+(\omega/\omega_z)^2]=(\omega/\omega_p)/[1+(\omega/\omega_p)^2]\), giving \(\omega_m=\sqrt{\omega_z\omega_p}\). Let \(\alpha=\omega_z/\omega_p<1\). At this frequency the magnitude ratio excluding \(K\) is \(1/\sqrt\alpha\) and \(\sin\phi_{\max}=(1-\alpha)/(1+\alpha)\). One can consequently choose a target phase, infer \(\alpha\), centre the lead at crossover and determine \(K\) from \(|CP|=1\).

The increased gain at high frequency can pass measurement noise into the actuator. Check the control-signal sensitivity as well as the output’s disturbance attenuation, particularly when the plant attenuates high frequencies and the sensor has its own noise floor.

Design a compensator from a measured frequency point

Take the normalised positioning plant \(P(s)=1/[s(1+0.2s)]\) and target crossover 5 rad/s. Its magnitude there is \(1/[5\sqrt2]=0.1414\); phase is

\[-90^\circ-\arctan1=-135^\circ.\]

A constant gain chosen for that crossover would leave 45° phase margin. Allow an extra 15° of phase for a target 60° nominal margin before measurement delay. Choosing 15° peak lead gives

\[\alpha=(1-\sin15^\circ)/(1+\sin15^\circ)=0.589.\]

The zero and pole are placed at \(5\sqrt\alpha=3.84\) and \(5/\sqrt\alpha=6.52\) rad/s.

The lead factor’s magnitude at crossover is \(1/\sqrt{0.589}=1.303\), so

\[K=1/[0.1414(1.303)]=5.43.\]

The loop crosses with phase −120°, leaving the intended nominal margin. A previously omitted 20 ms pure delay adds \(-5(0.020)=-0.100\) rad, or −5.73°, at this point without changing magnitude. The resulting margin is approximately 54.3°. The compensator gain tends to \(K/\alpha=9.22\) at high frequency, compared with the proportional-only crossover gain 7.07. A noisy encoder can therefore change the actuator demand when this seemingly modest phase correction is installed. Verify the measured return ratio near crossover and observe the actuator spectrum above it after implementation.

Estimate the timing allowance explicitly by converting the margin reserve back into seconds. If the specification requires at least 45°, a nominal 60° design has 15° available for a pure delay at its unchanged crossover. The maximum delay under this model is \(15\pi/[180(5)]=0.0524\,\mathrm s\), leaving about 32 ms beyond the omitted 20 ms. This is a local phase-margin budget and assumes a single relevant gain crossover and a stable Nyquist configuration. An unmodelled resonance can create another crossover with a smaller margin. The frequency measured by a signal generator may be labelled in hertz; the relevant crossover here is

\[5/(2\pi)=0.796\,\mathrm{Hz}.\]

Mistakenly using five hertz in the delay calculation would consume more than six times the actual phase and lead to an unnecessarily severe timing constraint.

Use a winding count when the uncontrolled plant is unstable

A gain or phase margin read at a single crossover can hide unstable modes if the open loop already has right-half-plane poles. For negative unity feedback the closed-loop characteristic condition is

\[F(s)=1+L(s)=0.\]

Trace the boundary of the right half-plane up the imaginary axis from \(-i\infty\) to \(+i\infty\) and return on a large semicircle to the right. This contour runs clockwise. Assume a strictly proper rational loop with no poles or characteristic roots on the contour, and no hidden unstable pole cancellations.

A factor \(s-z\) with \(z\) inside contributes one clockwise turn of \(F\). An enclosed denominator factor contributes a turn in the opposite direction. If \(Z\) is the number of right-half-plane zeros of \(F\) and \(P\) its number of right-half-plane poles, the net counterclockwise winding of \(F\) about zero is \(P-Z\). Equivalently, count the turns \(N\) of \(L\) about \(-1\) with counterclockwise positive. Then \(Z=P-N\). Closed-loop stability requires \(N=P\) under this stated contour and sign convention.

Consider a linearized temperature imbalance with loop transfer \(L(s)=K/(s-a)\), where \(a=2\,\mathrm{s^{-1}}\) and \(K>0\) has the same unit. The unregulated imbalance grows exponentially. Along \(s=i\omega\), the real and imaginary parts of \(L\) are \(-Ka/(a^2+\omega^2)\) and \(-K\omega/(a^2+\omega^2)\). Completing the square shows a circle centred at \(-K/(2a)\) on the real axis with radius \(K/(2a)\). Increasing frequency traces its upper half first and then the lower half, one counterclockwise turn. At \(K=3\,\mathrm{s^{-1}}\) the circle spans \([-1.5,0]\) and encloses \(-1\). Hence \(P=1\), \(N=1\), \(Z=0\). At \(K=1.5\,\mathrm{s^{-1}}\) the circle spans only \([-0.75,0]\), giving \(Z=1\). The explicit characteristic root \(s=a-K\) confirms both conclusions. At \(K=a\) the locus passes through \(-1\) at zero frequency and the closed loop has a pole at the origin.

Practise on sheet 2 · Explain why a stable three-lag plant can acquire two unstable poles. Further reading · University of Washington · X. Chen, Introduction to Control Theory (ME 545) · Lecture 24, Nyquist Stability: Encirclements and the Nyquist Criterion.

Where does load rejection give way to noise sensitivity?

For unity feedback with loop transfer \(4/[s(1+s)]\), inject the disturbance at the plant output and the noise at the sensor. Plot the magnitudes of the resulting two closed-loop maps. The identity \(S+T=1\) involves phase and does not imply that their magnitudes add to one.

Where does load rejection give way to noise sensitivity?. Horizontal axis: Angular frequency (rad/s). Vertical axis: Magnitude. Data follow the figure.
At low frequency the feedback rejects an output disturbance. Near the lightly damped closed-loop resonance the sensitivity can exceed one. Calling the loop a disturbance rejector at every frequency would miss that amplification.
Read values from the plot
Magnitude at selected values of Angular frequency (rad/s).
Angular frequency (rad/s)Output disturbance |S|Sensor noise |T|
0.030.00750491.0002
0.16870.0430391.0063
0.948680.403361.2338
5.33481.15660.15977
301.00450.0044618

Download all 301 plotted samples (CSV)

Interactive calculation · change the inputs of this example

Increase gain and observe both low-frequency rejection and resonance amplification. The magnitudes do not obey a scalar sum rule.

The curves below are recalculated from this section’s equations in your browser. The fixed reference plot above remains available for comparison.

Study the full derivation

Sensitivity, bandwidth and the integral price of disturbance rejection · System dynamics, feedback and estimation

A regulator attenuates a slowly varying output load yet amplifies another disturbance at a higher frequency. Separate the paths by which reference, measurement noise and physical disturbance reach the recorded variable, then derive an integral identity that explains why a stable loop can redistribute sensitivity across frequency.