Homogeneous ODE system, how to solve using WOLFRAM

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
4 replies · 3K views
kougou
Messages
80
Reaction score
0
Hi.

If I have a homogeneous ODE with constant coefficient system in the form of 2x2 matrix:

X'=A X, A is a 2x2 matrix.

How do I solve this using wolfram or matlab?
 
Physics news on Phys.org
kougou said:
Hi.

If I have a homogeneous ODE with constant coefficient system in the form of 2x2 matrix:

X'=A X, A is a 2x2 matrix.

How do I solve this using wolfram or matlab?

What is the system explicitly?
 
Dustinsfl said:
What is the system explicitly?

Say

X'= [2, 4] X.
[1, 1]

A with with 2,4 in the top rows, and 1,1 in the bottom rows.

How do I use wolfram or MATLAB to solve this system?
 
kougou said:
Say

X'= [2, 4] X.
[1, 1]

A with with 2,4 in the top rows, and 1,1 in the bottom rows.

How do I use wolfram or MATLAB to solve this system?

We can re-write the system as
\begin{alignat*}{5}
x' & = & 2x+4y & = & 0\\
y' & = & x + y & = & 0
\end{alignat*}

DSolve[{x'[t]==2x[t]+4y[t],y'[t]==x[t]+y[t], Initial Conditions here},{x[t],y[t]},t]
 
kougou said:
Hi.

If I have a homogeneous ODE with constant coefficient system in the form of 2x2 matrix:

X'=A X, A is a 2x2 matrix.

How do I solve this using wolfram or matlab?

I do not have access to Matlab, so I don't know the answer to the following: does Matlab have a exp(A) function for a matrix A? If so, we have X(t) = X(0) exp(A*t).