Hello everybody,
I am working with a very complex non-linear differential system. I would like to start to examine the stability of the solutions in the easy case of only 3 species and 22 parameters (3 differential equations). I called this system: Benesystem. I created the jacobian matrix and extracted the eigen values. I called these eigen.
Now I would like to create a plot showing the real parts and imaginary parts of each eigen values for the solutions of the system for each values of the 22 parameters. In other words, I want to examine how the parameters influence the eigenvalues and therefore the stability of the solutions. I am still learning how to use mathematica so I am having some hard time creating such a plot.
Thank you for your help!
Bene
Here is the code I am using.
Manipulate[ Module[ {soln, col1 = RGBColor[1, .47, 0], col2 = ColorData[“HTML”, “SlateBlue”], col3= ColorData[“HTML”, “Black”]}, Plot[Evaluate[{Re[eigen /. {#[[1]], #[[2]], #[[3]]}], Im[eigen /. {n1 = #[[1]], y = #[[2]], m = #[[3]]}] } &[ soln = Quiet@ Benesystem[{b1, a11, f11, f1, h1, g11, g1, k1, mm1, p1, p11, d1, e, r, fm11, fm1, hm1, gm11, gm1, km1, rm}, {species10, species20, species30}, tmax]]] , {t, 0, Min[tmax, Min[#[[1, 1, 2]] & /@ soln]]}, AxesLabel → TraditionalForm /@ {t, {Style[e1, col1], Style[e2, col2], Style[e3, col3]}}, PlotRange → All, AxesOrigin → {0, 0}, PlotStyle → {col1, col2, col3}, ImageSize → {500, 500}, ImagePadding → {{40, 10}, {10, 25}}] ], {{b1, 1, “b1”}, 0, 2, .01, ImageSize → Tiny, Appearance → “Labeled”}, {{a11, 1, “a11”}, 0, 1, .01, ImageSize → Tiny, Appearance → “Labeled”}, {{f11, 1, “f11”}, 0, 1, .01, ImageSize → Tiny, Appearance → “Labeled”}, {{f1, 1, “f1”}, 0, 1, .01, ImageSize → Tiny, Appearance → “Labeled”}, {{h1, 1, “h1”}, 0, 1, .01, ImageSize → Tiny, Appearance → “Labeled”}, {{g11, 1, “g11”}, 0, 1, .01, ImageSize → Tiny, Appearance → “Labeled”}, {{p1, 1, “p1”}, 0, 1, .01, ImageSize → Tiny, Appearance → “Labeled”}, {{p11, 1, “p11”}, 0.1, 1, .01, ImageSize → Tiny, Appearance → “Labeled”}, {{d1, 1, “d1”}, 0, 1, .01, ImageSize → Tiny, Appearance → “Labeled”}, {{g1, 1, “g1”}, 0, 1, .01, ImageSize → Tiny, Appearance → “Labeled”}, {{k1, 1, “k1”}, 0, 1, .01, ImageSize → Tiny, Appearance → “Labeled”}, {{mm1, 1, “mm1”}, 0, 1, .01, ImageSize → Tiny, Appearance → “Labeled”}, {{fm11, 1, “fm11”}, 0, 1, .01, ImageSize → Tiny, Appearance → “Labeled”}, {{fm1, 1, “fm1”}, 0, 1, .01, ImageSize → Tiny, Appearance → “Labeled”}, {{hm1, 1, “hm1”}, 0.1, 1, .01, ImageSize → Tiny, Appearance → “Labeled”}, {{gm1, 1, “gm1”}, 0, 1, .01, ImageSize → Tiny, Appearance → “Labeled”}, {{gm11, 1, “gm11”}, 0, 1, .01, ImageSize → Tiny, Appearance → “Labeled”}, {{km1, 1, “km1”}, 0, 1, .01, ImageSize → Tiny, Appearance → “Labeled”}, {{e, 1, “e”}, 0, 1, .01, ImageSize → Tiny, Appearance → “Labeled”}, {{r, 1, “r”}, 0, 1, .01, ImageSize → Tiny, Appearance → “Labeled”}, {{rm, 1, “rm”}, 0, 1, .01, ImageSize → Tiny, Appearance → “Labeled”}, Delimiter, “initial populations”, {{species10, 1, “species10”}, 0, 10, ImageSize → Tiny}, {{species20, 1, “species20”}, 0, 10, ImageSize → Tiny}, {{species30, 1, “species30”}, 0, 10, ImageSize → Tiny}, {{t, 1, “time”}, 0, 10, ImageSize → Tiny}, SaveDefinitions → True, ControlPlacement → Left]