Controls has become one of the biggest (and most important) areas in electrical engineering.  However, many times when implementing a controls solution, we need to work with linear systems.  The majority of real life systems are not linear! So how do we fix this? With linearization.  In this article I’ll walk you through an example of how to linearize a system around a certain state vector and control input!

Example control system

Example control system

Okay so let’s say your system (ie, the thing you want to control) is modeled by the following differential equation (y is the output, u is the input):

\frac{d^2 y}{dt^2}+4 \frac{dy}{dt} + (y^2 - 1) \cdot u = 0

Say we want to linearize around the state vector x = 0, and the input u = 0. We’re going to need to represent this system in state space form, so let’s do it.

x_1 = y

x_2 = \dot y

\dot x_1 = x_2

\dot x_2 = -4 x_2 - (x_1 ^2 - 1) \cdot u

That wasn’t too bad, state space is great.  Now we can see it clearly isn’t linear, there is a squared term~~!  So the first step to linearization requires us to find the Jacobian matrices.  Let’s do it.

 A = \begin{bmatrix} \frac{\partial f_1}{\partial x_1} & \frac{\partial f_1}{\partial x_2} \\\frac{\partial f_2}{\partial x_1} & \frac{\partial f_2}{\partial x_2} \end{bmatrix}

 A = \begin{bmatrix} 0 & 1 \\\ 0 & -4 \end{bmatrix}

Similarly, we want to take partial derivatives for the input, in control systems, we call this the B matrix:

B = \begin{bmatrix}\frac{\partial f_1}{\partial u} \\ \frac{\partial f_2}{\partial u} \end{bmatrix}

B = \begin{bmatrix} 0 \\ 1 \end{bmatrix}

Standard state space representation tells us now, that we basically have linearized our system!  You can see this clearly by representing the system in state space form.

\begin{bmatrix}\dot x_1 \\ \dot x_2\end{bmatrix} = A \begin{bmatrix} x_1 \\ x_2 \end{bmatrix}+ B u

Realizing the vectors are just representations for x1 and x2, we now have the following system of equations:

\dot x_1 = x_2

\dot x_2 = -4 x_2 + u

Clearly a linear system.  So in summation, to linearize a non linear system, it is quite simple.  Represent the system in state space form.  Then find the jacobian matrices, and evaluate around the point(s) you want to linearize around.  Then you are done!  Later (read: when I don’t have interviews), I will show how we can use this to model a maglev system.

 Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

   
© 2011 Sciduck Suffusion theme by Sayontan Sinha