Part 8 - Stability

Introduction

In this part we’ll properly define what stability is for different kind of systems.

Stability

G(s)G(s) is a stable system when:

limtg(t)=0\lim_{t \to \infty} g(t) = 0

Where g(t)g(t) is the system impulse response, meaning u(t)=δ(t)u(t) = \delta(t), which yields:

g(t)=L1{G(s)=Y(s)U(s)=Y(s)}g(t) = \mathcal{L}^{-1}\{G(s) = \dfrac{Y(s)}{U(s)} = Y(s) \}

Example

G(s)=1s2+4s5G(s) = \dfrac{1}{s^2 + 4s - 5}

We can rewrite it as:

G(s)=1s2+4s5=1(s1)(s+5)G(s) = \dfrac{1}{s^2 + 4s - 5} = \dfrac{1}{(s - 1)(s + 5)}

Using partial fraction decomposition:

G(s)=A(s1)+B(s+5)G(s) = \dfrac{A}{(s - 1)} + \dfrac{B}{(s + 5)}

Taking the inverse Laplace transform yields:

g(t)=Aet+Be5tg(t) = A \cdot e^{t} + B \cdot e^{-5t}

If we take:

limtg(t)=\lim_{t \to \infty} g(t) = \infty

Since the first term explodes off to infinity.

This means that our condition in stability, can be defined as. The poles need to lie within the left-hand plane, meaning they have a real part that is negative.

But this is for simple systems, how does stability look like in a feedback system?

Stability for feedback systems

When dealing with feedback systems we need to look at the loop transfer function, L(s)=F(s)G(s)L(s) = F(s) G(s).

Remember that, the transfer function from r(t)r(t) to y(t)y(t) is:

Gry(s)=L(s)1+L(s)G_{ry}(s) = \dfrac{L(s)}{1 + L(s)}

We will call 1+L(s)1 + L(s) for the characteristic equation. From the last part we can say that 1+L(s)=01 + L(s) = 0

Example

Given the system:

G(s)=1s2+s2G(s) = \dfrac{1}{s^2 + s - 2}

We use a P-controller:

F(s)=KpF(s) = K_p

This means L(s)=Kps2+s2L(s) = \dfrac{K_p}{s^2 + s - 2}

1+L(s)=01+Kps2+s2=0s2+s2+Kp=01 + L(s) = 0 \newline 1 + \dfrac{K_p}{s^2 + s -2} = 0 \newline s^2 + s - 2 + K_p = 0 \newline

This means:

s1,2=12±94Kps_{1, 2} = -\dfrac{1}{2} \pm \sqrt{\dfrac{9}{4} - K_p}

For our roots to not be positive, the square root term can at max be 12\dfrac{1}{2}. Meaning that:

94Kp<14\dfrac{9}{4} - K_p < \dfrac{1}{4}

Which means:

Kp>2\boxed{K_p > 2}

Bode plots for feedback systems

Given:

Gry(s)=L(s)1+L(s)G_{ry}(s) = \dfrac{L(s)}{1 + L(s)}

What happens if L(s)=1L(s) = -1?

This means that L(jω)=1|L(j\omega)| = 1 and arg(L(jω))=180arg(L(j\omega)) = -180^\circ

Let’s call those specific frequencies for ωc\omega_c and ωπ\omega_\pi. We’ll call them the crossover and phase crossover frequency respectievly.

Meaning that:

L(jωc)=1arg(L(jωπ))=180|L(j\omega_c)| = 1 \newline arg(L(j\omega_\pi)) = -180^\circ

If L(jω)=1L(j\omega) = -1, it is equivalent to ωc=ωπ\omega_c = \omega_\pi. If this happens, the system is unstable.

Therefore, we will introduce two new variables that will tell us how near instability we are.

Phase margin:

ϕm=arg(L(jωc))180=arg(L(jωC))+180   given that L(jωc)=1\phi_m = arg(L(j\omega_c)) - -180^\circ = arg(L(j\omega_C)) + 180^\circ \ | \ \text{ given that } |L(j\omega_c)| = 1

Amplitude margin:

Am=1L(jωπ)   given that arg(L(jωπ))=180A_m = \dfrac{1}{|L(j\omega_\pi)|} \ | \ \text{ given that } arg(L(j\omega_\pi)) = -180^\circ

Example

Given

L(s)=Ks(s+1)2 K>0L(s) = \dfrac{K}{s(s + 1)^2} \ K > 0

Given that Am=2A_m = 2, find KK.

2=1L(jωπ)2 = \dfrac{1}{|L(j\omega_\pi)|}

This means that L(jωπ)=12|L(j\omega_\pi)| = \dfrac{1}{2}

L(jω)=Kjω(jω+1)2L(j\omega) = \dfrac{K}{j\omega(j\omega + 1)^2} arg(L(jω))=0902arctan(ω)arg(L(j\omega)) = 0 - 90^\circ - 2 \cdot arctan(\omega)

