c) Direction Field

> ode1 := diff( x(t), t ) = -x(t) - 2*y(t) :

> ode2 := diff( y(t), t ) = x(t) - 4*y(t) :

> MODEL := [ ode1, ode2 ] ;

[Maple Math]

> VAR := { x(t), y(t) } ;

[Maple Math]

>

> DOMAIN := t = 0 .. 1 ;

[Maple Math]

> WINDOW := x = -3 .. 3,

> y = -3 .. 3 ;

[Maple Math]

>

> IC := [ [x(0)= 3,y(0)= 3],

> [x(0)=-3,y(0)=-3],

> [x(0)= 3,y(0)= 1.5],

> [x(0)=-3,y(0)=-1.5] ];

[Maple Math]

> PHASEplot := DEplot( MODEL, VAR, DOMAIN, WINDOW, IC, arrows = MEDIUM,

> title = `Direction Field & Straight-Line Solutions for #10` ):

> PHASEplot;

[Maple Plot]