16.12.2012 Views

Computer Algebra Recipes

Computer Algebra Recipes

Computer Algebra Recipes

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

1.2. THREE-DIMENSIONAL AUTONOMOUS SYSTEMS 41<br />

of X, Y , Z are<br />

_X = k1 AY ¡ k2 XY + k3 AX ¡ k4 X 2 ;<br />

_Y = ¡k1 AY ¡ k2 XY + hk5 Z;<br />

_Z =2k3 AX ¡ k5 Z:<br />

(1.14)<br />

In writing down equations (1.14), use has been made of the following empirical<br />

rule: When two substances react to produce a third, the reaction rate is proportional<br />

to the product of the concentrations of the two substances. Thus, for<br />

example, the structure of the _ X equation can be easily understood. In the ¯rst<br />

chemical reaction, the rate of producing X is +k1 AY. In the second reaction,<br />

there is a decrease in X, the rate contribution being ¡k2 XY. The third reaction<br />

provides a positive contribution +k3 AX. Finally, noting that 2 X in the<br />

fourth reaction is treated as X + X, this reaction provides a rate decrease given<br />

by ¡k4 X 2 . The other rate equations may be similarly understood. The factor<br />

of 2 in the _ Z equation appears because in the third reaction, two of Z appear<br />

for each net (2 X ¡ X) oneofX.<br />

The nonlinear rate equations (1.14) can be converted into a normalized<br />

form that reduces the number of parameters. Introducing a normalized time<br />

¿ =(k1A) t and concentrations<br />

x =(k2X)=(k1 A); y =(k2Y )=(k3 A); z =(k2k5 Z)=(2 k1 k3 A 2 );<br />

and positive parameters,<br />

² = k1=k3; p =(k1A)=k5; q =(k1k4)=(k2 k3);<br />

the Oregonator equations reduce to<br />

² _x(¿) =x + y ¡ qx 2 ¡ xy; _y(¿) =¡y +2hz¡ xy; p _z(¿) =x ¡ z:<br />

As an illustrative example, we will look at the onset of oscillations in the<br />

Oregonator model for ² =0:03, p =2,q =0:006, h =0:75 and initial (normalized)<br />

concentrations x(0) = 1, y(0) = 1, and z(0) = 20.<br />

After loading the plots package,<br />

> restart: with(plots):<br />

the three governing di®erential equations are entered,<br />

> de1:=epsilon*diff(x(t),t)=x(t)+y(t)-q*x(t)^2-x(t)*y(t);<br />

μ <br />

d<br />

de1 := ² x (t) = x(t)+y(t) ¡ q x (t)<br />

dt 2 ¡ x(t) y(t)<br />

> de2:=diff(y(t),t)=-y(t)+2*h*z(t)-x(t)*y(t);<br />

de2 := d<br />

y(t) =¡y(t)+2h z(t) ¡ x (t) y(t)<br />

dt<br />

> de3:=p*diff(z(t),t)=x(t)-z(t);<br />

μ<br />

d<br />

de3 := p<br />

dt z(t)<br />

<br />

= x(t) ¡ z(t)

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

Saved successfully!

Ooh no, something went wrong!