Introduction to Geometric Control Relative Degree Consider the square (no of inputs = no of outputs = p) affine control system ẋ = f(x) + g(x)u = f(x) + [ g (x),, g p (x) ] u () h (x) y = h(x) = (2) h p (x) (This system is assumed to have an equilibrium or operating point corresponding to u e at x e = with y e = ) Recall that for the i-th output y i, the relative degree r i is the first time - derivative of y i for which u appears in the expression for the derivative SISO For example, for a SISO system, this translates to L g L f k h(x) = dk y dt = L k f kh(x), k =, 2,, r (3) L g L f r h(x e ) dr y dt r = L f rh(x) + L gl f r h(x)u (4) For nonlinear systems, the relative degree is a local concept, defined in some neighborhood of x = x e If conditions (3) and (4) hold globally, we say that the system has a global relative degree r 2 MIMO The MIMO system ()-(2) has relative degree {r, r 2,, r p } at x = x e if L gj L f k h i (x) =, i, j p, k =, 2,, r i (5) dk y i dt k = L f kh i (x), i p, k =, 2,, r
for all x in a neighbourhood of x = x e The p p matrix N(x) is invertible at x = x e where [ ] y (r L i) g L f r h (x) L gp L f r h (x) i N(x) = = u (6) j i,j L g L f rp h p (x) L gp L f rp h p (x) d r y dt r L f r h (x) = +N(x)u d rp y p L dt rp f rph p (x) }{{} G(x) Condition (6) is the MIMO generalisation of the condition (4) in the SISO case If r = r 2 = = r p, we say that the system has a uniform relative degree r 2 Normal Form 2 SISO For a SISO system of relative degree r, consider the state transformation ( ) ( ) ξ Φ(x) = z =, Φ(x η e ) = where ξ R r, η R n r, defined in part as follows: ξ = Φ (x) = y = h(x) ξ 2 = Φ 2 (x) = ẏ = L f h(x) ξ r = Φ r (x) = y (r ) = L f r h(x) (7) 2
Since condition (4) holds, this immediately gives that ξ = ξ 2 ξ 2 = ξ 3 (8) ξ r = ξ r ξ r = L f rh(x) + L }{{} g L f r h(x) u }{{} A(x) B(x) It may be shown that the following holds Lemma (Linear independence of output derivatives): The row vectors { Φ (x x e), Φ 2 (x x e),, Φr (x x e)} are linearly independent Hence, if r = n, then Φ(x) is indeed a well-defined transformation in a neighbourhood of x = x e since its Jacobian is invertible On the other hand, if r < n, it is always possible to choose Φ r+ (x), Φ r+2 (x),, Φ n (x) so that Φ(x) has a non-singular Jacobian at x e and so is indeed a well-defined transformation in a neighbourhood of x = x e Hence the dynamics of the remaining transformed state variables η may be described by η i = Φ i (x), i = r +, r + 2,, n η i = Φ i (f(x) + g(x)u), x = L f Φ }{{} i (x) + L g Φ i D i i = r +, r + 2,, n }{{} E i (x)u, i = r +, r + 2,, n (9) Moreover it is always possible to choose Φ r+ (x), Φ r+2 (x),, Φ n (x) so that Lemma 2 (Non-dependence of remnant states on the input): L g Φ i (x) =, for all x in a neighbourhood of x e And so Eq (9 ) becomes i = r +, r + 2,, n η i = D i (x), i = r +, r + 2,, n () 3
Using the fact x = Φ (z), the state equations (Eq (8) and Eq () ) and output equation may be written in normal form: ξ = ξ 2 ξ 2 = ξ 3 ξ r = ξ r ξ r = A(Φ (z)) + B(Φ (z))u () η r+ = D r+ (Φ (z)) η r+2 = D r+2 (Φ (z)) η n = D n (Φ (z)) y = ξ Remark: Though Lemma 2 holds in a theoretical sense, it may be difficult to find the required transformation In which case, the state and output equations (not in normal form) are ξ = ξ 2 ξ 2 = ξ 3 ξ r = ξ r ξ r = A(Φ (z)) + B(Φ (z))u (2) η r+ = D r+ (Φ (z)) + E r+ (Φ (z))u η r+2 = D r+2 (Φ (z)) + E r+2 (Φ (z))u η n = D n (Φ (z)) + E n (Φ (z))u y = ξ 4
3 I/O Feedback Linearisation 3 SISO By definition of relative degree B() (see Eq ()) Hence by using the cancellation feedback control A(Φ (z)) + B(Φ (z))u = v u = A(Φ (z)) + v B(Φ (z)) (3) the ξ-subsystem can be converted into a completely controllable linear subsystem consisting of r cascaded integrators driven by input v, which then can have its dynamics redesigned by eg pole placement or LQ methods etc In normal form, the η -subsystem is not observable; it represents the remnant, and so must have stable dynamics for the approach to be useful This is investigated in the section entitled Zero Dynamics 4 Zero Dynamics 4 SISO Keeping y(t) ( zeroing the output ) requires that ξ (t) (see output equation) leading to ξ(t) Thus ξ r (t) in turn requires that v and so u must be chosen as u = u zd = A(Φ (, η)) B(Φ (, η)) The remnant or zero dynamics are then η = D(Φ (, η)) + E(Φ (, η))u zd }{{} F(η) (4) The stability of the zero (equilibrium) solution of this flow can be tested by any of the usual methods 5
5 Examples 5 Example Consider the 2nd order affine system ẋ = ( ) ( ) x2 + 4x 2 x 2 + u x }{{}}{{} f(x) g(x) y = x }{{} h(x) Computing the relative degree y = x ẏ = ẋ = x 2 ( + 4x 2 ) ÿ = ẋ 2 ( + 4x 2 ) + x 2 (8x ẋ ) = ( x + u)( + 4x 2 ) + 8x x 2 2( + 4x 2 ) = x ( + 4x 2 )( + 8x 2 }{{ 2) + } ( + 4x 2 }{{ ) } u L f 2 h(x,x 2 )=A(x,x 2 ) L gl f h(x,x 2 )=B(x,x 2 ) Therefore r = 2 Hence r = n and so there is no remnant Describing the Normal Form ξ = Φ (x) = h(x) = x ξ 2 = Φ 2 (x) = L f h(x) = x 2 ( + 4x 2 ) Solving to get the inverse transformation x = Φ (ξ) = ξ x 2 = Φ (ξ) = ξ 2 + 4ξ 2 The normal form is ξ = ξ 2 ξ 2 = A + Bu y = ξ 6
I/O Linearisation Feedback With u = A + v B the linearised system is = x ( + 4x 2 )( + 8x 2 2) + v + 4x 2 = x ( + 8x 2 v 2) + + 4x 2 ξ = ξ 2 ξ 2 = v y = ξ Stabilising feedback This double integrator system can be stabilised by where k, k 2 < Hence v = k ξ + k 2 ξ 2 + w = k x + k 2 x 2 ( + 4x 2 ) + w u = x ( + 8x 2 x 2) + k + k + 4x 2 2 x 2 + w + 4x 2 52 Example 2 Consider the 2nd order affine system (same state equation as Ex different output) ẋ = ( ) ( ) x2 + 4x 2 x 2 + u x }{{}}{{} f(x) g(x) y = x }{{} 2 h(x) but Computing the relative degree y = x ẏ = ẋ 2 = x }{{} + }{{} u L f h(x,x 2 )=A(x,x 2 ) L gh(x,x 2 )=B(x,x 2 ) 7
Therefore r = Hence r < n and so there is a remnant Describing the Normal Form ξ = Φ (x) = h(x) = x 2 η 2 = Φ 2 (x) η 2 = Φ 2 x (ẋ) = Φ 2 (f(x) + g(x)u) x = Φ 2 x f(x) + Φ 2 }{{} x g(x) u }{{} L f Φ 2 (x) L gφ 2 (x) From Lemma 2 it is known that Φ 2 can be chosen so that L g Φ 2 (x) =, but we calculate that L g Φ 2 (x) = Φ 2 x 2 and so Φ 2 (x) = C(x ), where C is a function of its argument Since η 2 = Φ 2 (x) = C(x ), C must also be invertible Solving to get the inverse transformation The normal form is (I/O Linearisation Feedback) Zero Dynamics For this example x = Φ (ξ) = C (η 2 ) x 2 = Φ (ξ) = ξ ξ = A + Bu = x + u η 2 = dc dx ( + 4x 2 )x 2 y = ξ y x 2 Hence the zero dynamics are (see Normal form above) η 2 = What does this imply about the behaviour of this control system? 8
6 Exact Feedback Linearisation The previous two examples demonstrate some features of geometric control which will be expanded on in this section: In Example, the system has relative degree equal to system order, no remnant, is transformable to a linear integrator-cascade system and is I/O stabilisable Example 2 has relative degree less than the system order, a remnant whose zero dynamics are marginally stable but which can be I/O stabilised Proposition There exists an output function y = h(x) for which the relative degree r equals the system order n is necessary and sufficient for the nonlinear system ẋ = f(x) + g(x)u to have a linearising transformation z = Φ(x) and a linearising feedback u = α(x)+β(x)v which transforms the system into a completely controllable linear system The output y may be real or synthetic Example gives a constructive proof method for sufficiency which may be generalised to n-th order system The proof of necessity needs the following two results Lemma 3 (Invariance of r under state transformation): Setting f(z) = [ Φ x f(x) ], g(z) = x=φ (z) [ ] Φ x g(x), h(z) = h(φ (z)), x=φ (z) then L f h(z) = h z f(z) = = [ ] h x [ ] h x f(x) x=φ (z) [ Φ x=φ (z) z ] [ ] Φ x f(x) x=φ (z) = [L f h(x)] x=φ (z) then iterated calculations lead to L f kh(z) = [L f kh(x)] x=φ (z) and L g L f kh(z) = [L g L f kh(x)] x=φ (z) got by rewriting A + Bu = v 9
Lemma 4 (Invariance of r under feedback): By induction, it may be shown that from which it follows that and provided that β(x e ) L (f+gα) kh(x) = L f kh(x), k =,,, r L gβ L (f+gα) kh(x) =, k =,,, r 2 L gβ L (f+gα) r h(x e ) To show the necessity of r = n, start by considering a linear system in Brunovsky canonical form 2 : Ã =, b = If the nonlinear system is feedback linearisable then it can be transformed to an CC linear system which in turn can be transformed into Brunovsky canonical form: ẋ = f(x) + g(x)u z=φ(x) u=α+βv ż = Az + bv z= T z v=kz+w z = Ã z + bw With this Brunovsky form system, associate the output y = (,,, ) z It is straightforward to show that r = n The invariance of r under transformation and feedback means that there is an appropriate output y = h(x) associated with the nonlinear system The problem of finding h(x) such that r = n comes down to finding a solution to the set of equations/inequation: L g L f k h(x) =, k =,,, n 2 L g L f n h(xe ) 2 This is a particular instance of ccf
This in turn is equivalent to the set of st order equations/inequation: L adf k g h(x) =, k =,,, n 2 (5) L adf n g h(x e ) (6) Necessary and sufficient conditions for the existence of a function h(x) satisfying these relations ( (5) and (6) ) is a consequence of Frobenius s theorem and are given by (i) (ii) F n = {g(x), ad f g(x),, ad f n 2g(x), ad f n g(x)} is linearly independent in a neighbourhood of x = x e This corresponds to complete controllability in linear systems F n = {g(x), ad f g(x),, ad f n 2g(x)} is involutive in a neighbourhood of x = x e This is the condition that guarantees the solution to the set of PDEs (Eq (5)) It automatically holds for linear systems If conditions (i) and (ii) hold, solving the relations (5) and (6) gives h(x) = y = Φ (x) = z, the first component of the state transformation The other components are given by (see normal form Eq( 7)) z i+ = L f z i, i =, 2,, n Example 3 Consider the 2nd-order affine system (the same state equation as Ex & Ex2 but with no output): ( ) ( ) x2 + 4x ẋ = 2 x 2 + u x }{{}}{{} f(x) g(x) We calculate ad f g = [f, g] = g f f(x) g(x) = x x ( 8x x 2 + 4x 2 ) ( ) = ( 4x 2 )
Hence F 2 = {g, ad f g} = {( ), ( )} 4x 2 F 2 is linearly independent by inspection and F is involutive 3 So, Solve L g z =, L adf gz ie L adf gz = ( z x z x 2 ) ( 4x 2 L g z = ( z z ) ( ) x x 2 ) ( z = x = z x 2 = (7) ) ( 4x 2 ) (8) To satisfy InEQ (8), choose z = (9) x Then a solution of Eq (7) and Eq (9) is z = x (2) The rest of the solution then reduces to Example What happens if conditions (i) and (ii) are not satisfied? Then it is still possible to obtain by means of state feedback a partially linear system As a matter of fact since r < n using the linearising control u = α(x) + β(x)v the system becomes ξ = ξ 2 ξ 2 = ξ 3 ξ r = ξ r ξ r = v (2) η r+ = q r+ (z)) η r+2 = q r+2 (z)) η n = q n (z)) y = ξ 3 Every singleton set of vector fields is involutive 2
where q i () = D i (Φ ()), i = r +,, n (see Eq ()) Figure : Normal Form 3