Chapter3 2e
Chapter3 2e
Chapter3 2e
doc
Example 3.2-1
u (x ,t)
0 .1 u (x ,0 ) = f(x ) 3 1
x 0 x
f ( x ) 10 3
3(1 x ) 1
x 1
0 1 x 20 3
Figure 3.2-2 shows the initial displacement u(x,t) of a string stretched along the x-axis between x
= 0 and x = 1. The string is free to vibrate in a fixed plane through the x-axis. Determine the
subsequent motion of the string if it is released from rest, given that c = 1/.
Solution
The equation that describes the string motion is the one-dimensional wave equation
2u 2 u
2
= c 0 < x < 1, t > 0 (3.2-1)
t 2 x 2
u
u(x,0) = f(x) and (x,0) = 0, for 0 x 1
t
u(x,t) =
n 1
sin(nx)[ bn cos(nt) + bn* sin(nt)]
where
cn 2 L nx
n =
L
=n bn* =
cn
0
g ( x ) sin(
L
)dx = 0
and
2 L nx 1
bn =
L 0
f ( x ) sin(
L
)dx = 2 f ( x ) sin( nx )dx
0
41
491422594.doc
1/ 3 3 1 3
bn = 2 x sin(nx )dx + 2 (1 x ) sin( nx )dx
0 10 1 / 3 20
1/ 3
The expression 0 x sin( nx )dx can be integrated by part
Let u = x du = dx
1
dv = sin(nx) dx v = cos(nx)
n
1/ 3 x 1 1/ 3
x sin( nx )dx = cos(nx )dx
1/ 3
cos( nx ) 0 +
0 n n 0
n
3 (1 / 3) cos( ) 3 1 n 1 3
bn = 3 + 2 sin( ) + 2 1 / 3 (1 x ) sin( nx )dx
5 5 ( n ) 3 20
n
n n
cos 3 sin 1
bn = 3 + 3 + 0.3 1 / 3 sin( nx )dx 0.3
5
5n ( n )
2
1
1/ 3
x sin( nx )dx
n n
cos 3 sin 0.3 0.3 x 0.3
bn = 3 + 5 3
1
cos(nx ) 1 / 3 +
1
cos( nx ) 1 / 3
n n ( n )2
5n ( n ) 2
1
sin( nx ) 1 / 3
n n
cos 3 sin 0.3 0.3 n
bn = 3 + 5 3 cos(n ) + cos( )
n n 3
5n ( n ) 2
0.3 0.3 n 0. 3 n
+ cos(n ) cos + 2 sin
n 3n 3 ( n ) 3
n n
cos 3 sin 0.3 n 0.3 n 0. 3
bn = 3 + 5 3 + cos( ) cos +
n 3 3n 3 ( n ) 2
5n ( n ) 2
n
sin
3
42
491422594.doc
n n
cos 3 sin 0.2 n 0.3 n
bn = 3 + 5 3 + cos( ) + 2 sin
n 3 ( n ) 3
5n ( n ) 2
n
0.6 n 0.3 n 0.9 n 0.9 sin
bn = 2 sin + 2 sin = 2 sin = 3
( n ) 3 ( n ) 3 ( n ) 3 2
2
n
n
0.9
sin
u(x,t) =
n 1
bn sin(nx) cos(nt) =
2
n 1
3 sin(nx) cos(nt)
n2
0 0 0
u
u
-0.1 -0.1 -0.1
0 0.5 1 0 0.5 1 0 0.5 1
0.1 t=0.00 0.1 t=0.50 0.1 t=1.00
0 0 0
u
0 0 0
u
43
491422594.doc
__________ Table 3.2-1 Matlab program to plot u(x,t) at various time ___________
44