Positive/Negative
>> [x,y]=meshgrid(-1:1/10:1,-1:1/10:1);
>> x = 5*x + 4*y;
>> y = 2*x + y;
>> quiver(x,y,u,v,1)
??? Undefined function or variable ‘u’.
>> [x,y]=meshgrid(-1:1/10:1,-1:1/10:1);
>> u = 5*x + 4*y;
>> v = 2*x + y;
>> quiver(x,y,u,v,1)

The above graph shows the exact slope of the field at any given point. You can see in this graph that at any point the slope is either in the negative direction or the positive direction given the positive and negative eigen values.
>> [x,y]=dsolve(‘Dx=5*x+4*y’,'Dy=2*x+y’,'t’)
x =
C10*exp(3*t + 2*3^(1/2)*t) + C11*exp(3*t – 2*3^(1/2)*t) + 3^(1/2)*C10*exp(3*t + 2*3^(1/2)*t) – 3^(1/2)*C11*exp(3*t – 2*3^(1/2)*t)
y =
C10*exp(3*t + 2*3^(1/2)*t) + C11*exp(3*t – 2*3^(1/2)*t)
I used matlab to find the exact solution (shown above) in relation to the variable “t” We had problems using matlab in the first place because we didn’t know how to input multiple variables, however when we figured it out, matlab was the biggest adversary we could have used for finding exact solutions for a system of differential equations.
Negative/Negative
>> [x,y]=meshgrid(-1:1/10:1,-1:1/10:1);
>> u = -3*x + 2*y;
>> v = 4*x – 3*y;
>> quiver(x,y,u,v,1)

The above graph shows the exact slope of the field at any given point. You can see in this graph that at any point the slope is in the negative direction given the two negative eigen values.
>> [x,y]=dsolve(‘Dx=-3*x+2*y’,'Dy=4*x-3*y’,'t’)
x =
(2^(1/2)*C6*exp(2*2^(1/2)*t – 3*t))/2 – (2^(1/2)*C7)/(2*exp(3*t + 2*2^(1/2)*t))
y =
C6*exp(2*2^(1/2)*t – 3*t) + C7/exp(3*t + 2*2^(1/2)*t)
Positive/Positive
>> [x,y]=meshgrid(-1:1/10:1,-1:1/10:1);
>> u = 2*x + y;
>> v = x + 3*y;
>> quiver(x,y,u,v,1)

The above graph shows the exact slope of the field at any given point. You can see in this graph that at any point the slope is in the positive direction given the two positive eigen values.
>> [x,y]=dsolve(‘Dx=2*x+y’,'Dy=x+3*y’,'t’)
x =
(5^(1/2)*C4*exp((5*t)/2 + (5^(1/2)*t)/2))/2 – (C5*exp((5*t)/2 – (5^(1/2)*t)/2))/2 – (C4*exp((5*t)/2 + (5^(1/2)*t)/2))/2 – (5^(1/2)*C5*exp((5*t)/2 – (5^(1/2)*t)/2))/2
y =
C4*exp((5*t)/2 + (5^(1/2)*t)/2) + C5*exp((5*t)/2 – (5^(1/2)*t)/2)
Using matlab was a great asset. The equations in matlab showed the equations as they were and the graphs and field lines showed great visuals for those equations. Together, they both aid in the learning of this material.