Lotka-Volterra Model

sm311o_8d.mws,1-30-98,wdj

> restart;
with(DEtools):
with(plots):

The Lotka-Volterra Model is the system

x'=(a-by)x, y'=(cx-d)y.
In this worksheet we computer some examples.

> a:=1;b:=1;c:=1;d:=1;

[Maple Math]

[Maple Math]

[Maple Math]

[Maple Math]

> sys:=diff(x(t),t)=(a-b*y(t))*x(t),diff(y(t),t)=(c*x(t)-d)*y(t);
ic:=x(0)=1.2,y(0)=1;

[Maple Math]

[Maple Math]

> phaseportrait([sys],[x(t),y(t)],t=0..3,[[ic]],scene=[x(t),y(t)],stepsize=.05,x=0..2,y=0..2);

[Maple Plot]

The differential equation governing the phase portrait in the x-y plane is

> de:=diff(y(x),x)=(c*x-d)*y(x)/((a-b*y(x))*x);

[Maple Math]

> soln:=dsolve({de,y(1.2)=1},y(x)):
y0:=s->subs(x=s,rhs(soln)): y0(x);

[Maple Math]

The phaseportrait command works better because the Lambert W function does not capture all of the curve in the phase portrait.

> plot(y0(x),x=.01..2,y=0..2);

[Maple Plot]