How to Solve State Homogeneous Differential Equations Using MATLAB?

Click For Summary

Discussion Overview

The discussion revolves around solving state homogeneous differential equations using MATLAB, specifically focusing on the mathematical formulation and coding aspects. Participants explore various methods and approaches to derive the solution for the state vector X(t) given matrices A and B.

Discussion Character

  • Technical explanation
  • Mathematical reasoning
  • Homework-related

Main Points Raised

  • One participant requests MATLAB code for solving the state homogeneous differential equation Xdot(t) = AX(t) + BU(t), indicating they have values for A and B.
  • Another participant suggests searching for m-files on MATLAB's website or using Simulink for differential equations.
  • A different viewpoint proposes that since A and B are invertible, one could perform matrix algebra to isolate X(t), assuming the control input U is the zero vector to solve the homogeneous system first.
  • It is mentioned that the general solution for the elements can be expressed as x_i(t) = Constant_i * exp(lambda_i * t), where i ranges from 1 to N.
  • Another participant notes the need to solve the characteristic equation, which is solvable up to the fourth degree, and suggests referring to numerical methods for finding the roots lambda.

Areas of Agreement / Disagreement

Participants present multiple approaches and methods for solving the differential equation, indicating that there is no consensus on a single solution method. Various techniques are proposed, reflecting differing perspectives on the problem.

Contextual Notes

Some assumptions about the invertibility of matrices A and B are made, and the discussion includes references to the need for numerical methods for certain cases, which may not be fully resolved.

archanas4743
Messages
1
Reaction score
0
can anyone help me with MATLAB code for for solving a state homogeneous differential

X=state vector

Xdot(t)=AX(t)+BU(t) U is the control input

i have the values of A and B ,i need the solution for X(t)
 
Physics news on Phys.org
Welcome to PF;
can anyone help me with MATLAB code for for solving a state homogeneous differential
Probably - what have you tried?
 
you can search the m files on matworks, or use the differential equations simulink
 
A and B are invertibles so inv(A) and inv(B) exists, do the algebra of matrices to get X(t) in a side, but here d/dtX(t) exist, so you can solve the homogeneous system first by assuming that the control input is the zero vector, the general solution of elements are x_i(t)=Constant_i*exp(lamda_i*t), i=1,2,...N
 
you solve the characteristic equation which is exactly solvable up to 4th degree after you can refer to numerical methods to find the roots lamdas.
 

Similar threads

  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 5 ·
Replies
5
Views
4K