Laplace Transform Methods for Partial Diff erential Equations 659
Solution is the inverse Laplace of U(x, s)
> u(x,t):=invlaplace(U(x,s),s,t);
u(x∼,t):=
e
−
25
2
x∼
2
t
√
t
(10.54)
ANIMATION
> animate(u(x,t),x=0..1,t=0..5,thickness=3);
The preceding animation command shows the spatial-time temperature distribution u(x, t) in
the rod. The animation sequence here and in Figure 10.4 shows snapshots of the animation at
times t = 1/5, 1, 2, 3, 4, 5.
ANIMATION SEQUENCE
>u(x,0):=subs(t=1/5,u(x,t)):u(x,1):=subs(t=1,u(x,t)):
> u(x,2):=subs(t=2,u(x,t)):u(x,3):=subs(t=3,u(x,t)):
> u(x,4):=subs(t=4,u(x,t)):u(x,5):=subs(t=5,u(x,t)):
> plot({u(x,0),u(x,1),u(x,2),u(x,3),u(x,4),u(x,5)},x=0..10,thickness=10);
x~
0 0.2 0.4 0.6 0.8 1
0
0.5
1.0
1.5
2.0
Figure 10.4
EXAMPLE 10.5.6: (Input heat flux) We seek the temperature distribution u(x, t) in a thin rod
over the semi-infinite interval I ={x |0 <x<∞} whose lateral surface is insulated. The left
end of the rod has an input heat flux q(t) given following, and the initial temperature
distribution is 0. There is no internal heat source in the system, and the thermal diffusivity is
k = 1/20. We want to solve this problem using convolution methods.
SOLUTION: The diffusion partial differential equation is
∂
∂t
u(x, t) = k
∂
2
∂x
2
u(x, t)