In this part we’ll see how we can represent systems using matrix notation, also called space-state representation. Along with how we linearize non-linear systems.
State variables
If we use the spring-mass system from last time, with Fd as input signal and y as output signal.
We obtained the following differential equation:
y¨=m1(Fd−by˙−ky)
If we want to represent this system using a set of first-order differential equations instead, we can do the following:
Let x1=y(t) and x2=y˙(t).
Then we can write:
⎩⎨⎧x1˙=x2x2˙=m1(Fd−by˙−ky)
Let’s now call the input signal, Fd, for u.
⎩⎨⎧x1˙=x2x2˙=m1(u−by˙−ky)
In matrix notation we can write it as:
[x1˙x2˙]=[0−mk1−mb][x1x2]+[0m1]u
We say that A=[0−mk1−mb] is the system matrix.
Therefore, we can finally write it as:
{x˙=Ax+Buy=x1
Linearization
Is a quite simple concept is the first order Taylor expansion around a point. Let’s take a look for functions of one variable.
We want to linearize around the point x=x0:
f(x)≈f(x0)+f′(x0)(x−x0)
In Control theory, the linearized function is quite often not the interest itself. Rather we want to understand how much this linear approximation deviates from the desired value.
So we say that:
Δf=f(x)−f(x0)=f′(x0)(x−x0)=f′(x0)Δx
For functions of 2 (or more variables), around point (x0,y0):
From the last part, we had a tank system which we described with a differential equation. Say that we have a point of equilibrium, (q0,h0) meaning that h=0.
This gives us that h˙(q0,h0)=f(q0,h0)=0
q0=a2g⋅h0a2g=h0q0
We’ll use this later on, but let’s first linearize what we had.