Higher order DE to State space

Click For Summary
SUMMARY

The discussion focuses on converting higher-order differential equations (DE) into state space format for use with the ODE45 solver in Matlab. The user initially describes the conversion of a second-order differential equation into a first-order state space format, exemplified by the equation d2x/dt2 + dx/dt - 1 = 0. The user seeks guidance on handling more complex equations, specifically d2z/dt2 + d2x/dt2 + dx/dt - 1 = 0, and how to implement this conversion in Matlab. The recommended methods for achieving this include Phase Canonical Forms of State Space Equation and State Space Equation Generation via Nested Integrals.

PREREQUISITES
  • Understanding of second-order differential equations
  • Familiarity with state space representation
  • Proficiency in Matlab programming
  • Knowledge of ODE45 solver functionality
NEXT STEPS
  • Learn how to implement Phase Canonical Forms of State Space Equation in Matlab
  • Explore State Space Equation Generation via Nested Integrals
  • Study the use of ODE45 for solving state space equations
  • Investigate additional methods for converting higher-order DEs to state space format
USEFUL FOR

Matlab users, engineers, and researchers working with dynamic systems who need to convert higher-order differential equations into state space format for simulation and analysis.

anirudh_s
Messages
1
Reaction score
0
Hey,

I've been trying to run a few simulations in Matlab using ODE45. This algorithm requires a function which gives the first order differential as an output i.e a state space format (Correct me if I'm wrong here).

If its a normal N order differential such as d2x/dt2 + dx/dt -1 =0 . dx/dt can be substituted as y and hence the differential equation becomes:

y(dot) = 1-y i.e. the required state space format.

Now comes the question , what do I do if the DE is something like
d2z/dt2 + d2x/dt2 +dx/dt -1=0 ? How Do I convert this to state space format ?

And more specifically , how do I code this as a function to use in ODE45 in Matlab ?

Thanks in advance!
 
Physics news on Phys.org
There are second order derivatives so you you will have two state variables. You then use one of following methods:

- Phase Canonical Forms of State Space Equation
- State Space Equation Generation via 'Nested Integrals'

There are other methods as well.
 

Similar threads

  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 12 ·
Replies
12
Views
2K
  • · Replies 65 ·
3
Replies
65
Views
9K
  • · Replies 2 ·
Replies
2
Views
2K