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.

110 CHAPTER 3. LINEAR ODE MODELS<br />

3.1 First-Order Models<br />

The most general nth-order linear ODE can be written in the form<br />

a0(t) dn x(t)<br />

dt n<br />

+ a1(t) dn¡1 x(t)<br />

dt n¡1<br />

dx(t)<br />

+ ¢¢¢+ an¡1(t)<br />

dt + an(t) x(t) =h(t); (3.1)<br />

the equation being labeled as linear because each term on the left-hand side is<br />

linear, or of ¯rst order, in the dependent variable x. For the sake of de¯niteness,<br />

the independent variable has been taken to be the time t here, but could be a<br />

spatial variable. If h(t) = 0, the di®erential equation is said to be homogeneous,<br />

otherwise it is inhomogeneous.<br />

In the following two recipes, we look at two examples of inhomogeneous<br />

¯rst-order ODEs, the ¯rst involving constant coe±cients, the second containing<br />

variable coe±cients.<br />

3.1.1 How's Your Blood Pressure?<br />

Amid the pressure of great events, a general principle gives no help.<br />

Georg Hegel, German philosopher (1770{1831)<br />

On measuring your blood pressure, your doctor will give you two numbers.<br />

A normal blood pressure for humans is 120/80, the ¯rst number specifying<br />

the maximum (systolic) pressure (in units of mm of Hg) on the arterial walls,<br />

the second number the minimum (diastolic) pressure. The blood pressure is<br />

generated by the beating of the heart, its variation controlled by the aorta.<br />

The aorta is the large blood vessel into which the arterial blood °ows on<br />

leaving the heart. During the systolic phase of the heartbeat cycle, blood is<br />

pumped under pressure from the heart into one end of the aorta, whose walls<br />

then stretch in order to accommodate the blood. The diastolic phase then<br />

follows during which there is no °ow of blood into the aorta, its walls elastically<br />

contracting. The blood is then squeezed out of the aorta and around the body's<br />

circulatory system. The following recipe presents a simple model of the variation<br />

of blood pressure due to the beating heart and the aorta.<br />

The entry infolevel[dsolve] will provide some information about the<br />

dsolve command, the amount of information generally increasing as the integer<br />

(which can vary from 1 to 5) speci¯ed on the right of the colon is increased.<br />

> restart: infolevel[dsolve]:=2:<br />

Let V (t) be the volume of the aorta and p(t) the pressure within it at time t.<br />

Assuming that the aorta expands linearly with increasing p, thenV = V0 + Cp,<br />

where V0 and C are constants. The parameter C, called the compliance, isa<br />

measure of the stretchability of the aorta. Mentally di®erentiating this relation<br />

produces ode1 .<br />

> ode1:=diff(V(t),t)=C*diff(p(t),t);<br />

ode1 := d<br />

V (t) =C<br />

dt<br />

μ d<br />

dt p(t)

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

Saved successfully!

Ooh no, something went wrong!