Let’s find ωπ\omega_\pi

902arctan(ωπ)=1802arctan(ωπ)=90arctan(ωπ)=45ωπ=1-90^\circ - 2 \cdot arctan(\omega_\pi) = -180^\circ \newline -2 \cdot arctan(\omega_\pi) = -90^\circ \newline arctan(\omega_\pi) = 45^\circ \newline \omega_\pi = 1

Therefore:

L(jωπ)=Kj(1+j)2=12|L(j\omega_\pi)| = \left| \dfrac{K}{j(1 + j)^2} \right| = \dfrac{1}{2} K1(12+12)2=12\dfrac{K}{1 \cdot \left(\sqrt{1^2 + 1^2}\right)^2} = \dfrac{1}{2} K2=12\dfrac{K}{2} = \dfrac{1}{2} K=1\boxed{K = 1}

Routh–Hurwitz stability criterion

If we happen to get a polynomial of higher degrees than 2, then we need to find the poles still to determine stability. Solving a 3rd degree polynomial is not the most trivial task.

If we ever happen to get a polynomial of degree 4 than it is even worse. But if we reflect, we only want to know the sign of the poles, the actual values are useless if we want to just determine stability of a system.

Using this method we can easily find if a system is stable or not.

1+L(s)1 + L(s) is a polynomial of degree higher than 2.

1+L(s)=a0sn+a1sn1+a2sn2++an1 + L(s) = a_0 s^n + a_1 s^{n - 1} + a_2 s^{n - 2} + \ldots + a_n

To find the poles we set:

a0sn+a1sn1+a2sn2++an=0a_0 s^n + a_1 s^{n - 1} + a_2 s^{n - 2} + \ldots + a_n = 0

We write the following table:

sns^n a0a_0 a2a_2 a4a_4 a6a_6
sn1s^{n - 1} a1a_1 a3a_3 a5a_5 a7a_7
sn2s^{n - 2} c0c_0 c1c_1 c2c_2 c3c_3
sn3s^{n - 3} d0d_0 d1d_1 d2d_2 d3d_3

And so on

We’ll define these new characters as:

c0=a1a2a0a3a1c1=a1a4a0a5a1c2=a1a6a0a7a1c_0 = \dfrac{a_1 a_2 - a_0 a_3}{a_1} \newline c_1 = \dfrac{a_1 a_4 - a_0 a_5}{a_1} \newline c_2 = \dfrac{a_1 a_6 - a_0 a_7}{a_1} \newline d0=c0a3a1c1c0d1=c0a5a1c2c0d2=c0a7a1c3c0d_0 = \dfrac{c_0 a_3 - a_1 c_1}{c_0} \newline d_1 = \dfrac{c_0 a_5 - a_1 c_2}{c_0} \newline d_2 = \dfrac{c_0 a_7 - a_1 c_3}{c_0} \newline

If the first column only contains positive numbers, then the system is stable!

Example

For what KK values is the system stable?

L(s)=Ks3(s+1)2=3Ks(s2+2s+1)=3Ks3+2s2+sL(s) = \dfrac{K}{s} \cdot \dfrac{3}{(s + 1)^2} = \dfrac{3K}{s(s^2 + 2s + 1)} = \dfrac{3K}{s^3 + 2s^2 + s} 1+L(s)=01+3Ks3+2s2+s=0s3+2s2+s+3K=01 + L(s) = 0\newline 1 + \dfrac{3K}{s^3 + 2s^2 + s} = 0 \newline s^3 + 2s^2 + s + 3K = 0 \newline
s3s^3 11 11 00 00
s2s^2 22 3k3k 00 00
s1s^1 c0c_0 c1c_1 c2c_2 c3c_3
s0s^0 d0d_0 d1d_1 d2d_2 d3d_3
c0=a1a2a0a3a1=23K2c1=a1a4a0a5a1=0c_0 = \dfrac{a_1 a_2 - a_0 a_3}{a_1} = \dfrac{2 - 3K}{2} \newline c_1 = \dfrac{a_1 a_4 - a_0 a_5}{a_1} = 0\newline d0=c0a3a1c1c0=23K23K23K2=3Kd_0 = \dfrac{c_0 a_3 - a_1 c_1}{c_0} = \dfrac{\dfrac{2 - 3K}{2} \cdot 3K}{\dfrac{2 - 3K}{2}} = 3K \newline

It is stable if c0c_0 and d0>0d_0 > 0.

23K2>03K>0\dfrac{2 - 3K}{2} > 0 \newline 3K > 0 \newline

This means that:

0<K<23\boxed{0 < K < \dfrac{2}{3}}

Systems with non-rational transfer function

In reality, we will deal with transfer function that may not always be rational functions, for example

L(s)=e3ss(s+1)L(s) = e^{-3s}{s(s + 1)}

