Simple Harmonic Motion & Sturm-Liouville
Simple Harmonic Motion & Sturm-Liouville
Week 3
Chapter 11 cont.
Chapter 12
Simple Harmonic Motion (SHM)
𝑥ሷ + 𝛼 2 𝑥 = 0
Anti Simple Harmonic Motion (anti-SHM)
𝑥ሷ − 𝛼 2 𝑥 = 0
2
SHM anti-SHM
The ODE: The ODE:
𝑥ሷ + 𝛼 2 𝑥 = 0 𝑥ሷ − 𝛼 2 𝑥 = 0
𝛼: angular frequency, s −1
- number of oscillations in 2𝜋 seconds The ODE:
2𝜋
𝛼
: period, s 𝑥ሷ = 0
- time to complete one oscillation
The Solution:
𝑥 = 𝐵𝑡 + 𝐶
Sturm-Liouville Problem
You may omit:
• Singular Sturm-Liouville Problem
• Self-Adjoint Form
• Example 3: Parametric Bessel Equation
• Example 4: Legendre’s Equation
7
Sturm-Liouville problem: An Example
Solve
𝑦 ′′ + 𝜆𝑦 = 0
on
𝑥 ∈ [0, 𝐿]
subject to
𝑦(0) = 0
and
𝑦 𝐿 =0
Consider
• 𝜆=0
• 𝜆 < 0 = −𝛼 2
• 𝜆 > 0 = 𝛼2
Sturm-Liouville problem: An Example
Solve
𝑦 ′′ + 𝜆𝑦 = 0 • 𝜆=0
on
𝑥 ∈ [0, 𝐿] 𝑦′′ = 0
subject to 𝑦′ = 𝐴
𝑦(0) = 0 and 𝑦 𝐿 = 0 𝑦 = 𝐴𝑥 + 𝐵
(Previous Example)
Regular Sturm-Liouville problem
Consider
𝑟 𝑥 𝑦 ′ ′ + 𝑞 𝑥 + 𝜆𝑝 𝑥 𝑦 = 0
on
𝑥 ∈ [𝑎, 𝑏]
subject to
𝐴1 𝑦 𝑎 + 𝐵1 𝑦′(𝑎) = 0
and
𝐴2 𝑦 𝑏 + 𝐵2 𝑦 ′ 𝑏 = 0
′ ′
𝑟 𝑥 𝑦𝑚 + 𝑞 𝑥 + 𝜆𝑚 𝑝 𝑥 𝑦𝑚 = 0 𝑟 𝑥 𝑦𝑛′ ′ + 𝑞 𝑥 + 𝜆𝑛 𝑝 𝑥 𝑦𝑛 = 0
′ (𝑎) = 0
𝐴1 𝑦𝑚 𝑎 + 𝐵1 𝑦𝑚 𝐴1 𝑦𝑛 𝑎 + 𝐵1 𝑦𝑛′ (𝑎) = 0
′ 𝑏 =0
𝐴2 𝑦𝑚 𝑏 + 𝐵2 𝑦𝑚 𝐴2 𝑦𝑛 𝑏 + 𝐵2 𝑦𝑛′ 𝑏 = 0
Sturm-Liouville problem
′ ′+ 𝑞 𝑥 +𝜆 𝑝 𝑥 𝑦
𝑟 𝑥 𝑦𝑚 𝑚 𝑚 = 0 − 𝑟 𝑥 𝑦𝑛′ ′ + 𝑞 𝑥 + 𝜆𝑛 𝑝 𝑥 𝑦𝑛 = 0
× 𝑦𝑛 × 𝑦𝑚
′ ′
𝐴1 𝑦𝑛 𝑎 + 𝐵1 𝑦𝑛 (𝑎) = 0
𝐴1 𝑦𝑚 𝑎 + 𝐵1 𝑦𝑚 (𝑎) = 0
′
𝐴2 𝑦𝑚 𝑏 + 𝐵2 𝑦𝑚 𝑏 =0 𝐴2 𝑦𝑛 𝑏 + 𝐵2 𝑦𝑛′ 𝑏 = 0
Sturm-Liouville problem
′ ′+ 𝑞 𝑥 +𝜆 𝑝 𝑥 𝑦
𝑟 𝑥 𝑦𝑚 𝑚 𝑚 = 0 − 𝑟 𝑥 𝑦𝑛′ ′ + 𝑞 𝑥 + 𝜆𝑛 𝑝 𝑥 𝑦𝑛 = 0
× 𝑦𝑛 × 𝑦𝑚
′ ′
𝐴1 𝑦𝑛 𝑎 + 𝐵1 𝑦𝑛 (𝑎) = 0
𝐴1 𝑦𝑚 𝑎 + 𝐵1 𝑦𝑚 (𝑎) = 0
′
𝐴2 𝑦𝑚 𝑏 + 𝐵2 𝑦𝑚 𝑏 =0 𝐴2 𝑦𝑛 𝑏 + 𝐵2 𝑦𝑛′ 𝑏 = 0
′ ′𝑦 + 𝑞 𝑥 + 𝜆 𝑝 𝑥 𝑦 𝑦 − 𝑟 𝑥 𝑦′ ′𝑦 − 𝑞 𝑥 + 𝜆 𝑝 𝑥 𝑦 𝑦 = 0
𝑟 𝑥 𝑦𝑚 𝑛 𝑚 𝑚 𝑛 𝑛 𝑚 𝑛 𝑛 𝑚
Sturm-Liouville problem
′ ′+ 𝑞 𝑥 +𝜆 𝑝 𝑥 𝑦
𝑟 𝑥 𝑦𝑚 𝑚 𝑚 = 0 − 𝑟 𝑥 𝑦𝑛′ ′ + 𝑞 𝑥 + 𝜆𝑛 𝑝 𝑥 𝑦𝑛 = 0
× 𝑦𝑛 × 𝑦𝑚
′ ′
𝐴1 𝑦𝑛 𝑎 + 𝐵1 𝑦𝑛 (𝑎) = 0
𝐴1 𝑦𝑚 𝑎 + 𝐵1 𝑦𝑚 (𝑎) = 0
′
𝐴2 𝑦𝑚 𝑏 + 𝐵2 𝑦𝑚 𝑏 =0 𝐴2 𝑦𝑛 𝑏 + 𝐵2 𝑦𝑛′ 𝑏 = 0
′ ′𝑦 + 𝑞 𝑥 + 𝜆 𝑝 𝑥 𝑦 𝑦 − 𝑟 𝑥 𝑦′ ′𝑦 − 𝑞 𝑥 + 𝜆 𝑝 𝑥 𝑦 𝑦 = 0
𝑟 𝑥 𝑦𝑚 𝑛 𝑚 𝑚 𝑛 𝑛 𝑚 𝑛 𝑛 𝑚
′ ′𝑦 + 𝜆 𝑝 𝑥 𝑦 𝑦 − 𝑟 𝑥 𝑦′ ′𝑦 − 𝜆 𝑝 𝑥 𝑦 𝑦 = 0
𝑟 𝑥 𝑦𝑚 𝑛 𝑚 𝑚 𝑛 𝑛 𝑚 𝑛 𝑛 𝑚
′ ′𝑦 − 𝑟 𝑥 𝑦′ ′𝑦 = 𝜆 − 𝜆
𝑟 𝑥 𝑦𝑚 𝑛 𝑛 𝑚 𝑛 𝑚 𝑝 𝑥 𝑦𝑚 𝑦𝑛
𝑏 𝑏 𝑏
න ′ ′ 𝑦 𝑑𝑥 − න
𝑟 𝑥 𝑦𝑚 𝑟 𝑥 𝑦𝑛′ ′ 𝑦𝑚 𝑑𝑥 = 𝜆𝑛 − 𝜆𝑚 න 𝑝 𝑥 𝑦𝑚 𝑦𝑛 𝑑𝑥
𝑛
𝑎 𝑎 𝑎
Sturm-Liouville problem
′ ′+ 𝑞 𝑥 +𝜆 𝑝 𝑥 𝑦
𝑟 𝑥 𝑦𝑚 𝑚 𝑚 = 0 − 𝑟 𝑥 𝑦𝑛′ ′ + 𝑞 𝑥 + 𝜆𝑛 𝑝 𝑥 𝑦𝑛 = 0
× 𝑦𝑛 × 𝑦𝑚
′ ′
𝐴1 𝑦𝑛 𝑎 + 𝐵1 𝑦𝑛 (𝑎) = 0
𝐴1 𝑦𝑚 𝑎 + 𝐵1 𝑦𝑚 (𝑎) = 0
′
𝐴2 𝑦𝑚 𝑏 + 𝐵2 𝑦𝑚 𝑏 =0 𝐴2 𝑦𝑛 𝑏 + 𝐵2 𝑦𝑛′ 𝑏 = 0
′ ′𝑦 + 𝑞 𝑥 + 𝜆 𝑝 𝑥 𝑦 𝑦 − 𝑟 𝑥 𝑦′ ′𝑦 − 𝑞 𝑥 + 𝜆 𝑝 𝑥 𝑦 𝑦 = 0
𝑟 𝑥 𝑦𝑚 𝑛 𝑚 𝑚 𝑛 𝑛 𝑚 𝑛 𝑛 𝑚
′ ′𝑦 + 𝜆 𝑝 𝑥 𝑦 𝑦 − 𝑟 𝑥 𝑦′ ′𝑦 − 𝜆 𝑝 𝑥 𝑦 𝑦 = 0
𝑟 𝑥 𝑦𝑚 𝑛 𝑚 𝑚 𝑛 𝑛 𝑚 𝑛 𝑛 𝑚
′ ′𝑦 − 𝑟 𝑥 𝑦′ ′𝑦 = 𝜆 − 𝜆
𝑟 𝑥 𝑦𝑚 𝑛 𝑛 𝑚 𝑛 𝑚 𝑝 𝑥 𝑦𝑚 𝑦𝑛
𝑏 𝑏 𝑏
න ′ ′ 𝑦 𝑑𝑥 − න
𝑟 𝑥 𝑦𝑚 𝑟 𝑥 𝑦𝑛′ ′ 𝑦𝑚 𝑑𝑥 = 𝜆𝑛 − 𝜆𝑚 න 𝑝 𝑥 𝑦𝑚 𝑦𝑛 𝑑𝑥
𝑛
𝑎 𝑎 𝑎
Integration by parts
𝑏 𝑏 𝑏 𝑏
′ 𝑦 ′ 𝑦′
𝐿𝐻𝑆 = 𝑟 𝑥 𝑦𝑚 𝑛 ቚ − න 𝑟 𝑥 𝑦𝑚 𝑛 𝑑𝑥 − 𝑟 𝑥 𝑦𝑛′ 𝑦𝑚 ቚ − න 𝑟 𝑥 𝑦𝑛′ 𝑦𝑚
′ 𝑑𝑥
𝑎 𝑎 𝑎 𝑎
Sturm-Liouville problem
′ ′+ 𝑞 𝑥 +𝜆 𝑝 𝑥 𝑦
𝑟 𝑥 𝑦𝑚 𝑚 𝑚 = 0 𝑟 𝑥 𝑦𝑛′ ′ + 𝑞 𝑥 + 𝜆𝑛 𝑝 𝑥 𝑦𝑛 = 0
′ (𝑎) = 0
𝐴1 𝑦𝑚 𝑎 + 𝐵1 𝑦𝑚 𝐴1 𝑦𝑛 𝑎 + 𝐵1 𝑦𝑛′ (𝑎) = 0
′
𝐴2 𝑦𝑚 𝑏 + 𝐵2 𝑦𝑚 𝑏 =0 𝐴2 𝑦𝑛 𝑏 + 𝐵2 𝑦𝑛′ 𝑏 = 0
𝑏
𝑅𝐻𝑆 = 𝜆𝑛 − 𝜆𝑚 න 𝑝 𝑥 𝑦𝑚 𝑦𝑛 𝑑𝑥
𝑎
𝑏 𝑏 𝑏 𝑏
′ ′ ′
𝐿𝐻𝑆 = 𝑟 𝑥 𝑦𝑚 𝑦𝑛 ቚ − න 𝑟 𝑥 𝑦𝑚 𝑦𝑛 𝑑𝑥 − 𝑟 𝑥 𝑦𝑛′ 𝑦𝑚 ቚ − න 𝑟 𝑥 𝑦𝑛′ 𝑦𝑚
′
𝑑𝑥
𝑎 𝑎 𝑎 𝑎
′ 𝑏 𝑦 𝑏 − 𝑟 𝑎 𝑦′ 𝑎 𝑦 𝑎
= 𝑟 𝑏 𝑦𝑚 − 𝑟 𝑏 𝑦𝑛′ 𝑏 𝑦𝑚 𝑏 − 𝑟 𝑎 𝑦𝑛′ 𝑎 𝑦𝑚 𝑎
𝑛 𝑚 𝑛
= 𝑟 𝑎 𝑦𝑛′ 𝑎 𝑦𝑚 𝑎 − 𝑦𝑚
′ 𝑎 𝑦 𝑎
𝑛
′ 𝑏 𝑦 𝑏 − 𝑦′ 𝑏 𝑦 𝑏
+ 𝑟 𝑏 𝑦𝑚 𝑛 𝑛 𝑚
Sturm-Liouville problem
′ ′+ 𝑞 𝑥 +𝜆 𝑝 𝑥 𝑦
𝑟 𝑥 𝑦𝑚 𝑚 𝑚 = 0 𝑟 𝑥 𝑦𝑛′ ′ + 𝑞 𝑥 + 𝜆𝑛 𝑝 𝑥 𝑦𝑛 = 0
′ (𝑎) = 0
𝐴1 𝑦𝑚 𝑎 + 𝐵1 𝑦𝑚 𝐴1 𝑦𝑛 𝑎 + 𝐵1 𝑦𝑛′ (𝑎) = 0
′
𝐴2 𝑦𝑚 𝑏 + 𝐵2 𝑦𝑚 𝑏 =0 𝐴2 𝑦𝑛 𝑏 + 𝐵2 𝑦𝑛′ 𝑏 = 0
𝑏
𝑅𝐻𝑆 = 𝜆𝑛 − 𝜆𝑚 න 𝑝 𝑥 𝑦𝑚 𝑦𝑛 𝑑𝑥
𝑎
𝑏 𝑏 𝑏 𝑏
′ ′ ′
𝐿𝐻𝑆 = 𝑟 𝑥 𝑦𝑚 𝑦𝑛 ቚ − න 𝑟 𝑥 𝑦𝑚 𝑦𝑛 𝑑𝑥 − 𝑟 𝑥 𝑦𝑛′ 𝑦𝑚 ቚ − න 𝑟 𝑥 𝑦𝑛′ 𝑦𝑚
′
𝑑𝑥
𝑎 𝑎 𝑎 𝑎
′ 𝑏 𝑦 𝑏 − 𝑟 𝑎 𝑦′ 𝑎 𝑦 𝑎
= 𝑟 𝑏 𝑦𝑚 − 𝑟 𝑏 𝑦𝑛′ 𝑏 𝑦𝑚 𝑏 − 𝑟 𝑎 𝑦𝑛′ 𝑎 𝑦𝑚 𝑎
𝑛 𝑚 𝑛
= 𝑟 𝑎 𝑦𝑛′ 𝑎 𝑦𝑚 𝑎 − 𝑦𝑚
′ 𝑎 𝑦 𝑎
𝑛
′ 𝑏 𝑦 𝑏 − 𝑦′ 𝑏 𝑦 𝑏
+ 𝑟 𝑏 𝑦𝑚 𝑛 𝑛 𝑚
Case 1:
𝑟 𝑎 =𝑟 𝑏 =0
𝑏
֜ න 𝑝 𝑥 𝑦𝑚 𝑦𝑛 𝑑𝑥 = 0 (𝜆𝑚 ≠ 𝜆𝑛 )
𝑎
Sturm-Liouville problem
′ ′+ 𝑞 𝑥 +𝜆 𝑝 𝑥 𝑦
𝑟 𝑥 𝑦𝑚 𝑚 𝑚 = 0 𝑟 𝑥 𝑦𝑛′ ′ + 𝑞 𝑥 + 𝜆𝑛 𝑝 𝑥 𝑦𝑛 = 0
′ (𝑎) = 0
𝐴1 𝑦𝑚 𝑎 + 𝐵1 𝑦𝑚 𝐴1 𝑦𝑛 𝑎 + 𝐵1 𝑦𝑛′ (𝑎) = 0
′
𝐴2 𝑦𝑚 𝑏 + 𝐵2 𝑦𝑚 𝑏 =0 𝐴2 𝑦𝑛 𝑏 + 𝐵2 𝑦𝑛′ 𝑏 = 0
𝑏
𝑅𝐻𝑆 = 𝜆𝑛 − 𝜆𝑚 න 𝑝 𝑥 𝑦𝑚 𝑦𝑛 𝑑𝑥
𝑎
𝑏 𝑏 𝑏 𝑏
′ ′ ′
𝐿𝐻𝑆 = 𝑟 𝑥 𝑦𝑚 𝑦𝑛 ቚ − න 𝑟 𝑥 𝑦𝑚 𝑦𝑛 𝑑𝑥 − 𝑟 𝑥 𝑦𝑛′ 𝑦𝑚 ቚ − න 𝑟 𝑥 𝑦𝑛′ 𝑦𝑚
′
𝑑𝑥
𝑎 𝑎 𝑎 𝑎
′ 𝑏 𝑦 𝑏 − 𝑟 𝑎 𝑦′ 𝑎 𝑦 𝑎
= 𝑟 𝑏 𝑦𝑚 − 𝑟 𝑏 𝑦𝑛′ 𝑏 𝑦𝑚 𝑏 − 𝑟 𝑎 𝑦𝑛′ 𝑎 𝑦𝑚 𝑎
𝑛 𝑚 𝑛
= 𝑟 𝑎 𝑦𝑛′ 𝑎 𝑦𝑚 𝑎 − 𝑦𝑚
′ 𝑎 𝑦 𝑎
𝑛
′ 𝑏 𝑦 𝑏 − 𝑦′ 𝑏 𝑦 𝑏
+ 𝑟 𝑏 𝑦𝑚 𝑛 𝑛 𝑚
Case 2: 𝑟 𝑥 ≠ 0 at 𝑎 and 𝑏
𝐴1 𝑦𝑛 𝑎 𝐴1 𝑦𝑚 𝑎 𝐴2 𝑦𝑚 𝑏 𝐴2 𝑦𝑛 𝑏
=𝑟 𝑎 − 𝑦𝑚 𝑎 − − 𝑦𝑛 𝑎 +𝑟 𝑏 − 𝑦𝑛 𝑏 − − 𝑦𝑚 𝑏
𝐵1 𝐵1 𝐵2 𝐵2
𝑏
֜ න 𝑝 𝑥 𝑦𝑚 𝑦𝑛 𝑑𝑥 = 0 (𝜆𝑚 ≠ 𝜆𝑛 )
𝑎
Regular Sturm-Liouville problem
THEOREM 11.4.1: Properties of the Regular Sturm-Liouville Problem
• There exist an infinite number of real eigenvalues that can be arranged in
increasing order 𝜆1 < 𝜆2 < 𝜆3 < ⋯ such that 𝜆𝑘 → ∞ as 𝑘 → ∞.
• For each eigenvalue there is only one eigenfunction (except for nonzero constant
multiples, i.e. up to scale) and the eigenfunctions are linearly independent.
• The set of eigenfunctions corresponding to the set of eigenvalues is orthogonal
with respect to the weight function 𝑝(𝑥) on the interval [𝑎, 𝑏].
𝑘𝜋 2
Eigenvalues: 𝜆𝑘 = , 𝑘 = 0,1,2,3, …
𝐿
𝑘𝜋
Eigenfunctions: 𝑦𝑘 = cos 𝑥 , 𝑘 = 0,1,2,3, …
𝐿
Sturm-Liouville problem: Example 3
Solve
𝑦 ′′ + 𝜆𝑦 = 0
on
𝑥 ∈ [0,1]
subject to
𝑦(0) = 0
and
𝑦(1) + 𝑦′ 1 = 0
Sturm-Liouville problem: Example 3
Solve
𝑦 ′′ + 𝜆𝑦 = 0 • 𝜆=0
on
𝑥 ∈ [0,1] 𝑦′′ = 0
subject to 𝑦′ = 𝐴
𝑦(0) = 0 and 𝑦 = 𝐴𝑥 + 𝐵
𝑦 1 + 𝑦′(1) = 0
Substitute boundary conditions:
𝑦 0 = 0: 𝑦 1 + 𝑦′(1) = 0:
0 = 𝐴(0) + 𝐵 0=𝐴 1 +𝐴
֜𝐵=0 ֜𝐴=0
֜ 𝑦 = 𝐴𝑥 ֜𝑦=0
tan(𝛼) = −𝛼
Sturm-Liouville problem: Example 3
• 0 < 𝜆 = 𝛼2
𝛼1 𝛼2 𝛼3 𝛼4 𝛼5 𝛼6
tan(𝛼) = −𝛼
Sturm-Liouville problem: Example 3
• 0 < 𝜆 = 𝛼2
𝛼2
𝛼1 𝛼3 𝛼4 𝛼5 𝛼6
sin 𝛼 + 𝛼 cos 𝛼 = 0
Sturm-Liouville problem: Example 3
sin 𝛼 + 𝛼 cos 𝛼 = 0
Sturm-Liouville problem: Example 3
Solve
𝑦 ′′ + 𝜆𝑦 = 0 • 0 < 𝜆 = 𝛼2
on
𝑥 ∈ [0,1] 𝑦 ′′ + 𝛼 2 𝑦 = 0
subject to 𝑦 = 𝐴 cos 𝛼𝑥 + 𝐵 sin 𝛼𝑥
𝑦(0) = 0 and
𝑦 1 + 𝑦′(1) = 0
Substitute boundary conditions:
𝑦 0 = 0: 𝑦 1 + 𝑦′(1) = 0:
0 = 𝐴(1) + 𝐵 0 0 = 𝐵(sin 𝛼 + 𝛼 cos 𝛼 )
֜𝐴=0 𝑓 𝛼 = sin 𝛼 + 𝛼 cos 𝛼
֜ 𝑦 = 𝐵 sin 𝛼𝑥
42
PDEs
General concepts
43
Ordinary Derivatives
𝑦(𝑥) 𝑑𝑦
𝑦 ′ 𝑥1 = ቤ
𝑑𝑥 𝑥=𝑥
1
𝑥1 𝑥
Ordinary Derivatives
𝑦(𝑥) 𝑑𝑦
𝑦 ′ 𝑥1 = ቤ
𝑑𝑥 𝑥=𝑥
1
𝑥1 𝑥
𝑑𝑦 𝑦 𝑥1 + Δ𝑥 − 𝑦(𝑥1 )
ቤ = lim
𝑑𝑥 𝑥=𝑥 Δ𝑥→0 Δ𝑥
1
𝑥1 𝑥1 + Δ𝑥
Ordinary Derivatives
𝑦(𝑥) 𝑑𝑦
𝑦 ′ 𝑥1 = ቤ
𝑑𝑥 𝑥=𝑥
1
𝑥1 𝑥
𝑑𝑦 𝑦 𝑥1 + Δ𝑥 − 𝑦(𝑥1 )
ቤ = lim
𝑑𝑥 𝑥=𝑥 Δ𝑥→0 Δ𝑥
1
𝑥1 − Δ𝑥 𝑥1
𝑑𝑦 𝑦 𝑥1 − 𝑦(𝑥1 − Δ𝑥)
ቤ = lim
𝑑𝑥 𝑥=𝑥 Δ𝑥→0 Δ𝑥
1
Ordinary Derivatives
𝑦(𝑥) 𝑑𝑦
𝑦 ′ 𝑥1 = ቤ
𝑑𝑥 𝑥=𝑥
1
𝑥1 𝑥
𝑑𝑦 𝑦 𝑥1 + Δ𝑥 − 𝑦(𝑥1 )
ቤ = lim
𝑑𝑥 𝑥=𝑥 Δ𝑥→0 Δ𝑥
1
Δ𝑥 Δ𝑥
𝑑𝑦 𝑦 𝑥1 + 2 − 𝑦(𝑥1 − 2 )
ቤ = lim
𝑑𝑥 𝑥=𝑥 Δ𝑥→0 Δ𝑥
1 Δ𝑥 𝑥1 Δ𝑥
𝑥1 − 𝑥1 +
𝑑𝑦 𝑦 𝑥1 − 𝑦(𝑥1 − Δ𝑥) 2 2
ቤ = lim
𝑑𝑥 𝑥=𝑥 Δ𝑥→0 Δ𝑥
1
Ordinary Derivatives
𝑦(𝑥) 𝑑𝑦
𝑦 ′ 𝑥1 = ቤ
𝑑𝑥 𝑥=𝑥
1
𝑥1 𝑥
Δ𝑥 Δ𝑥
𝑑𝑦 𝑦 𝑥1 + 2 − 𝑦(𝑥1 − 2 )
ቤ ≈ Central differencing
𝑑𝑥 𝑥=𝑥 Δ𝑥
1 𝑥1 − Δ𝑥 𝑥1 𝑥1 + Δ𝑥
𝑑𝑦 𝑦 𝑥1 − 𝑦(𝑥1 − Δ𝑥)
ቤ ≈ Backward differencing
𝑑𝑥 𝑥=𝑥 Δ𝑥
1
Ordinary Derivatives
𝑦(𝑥) 𝑑𝑦
𝑦 ′ 𝑥1 = ቤ
𝑑𝑥 𝑥=𝑥
1
𝑥1 𝑥
𝑑𝑦 𝑦 𝑥1 + Δ𝑥 − 𝑦(𝑥1 − Δ𝑥)
ቤ ≈ Central differencing
𝑑𝑥 𝑥=𝑥 2Δ𝑥
1
𝑥1 − Δ𝑥 𝑥1 𝑥1 + Δ𝑥
𝑑𝑦 𝑦 𝑥1 − 𝑦(𝑥1 − Δ𝑥)
ቤ ≈ Backward differencing
𝑑𝑥 𝑥=𝑥 Δ𝑥
1
Partial Derivatives
Partial Derivatives
Partial Derivatives
Partial Derivatives
𝑓 𝑥, 𝑦 = 2𝑦𝑥 2 + 3𝑦 3
𝜕𝑓
= 4𝑦𝑥
𝜕𝑥
𝜕𝑓
= 2𝑥 2 + 9𝑦 2
𝜕𝑦
Notation
𝜕2𝑢 𝜕 2𝑢
Wave: = 𝑐 2 𝑢𝑡𝑡 = 𝑐 2 𝑢𝑥𝑥
𝜕𝑡 2 𝜕𝑥 2
𝜕𝑢 𝜕2𝑢
Heat: =𝜎 2 𝑢𝑡 = 𝜎𝑢𝑥𝑥
𝜕𝑡 𝜕𝑥
𝜕2𝑢 𝜕2𝑢
Laplace: + 2=0 𝑢𝑥𝑥 + 𝑢𝑦𝑦 = 0
𝜕𝑥 2 𝜕𝑦
Order
The highest order derivative in the PDE determines the
order of the PDE
Elliptic: Δ < 0
Parabolic: Δ = 0
Hyperbolic: Δ > 0
Classification of semi-linear 2nd order PDEs:
Δ = −4 < 0
Hyperbolic: Δ > 0
Classification of semi-linear 2nd order PDEs:
Δ = 4𝐶 2 > 0
Hyperbolic: Δ > 0
Classification of semi-linear 2nd order PDEs:
Δ=0
Hyperbolic: Δ > 0
The superposition principle
Applicable to linear, homogeneous PDEs
A general second order, linear, homogeneous PDE:
𝑎 𝑥, 𝑦 𝑢𝑥𝑥 + 𝑏 𝑥, 𝑦 𝑢𝑥𝑦 + 𝑐 𝑥, 𝑦 𝑢𝑦𝑦 + 𝑑 𝑥, 𝑦 𝑢𝑥 + 𝑒 𝑥, 𝑦 𝑢𝑦 + 𝑓 𝑥, 𝑦 𝑢 = 0
- Linear: all term must be linear (in 𝑢 and its derivatives)
- Homogeneous: no terms in 𝑥 or 𝑦 only
Let’s check if 𝑤(𝑥, 𝑦) = 𝛼𝑢1 (𝑥, 𝑦) + 𝛽𝑢2 (𝑥, 𝑦) also solves the PDE:
𝐴 𝑥, 𝑦 𝑤𝑥𝑦𝑦 (𝑥, 𝑦) + 𝑤 𝑥, 𝑦 + 𝐵 𝑥, 𝑦 𝑤𝑦 𝑥, 𝑦
Let’s check if 𝑤(𝑥, 𝑦) = 𝛼𝑢1 (𝑥, 𝑦) + 𝛽𝑢2 (𝑥, 𝑦) also solves the PDE:
𝐴 𝑥, 𝑦 𝑤𝑥𝑦𝑦 (𝑥, 𝑦) + 𝑤 𝑥, 𝑦 + 𝐵 𝑥, 𝑦 𝑤𝑦 𝑥, 𝑦
= 𝛼 𝐴 𝑥, 𝑦 𝑢1 𝑥𝑦𝑦 𝑥, 𝑦 + 𝑢1 𝑥, 𝑦 + 𝐵 𝑥, 𝑦 𝑢1 𝑦 𝑥, 𝑦
+ 𝛽 𝐴 𝑥, 𝑦 𝑢2 𝑥𝑦𝑦 𝑥, 𝑦 + 𝑢2 𝑥, 𝑦 + 𝐵 𝑥, 𝑦 𝑢2 𝑦 (𝑥, 𝑦)
If 𝑢1 and 𝑢2 are both
The superposition principle solutions of the PDE, then
𝑤 = 𝛼𝑢1 + 𝛽𝑢2 is also a
Example solution, where 𝛼 and 𝛽
are constants.
A third order, linear, homogeneous PDE:
𝐴 𝑥, 𝑦 𝑢𝑥𝑦𝑦 (𝑥, 𝑦) + 𝑢 𝑥, 𝑦 + 𝐵(𝑥, 𝑦)𝑢𝑦 (𝑥, 𝑦) = 0
Let’s check if 𝑤(𝑥, 𝑦) = 𝛼𝑢1 (𝑥, 𝑦) + 𝛽𝑢2 (𝑥, 𝑦) also solves the PDE:
𝐴 𝑥, 𝑦 𝑤𝑥𝑦𝑦 (𝑥, 𝑦) + 𝑤 𝑥, 𝑦 + 𝐵 𝑥, 𝑦 𝑤𝑦 𝑥, 𝑦
Final solution…???
Boundary value problem
Under defined ODE:
𝑢
Final solution…???
Boundary value problem
Under defined ODE:
ODE for SHM: 𝑢ሷ + 𝜔2 𝑢 = 0
Domain: 𝑡 ∈ [0, ∞)
BC: 𝑢 0 = 0.5 m
…
Most general solution:
𝑢 𝑡 = 𝐴 sin(𝜔𝑡) + 𝐵 cos(𝜔𝑡)
Final solution…???
Boundary value problem
Under defined ODE:
𝑢
Final solution…???
Boundary value problem
Under defined ODE:
𝑢
Final solution…???
Boundary value problem
Over defined ODE:
ODE for Exp. growth: 𝑢ሶ = 𝑢
Domain: 𝑡 ∈ [0, ∞)
BC: 𝑢 0 = 0.5 …[1]
𝑢ሶ 0 = 0.2 s−1 …[2]
Most general solution:
𝑢 𝑡 = 𝐶𝑒 𝑡
More specific solution (imposing BC[1]):
𝑢 𝑡 = 0.5𝑒 𝑡
But this is the “final solution” – no integration constant left
– but 𝑢ሶ 0 = 0.5, so BC[2] is not satisfied!!
Boundary value problem
Over defined ODE:
ODE for Exp. growth: 𝑢ሶ = 𝑢
Domain: 𝑡 ∈ [0, ∞)
BC: 𝑢 0 = 0.5 …[1]
𝑢ሶ 0 = 0.2 s−1 …[2]
Most general solution:
𝑢 𝑡 = 𝐶𝑒 𝑡
More specific solution (imposing BC[1]):
𝑢 𝑡 = 0.5𝑒 𝑡
But this is the “final solution” – no integration constant left
– but 𝑢ሶ 0 = 0.5, so BC[2] is not satisfied!!
Boundary value problem
A PDE governs the physical phenomenon we are modelling.
To find a unique solution for the specific problem, we also
need to state the domain and the boundary conditions.
A well-posed boundary value problem is a problem is not
under or over defined and has a unique solution.
Boundary value problem
Heat equation: 𝑢𝑡 = 𝜎𝑢𝑥𝑥 𝑢(𝑥, 𝑡)
𝑢
𝑡
𝑥
Boundary value problem
Heat equation: 𝑢𝑡 = 𝜎𝑢𝑥𝑥 𝑢(𝑥, 𝑡)
Domain: 𝑥 ∈ 0, 𝐿
𝑡 ∈ [0, ∞)
𝑢
𝑡 ∞
∞
𝑥
0 𝐿
Boundary value problem
Heat equation: 𝑢𝑡 = 𝜎𝑢𝑥𝑥 𝑢(𝑥, 𝑡)
Domain: 𝑥 ∈ 0, 𝐿
𝑡 ∈ [0, ∞)
𝑢
𝑡 ∞
∞
𝑢 0, 𝑡 = ?
𝑥 𝑢 𝐿, 𝑡 = ?
0 𝐿
𝑢 𝑥, 0 = ?
Heat equation: let’s play
Heat equation: 𝑢𝑡 = 𝜎𝑢𝑥𝑥 𝑢(𝑥, 𝑡)
Domain: 𝑥 ∈ 0, 𝐿
𝑡 ∈ [0, ∞)
𝑡 ∞
∞
𝑥
0 𝐿
Heat equation: let’s play
Heat equation: 𝑢𝑡 = 𝜎𝑢𝑥𝑥 𝑢(𝑥, 𝑡)
Domain: 𝑥 ∈ 0, 𝐿
𝑡 ∈ [0, ∞)
Initial condition:
𝑡 ∞
∞
𝑥
0 𝐿
Heat equation: let’s play
Heat equation: 𝑢𝑡 = 𝜎𝑢𝑥𝑥 𝑢(𝑥, 𝑡)
Domain: 𝑥 ∈ 0, 𝐿
𝑡 ∈ [0, ∞)
10
𝑡 ∞
∞
𝑥
0 𝐿
Heat equation: let’s play
Heat equation: 𝑢𝑡 = 𝜎𝑢𝑥𝑥 𝑢(𝑥, 𝑡)
Domain: 𝑥 ∈ 0, 𝐿
𝑡 ∈ [0, ∞)
3𝜋
Initial condition: 𝑢(𝑥, 0) = 10sin 𝑥
𝐿
Boundary conditions: 𝑢(0, 𝑡) = 0 𝑡 ∈ [0, ∞)
𝑢(𝐿, 𝑡) = 0 𝑡 ∈ [0, ∞)
𝑢
10
𝑡 ∞
∞
𝑥
0 𝐿
Heat equation: let’s play
𝑢𝑡 = 𝜎𝑢𝑥𝑥 on 𝑥 ∈ 0, 𝐿 , 𝑡 ∈ [0, ∞)
with: 3𝜋𝑥
[1] 𝑢(𝑥, 0) = 10 sin 𝑥 ∈ 0, 𝐿
𝐿
[2] 𝑢(0, 𝑡) = 0 𝑡 ∈ [0, ∞)
[3] 𝑢(𝐿, 𝑡) = 0 𝑡 ∈ [0, ∞)
[4] lim 𝑢(𝑥, 𝑡) is finite 𝑥 ∈ 0, 𝐿
𝑡→∞
Let’s just assume we know that the solution is of the form
(separation of variables):
−𝜎𝜆 2𝑡
𝑢 𝑥, 𝑡 = 𝑒 𝐴 cos 𝜆𝑥 + 𝐵 sin 𝜆𝑥
𝜎𝜆 2𝑡
+𝑒 𝐶 cosh 𝜆𝑥 + 𝐷 sinh 𝜆𝑥 + 𝐸𝑥 + 𝐹
Heat equation: let’s play
𝑢𝑡 = 𝜎𝑢𝑥𝑥 on 𝑥 ∈ 0, 𝐿 , 𝑡 ∈ [0, ∞)
with: 3𝜋𝑥
[1] 𝑢(𝑥, 0) = 10 sin 𝑥 ∈ 0, 𝐿
𝐿
[2] 𝑢(0, 𝑡) = 0 𝑡 ∈ [0, ∞)
[3] 𝑢(𝐿, 𝑡) = 0 𝑡 ∈ [0, ∞)
[4] lim 𝑢(𝑥, 𝑡) is finite 𝑥 ∈ 0, 𝐿
𝑡→∞
Let’s just assume we know that the solution is of the form
(separation of variables):
−𝜎𝜆 2𝑡
𝑢 𝑥, 𝑡 = 𝑒 𝐴 cos 𝜆𝑥 + 𝐵 sin 𝜆𝑥
𝜎𝜆 2𝑡
+𝑒 𝐶 cosh 𝜆𝑥 + 𝐷 sinh 𝜆𝑥 + 𝐸𝑥 + 𝐹
We now solve these 7 constants by imposing the boundary
conditions one by one.
Heat equation: let’s play
𝑢𝑡 = 𝜎𝑢𝑥𝑥 on 𝑥 ∈ 0, 𝐿 , 𝑡 ∈ [0, ∞)
with: 3𝜋𝑥
[1] 𝑢(𝑥, 0) = 10 sin 𝑥 ∈ 0, 𝐿
𝐿
[2] 𝑢(0, 𝑡) = 0 𝑡 ∈ [0, ∞)
[3] 𝑢(𝐿, 𝑡) = 0 𝑡 ∈ [0, ∞)
[4] lim 𝑢(𝑥, 𝑡) is finite 𝑥 ∈ 0, 𝐿
𝑡→∞
Impose [4]: 𝐶 = 0, 𝐷 = 0
Heat equation: let’s play
𝑢𝑡 = 𝜎𝑢𝑥𝑥 on 𝑥 ∈ 0, 𝐿 , 𝑡 ∈ [0, ∞)
with: 3𝜋𝑥
[1] 𝑢(𝑥, 0) = 10 sin 𝑥 ∈ 0, 𝐿
𝐿
[2] 𝑢(0, 𝑡) = 0 𝑡 ∈ [0, ∞)
[3] 𝑢(𝐿, 𝑡) = 0 𝑡 ∈ [0, ∞)
[4] lim 𝑢(𝑥, 𝑡) is finite 𝑥 ∈ 0, 𝐿
𝑡→∞
Final solution:
3𝜋 2
−𝜎 𝑡 3𝜋𝑥
𝑢 𝑥, 𝑡 = 𝑒 𝐿 10 sin
𝐿
Final solution:
3𝜋 2
−𝜎 𝑡 3𝜋𝑥
𝑢 𝑥, 𝑡 = 𝑒 𝐿 10 sin
𝐿
But… what are the odds??
Most general solution:
−𝜎𝜆 2𝑡
𝑢 𝑥, 𝑡 = 𝑒 𝐴 cos 𝜆𝑥 + 𝐵 sin 𝜆𝑥
𝜎𝜆2 𝑡
+𝑒 𝐶 cosh 𝜆𝑥 + 𝐷 sinh 𝜆𝑥 + 𝐸𝑥 + 𝐹
𝑢 10𝑥 + 10 𝑥 ∈ [−1,0]
??? 𝑢(𝑥, 0) = ቊ
10 −10𝑥 + 10 𝑥 ∈ (0,1]
𝑡 ∞
∞
𝑥
−1 1
Most general solution:
2
𝑢 𝑥, 𝑡 = 𝑒 −𝜎𝜆 𝑡 𝐴 cos 𝜆𝑥 + 𝐵 sin 𝜆𝑥
𝜎𝜆 2𝑡
+𝑒 𝐶 cosh 𝜆𝑥 + 𝐷 sinh 𝜆𝑥 + 𝐸𝑥 + 𝐹
𝑢 10𝑥 + 10 𝑥 ∈ [−1,0]
??? 𝑢(𝑥, 0) = ቊ
10 −10𝑥 + 10 𝑥 ∈ (0,1]
𝑡 ∞
∞
𝑥
−1 1
PDEs
𝑢 (℃) 𝑢 (𝑚)
𝑡 ∞ 𝑡 ∞
𝑥 𝑥
0 𝐿 0 𝐿
Initial Conditions
Domain: 𝑥 ∈ 0, 𝐿 , 𝑡 ∈ [0, ∞)
𝑢 𝑢 (𝑚)
𝑡 ∞ 𝑡 ∞
𝑥 𝑥
0 𝐿 0 𝐿
Boundary Conditions
Domain: 𝑥 ∈ 0, 𝐿 , 𝑡 ∈ [0, ∞)
𝑢 𝑢 (𝑚)
𝑡 ∞ 𝑡 ∞
𝑥 𝑥
0 𝐿 0 𝐿
Boundary Conditions
Domain: 𝑥 ∈ 0, 𝐿 , 𝑡 ∈ [0, ∞)
𝑡 ∞
𝑥 Insulated
0 𝐿 (adiabatic BC)
Boundary Conditions
Domain: 𝑥 ∈ 0, 𝐿 , 𝑡 ∈ [0, ∞)
𝜕𝑢
(iii) Robin condition: + 𝐶𝑢 (𝐶 is constant) Newton’s law of cooling:
𝜕𝑛 𝑑𝑢(𝑡)
= −ℎ 𝑢 𝑡 − 𝑢𝑚
−𝐾𝑢𝑥 0, 𝑡 = ℎ 𝑢 0, 𝑡 − 𝑢𝑚 (ℎ > 0) 𝑑𝑡
Fourier’s law of heat conduction:
−𝐾𝑢𝑥 𝐿, 𝑡 = ℎ 𝑢 𝐿, 𝑡 − 𝑢𝑚 (ℎ > 0) 𝑑𝑢
𝑞 = −𝐾
𝑑𝑥
𝑢
These boundary conditions says that
the heat flowing out of the rod by
conduction at the tip equals heat 𝑡 ∞
lost to air by convection — it's a 𝑢𝑚
balance of fluxes. 𝑢𝑚
𝑥
0 𝐿
Boundary Conditions
Nonhomogeneous boundary conditions
(i) Dirichlet condition: 𝑢 ≠ 0
(ii) Neumann condition: 𝑢𝑥 ≠ 0
(iii) Robin condition: 𝑢𝑥 = ±ℎ 𝑢 − 𝑢𝑚 (𝑢𝑚 ≠ 0)
105
The HEAT equation
Simple Example
106
Appendix A (3 ODEs) 𝜓(𝜉):
Exponential growth/decay:
𝑑𝜓
= 𝐴𝜓 𝜓 𝜉 = 𝐶𝑒 𝐴𝜉
𝑑𝜉
SHM:
𝑑2𝜓 2𝜓 = 0
+ 𝐴 𝜓 𝜉 = 𝐶1 sin(𝐴𝜉) + 𝐶2 cos(𝐴𝜉)
𝑑𝜉 2
𝜓 𝜉 = 𝐶3 𝑒 𝑖𝐴𝜉 + 𝐶4 𝑒 −𝑖𝐴𝜉
Anti-SHM:
𝑑2𝜓 2𝜓 = 0
− 𝐴 𝜓 𝜉 = 𝐶1 sinh(𝐴𝜉) + 𝐶2 cosh(𝐴𝜉)
𝑑𝜉 2
𝜓 𝜉 = 𝐶3 𝑒 𝐴𝜉 + 𝐶4 𝑒 −𝐴𝜉
Separation of variables:
As an example, consider the 1D HEAT equation
Seek solutions of the form of a product of a function of 𝑥 and a function of 𝑡.
Separation of variables:
As an example, consider the 1D HEAT equation
Seek solutions of the form of a product of a function of 𝑥 and a function of 𝑡.
𝑢𝑡 = 𝜎𝑢𝑥𝑥 …(1)
Now we separate the terms containing 𝑡’s and 𝑥 ′ 𝑠 in (2), and we integrate:
𝑋 𝑥 𝑇′ 𝑡 𝜎𝑋 ′′ (𝑥)𝑇 𝑡
=
𝜎𝑋 𝑥 𝑇(𝑡) 𝜎𝑋 𝑥 𝑇(𝑡)
𝑇′ 𝑡 𝑋 ′′ (𝑥)
= …(3)
𝜎𝑇(𝑡) 𝑋 𝑥
Separation of variables:
As an example, consider the 1D HEAT equation
Seek solutions of the form of a product of a function of 𝑥 and a function of 𝑡.
𝑇′ 𝑡 𝑋 ′′ (𝑥)
= …(3)
𝜎𝑇(𝑡) 𝑋 𝑥
We need a function in terms of only 𝑡 to be equal to a function in terms of only
𝑥. The only way this is possible, is if both functions are equal to the same
constant.
Find the general solution and impose the boundary conditions one-by-one:
• Find the most general solution of the form 𝑢 𝑥, 𝑡 = 𝑋 𝑥 𝑇(𝑡) of the PDE
by considering a positive, a negative, and a separation constant of zero.
• Solve all the constants of integration (but one) by imposing the boundary
conditions one by one.
• Impose the initial condition to obtain the final solution.
Separation of variables:
As an example, consider the 1D HEAT equation
Seek solutions of the form of a product of a function of 𝑥 and a function of 𝑡.
𝑇′ 𝑡 𝑋 ′′ (𝑥)
= …(3)
𝜎𝑇(𝑡) 𝑋 𝑥
We need a function in terms of only 𝑡 to be equal to a function in terms of only
𝑥. The only way this is possible, is if both functions are equal to the same
constant.
Or first solve the Strum-Liouville problem (bypass solving the general solution):
• Set the RHS of (3) equal to −𝜆 and solve the regular Sturm-Liouville problem
in 𝑋(𝑥) by imposing the boundary conditions. Therefore, solve the
eigenfunctions 𝑋𝑘 𝑥 and the corresponding eigenvalues 𝜆𝑘 by considering
the 3 cases 𝜆 = 0, 𝜆 = 𝛼 2 , 𝜆 = −𝛼 2 .
• Solve 𝑇𝑘 𝑡 by setting the LHS of (3) equal to the eigenvalues −𝜆𝑘 .
• 𝑢 𝑥, 𝑡 = 𝑋 𝑥 𝑇(𝑡)
• Impose the initial condition to obtain the final solution.
Find the general solution
𝑇′ 𝑡 𝑋 ′′ (𝑥)
and solve BVP. = …(3)
𝜎𝑇(𝑡) 𝑋 𝑥
Separation constant zero:
𝑇′ 𝑡 = 0 𝑋 ′′ 𝑥 = 0
𝑇1 𝑡 = 𝐴 𝑋1 𝑥 = 𝐵𝑥 + 𝐶
First solution: 𝑢1 𝑥, 𝑡 = 𝐴 𝐵𝑥 + 𝐶 = 𝐴𝐵 𝑥 + 𝐴𝐶 = 𝐷𝑥 + 𝐸
𝑢1 𝑥, 𝑡 = 𝐷𝑘 𝑥 + 𝐸𝑘
𝑘=1
= 𝐷1 + 𝐷2 + 𝐷3 + ⋯ 𝑥 + (𝐸1 + 𝐸2 + 𝐸3 + ⋯ )
= 𝐹𝑥 + 𝐺
𝑇′ 𝑡 𝑋 ′′ (𝑥)
= …(3)
𝜎𝑇(𝑡) 𝑋 𝑥
𝑢1 𝑥, 𝑡 = 𝐹𝑥 + 𝐺
𝜎𝛽 2𝑡
Second solution: 𝑢2 𝑥, 𝑡 = 𝐻𝑒 𝐾 sinh 𝛽𝑥 + 𝑀 cosh 𝛽𝑥
2
= 𝑒 𝜎𝛽 𝑡 𝑃 sinh 𝛽𝑥 + 𝑄 cosh 𝛽𝑥
This is a solution to a linear, homogeneous PDE: from superposition principle any
linear combination of this solution is also a solution.
∞
2
𝑢2 𝑥, 𝑡 = 𝑒 𝑡
𝜎𝛽𝑘 𝑃𝑘 sinh 𝛽𝑘 𝑥 + 𝑄𝑘 cosh 𝛽𝑘 𝑥
𝑘=1
𝑇′ 𝑡 𝑋 ′′ (𝑥)
= …(3)
𝜎𝑇(𝑡) 𝑋 𝑥
𝑢1 𝑥, 𝑡 = 𝐹𝑥 + 𝐺
∞
2
𝑢2 𝑥, 𝑡 = 𝑒 𝜎𝛽𝑘 𝑡 𝑃𝑘 sinh 𝛽𝑘 𝑥 + 𝑄𝑘 cosh 𝛽𝑘 𝑥
𝑘=1
Separation constant negative: −𝜇2
𝑇 ′ 𝑡 = −𝜎𝜇2 𝑇(𝑡) 𝑋 ′′ 𝑥 = −𝜇2 𝑋(𝑥)
2𝑡
𝑋 ′′ 𝑥 + 𝜇2 𝑋 𝑥 = 0
𝑇3 𝑡 = 𝑅𝑒 −𝜎𝜇
𝑋3 𝑥 = 𝑆𝑒 𝑖𝜇𝑥 + 𝑈𝑒 −𝑖𝜇𝑥
𝑋3 𝑥 = 𝑉 sin(𝜇𝑥) + 𝑊 cos(𝜇𝑥)
−𝜎𝜇 2𝑡
Third solution: 𝑢3 𝑥, 𝑡 = 𝑅𝑒 𝑉 sin 𝜇𝑥 + 𝑊 cos 𝜇𝑥
2
= 𝑒 −𝜎𝜇 𝑡 𝑌 sin 𝜇𝑥 + 𝑍 cos 𝜇𝑥
This is a solution to a linear, homogeneous PDE: from superposition principle any
linear combination of this solution is also a solution.
∞
2
−𝜎𝜇 𝑡
𝑢3 𝑥, 𝑡 = 𝑒 𝑘 𝑌𝑘 sin 𝜇𝑘 𝑥 + 𝑍𝑘 cos 𝜇𝑘 𝑥
𝑘=1
𝑢𝑡 = 𝜎𝑢𝑥𝑥 …(1)
𝑢1 𝑥, 𝑡 = 𝐹𝑥 + 𝐺
∞
2
𝑢2 𝑥, 𝑡 = 𝑒 𝜎𝛽𝑘 𝑡 𝑃𝑘 sinh 𝛽𝑘 𝑥 + 𝑄𝑘 cosh 𝛽𝑘 𝑥
𝑘=1
∞
2
𝑢3 𝑥, 𝑡 = 𝑒 −𝜎𝜇𝑘𝑡 𝑌𝑘 sin 𝜇𝑘 𝑥 + 𝑍𝑘 cos 𝜇𝑘 𝑥
𝑘=1
𝑃𝑘 = 𝑄𝑘 = 0 ∀ 𝑘
∞
2
𝑢 0, 𝑡 = 𝑒 −𝜎𝜇𝑘 𝑡 𝑍𝑘 + 𝐺
𝑘=1
𝑍𝑘 = 0 ∀ 𝑘, 𝐺=0
∞
2
𝑢 𝐿, 𝑡 = 𝑒 −𝜎𝜇𝑘 𝑡 𝑌𝑘 sin 𝜇𝑘 𝐿 + 𝐹𝐿
𝑘=1
𝐹 = 0, sin 𝜇𝑘 𝐿 = 0 ∀ 𝑘
𝑘𝜋
𝜇𝑘 = , 𝑘 = 1,2,3, …
𝐿
𝑢𝑡 = 𝜎𝑢𝑥𝑥 …(1)
∞
𝑘𝜋
𝑢 𝑥, 0 = 𝑌𝑘 sin 𝑥
𝐿
𝑘=1
Write the initial condition in term of a Fourier series that is completed as an odd function over
𝑥 ∈ [−𝐿, 𝐿], i.e.:
∞
𝑘𝜋𝑥
𝑓 𝑥 = 𝑏𝑘 sin
𝐿
𝑘=1
where
2 𝐿 𝑘𝜋𝑥
𝑏𝑘 = න 𝑓 𝑥 sin 𝑑𝑥
𝐿 0 𝐿
𝑌𝑘 = 𝑏𝑘 ∀ 𝑘
Final solution: ∞
𝑘𝜋 2 𝑘𝜋
−𝜎 𝐿 𝑡
𝑢 𝑥, 𝑡 = 𝑒 𝑏𝑘 sin 𝑥
𝐿
𝑘=1
Solve the Sturm-Liouville
𝑇′ 𝑡 𝑋 ′′ (𝑥)
problem, then solve BVP. = …(3)
𝜎𝑇(𝑡) 𝑋 𝑥
Separation constant: −𝜆
𝑢 0, 𝑡 = 𝑋 0 𝑇 𝑡 = 0 ֜ 𝑋 0 =0
𝑢 0, 𝑡 = 𝑋 𝐿 𝑇 𝑡 = 0 ֜ 𝑋 𝐿 =0
Sturm-Liouville problem
𝑋1 𝑥 = 𝐴𝑥 + 𝐵 Trivial solution
𝑢 0, 𝑡 = 𝑋 0 𝑇 𝑡 = 0 ֜ 𝑋 0 =0
𝑢 0, 𝑡 = 𝑋 𝐿 𝑇 𝑡 = 0 ֜ 𝑋 𝐿 =0
2 Sturm-Liouville problem
′
𝑘𝜋
𝑇 𝑡 +𝜎 𝑇(𝑡) = 0
𝐿
Eigenvalues: 2
𝑘𝜋 2 𝑘𝜋
−𝜎 𝐿 𝑡 2
𝑇𝑘 𝑡 = 𝐹𝑘 𝑒 𝜆=𝛼 =
𝐿
𝑢𝑘 𝑥, 𝑡 = 𝑇𝑘 𝑡 𝑋𝑘 𝑥 Eigenfunctions:
𝑘𝜋 2 𝑘𝜋 𝑘𝜋
𝑢𝑘 𝑥, 𝑡 = 𝑒
−𝜎 𝐿 𝑡
𝑌𝑘 sin 𝑥 𝑋𝑘 (𝑥) = 𝐸𝑘 sin 𝑥
𝐿 𝐿
𝑢𝑡 = 𝜎𝑢𝑥𝑥 …(1)
∞
𝑘𝜋
𝑢 𝑥, 0 = 𝑌𝑘 sin 𝑥
𝐿
𝑘=1
Write the initial condition in term of a Fourier series that is completed as an odd function over
𝑥 ∈ [−𝐿, 𝐿], i.e.:
∞
𝑘𝜋𝑥
𝑓 𝑥 = 𝑏𝑘 sin
𝐿
𝑘=1
where
2 𝐿 𝑘𝜋𝑥
𝑏𝑘 = න 𝑓 𝑥 sin 𝑑𝑥
𝐿 0 𝐿
𝑌𝑘 = 𝑏𝑘 ∀ 𝑘
Final solution: ∞
𝑘𝜋 2 𝑘𝜋
−𝜎 𝐿 𝑡
𝑢 𝑥, 𝑡 = 𝑒 𝑏𝑘 sin 𝑥
𝐿
𝑘=1
The HEAT equation
Derivation
123
Diffusion equations Δ𝑄 = 𝑐𝑚Δ𝑇
𝑐 (J/(K∙kg)): specific heat
𝑇 (Kelvin) 1
𝑐𝑚
Temperature
𝑄 (Joule)
𝑄0
Heat
Diffusion equations: Mass flow
Fick’s first law:
Flux of a substance in the positive coordinate direction is directly proportional to
negative the concentration gradient
#𝐴 𝑑𝑐𝐴
𝑗= = −𝐷𝐴𝐵
Area × Time 𝑑𝑧
𝑧
Diffusion equations: Mass flow
Fick’s first law:
Flux of a substance in the positive coordinate direction is directly proportional to
negative the concentration gradient
#𝐴 𝑑𝑐𝐴
𝑗= = −𝐷𝐴𝐵
Area × Time 𝑑𝑧
#𝐴 (kg)
𝑧
Diffusion equations: Mass flow
Fick’s first law:
Flux of a substance in the positive coordinate direction is directly proportional to
negative the concentration gradient
#𝐴 𝑑𝑐𝐴
𝑗= = −𝐷𝐴𝐵
Area × Time 𝑑𝑧
𝑧
Diffusion equations: Mass flow
Fick’s first law:
Flux of a substance in the positive coordinate direction is directly proportional to
negative the concentration gradient
#𝐴 𝑑𝑐𝐴
𝑗= = −𝐷𝐴𝐵
Area × Time 𝑑𝑧
Concentration 𝑐𝐴 (kg/m3 )
Concentration gradient < 0: Δ𝑧 = 𝑧2 − 𝑧1 > 0 and Δ𝑐 = 𝑐2 − 𝑐1 < 0
𝑧
Diffusion equations
Fick’s first law (mass flow) (mid 1800’s):
Flux of a substance in the positive coordinate direction is directly proportional to
negative the concentration gradient
#𝐴 𝑑𝑐𝐴
𝑗= = −𝐷𝐴𝐵
Area × Time 𝑑𝑧
𝜕𝑄 𝜕𝑇
❷ = −𝐾𝐴
𝜕𝑡 𝜕𝑥
The 1D Heat equation
conductivity not constant
• Let the temperature (our dependent variable) be denoted by 𝑢(𝑥, 𝑡).
Assumptions:
• The flow of heat within the rod takes place only in the 𝑥-direction.
• The lateral, or curved, surface of the rod is insulated; that is, no heat
escapes from this surface.
• Rod is homogeneous: Constant density, 𝜌 (kg∙m−3 );
Constant cross-sectional area, 𝐴 (m2 )
• Constant specific heat, 𝑐 (J∙K −1 ∙kg −1 ) Let’s play –
−1 −1
• Thermal conductivity, 𝐾(𝑥) (W∙m ∙K ) differ here from textbook
The 1D Heat equation
conductivity not constant
Δ𝑄1 𝑡 Δ𝑄2 𝑡
𝑥
𝑥 𝑥 + Δ𝑥
The 1D Heat equation
conductivity not constant
“a little bit of…” Δ pertaining
Take a small element to small element
Δ𝑄1 𝑡 Δ𝑄2 𝑡
𝑥
𝑥 𝑥 + Δ𝑥
The 1D Heat equation
conductivity not constant
Δ𝑄1 𝑡 Δ𝑄2 𝑡
𝑥
𝑥 𝑥 + Δ𝑥
“The rate of heat flowing into the element – The rate of heat flowing out of the element
= The rate of change of heat in the element”
❶ 𝑄 = 𝑐𝑚𝑢 + 𝑄0
❷ 𝑄𝑡 = −𝐾𝐴𝑢𝑥
The 1D Heat equation
conductivity not constant
Δ𝑄1 𝑡 Δ𝑄2 𝑡
𝑥
𝑥 𝑥 + Δ𝑥
“The rate of heat flowing into the element – The rate of heat flowing out of the element”
❷ 𝑄𝑡 = −𝐾𝐴𝑢𝑥
(Δ𝑄1 )𝑡 − Δ𝑄2 𝑡
Δ𝑄1 𝑡 Δ𝑄2 𝑡
𝑥
𝑥 𝑥 + Δ𝑥
OR – note change in diagram, “The rate of heat flowing into the element”
❷ 𝑄𝑡 = −𝐾𝐴𝑢𝑥
(Δ𝑄1 )𝑡 + Δ𝑄2 𝑡
Δ𝑄
𝑥
Δ𝑥
𝑥+
2
“a little bit of…” Δ
“= The rate of change of heat in the element”
pertaining to small
element The quantity of heat Q in
❶ 𝑄 = 𝑐𝑚𝑢 + 𝑄0 an element of mass m
𝑥 𝑥 + Δ𝑥
“The rate of heat flowing into the element – The rate of heat flowing out of the element
= The rate of change of heat in the element”
Δ𝑥
𝑐 Δ𝑚 𝑢𝑡 𝑥 + , 𝑡 = 𝐾(𝑥 + Δ𝑥)𝐴𝑢𝑥 (𝑥 + Δ𝑥, 𝑡) − 𝐾 𝑥 𝐴𝑢𝑥 𝑥, 𝑡
2
Δ𝑥 1
𝑢𝑡 𝑥 + ,𝑡 = 𝐾(𝑥 + Δ𝑥)𝐴𝑢𝑥 𝑥 + Δ𝑥, 𝑡 − 𝐾 𝑥 𝐴𝑢𝑥 𝑥, 𝑡
2 𝑐 𝜌Δ𝑉
1
= 𝐾 𝑥 + Δ𝑥 𝐴𝑢𝑥 𝑥 + Δ𝑥, 𝑡 − 𝐾(𝑥)𝐴𝑢𝑥 𝑥, 𝑡
𝑐𝜌𝐴Δ𝑥
The 1D Heat equation
conductivity not constant
Δ𝑄 𝑡 Δ𝑄 𝑡
𝑥
𝑥 𝑥 + Δ𝑥
Δ𝑥 1
𝑢𝑡 𝑥+ ,𝑡 = 𝐾 𝑥 + Δ𝑥 𝐴𝑢𝑥 𝑥 + Δ𝑥, 𝑡 − 𝐾 𝑥 𝐴𝑢𝑥 𝑥, 𝑡
2 𝑐𝜌𝐴Δ𝑥
1 𝜕
𝑢𝑡 𝑥, 𝑡 = 𝐾 𝑥 𝑢𝑥 𝑥, 𝑡
𝑐𝜌 𝜕𝑥
1
= 𝐾 𝑥 𝑢𝑥 𝑥, 𝑡 + 𝐾(𝑥) 𝑢𝑥𝑥 𝑥, 𝑡
𝑐𝜌 𝑥
1
𝑢𝑡 = 𝐾𝑥 𝑢𝑥 + 𝐾𝑢𝑥𝑥
𝑐𝜌
The 1D Heat equation
conductivity not constant
1
𝑢𝑡 = 𝐾𝑥 𝑢𝑥 + 𝐾𝑢𝑥𝑥
𝑐𝜌
constant conductivity
𝐾
𝑢𝑡 = 𝑢𝑥𝑥
𝑐𝜌
The 1D Heat equation 𝜎: thermal diffusivity
constant conductivity
𝐾
𝑢𝑡 = 𝑢𝑥𝑥 = 𝜎𝑢𝑥𝑥
𝑐𝜌
𝑢𝑡 = 𝜎𝑢𝑥𝑥 − ℎ 𝑢 − 𝑢𝑚
Note:
• Steady state: 𝑢𝑥𝑥 + 𝑢𝑦𝑦 = 0 → Laplace’s equation
The 1D Heat equation 𝜎: thermal diffusivity
constant conductivity
𝐾
𝑢𝑡 = 𝑢𝑥𝑥 = 𝜎𝑢𝑥𝑥
𝑐𝜌
The 1D Heat equation 𝜎: thermal diffusivity
constant conductivity
𝐾
𝑢𝑡 = 𝑢𝑥𝑥 = 𝜎𝑢𝑥𝑥
𝑐𝜌