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.

168 CHAPTER 4. NONLINEAR ODE MODELS<br />

4.2.2 Oh What Sounds We Hear!<br />

A man falls in love through his eyes, a woman through her ears.<br />

Woodrow Wyatt, British journalist, To the Point,\The Ears Have It," 1981<br />

Wyattarguesthatwhatissaidtoawomanbyaman,andwhatshebelieves<br />

about his status, is usually more important than the super¯ciality of good looks.<br />

At the end of the nineteenth century, the famous German scientist Heinrich<br />

Helmholtz knew that the ear perceives frequencies that are not present in the<br />

incident acoustic waves. He attributed this to an asymmetric nonlinear response<br />

of the eardrum's tympanic membrane and developed a simple mechanical model<br />

for the eardrum's vibrations.<br />

In the present century, a nervous young mathematics major by the name of<br />

Mike has an hour or so to fret over his upcoming date with Vectoria. Why is<br />

Mike nervous? This is the night that he plans to reveal his serious intentions for<br />

her hand, and he is worried about possible rejection. To calm him down, let's<br />

try to take his mind o® Vectoria by asking him to reproduce Helmholtz's derivation.<br />

Helmholtz's model involves applying Newton's second law to generate a<br />

phenomenological nonlinear ODE describing the one-dimensional displacement<br />

x(t) of the freely vibrating eardrum about the equilibrium position x =0.<br />

Reluctantly acquiescing to our request, Mike begins by loading the plots<br />

library package, and then formally Taylor expanding the restoring force per<br />

unit mass, F (x), about x = 0 out to third order in x.<br />

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

> Force:=taylor(F(x),x=0,3);<br />

Force := F (0) + D(F )(0) x + 1<br />

2 (D(2) )(F )(0) x2 +O(x3 )<br />

The coe±cients D(F )(0) and D (2) (F )(0) in the above output stand for the ¯rst<br />

and second derivatives of F with respect to x, evaluated at x = 0, respectively.<br />

Mike then assumes that the displacement x is su±ciently small that only terms<br />

to second order in x have to be retained. So he removes the O(x3 )term.<br />

> Force:=convert(Force,polynom);<br />

Force := F (0) + D(F )(0) x + 1<br />

2 (D(2) )(F )(0) x2 Why keep the second-order term? The term that is linear in x corresponds to<br />

Hooke's law, while the quadratic term is the ¯rst nonlinear correction to Hooke's<br />

law and is responsible for the asymmetric response noted by Helmholtz. As the<br />

eardrum vibrates about the equilibrium position x = 0, the linear (x) termin<br />

the force changes sign with x, but the quadratic (x2 ) term does not change sign.<br />

In equilibrium the restoring force must vanish, so Mike sets F (0) = 0. He<br />

also makes the symbolic substitutions D(F )(0) = ¡! 2 0 and D(2) (F )(0) = ¡2 ¯,<br />

> Force:=subs(fF(0)=0,D(F)(0)=-omega[0]^2,(D@@2)(F)(0)=<br />

-2*betag,%);<br />

Force := ¡!0 2 x ¡ ¯x 2

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

Saved successfully!

Ooh no, something went wrong!