Wave Equation: Kalpana Mahalingam March 2020
Wave Equation: Kalpana Mahalingam March 2020
Wave Equation: Kalpana Mahalingam March 2020
Kalpana Mahalingam
March 2020
Consider the wave equation : Let u(x, t) denote the vertical dis-
placement of a string from the x axis at position x and time t. The
string has length l. Its left and right hand ends are held fixed at height
zero and we are told its initial configuration and speed. For notational
convenience, choose a coordinate system so that the left hand end of
the string is at x = 0 and the right hand end of the string is at x = l.
We assume that the string is undergoing small amplitude transverse
vibrations so that u(x, t) obeys the wave equation
∂ 2u 2
2∂ u
=c , 0 < x < l, t > 0 (1)
∂t2 ∂x2
• Boundary conditions : The condition that the left and the
right end of the string is held at height 0, is given by
u(0, t) = u(l, t) = 0, t > 0
1
K.Mahalingam Wave Equation
Methods :
1. Separation of Variables
• We find constants ai such that the boundary and the initial con-
ditions are satisfied.
Solution :
Step 1 : Finding a general solution : Let u(x, t) = F (x)G(t) be
a solution of the wave equation (4). Then, it satisfies the equation and
we have,
00 00
F (x)G (t) = c2 G(t)F (x)
00 00
F (x) 1 G (t)
=⇒ = 2
F (x) c G(t)
Note that the left hand side is independent of t and the right hand
side is independent of x which means that both ratios are equal to a
K.Mahalingam Wave Equation
F (0) = A2 = 0
F (l) = A1 l + A − 2 = 0
which implies that both A1 and A2 are zero in this case and hence
u(x, t) = 0 which is trivial and hence we omit the value of u(x, t)
when k = 0.
• If k 6= 0, then,
√ √ √ √
kx − kx c kt −c kt
u(x, t) = (A1 e + A2 e )(A3 e + A4 e )
√ √
kx − kx
with F (x) = A1 e + A2 e and applying the boundary con-
ditions we get,
F (0) = A1 + A2 = 0, =⇒ A1 = −A2
√ √
kl − kl
F (l) = A1 e + A2 e =0
Since A1 = −A2 , the above equation becomes,
√ √
A1 (e kl
− e− kl
)=0
Since k 6= 0, we have
√ √ nπi n2 π 2
2 kl = 2nπi ⇔ k = ⇔k=− 2
l l
K.Mahalingam Wave Equation
2 2
Thus, we have A1 = −A2 and k = − n l2π . SUbstituting these
values we obtain,
nπi nπi cnπi cnπi
u(x, t) = F (x)G(t) = A1 (e l x − e− l x )(A3 e l t + A4 e− l t )
nπ h cnπ cnπ i
= 2iA1 sin x (A3 +A4 ) cos t +i(A3 −A4 ) sin t
l l l
nπ h cnπ cnπ i
= sin x an cos t + bn sin t
l l l
where, an = 2iA1 (A3 + A4 ) and bn = 2A1 (A4 − A3 )
∞
X cnπ nπ
g(x) = ut (x, 0) = Bn∗ sin x (3)
n=1
l l
K.Mahalingam Wave Equation
We choose Bn and B∗n such that both u(x, 0) = f (x) and ut (x, 0) =
g(x) (Equations (2) and (3)) satisfy the Fourier sine series. (Refer
Example 17, Sturm-Liouville lecture notes). Hence,
Z l
2 l
Z
1 nπ nπ
Bn = f (x) sin x dx = f (x) sin x dx
|| sin nπ x ||2 0 l l 0 l
l
where, Z l
nπ
2 nπ l
2
|| sin x || = sin x dx =
l 0 l 2
Similarly,
Z l
cnπ ∗ 1 nπ
Bn = f (x) sin x dx
l nπ
|| sin l x ||2 0 l
which implies, Z l
∗ 2 nπ
B = g(x) sin x dx
cnπ 0 l
Step 5 : General Solution
We now have the general solution of the wave equation (4) satisfy-
ing both the initial as well boundary conditions using separation of
variables method.
X∞ nπ h cnπ cnπ i
∗
u(x, t) = sin x Bn cos t + Bn sin t
n=1
l l l
with Z l
2 nπ
Bn = f (x) sin x dx
l 0 l
and Z l
2 nπ
Bn∗ = g(x) sin x dx
cnπ 0 l
K.Mahalingam Wave Equation
with Z l
2 nπ
Bn = f (x) sin x dx
l 0 l
Example 1 Solve
∂ 2u 2
2∂ u
=c for 0 < x < 1, t > 0
∂t2 ∂x2
such that,
u(0, t) = u(1, t) = 0, for t > 0
u(x, 0) = x(1 − x), for 0 < x < 1
ut (x, 0) = 0, for 0 < x < 1
Solution : Note that, l = 1, f (x) = x(1 − x) and g(x) = 0. Thus,
the solution is
∞
X
u(x, t) = Bn sin(nπx) cos(cnπt)
n=1
with, Z 1
Bn = 2 x(1 − x) sin(nπx) dx
0
8
n3 π 3 n odd
=
0 n even
K.Mahalingam Wave Equation
∂ 2u 2
2∂ u
= c , 0 < x < l, t > 0 (4)
∂t2 ∂x2
with the given initial conditions u(x, 0) = f (x) and ut (x, 0) = g(x).
We use the characteristics and convert the equation to its canonical
form. We then use the canonical form to find u(x, t).
v = x − ct and w = x + ct
=⇒ uvw = 0
which is the canonical form of the given wave equation.
Step 3 : Solving for u in terms of v and w
We use the canonical form of the wave equation obtained in Step 2 and
integrate it with respect to v and w.
Z
uvw dv = 0 =⇒ uw = φ1 (w)
Z Z
=⇒ uw dw = φ1 (w)dw + ψ(v)
R
Taking φ(w) = φ1 (w)dw, we have,
1 x+ct
Z
f (x + ct) k(x0 )
φ(x + ct) = + g(s) ds +
2 2c x0 2
f (x − ct) 1 x−ct
Z
k(x0 )
ψ(x − ct) = − g(s) ds −
2 2c x0 2
Z x0
f (x − ct) 1 k(x0 )
= + g(s) ds −
2 2c x−ct 2
Thus, adding the above two equations we get,
1 x+ct
Z
1h i
u(x, t) = f (x + ct) + f (x − ct) + g(s) ds
2 2c x−ct