<<

1.1.1 Linearization via

In order to linearize general nonlinear , we will use the Taylor Series expansion of functions. Consider a f(x) of a single variable x, and suppose thatx ¯ is a point such that f(¯x) =0. In this case, the pointx ¯ is called an equilibrium point of the systemx ˙ = f(x), since we havex ˙ = 0 when x =x ¯ (i.e., the reaches an equilibrium atx ¯). Recall that the Taylor Series expansion of f(x) around the pointx ¯ is given by 2 3 df 1 d f 2 1 d f 3 f(x)= f(¯x)+ (x − x¯)+ (x − x¯) + (x − x¯) + · · · . dx 2 dx2 6 dx3 x=¯x x=¯x x=¯x

This can be written as df f(x)= f(¯x)+ (x − x¯) + higher order terms. dx x=¯x

a For x sufficiently close tox ¯, these higher| order{z terms} will be very close to zero, and so we can drop them to obtain the approximation f(x) ≈ f(¯x)+ a(x − x¯) . Since f(¯x) = 0, the nonlinear differential equationx ˙ = f(x) can be approximated near the equilibrium point by x˙ = a(x − x¯) . To complete the linearization, we define the perturbation state (also known as delta state) δx = x − x¯, and using the fact that δx˙ =x ˙, we obtain the linearized model

δx˙ = aδx .

Note that this linear model is valid only near the equilibrium point (how “near” depends on how nonlinear the function is).

Extension To Functions of Multiple States and Inputs

The extension to functions of multiple states and inputs is very similar to the above procedure. Suppose the evolution of state xi is given by

x˙ i = fi(x1,x2,...,xn, u1, u2,...,um) , for some general function fi. Suppose that the equilibrium points are given byx ¯1, x¯2,..., x¯n, u¯1, u¯2,..., u¯m, so that fi(¯x1, x¯2,..., x¯n, u¯1, u¯2,..., u¯m) = 0 ∀i ∈ {1, 2,...,n} .

Note that the equilibrium point should make all of the functions fi equal to zero, so that all states in the system stop moving when they reach equilibrium. The linearization of fi about the equilibrium point is then given by n m ∂fi ∂fi fi(x1,...,xn, u1,...,um) ≈ (xj − x¯j)+ (uj − u¯j) . ∂xj =¯ ∂uj =¯ Xj=1 xj xj Xj=1 uj uj

If we define the delta states and inputs δxj = xj − x¯j (for 1 ≤ j ≤ n) and δuj = uj − u¯j (for 1 ≤ j ≤ m), the linearized dynamics of state xi are given by n m ∂fi ∂fi δx˙ i = δxj + δuj . ∂xj =¯ ∂uj =¯ Xj=1 xj xj Xj=1 uj uj

5 Note: Sometimes the “δ” notation is dropped in the linearized , with the implicit understanding that we are working with a linearized system. Example. Linearize the nonlinear state-space model

2 x˙ 1 = x1 + sin x2 − 1 3 x˙ 2 = −x2 + u y = x1 + x2 around the equilibrium pointx ¯1 = 1, x¯2 = 0, u¯ = 0. Solution.

6 2 Obtaining The Transfer Function From A Linear State-Space Model

Since we can generally convert nonlinear models to a linear model (in a small region around the equilibrium point), we will focus on linear state-space models of the form

x˙ = Ax + Bu, x ∈ Rn, u ∈ Rm, y ∈ Rp y = Cx . for the rest of the course. Since this model represents a linear system, we can ask how the matrices A, B and C relate to the transfer function of the system. To see this, take the Laplace Transform of the above state space :

sX(s) − x(0) = AX(s)+ BU(s) Y(s)= CX(s) .

Note that this includes the initial conditions of all the states. The first equation can be rearranged to solve for X(s) as follows:

−1 −1 (sI − A)X(s)= x(0) + BU(s) ⇔ X(s) = (sI − A) x(0) + (sI − A) BU(s) .

The term I represents the n × n identity matrix. Substituting this into the equation for Y(s), we obtain

−1 −1 Y(s)= C(sI − A) x(0) + C(sI − A) BU(s) .

The transfer function of the state-space model x˙ = Ax + Bu, y = Cx (when x(0) = 0) is

−1 H(s)= C(sI − A) B .

Note that H(s) is a p × m matrix, and thus it is a generalization of the transfer function for standard single-input single-output systems. In fact, it is a matrix where entry i, j is a transfer function describing how the j–th input affects the i–th output. When p = 1 and m = 1, we get the transfer function that we studied in the first part of the course. Example. Calculate the transfer function for the state space model

0 1 0 x˙ = x + u, y = 1 0 x .  −2 −3  4  C  A B | {z } | {z } |{z} Solution.

7 Note that the above solution agrees with the transfer function at the beginning of the section.

8