In control theory and stability theory, root locus analysis is a graphical method for examining how the roots of a system change with variation of a certain system parameter, commonly a gain within a feedback system. This is a technique used as a stability criterion in the field of classical control theory developed by Walter R. Evans which can determine stability of the system. The root locus plots the poles of the closed loop transfer function in the complex s-plane as a function of a gain parameter (see pole–zero plot).Evans also invented in 1948 an analog computer to compute root loci, called a "Spirule" (after "spiral" and "slide rule"); it found wide use before the advent of digital computers.[1] [2] [3] [4] [5] [6] [7] [8]
In addition to determining the stability of the system, the root locus can be used to design the damping ratio (ζ) and natural frequency (ωn) of a feedback system. Lines of constant damping ratio can be drawn radially from the origin and lines of constant natural frequency can be drawn as arccosine whose center points coincide with the origin. By selecting a point along the root locus that coincides with a desired damping ratio and natural frequency, a gain K can be calculated and implemented in the controller. More elaborate techniques of controller design using the root locus are available in most control textbooks: for instance, lag, lead, PI, PD and PID controllers can be designed approximately with this technique.
The definition of the damping ratio and natural frequency presumes that the overall feedback system is well approximated by a second order system; i.e. the system has a dominant pair of poles. This is often not the case, so it is good practice to simulate the final design to check if the project goals are satisfied.
The root locus of a feedback system is the graphical representation in the complex s-plane of the possible locations of its closed-loop poles for varying values of a certain system parameter. The points that are part of the root locus satisfy the angle condition. The value of the parameter for a certain point of the root locus can be obtained using the magnitude condition.
Suppose there is a feedback system with input signal
X(s)
Y(s)
G(s)
H(s)
For this system, the closed-loop transfer function is given by
T(s)=
Y(s) | |
X(s) |
=
G(s) | |
1+G(s)H(s) |
Thus, the closed-loop poles of the closed-loop transfer function are the roots of the characteristic equation
1+G(s)H(s)=0
1+G(s)H(s)=0
In systems without pure delay, the product
G(s)H(s)
G(s)H(s)=K
(s+z1)(s+z2) … (s+zm) | |
(s+p1)(s+p2) … (s+pn) |
where
-zi
m
-pi
n
K
K
G(s)H(s)=-1
K
The factoring of
K
(s-a)
G(s)H(s)
a
s
According to vector mathematics, the angle of the result of the rational polynomial is the sum of all the angles in the numerator minus the sum of all the angles in the denominator. So to test whether a point in the s-plane is on the root locus, only the angles to all the open loop poles and zeros need be considered. This is known as the angle condition.
Similarly, the magnitude of the result of the rational polynomial is the product of all the magnitudes in the numerator divided by the product of all the magnitudes in the denominator. It turns out that the calculation of the magnitude is not needed to determine if a point in the s-plane is part of the root locus because
K
K
The root locus only gives the location of closed loop poles as the gain
K
K
A point
s
\angle(G(s)H(s))=\pi
which is the same as saying that
m | |
\sum | |
i=1 |
\angle(s+zi)-
n | |
\sum | |
i=1 |
\angle(s+pi)=\pi
that is, the sum of the angles from the open-loop zeros to the point
s
s
\pi
s
A value of
K
s
|G(s)H(s)|=1
which is the same as saying that
K | |s+z1||s+z2| … |s+zm| |
|s+p1||s+p2| … |s+pn| |
=1
Using a few basic rules, the root locus method can plot the overall shape of the path (locus) traversed by the roots as the value of
K
K
Let P be the number of poles and Z be the number of zeros:
P-Z=numberofasymptotes
The asymptotes intersect the real axis at
\alpha
\phi
\phil=
180\circ+(l-1)360\circ | |
P-Z |
,l=1,2,\ldots,P-Z
\alpha=
\operatorname{Re | |
\left(\sum |
P-\sumZ\right)}{P-Z}
where
\sumP
\sumZ
\operatorname{Re}
The breakaway points are located at the roots of the following equation:
dG(s)H(s) | |
ds |
=0
d\overline{GH | |
(z)}{dz} |
=0
Once you solve for z, the real roots give you the breakaway/reentry points. Complex roots correspond to a lack of breakaway/reentry.
Given the general closed-loop denominator rational polynomial
1+G(s)H(s)=1+K
bmsm+\ldots+b1s+b0 | |
sn+an-1sn-1+\ldots+a1s+a0 |
,
the characteristic equation can be simplified to
sn+an-1sn-1+\ldots+(am+K
m | |
b | |
m)s |
+\ldots+(a1+Kb1)s+(a0+Kb0)=0.
The solutions of
s
Given
1+G(s)H(s)=1+K
s+3 | |
s3+3s2+5s+1 |
,
we will have the characteristic equation
s3+3s2+(5+K)s+(1+3K)=0.
The following MATLAB code will plot the root locus of the closed-loop transfer function as
K
rlocus
built-in function:for nK = 1:NK K = K_array(nK); C = [1, 3, (5 + K), (1 + 3*K)]; r = roots(C).'; x_array(nK,:) = real(r); y_array(nK,:) = imag(r);end
figure;plot(x_array, y_array);grid on;
% Built-in methodsys = tf([1, 3], [1, 3, 5, 1]);figure;rlocus(sys);The following Python code can also be used to calculate and plot the root locus of the closed-loop transfer function using the Python Control Systems Library and Matplotlib[9] .
sys = ct.TransferFunction([1, 3], [1, 3, 5, 1])
roots, gains = ct.root_locus(sys, plot=True)plt.show
The root locus method can also be used for the analysis of sampled data systems by computing the root locus in the z-plane, the discrete counterpart of the s-plane. The equation maps continuous s-plane poles (not zeros) into the z-domain, where is the sampling period. The stable, left half s-plane maps into the interior of the unit circle of the z-plane, with the s-plane origin equating to |z| = 1 (because e0 = 1). A diagonal line of constant damping in the s-plane maps around a spiral from (1,0) in the z plane as it curves in toward the origin. The Nyquist aliasing criteria is expressed graphically in the z-plane by the x-axis, where . The line of constant damping just described spirals in indefinitely but in sampled data systems, frequency content is aliased down to lower frequencies by integral multiples of the Nyquist frequency. That is, the sampled response appears as a lower frequency and better damped as well since the root in the z-plane maps equally well to the first loop of a different, better damped spiral curve of constant damping. Many other interesting and relevant mapping properties can be described, not least that z-plane controllers, having the property that they may be directly implemented from the z-plane transfer function (zero/pole ratio of polynomials), can be imagined graphically on a z-plane plot of the open loop transfer function, and immediately analyzed utilizing root locus.
Since root locus is a graphical angle technique, root locus rules work the same in the and planes.
The idea of a root locus can be applied to many systems where a single parameter is varied. For example, it is useful to sweep any system parameter for which the exact value is uncertain in order to determine its behavior.