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.

3.3. SPECIAL FUNCTION MODELS 131<br />

3.3.1 Jennifer Introduces a Special Family<br />

\That's a great deal to make one word mean," Alice said in a<br />

thoughtful tone. \When I make a word do a lot of work like that,"<br />

said Humpty Dumpty, \I always pay it extra."<br />

Lewis Carroll, Through the Looking Glass, 1872<br />

Although we shall not emulate Humpty Dumpty and pay the word \special"<br />

extra for making it work so hard in this section, we would tell Alice, if she were<br />

here, that the phrase \special" function does encompass a great many functions<br />

with their associated mathematical properties. The Handbook of Mathematical<br />

Functions by Abramowitz and Stegun [AS72], for example, contains over<br />

1000 pages dealing with the properties of special functions. This handbook,<br />

produced by the U.S. National Bureau of Standards, is one of the standard<br />

reference books for these functions and has been reprinted many times since it<br />

was ¯rst issued.<br />

We have asked our MIT mathematician friend Jennifer to introduce two of<br />

the more prominent members of this special family of functions.<br />

Letting the letter L stand for ¸, Jennifer forms a functional operator SL for<br />

generating speci¯c cases of the Sturm{Liouville ODE when the forms of p, q,<br />

w, andLare supplied as arguments.<br />

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

> SL:=(p,q,w,L)->diff(p*diff(y(x),x),x)-q*y(x)=-L*w*y(x);<br />

μ μ μ<br />

d d<br />

SL := (p; q; w; L) ! p<br />

dx dx y(x)<br />

<br />

¡ q y(x) =¡Lwy(x)<br />

A second functional operator sol is introduced to provide the general analytic<br />

solution y(x) of a speci¯ed ODE.<br />

> sol:=ode->dsolve(ode,y(x)):<br />

Now Jennifer will make two choices for p, q, w, andLthat lead to probably<br />

the best-known two members of the family of special functions. Taking p = x,<br />

q = ¡x, w =1=x, andL = ¡m2 as arguments in the Sturm{Liouville operator<br />

produces ode1 .<br />

> ode1:=SL(x,-x,1/x,-m^2);<br />

μ<br />

d<br />

ode1 :=<br />

dx y(x)<br />

μ <br />

2 d<br />

+ x y(x) + x y(x) =<br />

dx2 m2 y(x)<br />

x<br />

To illustrate that Maple is able to identify this ODE, Jennifer loads the DEtools<br />

package and applies the odeadvisor command to ode1 .<br />

> with(DEtools): odeadvisor(ode1);<br />

[ Bessel]<br />

So, ode1 is Bessel's di®erential equation, whose general solution y(x)<br />

> sol(ode1);<br />

y(x) = C1 BesselJ(m; x)+ C2 BesselY(m; x)

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

Saved successfully!

Ooh no, something went wrong!