Dynamical System Analysis using Mathematica

Click For Summary

Discussion Overview

The discussion focuses on the analysis of a dynamical system using Mathematica, specifically addressing the process of finding equilibrium points from a set of autonomous ordinary differential equations (ODEs) and subsequently calculating the Jacobian matrix and its eigenvalues.

Discussion Character

  • Technical explanation
  • Mathematical reasoning

Main Points Raised

  • One participant describes their approach to finding equilibrium points using NSolve on two autonomous ODEs and obtaining five solutions.
  • The same participant constructs a Jacobian matrix in terms of the variables x and y and seeks assistance in substituting the equilibrium values into this matrix to compute eigenvalues.
  • Another participant explains how to extract values from the NSolve output, providing a method to access the solution values for substitution.
  • A further suggestion is made to apply a mapping technique to substitute values into a matrix, demonstrating this with a sample matrix and solutions.
  • One participant acknowledges the usefulness of the suggested method and notes they used a similar approach.

Areas of Agreement / Disagreement

Participants generally agree on the methods for extracting solutions and substituting them into matrices, but the discussion does not resolve the overall approach to calculating eigenvalues from the Jacobian matrix.

Contextual Notes

There are potential limitations regarding the clarity of the Jacobian matrix construction and the specific form of the ODEs, which are not fully detailed in the discussion.

Zhamie
Messages
4
Reaction score
0
Hello there,

Let me start from the beginning. I have dynamical system described by two autonomous ODEs (eqn1, eqn2). To find equilibrium points I used NSolve[{eqn1 == 0, eqn2 == 0}, {x, y}] which gave me 5 solutions in a form {{x->2, y->0},{...},...}. I also constructed Jacobian matrix using M={{D[eqn1,x], D[eqn1,y]},{D[eqn2,x],D[eqn2,x]}} which is written with x and y. Next I need to calculate this Jacobian matrix substituting solutions from NSolve function to find its eigenvalues. So I should have 5 matrices with corresponding eigenvalues. How can I achieve this? The problem is to substitute values from the solution to the matrix.

I will appreciate any help.
 
Engineering news on Phys.org
I understood how to extract NSolve output. For this purpose you need to write soln=NSolve[...], then to access the solution values of this function x /. soln[[1]], y/.soln[[1]] (this corresponds to the 1st solution)
 
So next step will be to substitute those values to the matrix written in terms of x and y. Any ideas?
 
Can you apply this method to your problem?

In[1]:= mat={{x,y},{x+y+1,2x-3}};
sols={{x->1,y->3},{x->2,y->4}};
Map[mat/.#&,sols]

Out[3]=
{{{1, 3},
{5, -1}},

{{2, 4},
{7, 1}}}
 
Bill Simpson said:
Can you apply this method to your problem?

In[1]:= mat={{x,y},{x+y+1,2x-3}};
sols={{x->1,y->3},{x->2,y->4}};
Map[mat/.#&,sols]

Out[3]=
{{{1, 3},
{5, -1}},

{{2, 4},
{7, 1}}}

Thank you. I used quite similar way of doing this.
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 14 ·
Replies
14
Views
4K
  • · Replies 3 ·
Replies
3
Views
6K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 1 ·
Replies
1
Views
3K
Replies
3
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K