682 Chapter 10
Transformed solution for U(x, s)
> U(x,s):=eval(U(x,s));
U(x∼,s):=
2se
−sx∼
1 −2s
2
+s
4
+
e
−x∼
s(−x∼−2 +x∼s
2
)
(1 +s)
2
(−1 +s)
2
(10.132)
Solution is the inverse Laplace of U(x, s)
> u(x,t):=invlaplace(U(x,s),s,t);
u(x∼,t):= Heaviside (t −x∼)(t −x∼) sinh(t −x∼) + e
−x∼
(x∼ cosh(t) −t sinh(t))
(10.133)
ANIMATION
> animate(u(x,t),x=0..12,t=0..5,thickness=3);
The preceding animation command shows the spatial-time amplitude distribution u(x, t) on the
string. The animation sequence here and in Figure 10.10 shows snapshots of the animation at
times t = 0, 1, 2, 3, 4, 5.
ANIMATION SEQUENCE
> u(x,0):=subs(t=0,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..12,thickness=10);
0.3
0.2
0.1
0
24681012
2
0.1
x~
Figure 10.10
EXAMPLE 10.7.5: (String with initial speed) We seek the wave amplitude u(x, t) for
transverse wave motion along a taut string over the semi-infinite interval I ={x |0 <x<∞}.
The left end of the string is held fixed. The string has an initial displacement distribution
f(x) = 0 and an initial speed distribution u
t
(x, 0) = g(x) given following. There are no
external forces acting upon the string, and there is no damping. The wave speed is c = 2.