Control Analysis and Design through Frequency Domain Methods
Transfer function shaping via feedback control: PID controllers, Bode plot analysis, root locus method, Nyquist stability criterion, system gain and passivity, predictive and feedforward control.
Transfer Function Shaping through Control: Closed-Loop vs. Open-Loop
In the relevant section, we discussed some control theoretic configurations mapping an input to an output and how the map can be shaped by control design. Two common architectures are depicted in Figure 1.2 (as a general output feedback; here the control depends on the output of the system) and in Figure 1.3 (as an error output feedback control system; here the control depends on the error between the external input and the system output). More general configurations are also possible, as discussed in the relevant section. For consistency, we will focus on a particular architecture noting that the analysis to follow can be generalized to any of these models.
Consider the (error) feedback loop given in Figure 8.4. Here denotes the transfer function of the system to be controlled. By writing , it follows that
is the closed-loop transfer function (under negative unity feedback). Compare this with the setup where there is no feedback: in this case, the transfer function would have been . This latter expression is often called the (open) loop-transfer function.
The goal is to shape the closed-loop transfer function via the control characterized with in the frequency domain.
Some motivation via a common class of controllers: PID controllers
By Laplace transforms, we know that differentiation in time domain entails a multiplication with , and integration involves multiplication with . In the context of the setup of Figure 8.4, let . A popular and practical type of control structure involves:
which writes as, in Laplace domain,
Thus, the control uses both the error itself (proportional), its integration, and its derivative; leading to the term PID control.
Bode-Plot Analysis
Bode plots were studied earlier in class. With Bode plots, we observed that we can identify the transfer function of a system, when a system is already stable. However, the Bode plot does not provide insights on how to design a control system or how to adjust a controller so that stability is attained.
The Root Locus Method
The set consists of the poles of the transfer function. If one associates with the controller a gain parameter , the root locus method traces the set of all poles as ranges from to (and often from to as well), so that is traced. Thus, this method provides a design technique in identifying desirable values for the parameter .
The root locus method allows one to identify the poles. As we studied in the relevant section, the pole information clearly identifies BIBO stability properties and all of the poles are to have negative real values for the closed-loop system to be BIBO stable.
Additionally, it lets one select desirable pole values: for example, poles with imaginary components lead to significant transient fluctuations and poles with real parts closer to the origin (on the left half plane) dominate the behaviour involving the response characteristics. A control engineer/designer may have reasons to choose certain poles over others.
For the approach to be applicable, the following key mathematical result is to be noted.
Consider the polynomial where and are polynomials. The roots of this polynomial vary continuously as changes.
Intuition: This theorem guarantees that as you slowly turn a gain knob, the poles of your system move smoothly through the complex plane -- they cannot suddenly jump from one location to another. This is what makes the root locus method work: you can trace continuous curves showing where the poles go as gain increases, and identify the exact gain value where poles cross from the stable left half-plane into the unstable right half-plane.
The above also directly establishes the very useful result that when one is given a matrix, the eigenvalues of the matrix are continuous in (pointwise perturbations of) its entries.
Consider Figure 8.4.
a) [Proportional Control] Let the plant and controller be given with (double integrator dynamics) and (such a controller is known as a proportional controller). Find the root locus as changes from to . Can this system be made stable by such a proportional controller?
b) [PD Control] Consider (double integrator dynamics), and (the term PD-controller means proportional plus derivative control). Let . Find the root locus as changes from to . Conclude, while comparing with part a above, that the addition of the derivative controller has pushed the poles to the left-half plane (thus, leading to stability!)
c) [Reference Tracking] For the system with the controller in part b), let : Let for some . Find . Hint: Apply the Final Value Theorem. We have that and with we have that has all poles on the left-half plane. By the final value theorem, the limit is . Thus, the output asymptotically tracks the input signal.
Some engineering interpretation. can be viewed as a map from acceleration to position: ; part a) in the above suggests that if we only use position error we cannot have a stable tracking system; but if we use position and derivative (that is, velocity) information, then we can make the system stable. Furthermore, if we have a reference tracking problem, the output will indeed track the reference path.
Solution. a) The roots solve and therefore the system is not BIBO stable for any . b) Here, and thus . All reals to the left of , and values on the unit circle centred around form the root loci. Therefore, with , the presence of the derivative controller together with the proportional control pushes the root loci to the left half plane!
We have that . Then, . Note that has all poles on the left-half plane. By the final value theorem, the limit is (you can also directly apply an analysis based on partial fraction expansion which upon some analysis leads to for constants , and note that only the term involving the partial fraction leads to a term which does not decay to zero in view of part b, and thus it suffices to compute ). Thus, the output asymptotically tracks the input signal.
Nyquist Stability Criterion
With the Bode plot, we observed that we can identify the transfer function when a system is already stable. However, the Bode plot does not provide insights on how to adjust the controller so that stability is attained. The Root Locus method allows for parametrically adjusting the instability region. Complementing the Root Locus method, the Nyquist plot provides further insight on controller design and its robustness properties to parameter variations with also the phase of the transfer function appearing in the analysis (unlike the Root Locus method), to be discussed further below.
Recall first that a right-half plane pole of implies instability. In general, it is not difficult to identify the poles of the (open-loop) transfer function . Therefore, in the following we will assume that we know the number of right-half plane poles . Note also that the poles of are the same as the poles of ; thus, we will assume that we know the number of right-half plane poles of .
Constructing the Nyquist contour. For the Nyquist plot, we will construct a clockwise contour starting from to the origin and then to and then along a semi-circle of radius to close the curve. Later on we will take .
We will refer to this contour as a Nyquist contour.
If there is a pole of on the imaginary axis, we should carefully exclude this from our contour: to exclude these, we divert the path along a semi-circle of a very small radius around the pole in a counter clock-wise fashion (which will later be taken to be arbitrarily close to 0). The exclusion of such a pole will not make a difference in the stability analysis: we focus on the zeroes of in the right-half plane (as such a pole cannot make ).
Consider a closed loop system with the loop transfer function . Suppose has poles in the region encircled by the Nyquist contour. Let be the number of clockwise encirclements of by when encircles the Nyquist contour clock-wise (where we note that would be the number of counter-clockwise encirclements). Then, the closed loop has poles in the right-half plane.
Intuition: The Nyquist criterion lets you determine closed-loop stability by looking at the open-loop frequency response -- you trace out the open-loop transfer function as frequency sweeps from 0 to infinity and count how many times the curve encircles the critical point . This is powerful because you can assess stability from experimental frequency response data without knowing the exact system model. If there are no open-loop right-half-plane poles (), then stability requires zero encirclements of .
Note: One can alternatively trace the contours counter-clockwise and then count as the number of counterclockwise encirclements. The result will be the same.
The proof builds on what is known as the principle of variation of the argument theorem, which we state and prove next.
Let be a closed region in the complex plane with its boundary. Let be complex differentiable (and hence analytic) on (and on ) except at a finite number of poles and with a finite number of zeroes, all in the interior of . Then, the change in the argument of (normalized by ) over (known as the winding number ) is given by:
where is the net variation in the angle (or argument) of when traces the contour in the counter-clockwise direction; is the number of zeroes, and is the number of poles (with multiplicities counted).
Intuition: Think of walking along a closed path in the complex plane and watching where points. Each zero of inside the contour acts like a "positive vortex" that winds the output once counterclockwise, while each pole acts like a "negative vortex" that winds it once clockwise. The net winding number (total counterclockwise turns) equals the difference . This is the mathematical engine behind the Nyquist criterion: by counting encirclements, you are really counting the zeros minus poles of in the right half-plane.
Now, to apply this theorem, consider , as noted earlier observe that the poles of are the same as the poles of . We are interested in the zeroes of , and whether they are in the right-half plane. So, all we need to compute is the number of zeroes of through the difference given by the number of encirclements: Note now that the number of encirclements of around 0 is the same as the number of encirclements of around . So, the number of zeroes in the right-half plane of will be plus the winding number. As a final note, in the Nyquist analysis, we construct the contour clockwise and apply the argument principle accordingly (so, the number of encirclements around should be counted clock-wise). So, the number of interest is , as claimed.
Computing the Nyquist plot. To compute the number of clock-wise encirclements, compute starting from and increase to . Observe that , computing for is sufficient to compute the values for . Finally, to compute as , we note that often converges to a constant as , and the essence of the encirclements is given by the changes observed as traces the imaginary axis.
a) Consider , . Is this system stable for a given ? Explain through the Nyquist stability criterion.
b) Consider with the controller in an error feedback form so that the closed loop transfer function is given by . Is this system stable? Explain through the Nyquist stability criterion.
c) Let . Compute the gain stability margin. Draw the phase stability margin on the Nyquist curve.
Consider the inverted pendulum displayed in Figure 8.2, where a torque of is applied to maintain the pendulum around . The dynamics can be derived as
For simplicity, let us assume the coefficients are selected so that the above simplifies to:
Consider the linearization around , (with the approximation ).
Then, it follows that the Plant, modeling the linearized inverted pendulum, would have its transfer function as
Now, suppose we apply the control
with an error feedback control configuration as in Figure 8.4.
Via the Nyquist criterion, find conditions on so that the closed-loop linearized system is BIBO stable.
Hint. Note that has a right-half plane pole, so the Nyquist criterion has to encircle clock-wise.
Robustness via Nyquist plots
Nyquist's criterion suggests a robustness analysis, via gain and phase margins, mainly as a way to measure how far is from in both the magnitude (1) and phase () terms.
Roughly speaking, for systems which hit the real-line only once, in the complex plane the angle between and the location where the Nyquist plot hits the unit circle (i.e., with magnitude equaling 1) is called the phase stability margin.
The ratio between and the point where the Nyquist plot hits the negative -axis is called the gain stability margin.
Root locus method cannot give such a strong characterization for robustness. A useful implication is the small gain theorem presented in the following subsection.
System gain, passivity and the small gain theorem
Consider a linear system with feedback, which we assume to be stable. We generalize the observation above by viewing the input as one in . Consider then the gain of a linear system with:
We know, by Parseval's theorem (Theorem), that
By writing instead of in the following, we have
where is the closed-loop transfer function with . It can then be shown by noting that
the following holds:
In the above, we write , since a maximizing frequency exists, a corresponding input , will not be square integrable. However, this can be approximated arbitrarily well by truncation of the input and the output:
First observe that since is integrable, is continuous in (or is continuous in ). This can be shown by an application of the dominated convergence theorem. Let and . As , the gain of the system will approximate arbitrarily well. This is slightly beyond the scope of our course, but the reasoning is that the Fourier transform of will form an approximate identity sequence , and will also form an approximate identity-like sequence around , since
Thus, the gain, when the input is , is:
Now, by viewing the function
as a probability density function which concentrates around , we have that
converges to as gets larger and larger by the continuity of .
Thus, we can get arbitrarily close to the supremum gain by first approaching the supremum value over all frequencies arbitrarily well, and then by approaching the gain corresponding to such frequencies arbitrarily well with inputs constructed as above. Thus, we define the gain of a linear system as:
Define a system to be -stable if a bounded input, in the -sense, leads to a bounded output in the -sense. BIBO stability of a linear system implies -stability: BIBO stability implies , which implies that is uniformly bounded for so that . Then, observe that the output . Thus, following Theorem, we can extend the domain (input function space) to be the entire space: Now, approximate any with with the sequence , taking the limit of the output sequence of which lets us conclude that the output is also bounded. Thus .
We next state a useful result on the verification of stability.
Consider a feedback control system with closed-loop transfer function , where and are stable. Suppose further that the gains of and are and , respectively. Then, if , the closed-loop system is stable.
Intuition: The small gain theorem says that if a feedback loop has two stable subsystems and the product of their peak gains is less than 1, then the loop cannot amplify signals enough to sustain instability. Think of it like an echo between two walls: if each wall reflects less than the full sound energy, the echo eventually dies out. This is a conservative but robust test -- it ignores phase information and only looks at magnitudes, so it works even when you have uncertainty about the exact system model.
Note that uniformly for and therefore is uniformly bounded from above by 1, since is uniformly bounded away from 0. The proof then follows from Nyquist's criterion: Since are stable, they have no poles in the right half plane. Furthermore, since , (there: ) will be uniformly away from the point , thus a positive gain margin will be maintained and will not be encircled. The closed-loop system is then stable.
The above concept does not involve phase properties, and it may be conservative for certain applications. On phase properties, there is a further commonly used concept of passivity: By Nyquist's criterion, for stable and , if is so that the phase is in for all , then the closed loop system will be stable since will never hit the negative real axis and therefore will not be encircled. Since and are stable, they have no poles in the right half-plane. The closed-loop system is then stable.
Predictive and Feedforward Control
In addition to stability and robustness, one may also wish to have desirable tracking and settling time properties (such as a low delay in the response). For such setups, it is often desirable to have a minimum-phase closed loop system (with no zeroes in the right half-plane). When one has a plant which is not minimum-phase, the design is often more challenging, due to the effective time delay present, as discussed in the relevant section.
In such cases, it may be necessary to go beyond classical PID control, and consider schemes such as predictive control or feedforward control where part of the control input can be computed by some pre-processing by possibly using feedback from the output.
To gain some insight, consider the following equation:
where is a desired closed-loop system transfer function, which we may assume to be minimum-phase. Some algebra leads to:
What we see is that if has a zero in the right half-plane, the presence of above leads to an unstable control transfer function.
For such settings, predictive control or feedforward control policies are often utilized in practice. Feedforward control is a general control paradigm where, unlike feedback control, the control is defined by an open-loop inner system in the control. The feedforward control is often used as a predictive correction term for the system. However, in many designs, the feedforward control is often added to a feedback control term leading to the overall control to the system with stronger robustness properties.
To gain further insight, let where is minimum-phase and is not minimum-phase. Consider . This then effectively allows the control to only work with the minimum-phase portion of the system as if the feedback only involves . A PID control can then be designed for this system, and the output may be then subjected to at the end: Observe that via , acts as a prediction of the output : For example, if were a pure delay system (see the Pade approximation discussion in the relevant section), then would essentially be written in time domain as , serving as a prediction of the output. Thus, future is anticipated in the design.
For example, in reference tracking applications in which a path is given and the system is to closely steer the path, using feedback and causal reference information alone may lead to a weaker performance; here, future reference information can be used to compute an additional control input via an inverse analysis mapping reference paths to control actions. One can see that if it is possible to predict/estimate the future behaviour of a system to be tracked, this may make the application of a baseline control feasible (e.g. if an obstacle is known to be soon coming ahead, one may be able to slow down in anticipation). This additional control input is a predictive control and its presence can provide significant improvement in performance.
Some specific predictive control design methods are known as Smith Predictor Based or Internal Model Based Control Designs (which allow the control to anticipate the output and require further system model information), or Model Predictive Control (which is an optimization based control design and is more aligned with modern control theory).
The Routh-Hurwitz Stability Criterion
The root locus and Nyquist methods provide ways to analyze stability graphically. The Routh-Hurwitz criterion provides an algebraic test: given a polynomial (such as the characteristic polynomial of a closed-loop system), it determines whether all roots have negative real parts -- without computing the roots explicitly.
This is particularly useful for checking BIBO stability of a closed-loop transfer function , where the denominator polynomial determines the pole locations.
Necessary Condition
For a polynomial to have all roots with negative real parts, it is necessary that all coefficients have the same sign and that no coefficient is zero.
Intuition: If any coefficient is zero or has a different sign from the others, you can immediately conclude the system is unstable (or marginally stable) without further analysis. This is a quick first check before constructing the full Routh table.
Constructing the Routh Table
Given a polynomial , the Routh table is constructed as follows. The first two rows are filled directly from the polynomial coefficients:
- Row :
- Row :
- Row :
- Row :
- Continue until row .
Each subsequent entry is computed by a determinant divided by the leading element of the row above:
and similarly for subsequent rows. The table has rows total.
The number of roots of with positive real parts equals the number of sign changes in the first column of the Routh table. In particular, the polynomial has all roots in the open left half-plane if and only if all entries in the first column are positive (assuming ).
Intuition: Each sign change in the first column of the Routh table corresponds to a root crossing from the left half-plane to the right half-plane. The table effectively counts how many roots are "on the wrong side" without ever computing the roots themselves. This is especially valuable when the characteristic polynomial depends on a design parameter (like a gain ), because you can determine the range of for which all first-column entries remain positive.
Worked Example
Consider a closed-loop system with characteristic polynomial
Step 1: Check the necessary condition. All coefficients are positive, so the necessary condition is satisfied.
Step 2: Construct the Routh table.
- s^3 1 11
- s^2 6 6
- s^1 b_1 0
- s^0 c_1
Computing :
Computing :
The first column is: -- all positive, so there are zero sign changes.
Conclusion: All roots have negative real parts. The system is stable. (Indeed, the roots are .)
Consider a feedback system with loop transfer . The closed-loop characteristic polynomial is
The Routh table:
- s^3 1 2
- s^2 3 K
- s^1 \frac 0
- s^0 K
For stability, all first-column entries must be positive:
- (always satisfied)
- (always satisfied)
Conclusion: The system is stable for . At the system is marginally stable (the row vanishes, indicating purely imaginary roots). For , there are two right half-plane poles.
Intuition: The Routh-Hurwitz criterion complements the Nyquist and root locus methods. While root locus traces poles graphically and Nyquist counts encirclements, Routh-Hurwitz gives a purely algebraic condition. It is especially useful for finding the exact stability boundary in terms of a design parameter, as in the example above.
Exercises
Consider the inverted pendulum displayed in Figure 8.3, where a torque of is applied to keep the pendulum around . The dynamics can be derived as . Assume the coefficients are selected so that this simplifies to: . Linearizing this system at , (with approximations ), we arrive at the linear system:
Now, consider the linearized pendulum model as our plant , mapping to , to be used in Figure 8.4. Note that the transfer function of this model given above is . Here .
Suppose that the transfer function of the controller, , is given with , with . Observe that this means that , where .
a) Find the (closed-loop) transfer function, mapping the signal to in the frequency/Laplace domain.
b) With , set . For what values of , is the closed-loop system, mapping the signal to , BIBO stable? You can use any method.
c) With , set . For what values of , is the closed-loop system, mapping the signal to , BIBO stable? You can use any method.
d) Let . For what values of , is the closed-loop system, mapping the signal to , BIBO stable? You can use any method.
e) Interpret your analysis in the context of the inverted pendulum system.
Let , .
Study stability properties using the root locus method as is varied from to .
Consider Figure 8.4. The plant is a linearized inverted pendulum and suppose for simplicity that its transfer function is . Suppose that the controller applied is given with (and thus, it is a P-D controller) for some parameter .
a) Write the plant in state space form, where the input is and the output is .
b) By writing as a function of , express the overall (closed-loop) system as a linear map from to .
c) Find conditions on for the system to be BIBO stable.
d) Verify that this result is consistent with a Nyquist or root-locus method analysis.