MAT 2165 Lecture 6
MAT 2165 Lecture 6
Lydie Mpinganzima
June 27, 2022
Contents
1 Learning outcomes 1
3 Separation of variables 3
3.1 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1 Learning outcomes
Upon completion of this lecture, you should
1. Identify physical problem that can be modeled by the wave equation
2. Solve the wave equation using the separation of variables technique
3. Solve the Cauchy problem for the wave equation using the D’Alembert method.
β
α P Q T2
T1
x
0 x x + ∆x L
1
u(x, t) will be the solution of a PDE that is the model of our physical system to be derived.
Physical Assumptions
1. The mass of the string per unit length is constant (“homogeneous string”). The string is perfectly
elastic and does not offer any resistance to bending.
2. The tension caused by stretching the string before fastening it at the ends is so large that the action
of the gravitational force on the string (trying to pull the string down a little) can be neglected.
3. The string performs small transverse motions in a vertical plane; that is, every particle of the string
moves strictly vertically and so that the deflection and the slope at every point of the string always
remain small in absolute value.
Under these assumptions we may expect solutions u(x, t) that describe the physical reality sufficiently well.
In the vertical direction we have two forces, namely, the vertical components −T1 sin α and T2 sin β of T1 and
T2 ; here the minus sign appears because the component at P is directed downward. By Newton’s second
law the resultant of these two forces is equal to the mass ρ∆x of the portion times the acceleration ∂u2 /∂t2 ,
evaluated at some point between x and x + ∆x; here ρ is the mass of the undeflected string per unit length,
∆x and is the length of the portion of the undeflected string.
Hence
∂u2
T2 sin β − T1 sin α = ρ∆x 2 . (2)
∂t
Using (1), we can divide (2) by T1 cos α = T2 cos β = T , obtaining
∂2u 2
2∂ u T
= c , c2 =
∂2t ∂2x ρ
This is called the one-dimensional wave equation. It is homogeneous and of the second order. The
physical constant T /ρ is denoted by c2 (instead of c) to indicate that this constant is positive.
2
3 Separation of variables
We consider the problem of modeling a vibrating string satisfying the one-dimensional wave equation
∂2u ∂2u T
2
= c2 2 , c2 =
∂ t ∂ x ρ
where u(x, t) is the deflection of the string which not known. To find out how the string moves, we determine
u(x, t) that also satisfies the conditions imposed by the physical system.
Since the string is fixed at the ends x = 0 and x = L, we have two boundary conditions
u(0, t) = 0, u(L, t) = 0, for all t ≥ 0 (4)
Furthermore, the form of the motion of the string will depend on its initial deflection (deflection at time
t = 0) and on the initial velocity (velocity at time t = 0). Denoting the initial velocity by f (x) and the
initial velocity by g(x), we thus have the two initial conditions
u(x, 0) = f (x) (5)
and
∂u
= g(x) (6)
∂t t=0
The problem is thus to find a solution u(x, t) of (3) that satisfies (4)-(6).
3
Step 2. Satisfying the boundary condition (4)
We now determine solutions X and T of (8) and (9) so that satisfies the boundary conditions (4), that is,
Solution of (8)
If T ≡ 0, then u = 0, which is of no interest. Thus T 6≡ 0 and then
X(x) = Ax + B
Solution of (9)
The constant k = −p2 = −(nπ/L)2 . For these k, equation (9) becomes
cnπ
T̈ + λ2n kT = 0, where λn =
L
A general solution to this equation is
Hence solutions of (3) satisfying (4) are un (x, t) = Xn (x)Tn (t) given by
nπ
un (x, t) = (Bn cos λn + Bn∗ sin λn t) sin x, n = 1, 2, · · · . (13)
L
These functions are called eigenfunctions, or characteristic functions, and the values λn = cnπ/L are
called the eigenvalues, or characteristic values of the vibrating string. The set {λ1 , λ2 , . . .} is called the
spectrum.
4
Step 3. Solution of the problem (3)–(6)
A single solution un (x, t) will in general not satisfy the initial conditions (5) and (6). We use the superposition
principle, and set
∞ ∞
X X nπ
u(x, t) = un (x, t) = (Bn cos λn t + Bn∗ sin λn t) sin x. (14)
n=1 n=1
L
Hence, we must choose Bn so that u(x, 0) becomes the Fourier sine series of f (x), that is,
Z L
2 nπ
Bn = f (x) sin x dx, n = 1, 2, · · · (15)
L 0 L
Hence we must choose Bn∗ so that derivative ut (x, 0) becomes the Fourier sine series of g(x). Thus
Z L
2 nπ
Bn∗ λn = g(x) sin x dx.
L 0 L
Solution. Using the separation of variables technique described above, the general solution for this equation
has the form
∞
X nπct ∗ nπct nπx
u(x, t) = Bn cos + Bn sin sin , n = 1, 2, · · · .
n=1
L L L
Differentiating with respect to time yields
∞
X nπc nπct ∗ nπct nπx
ut (x, t) = −Bn sin + Bn cos sin .
n=1
L L L L
Setting t = 0 we have
∞
X nπc ∗ nπx
0= Bn sin .
n=1
L L
so that all the Bn∗ = 0. Setting t = 0 in the expansion of u(x, t), we have
∞
X nπx
x= Bn sin .
n=1
L
5
Bn are thus the Fourier sine coefficients of the function x given by
Z L
2 nπ 2L
Bn = x sin x dx == (−1)n+1
L 0 L nπ
Therefore
∞
2L X (−1)n+1 nπx nπct
u(x, t) = sin cos
π n=1 n L L
3.1 Exercises
1. Consider waves in a resistant medium that satisfy the problem
where r is a constant, 0 < r < 2πc/L. Write down the series expansion of the solution.
2. Consider the equation
utt = c2 uxx for 0 < x < L,
with the boundary conditions
ux (0, t) = 0 u(L, t) = 0
(n + 1/2)πx
(a) Show that the eigenfunctions are cos
L
(b) Write the series expansion for a solution u(x, t).
3. Find the deflection u(x, t) of the string of length L = π when c2 = 1, then initial velocity is 0 and the
initial deflection is 0.1x(π 2 − x2 ).
4. Find the deflection u(x, t) of the string of length L = π and c2 = 1 for zero initial displacement and
triangular initial velocity ut (x, 0) = 0.01x if 0 ≤ x ≤ π/2, ut (x, 0) = 0.01(π − x) if π/2 ≤ x ≤ π.
5. Give the general solution of
6. Solve
∂2u 2
2∂ u
= c , t>0 (17)
∂t2 ∂x2
6
with initial conditions
The equation (17) together with the conditions (18) is called called the Cauchy problem.
To solve this equation, introduce new independent variables
ξ = x + ct, η = x − ct.
With these new variables, u becomes a function of ξ and η and its derivatives can be derived using the chain
rule. The first derivatives with respect to t and xrespectively are
∂u ∂ξ ∂u ∂η
ut = + = c(uξ − uη )
∂ξ ∂t ∂η ∂t
∂u ∂ξ ∂u ∂η
ux = + = uξ + uη .
∂ξ ∂x ∂η ∂x
Similarly, the second derivatives are given by
∂ut ∂ξ ∂ut ∂η
utt = + = c2 (uξξ − uηξ ) − c2 (uηξ − uηη ) = c2 (uξξ − 2uηξ + uηη )
∂ξ ∂t ∂η ∂t
∂ux ∂ξ ∂ux ∂η
uxx = + = (uξξ + uηξ ) + (uηξ + uηη ) = uξξ + 2uηξ + uηη
∂ξ ∂t ∂η ∂t
So,
1 x
Z
F (x) − G(x) = C + g(s) ds (22)
c x0
7
where C = F (x0 ) − G(x0 ). Equations (20) and (22) are two linear algebraic equations for F (x) and G(x).
The solution of this system of equations is given by
Z x
1 1 C
F (x) = f (x) + g(s) ds + (23)
2 2c x0 2
Z x
1 1 C
G(x) = f (x) + g(s) ds − (24)
2 2c x0 2
By substituting these expressions for F and G into the general solution (19), we obtain the formula
Z x+ct
1 1
u(x, t) = [f (x + ct) + f (x − ct)] + g(s) ds
2 2c x−ct
which is called d’Alembert formula.
Example. Solve the initial value problem
utt = c2 uxx , −∞ < x < ∞, t>0
u(x, 0) = 0 and ut (x, 0) = cos x, −∞ < x < ∞
Solution. Observe that f (x) = 0 and g(x) = cos x, so that d’Alembert formula gives solution
Z x+ct
1 1 1
u(x, t) = cos s ds = [sin(x + ct) − sin(x − ct)] = cos x sin ct
2c x−ct 2c c
which is the solution to the given initial value problem.
4.1 Exercises
1. Solve the initial value problem
utt = c2 uxx , −∞ < x < ∞, t>0
x
u(x, 0) = e and ut (x, 0) = sin x, −∞ < x < ∞
4. Solve
uxx − 3uxt − 4utt = 0, −∞ < x < ∞, t>0
2 x
u(x, 0) = x , ut (x, 0) = e , −∞ < x < ∞
Hint: Factor the operator as we did for the wave equation.
5. Solve
uxx + uxt − 20utt = 0, −∞ < x < ∞, t>0
u(x, 0) = f (x), ut (x, 0) = g(x), −∞ < x < ∞
References
[1] H.K. Dass, Advanced Engineering Mathematics, S. Chand & Company LTD., 2012.
[2] Erwin Kreyszig, Advanced Engineering Mathematics, John Wiley & Sons, Inc., 2011.