Dynamical systems 329
which yields
To compute the eigenvalues, we need to solve det(J−λI) for the two roots of λ.
The results of this calculation are
λ1λ2type
(i) -0.1143 – 0.4940 i -0.1143 +0.4940 i stable spiral
(e) The Matlab code will produce the phase planes with the stable value of dt and
the number of oscillations pdisplayed in the title line.
The Matlab script for this problem is:
1function out=s10cp2(void)
2close all
3us=zeros(1,6); vs = zeros(1,6);
4for i = 1:6
5out = rk(i); %execute the program for the six cases
12 xlabel(‘u’), ylabel(‘v’), title(‘Steady states: x = 1, o = …
25 case 1
26 A = 0.5; B = 0.1; C = 0.2; %oscillatory
29 case 3
31 case 4