First order non linear to state space equations

Click For Summary
SUMMARY

This discussion focuses on converting first-order non-linear differential equations into state space form using Simulink. The equations are represented as $$ x' = Ax + Bu $$ and $$ y = Cx + Du $$, with an emphasis on the dynamics of state z depending solely on input u. The conversation highlights the importance of understanding Linear Time-Invariant (LTI) systems and the complexities involved in linearizing non-linear systems. The user shares their approach involving Laplace transforms and seeks confirmation on the validity of their method for deriving state variables.

PREREQUISITES
  • Understanding of Linear Time-Invariant (LTI) systems
  • Proficiency in Laplace transforms
  • Familiarity with state space representation
  • Knowledge of linear differential equations
NEXT STEPS
  • Study the application of Laplace transforms in control systems
  • Explore the concepts of state space modeling in Simulink
  • Research methods for linearizing non-linear systems
  • Examine examples of cascading state systems in control theory
USEFUL FOR

Control engineers, systems analysts, and students studying dynamic systems who are working on modeling non-linear systems and require guidance on state space representation and analysis.

Maniac_XOX
Messages
86
Reaction score
5
Homework Statement
I keep seeing examples using second order where the x1 replaces the y' and x2 replaces y'' giving two differentials x2 = x1' and x2' = f(x,u) where u is the input. What if have two non-linear first order differentials?
Relevant Equations
Started off from non linear equations:
1) $$y' = \frac{c_1 u - c_2uy + c_3}{z}$$
2)$$z' = c_4u - c_5 \sqrt{z}$$
After linearizing (although i've read that state space can use non-linear systems)
1) $$y' = -k_1y-k_2z+k_3$$
2) $$ z' = -k_4 z +k_5 u - k_6$$

where c and k are constants
How to represent this system in state space form?
where:
$$ x' = Ax + Bu \text{ and
}y = Cx + Du$$
I am trying to create a state space model based on these equations on simulink, need to find A, B, C and D but like I mentioned, i cannot find the solution when the differentials are not of second order.
 
Physics news on Phys.org
Note that the dynamics of state z depend only on the input u. So, conceptually, this can be solved before the other state equation. This result then becomes another input to the solution of the y state dynamics. So this is more like a cascade of two single state systems than one system with two mutually coupled states. As such, I'm not sure the matrix notation is necessary.

However, based on your other post on this subject, I think you should make sure you are very familiar with LTI systems before you try to deal with non-linear systems. While nearly anything can be linearized around a small neighborhood and then solved with standard LTI methods, there are very complex issues with defining what "small-signal" means and how truly non-linear systems work. There are seldom easy answers for truly non-linear dynamic systems.

This text may help you with the basics you will need. Note that every good treatment of modern controls assumes you know about linear DEs and Laplace transforms. We switch into the s domain ASAP in the linear world, LOL.
 
DaveE said:
Note that the dynamics of state z depend only on the input u. So, conceptually, this can be solved before the other state equation. This result then becomes another input to the solution of the y state dynamics. So this is more like a cascade of two single state systems than one system with two mutually coupled states. As such, I'm not sure the matrix notation is necessary.

However, based on your other post on this subject, I think you should make sure you are very familiar with LTI systems before you try to deal with non-linear systems. While nearly anything can be linearized around a small neighborhood and then solved with standard LTI methods, there are very complex issues with defining what "small-signal" means and how truly non-linear systems work. There are seldom easy answers for truly non-linear dynamic systems.

This text may help you with the basics you will need. Note that every good treatment of modern controls assumes you know about linear DEs and Laplace transforms. We switch into the s domain ASAP in the linear world, LOL.
I have taken a look at example 2 of what you sent as it most relates, and I have tried working that example myself which i did successfully without much effort. but when I do it on my case, it becomes a much complex task..

In the example for first-order differentials, i had to reverse the process as the source started from state-space equations to find the differentials, while I am doing the opposite. The steps i have taken are:

1) Laplace transform of the linear differential z', as it is only in terms of z output and x input.
##z' = -az +bx-c## turns into ##z_s = \frac{sbx_s -c}{s(s+a)}##
2) Solved that for Hs, which gives the output equation
3) Used the laplace transform of the output state space and brought in equation of step 2:
$$ Zs = cXs + dUs = \frac{sbU_s -c}{s(s+a)}$$
To avoid confusion between state variable and input, i have changed the input x from previous steps to U to keep the state space equation conventional.
From here I figured this would be a reasonable way to find the state variable. Is this a reasonable approach? Although I believe i should change the name of c on either sides as they are probably not equal.
The next steps would basically be reversing the steps of the image i attached from the source you sent, but it gives me a second order differential with X'' and V'' in the equation after the inverse laplace, and I don't know if any of it makes sense at this point.
1650149398863.png

If i can have deeper guidance that is more related to my specific problem it would really help out further
 
Last edited:

Similar threads

  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 12 ·
Replies
12
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
Replies
5
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 18 ·
Replies
18
Views
2K
Replies
1
Views
2K