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.

100 CHAPTER 2. PHASE-PLANE ANALYSIS<br />

PROBLEMS:<br />

Problem 2-27: Harvesting of ¯sh<br />

In suitably normalized units, the e®ect of ¯shing on the normalized population<br />

number x of a single species of ¯sh with a limited food supply can be described<br />

by the following nonlinear ODE,<br />

_x = x (1 ¡ x) ¡ Hx=(a + x);<br />

where H is the harvesting coe±cient and a is a parameter. For H =0,the<br />

remaining ODE is known as the logistic equation. Show that this equation has<br />

an analytic solution and plot the result for a =0:2 andx(0) = 0:1. Discuss the<br />

behavior of the solution.<br />

Then, using the ¯rst-principles RK4 method with step size h =0:1, numerically<br />

investigate this equation as the harvesting coe±cient H is increased from<br />

zero. Plot your results and discuss the change in behavior as H increases.<br />

Problem 2-28: Bucky the beaver<br />

Bucky the beaver attempts to swim across a river by steadily aiming at a target<br />

point directly across the river. The river is 1 km wide and has a speed of 1<br />

km/hr, while Bucky's speed is 2 km/hr. In Cartesian coordinates, Bucky is<br />

initially at (x =1;y = 0), while the target point is at (0; 0). Bucky is initially<br />

swept an in¯nitesimal distance downstream but recovers almost instantly to<br />

continue his swimming motion. His equations of motion are<br />

2 x<br />

2 y<br />

_x = ¡ p ; _y =1¡ p<br />

x2 + y2 x2 + y2 :<br />

(a) Justify the structure of the equations.<br />

(b) Using the ¯rst-principles RK4 method with h =0:01, determine how long<br />

it takes Bucky to reach the target point.<br />

(c) Determine the analytic solution y(x) for Bucky's path across the river.<br />

(d) Plot the analytic and numerical solutions together for Bucky's path.<br />

Problem 2-29: Chemical reaction<br />

Consider the irreversible chemical reaction<br />

2K2Cr2O7 +2H2O+3S! 4KOH + 2Cr2O3 +3SO2, with initially N1 = 2000 molecules of potassium dichromate (K 2Cr 2O 7), N2 =<br />

2000 molecules of water (H 2O), and N3 = 3000 atoms of sulphur (S). The<br />

number X of potassium hydroxide (KOH) molecules at time t sisgivenbythe<br />

rate equation<br />

_X = k (2 N1 ¡ X) 2 (2 N2 ¡ X) 2 (4 N3=3 ¡ X) 3 ;<br />

with k =1:64 £ 10 ¡20 s ¡1 and X(0) = 0. Determine X(t) byusingthe¯rstprinciples<br />

RK4 method with h =0:001. How many KOH molecules are present<br />

at t =0:1 s?att =0:2 s?

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

Saved successfully!

Ooh no, something went wrong!