This has a time delay, which makes it a non-rational function.

For these kinds we will use:

  • Nyquists simplified criterion
  • Nyquists criterion

Nyquists simplified criterion

This is only applicable if L(s)L(s) does not have any poles in the right-hand plane.

What you will do is that you plot L(jω)L(j\omega) for 0ω0 \leq \omega \leq \infty.

If the curve for L(jω)L(j\omega) passes through the negative real-axis with the point (1,0)(-1, 0) to the left, it is stable. If it is to the right, then it is unstable.

Example

L(s)=ess(1+s)L(s) = \dfrac{e^{-s}}{s(1 + s)}

Gives us the following plot:

Which means this system is stable!

Example

Say we have the process, G(s)=1(s+1)(s+2)G(s) = \dfrac{1}{(s + 1)(s + 2)}. Say we have the controller, F(s)=KsF(s) = \dfrac{K}{s}.

For what values on KK is the system stable?

L(s)=Ks(s+1)(s+2)L(s) = \dfrac{K}{s(s + 1)(s + 2)}

All poles lie in the left-hand plane, we can use the simplified criterion.

L(jω)=Kjω(jω+1)(jω+2)L(j\omega) = \dfrac{K}{j\omega(j\omega + 1)(j\omega + 2)}

Let’s now split this fraction into the real and imaginary part. For this we’ll need to multiply by the conjugates:

L(jω)=K(1jω)(2jω)jω(1+ω2)(22+ω2)L(j\omega) = \dfrac{K(1 - j\omega)(2 - j\omega)}{j\omega(1 + \omega^2)(2^2 + \omega^2)}

Let’s simplify:

L(jω)=K(23jωω2)jω(1+ω2)(22+ω2)L(j\omega) = \dfrac{K(2 - 3j\omega -\omega^2)}{j\omega(1 + \omega^2)(2^2 + \omega^2)} L(jω)=2K3KjωKω2jω(1+ω2)(22+ω2)L(j\omega) = \dfrac{2K - 3Kj\omega - K\omega^2}{j\omega(1 + \omega^2)(2^2 + \omega^2)} L(jω)=3KjωK(2ω2)jω(1+ω2)(22+ω2)L(j\omega) = \dfrac{-3Kj\omega - K(2 - \omega^2)}{j\omega(1 + \omega^2)(2^2 + \omega^2)} L(jω)=3KjωK(2ω2)jω(1+ω2)(22+ω2)L(j\omega) = \dfrac{-3Kj\omega - K(2 - \omega^2)}{j\omega(1 + \omega^2)(2^2 + \omega^2)} L(jω)=3Kjωjω(1+ω2)(22+ω2)K(2ω2)jω(1+ω2)(22+ω2)L(j\omega) = \dfrac{-3Kj\omega}{j\omega(1 + \omega^2)(2^2 + \omega^2)} - \dfrac{K(2 - \omega^2)}{j\omega(1 + \omega^2)(2^2 + \omega^2)} L(jω)=3K(1+ω2)(22+ω2)+jK(2ω2)ω(1+ω2)(22+ω2)L(j\omega) = \dfrac{-3K}{(1 + \omega^2)(2^2 + \omega^2)} + j\dfrac{K(2 - \omega^2)}{\omega(1 + \omega^2)(2^2 + \omega^2)}

When we cross the negative real-axis is equivalent to (L(jω))=0\Im(L(j\omega)) = 0

K(2ω2)ω(1+ω2)(22+ω2)=0K(2ω2)=0\dfrac{K(2 - \omega^2)}{\omega(1 + \omega^2)(2^2 + \omega^2)} = 0 \newline K(2 - \omega^2) = 0

This means that when ω=2\omega = \sqrt{2}

This means that:

(L(j2))=3K1+2)2(4+2)2==K6\Re(L(j\sqrt{2})) = \dfrac{-3K}{1 + \sqrt{2})^2(4 + \sqrt{2})^2} = \ldots = -\dfrac{K}{6}

We want this to the left, meaning:

K6>1K>6K<6-\dfrac{K}{6} > -1 \newline -K > -6 \newline K < 6 \newline

Let’s plot for different K values and see.

For K=2K = 2:

For K=6K = 6:

For K=12K = 12:

Nyquist criterion

The proof and intution behind the Nyquist criterion is quite a lot and requires knowledge in complex analysis. We don’t do that here.

Simply, if we have a system with poles in the right-hand plane, we will need to use the general Nyquist criterion.

What we will use is:

Z=N+PZ = N + P

Where:

ZZ is the number of zeroes 1+L(s)1 + L(s) has in the right-hand plane. PP is the number of poles L(s)L(s) has in the right-hand plane. NN is the number of turns L(s)L(s) has around (1,0)(-1, 0) in the clockwise direction.

If:

Z=N+P=0Z = N + P = 0

Then the system is said to be stable.