16.12.2012 Views

Computer Algebra Recipes

Computer Algebra Recipes

Computer Algebra Recipes

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

4.1. FIRST-ORDER MODELS 157<br />

the two interacting species by the following pair of coupled nonlinear equations:<br />

Nk _ = rk (bk ¡ Nk ¡ ¯kc Nc) Nk=bk; Nc _ = rc (bc ¡ Nc ¡ ¯ck Nk) Nc=bc; (4.3)<br />

with the interaction parameters experimentally determined to be ¯kc =0:439<br />

and ¯ck =3:15. This set of nonlinear ODEs cannot be solved analytically, but<br />

the behavior of the two competing yeast populations can easily be determined<br />

by making a phase-plane portrait of Nk versus Nc.<br />

Heather unassigns k so that it can be used as a subscript to label the kephir<br />

population and sets the infolevel[dsolve] command to zero.<br />

> unassign('k'): infolevel[dsolve]:=0:<br />

The values determined by Gause for the coe±cients in (4.3) are entered,<br />

> r[k]:=0.0607: b[k]:=5.8: beta[kc]:=0.439: r[c]:=0.2183:<br />

b[c]:=13.0: beta[ck]:=3.15:<br />

as well as the system (sys) ofequations.<br />

> sys:=diff(N[k](t),t)=r[k]*(b[k]-N[k]-beta[kc]*N[c])*N[k]/b[k],<br />

diff(N[c](t),t)=r[c]*(b[c]-N[c]-beta[ck]*N[k])*N[c]/b[c];<br />

sys := d<br />

dt Nk(t) =0:01046551724 (5:8 ¡ Nk(t) ¡ 0:439 Nc(t)) Nk(t);<br />

d<br />

dt Nc(t) =0:01679230769 (13:0 ¡ Nc(t) ¡ 3:15 Nk(t)) Nc(t)<br />

Heather takes Nk(0)=Nc(0)=0:5 inthephaseportrait command,<br />

> phaseportrait([sys],[N[k](t),N[c](t)],t=0..250,<br />

[[N[k](0)=0.5,N[c](0)=0.5]],stepsize=0.1,linecolor=blue);<br />

N[c]<br />

8<br />

6<br />

4<br />

2<br />

0<br />

1 2 4 5<br />

N[k]<br />

Figure 4.3: Phase portrait showing competition between kephir and cerevisiae.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!