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.

6.2. SEMI-INFINITE AND INFINITE DOMAINS 263<br />

p<br />

2 T0<br />

eq := F (t) =<br />

s p ¼ ¡ e(¡ds2 t) p 2 T0<br />

s p ¼<br />

The Fourier (inverse) sine transform of the rhs of eq with respect to s is taken,<br />

> T:=fouriersin(rhs(eq),s,x);<br />

μ<br />

x<br />

T := T0 ¡ T0 erf<br />

2 p <br />

dt<br />

yielding the temperature T expressed in terms of the error function. Now T is<br />

evaluated with the given parameter values (d=100, T0 =100) and simpli¯ed.<br />

> T:=simplify(eval(T,fd=100,T0=100g));<br />

μ<br />

x<br />

T := 100 ¡ 100 erf<br />

20 p <br />

t<br />

Choosing the spatial range to be x = 0 to 400 cm, Vectoria animates T over<br />

the time interval t = 0 to 150 seconds, 50 frames being taken.<br />

> animate(plot,[T,x=0..400],t=0..150,frames=50,thickness=2);<br />

On running the animation, Vectoria is pleased with the \sweetness" of the whole<br />

computer algebra derivation.<br />

Looking at her watch, she realizes that Mike will be picking her up at 5:00<br />

p.m., so she had better ¯nish the last problem on Professor Legree's assignment<br />

before he shows up. She will enjoy her dinner at Gira®es on the waterfront more<br />

if she has ¯nished her work.<br />

PROBLEMS:<br />

Problem 6-9: Fourier sine transform<br />

Calculate the Fourier sine transform of each f(x) belowandplottheanswers:<br />

(a) f(x) =e ¡3 jxj ; (b) f(x) =cos(2x); (c) f(x) =sin(x) 2 ;<br />

(d) f(x) =x=(x2 +1).<br />

Problem 6-10: A di®erent T (x; 0)<br />

Use the Fourier sine transform approach to solve the heat conduction problem<br />

for d =10cm2 /s in a semi-in¯nite rod (0 · x ·1) that has the boundary<br />

condition T (0;t) = 0 and initial interior temperature distribution T (x; 0) =<br />

10 x=(x2 + 1). Animate the plot.<br />

6.2.2 Assignment Complete!<br />

It is not knowledge, but the act of learning, not possession, but the<br />

act of getting there, which grants the greatest enjoyment.<br />

Carl Friedrich Gauss, German mathematician (1777{1855)<br />

The last problem on Vectoria's assignment is similar to the fourth one, but involves<br />

a di®erent boundary condition and initial condition. It is now supposed<br />

that the semi-in¯nite rod (0 · x ·1) has an initial temperature distribution

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

Saved successfully!

Ooh no, something went wrong!