Input-output differential equation
Common form of analytical form:
and are parameters that decided by the corresponded variable. - the order of the variable is not necessary to be continuous, it depends on the effect of each physical factor in the system
- for the right side(input), coefficient and the type of the physical input do are not required to be corresponded with the output side. But it is IMPORTANT to keep the dimension of each part of the equation the same (since we need to use "+" to link them in one equation)
Then we introduce as an operator which denote the order of the model:
For example: In
so, we have $\displaystyle a = p(px(t)) = p^2x(t)$.
And we can use
Transfer function
Laplace transform
We introduce this method to simplify the calculation of differential equation.
After been Laplace transformed, differential equation becomes to simple algebra equation.
Here we introduce
The operator
Then it is important to notice that the note of each variable should be Upscaled after been Laplace transformed.
At last we take RL-circuit as case for example:
First of all, we establish a mathematic model:
Then we make it easier to read using operator
so we transform it into Transfer function:
State-Space model
Why we need it?
While the Transfer function cannot handle with multiple input/output, we introduce this tool to:
- represent a complicated system with matrix
- make the differential equation easier to sole
- analyze the stability of the system(using poles and zeroes)
How to establish the model?
From the output side(left), we can get a formula that represent the system itself:
In this formula,
We introduce
And we get equations about formula:
Put
Since we establish the state-space model to describe the change of the system, we need the derivative of the state variable which implicates how the change happen while the time change.
So we can change these equations into a matrix:
In this model, matrix A are the coefficients represent the relationship between input(variables) and output(system variables).
Matrix A multiplied by state vector equals to makes the items in new matrix to the first order, which means they are differentiated by time.
From Transfer Function to State-Space model
Coefficients in matrix B are corresponded to the coefficients of the numerator of
So we can easily establish the connection between State-Space model and Transfer function:
We firstly have a input-output differential equation:
then we change it to the Transfer function form through multiply with operator
So the Transfer function is:
AND we can get the coefficients of matrix A from the Transfer function easily and do not need to think a lot:
From State-Space Model to Transfer Function
It will be a bit more complicated to do this.
First of all, we have a known State-Space model:
Apply Laplace Transform to each equation and we can get:
Tidy the formula, and reduce
Inverse Matrix will needed here