Week 12
Week 12
DIFFERENTIAL EQUATIONS
APPLICATION OF
PARTIAL DIFFERENTIAL EQUATIONS
2
5.3 Applications of PDE
5.3.1 The Heat Equation
In this section, we will study the heat flow problem in a long uniform rod. In
general, this problem depends on the initial distribution of temperature and
the physical properties of rod. The physical properties of rod refers to the
thermal diffusivity of the material where it measures the rate of transfer of
heat of the material from the hot end to the cold end.
In the following section, the heat transfer of the heated rod with zero
temperature at the endpoints will be discussed. Graphical interpretation will
be illustrated in the next slide.
4
Graphical Interpretation
Given a rod with length 𝐿𝐿 with the setup and condition as shown in Figure 5.1,
we aim to find the temperature of the rod at position point 𝑥𝑥 after some time 𝑡𝑡.
5
For heat equation, the function 𝑢𝑢 𝑥𝑥, 𝑡𝑡 represents temperature at a point
𝑥𝑥 along the rod at time 𝑡𝑡.
For example:
6
Theorem: The heated rod with zero temperature at the endpoints
The partial differential equation
𝑢𝑢𝑡𝑡 = 𝑘𝑘𝑢𝑢𝑥𝑥𝑥𝑥 , 0 < 𝑥𝑥 < 𝐿𝐿, 𝑡𝑡 > 0
for a rod of length 𝐿𝐿 and thermal diffusivity of 𝑘𝑘, with boundary conditions
𝑢𝑢 0, 𝑡𝑡 = 𝑢𝑢 𝐿𝐿, 𝑡𝑡 = 0, 𝑡𝑡 > 0
and initial condition
𝑢𝑢 𝑥𝑥, 0 = 𝑓𝑓(𝑥𝑥), 0 < 𝑥𝑥 < 𝐿𝐿
has the series solution
∞
𝑛𝑛𝑛𝑛𝑛𝑛 − 𝑛𝑛2𝜋𝜋22𝑘𝑘𝑘𝑘
𝑢𝑢 𝑥𝑥, 𝑡𝑡 = � 𝑏𝑏𝑛𝑛 sin 𝑒𝑒 𝐿𝐿 (5.1)
𝐿𝐿
𝑛𝑛=1
Example 5.13:
Solve the following PDE for the heat transfer of a metal bar with zero
temperature at both ends by method of separation of variables:
1
𝑢𝑢𝑡𝑡 = 𝑢𝑢𝑥𝑥𝑥𝑥 , 0 < 𝑥𝑥 < 2𝜋𝜋, 𝑡𝑡 > 0.
9
Characteristic equation:
𝑚𝑚2 + 𝜆𝜆2 = 0 ⇒ 𝑚𝑚 = ±𝜆𝜆𝑖𝑖
∴ 𝑋𝑋 𝑥𝑥 = 𝐴𝐴 cos 𝜆𝜆𝑥𝑥 + 𝐵𝐵 sin 𝜆𝜆𝜆𝜆 (5.10)
𝑋𝑋 0 = 0, 𝑋𝑋 0 = 𝐴𝐴 cos 0 + 𝐵𝐵 sin 0, 𝑋𝑋 2𝜋𝜋 = 0, 𝑋𝑋 2𝜋𝜋 = 𝐴𝐴 cos 2𝜋𝜋𝜆𝜆 + 𝐵𝐵 sin 2𝜋𝜋𝜆𝜆
∴ 0 = 𝐴𝐴 0 = 𝐵𝐵 sin 2𝜋𝜋𝜆𝜆
𝐵𝐵 ≠ 0, ∴ sin 2𝜋𝜋𝜆𝜆 = 0
Given sin 𝑛𝑛𝑛𝑛 = 0, 𝑛𝑛 = 1,2,3, … 2𝜋𝜋𝜆𝜆 = 𝑛𝑛𝜋𝜋, 𝑛𝑛 = 1,2,3, …
So, sin 2𝜋𝜋𝜆𝜆 = 0 implies 2𝜋𝜋𝜆𝜆 = 𝑛𝑛𝜋𝜋
𝑛𝑛
𝜆𝜆𝑛𝑛 = , 𝑛𝑛 = 1,2,3, … (5.11)
2
Finally,
∞
32 1 𝑛𝑛𝜋𝜋 − 𝑛𝑛2(1)
𝑢𝑢 𝜋𝜋, 1 = � 3 (sin )𝑒𝑒 36
𝜋𝜋 𝑛𝑛 2
𝑛𝑛 𝑜𝑜𝑜𝑜𝑜𝑜
32 1 𝜋𝜋 − 1 2 1 3𝜋𝜋 − 3 2 1 5𝜋𝜋 − 5 2
= sin 𝑒𝑒 36 + 3 sin 𝑒𝑒 36 + 3 sin 𝑒𝑒 36 +⋯
𝜋𝜋 13 2 3 2 5 2
32
≈ (0.9726 − 0.0288 + 0.004 … )
𝜋𝜋 16
≈ 9.6542℃
Example 5.14:
17
Solution:
Let 𝑢𝑢 𝑥𝑥, 𝑡𝑡 = 𝑋𝑋 𝑥𝑥 𝑇𝑇(𝑡𝑡), the heat equation becomes
𝑋𝑋𝑇𝑇 ′ = 4𝑋𝑋 ′′ 𝑇𝑇 (5.17)
Separate the variables, we have
𝑋𝑋𝑋𝑋 𝑇𝑇𝑇
= 4𝑇𝑇 = 𝑝𝑝 (5.18)
𝑋𝑋
ln 𝑇𝑇 = −4𝜆𝜆2 𝑡𝑡 + 𝑘𝑘
From Eqn. (5.25),
2 𝑡𝑡+𝑘𝑘
𝜆𝜆𝑛𝑛 = 𝑛𝑛 𝑇𝑇 = 𝑒𝑒 −4𝜆𝜆 Let 𝐶𝐶 = 𝑒𝑒 𝑘𝑘
2 𝑡𝑡
= 𝐶𝐶𝑒𝑒 −4𝜆𝜆
2 2
𝑇𝑇𝑛𝑛 𝑡𝑡 = 𝐶𝐶𝑛𝑛 𝑒𝑒 −4𝜆𝜆𝑛𝑛𝑡𝑡 = 𝐶𝐶𝑛𝑛 𝑒𝑒 −4𝑛𝑛 𝑡𝑡 , 𝑛𝑛 = 1,2,3, … (5.27)
Hence,
𝑢𝑢𝑛𝑛 𝑥𝑥, 𝑡𝑡 = 𝑋𝑋𝑛𝑛 𝑥𝑥 𝑇𝑇𝑛𝑛 𝑡𝑡
2 𝑡𝑡
= 𝐵𝐵𝑛𝑛 sin 𝑛𝑛𝑛𝑛 𝐶𝐶𝑛𝑛 𝑒𝑒 −4𝑛𝑛
2 Let 𝐷𝐷𝑛𝑛 = 𝐵𝐵𝑛𝑛 𝐶𝐶𝑛𝑛
= 𝐷𝐷𝑛𝑛 (sin 𝑛𝑛𝑛𝑛)𝑒𝑒 − 4𝑛𝑛 𝑡𝑡 , 𝑛𝑛 = 1,2,3, … (5.28)
22
If 𝑢𝑢1 , 𝑢𝑢2 ,…, 𝑢𝑢∞ are linearly independent
solutions to a PDE, then the linear combination
of all 𝑢𝑢1 , 𝑢𝑢2 ,…, 𝑢𝑢∞ are also a solution to the PDE
By applying superposition principle on Eqn. (5.28),
∞
2 𝑡𝑡
𝑢𝑢 𝑥𝑥, 𝑡𝑡 = � 𝐷𝐷𝑛𝑛 (sin 𝑛𝑛𝑛𝑛)𝑒𝑒 − 4𝑛𝑛 (5.29)
𝑛𝑛=1
2 𝐿𝐿 𝑛𝑛𝜋𝜋𝑥𝑥
𝐷𝐷𝑛𝑛 = � 𝑓𝑓 𝑥𝑥 sin 𝑑𝑑𝑑𝑑
𝐿𝐿 0 𝐿𝐿
2 𝜋𝜋 1
= � 2 sin 3𝑥𝑥 sin 𝑛𝑛𝑛𝑛 𝑑𝑑𝑑𝑑 sin 𝐴𝐴 sin 𝐵𝐵 = [cos(𝐴𝐴 − 𝐵𝐵) − cos(𝐴𝐴 + 𝐵𝐵)]
𝜋𝜋 0 2
2 𝜋𝜋
= � cos(3𝑥𝑥 − 𝑛𝑛𝑛𝑛) − cos(3𝑥𝑥 + 𝑛𝑛𝑛𝑛) 𝑑𝑑𝑑𝑑
𝜋𝜋 0
𝜋𝜋
2 sin(3 − 𝑛𝑛)𝑥𝑥 sin(3 + 𝑛𝑛)𝑥𝑥
= − , 𝑛𝑛 ≠ 3
𝜋𝜋 3 − 𝑛𝑛 3 + 𝑛𝑛 0
25
Alternative Way to find 𝐷𝐷𝑛𝑛 for this question:
From Eqn. (5.30),
∞
27
5.3.2 The Wave Equation
The wave equation usually describes mechanical waves, such as water
wave, sound wave and seismic waves. Its application can be found in
electromagnetics, fluid dynamics and acoustics.
Consider a string, stretched between two fixed points, is being initially
plucked to the form of 𝑓𝑓(𝑥𝑥) to start vibrate and the string moves in a
direction perpendicular to the 𝑥𝑥-axis as shown in Figure 5.2. The vertical
displacement of a point at 𝑥𝑥 at time 𝑡𝑡 is represented by 𝑢𝑢(𝑥𝑥, 𝑡𝑡).
𝑢𝑢
𝑢𝑢 𝑥𝑥, 0 = 𝑓𝑓(𝑥𝑥)
𝑃𝑃
𝑢𝑢(𝑥𝑥, 𝑡𝑡)
𝑥𝑥
0 𝑥𝑥 𝐿𝐿
28
where 𝑎𝑎𝑛𝑛 and 𝑏𝑏𝑛𝑛 are the Fourier series coefficients obtained by
2 𝐿𝐿 𝑛𝑛𝑛𝑛𝑛𝑛
𝑎𝑎𝑛𝑛 = � 𝑓𝑓(𝑥𝑥) sin 𝑑𝑑𝑑𝑑, 𝑛𝑛 = 1,2,3, …
𝐿𝐿 0 𝐿𝐿 (5.33)
29
𝐿𝐿
2 𝑛𝑛𝑛𝑛𝑛𝑛
𝑏𝑏𝑛𝑛 = � 𝑔𝑔(𝑥𝑥) sin 𝑑𝑑𝑑𝑑, 𝑛𝑛 = 1,2,3, …
𝑛𝑛𝜋𝜋𝜋𝜋 0 𝐿𝐿
Example 5.15:
Solve the following wave equation by using the method of separation of
variables.
Next, by using the first three non-zero terms of the series, find the
displacement of spring at the point 𝑥𝑥 = 𝜋𝜋 at 𝑡𝑡 = 10.
30
Solution:
Let 𝑢𝑢 𝑥𝑥, 𝑡𝑡 = 𝑋𝑋 𝑥𝑥 𝑇𝑇(𝑡𝑡), the wave equation becomes
𝑋𝑋𝑇𝑇 ′′ = 4𝑋𝑋 ′′ 𝑇𝑇 (5.34)
Separate the variables, we have
𝑋𝑋𝑋𝑋 𝑇𝑇′′
= = 𝑝𝑝 (5.35)
𝑋𝑋 4𝑇𝑇
= 0, 𝑛𝑛 ≠ 2
From Eqn. (5.48),
3 2 2
𝐸𝐸𝑛𝑛 = sin 2 − 𝑛𝑛 𝜋𝜋 − sin 2 + 𝑛𝑛 𝜋𝜋 , 𝑛𝑛 ≠ 2
2𝜋𝜋 2 − 𝑛𝑛 2 + 𝑛𝑛
When 𝑛𝑛 = 2,
3 sin 2 − 𝑛𝑛 𝜋𝜋 sin 4𝜋𝜋
𝐸𝐸2 = lim − Apply
𝜋𝜋 𝑛𝑛→2 2 − 𝑛𝑛 4
L’Hopital’s Rule
3 −𝜋𝜋 cos 2 − 𝑛𝑛 𝜋𝜋
= lim −0
𝜋𝜋 𝑛𝑛→2 −1
3
= 𝜋𝜋
𝜋𝜋
𝐸𝐸2 = 3
37
Alternative Way to find 𝐸𝐸𝑛𝑛 for this question:
From Eqn. (5.47),
∞
𝑛𝑛𝑛𝑛
3 sin 𝑥𝑥 = � 𝐸𝐸𝑛𝑛 sin
2
𝑛𝑛=1
Hence, the only possible 𝐸𝐸𝑛𝑛 for 𝑢𝑢(𝑥𝑥, 𝑡𝑡) is 𝐸𝐸2 when 𝑛𝑛 = 2.
38
Differentiate Eqn. (5.46) with respect to 𝑡𝑡 ,
∞
𝑛𝑛𝑛𝑛
𝑢𝑢𝑡𝑡 𝑥𝑥, 𝑡𝑡 = � −𝑛𝑛𝐸𝐸𝑛𝑛 sin 𝑛𝑛𝑡𝑡 + 𝑛𝑛𝐹𝐹𝑛𝑛 cos 𝑛𝑛𝑡𝑡 sin (5.49)
2
𝑛𝑛=1
≈ −0.5663
Example 5.16:
A string is stretched between two points and plucked at 𝑡𝑡 = 0 as follows:
𝑢𝑢
𝑢𝑢 𝑥𝑥, 0 = 𝑓𝑓(𝑥𝑥)
0.01
𝑥𝑥
0 2 4
Length in meter
If the string is being released initially with zero velocity, apply the wave
equation
𝜕𝜕 2 𝑢𝑢 𝜕𝜕 2 𝑢𝑢
= 100 2
𝜕𝜕𝑡𝑡 2 𝜕𝜕𝑥𝑥
to determine the subsequent motion of a point P with distance 𝑥𝑥 from the
origin at time 𝑡𝑡.
41
Solution:
From the figure, we need to find the 𝑓𝑓(𝑥𝑥) for the intervals of 0 ≤ 𝑥𝑥 ≤ 2 and
2 ≤ 𝑥𝑥 ≤ 4.
For the interval 0 ≤ 𝑥𝑥 ≤ 2, the line between (0,0) and (2,0.01) is
𝑦𝑦1 − 𝑦𝑦0
𝑦𝑦 − 𝑦𝑦0 = (𝑥𝑥 − 𝑥𝑥0 )
𝑥𝑥1 − 𝑥𝑥0
0.01 − 0
𝑦𝑦 − 0 = (𝑥𝑥 − 0)
2−0
𝑦𝑦 = 0.005𝑥𝑥
For the interval 2 ≤ 𝑥𝑥 ≤ 4, the line between (2,0.01) and (4,0) is
0 − 0.01
𝑦𝑦 − 0 = (𝑥𝑥 − 4)
4−2
𝑦𝑦 = 0.02 − 0.005𝑥𝑥
Hence,
0.005𝑥𝑥, 0 ≤ 𝑥𝑥 ≤ 2
𝑓𝑓 𝑥𝑥 = �
0.02 − 0.005𝑥𝑥, 2 ≤ 𝑥𝑥 ≤ 4 42
The string is being released initially with zero velocity,
𝑢𝑢𝑡𝑡 𝑥𝑥, 0 = 0
Hence, the model of the wave equation is as follow:
𝑢𝑢𝑡𝑡𝑡𝑡 = 100𝑢𝑢𝑥𝑥𝑥𝑥 , 0 < 𝑥𝑥 < 4, 𝑡𝑡 > 0.
𝑢𝑢 0, 𝑡𝑡 = 𝑢𝑢 4, 𝑡𝑡 = 0, 𝑢𝑢𝑡𝑡 𝑥𝑥, 0 = 0,
0.005𝑥𝑥, 0 ≤ 𝑥𝑥 ≤ 2
𝑢𝑢 𝑥𝑥, 0 = 𝑓𝑓 𝑥𝑥 = � . (5.51)
0.02 − 0.005𝑥𝑥, 2 ≤ 𝑥𝑥 ≤ 4
0.005𝑥𝑥, 0 ≤ 𝑥𝑥 ≤ 2
Apply initial condition 𝑢𝑢 𝑥𝑥, 0 = 𝑓𝑓 𝑥𝑥 = � to the Eqn.
0.02 − 0.005𝑥𝑥, 2 ≤ 𝑥𝑥 ≤ 4
(5.59),
∞
𝑛𝑛𝜋𝜋𝑥𝑥
𝑓𝑓(𝑥𝑥) = � 𝐸𝐸𝑛𝑛 sin (5.60)
4
𝑛𝑛=1
47
By applying Fourier Sine series to Eqn. (5.60):
2 𝐿𝐿 𝑛𝑛𝜋𝜋𝑥𝑥
𝐸𝐸𝑛𝑛 = � 𝑓𝑓 𝑥𝑥 sin 𝑑𝑑𝑑𝑑
𝐿𝐿 0 𝐿𝐿
2 2 𝑛𝑛𝜋𝜋𝑥𝑥 4
𝑛𝑛𝜋𝜋𝑥𝑥
= � 0.005𝑥𝑥 sin 𝑑𝑑𝑑𝑑 + � (0.02 − 0.005𝑥𝑥) sin 𝑑𝑑𝑑𝑑
4 0 4 2 4
1 0.16 𝑛𝑛𝜋𝜋
= sin
2 𝑛𝑛2 𝜋𝜋 2 2
0.08 𝑛𝑛𝜋𝜋
= 2 2 sin
𝑛𝑛 𝜋𝜋 2
49
Differentiate Eqn. (5.59) with respect to 𝑡𝑡 ,
∞
5𝑛𝑛𝜋𝜋 5𝑛𝑛𝜋𝜋𝜋𝜋 5𝑛𝑛𝜋𝜋 5𝑛𝑛𝜋𝜋𝜋𝜋 𝑛𝑛𝜋𝜋𝑥𝑥
𝑢𝑢𝑡𝑡 𝑥𝑥, 𝑡𝑡 = � − 𝐸𝐸𝑛𝑛 sin + 𝐹𝐹𝑛𝑛 cos sin (5.61)
2 2 2 2 4
𝑛𝑛=1
51
Exercise 5.9:
1) Solve the following wave equation by using method of separation of
variables:
𝑢𝑢𝑡𝑡𝑡𝑡 = 𝑢𝑢𝑥𝑥𝑥𝑥 , 0 < 𝑥𝑥 < 𝜋𝜋, 𝑡𝑡 > 0.
𝑢𝑢 0, 𝑡𝑡 = 𝑢𝑢 𝜋𝜋, 𝑡𝑡 = 0; 𝑢𝑢 𝑥𝑥, 0 = 4 sin 𝑥𝑥 − 3 sin 2𝑥𝑥 ; 𝑢𝑢𝑡𝑡 𝑥𝑥, 0 = 0.5.
2 1
[Ans: 𝑢𝑢 𝑥𝑥, 𝑡𝑡 = 4 cos 𝑡𝑡 sin 𝑥𝑥 − 3 cos 2𝑡𝑡 sin 2𝑥𝑥 + ∑∞ sin 𝑛𝑛𝑛𝑛 sin 𝑛𝑛𝑛𝑛]
𝜋𝜋 𝑛𝑛 𝑜𝑜𝑜𝑜𝑜𝑜 𝑛𝑛2
53
Thank You
54