Lecture Notes #05
WF2202
Persamaan diferensial parsial dan metode numerik
Modul 06
Sturm-Liouville Theory
Generalization of Heat Equation
•
The heat equation :
π 2 π’(π₯, π‘) ππ’(π₯, π‘)
πΌ
=
ππ₯ 2
ππ‘
2
πΌ 2 π’π₯π₯ = π’π‘ , 0 < π₯ < πΏ, π‘ > 0
Subject to BC
π’(0, π‘) = 0, π’(πΏ, π‘) = 0 , π‘ > 0
and the IC
π’(π₯, 0) = π(π₯), 0 ≤ π₯ ≤< πΏ
•
Using the separation of variables method, by defining the variable π’(π₯, π‘) =
π(π₯). π(π‘) , the following differential equations are obtained :
π ′′ + ππ = 0
π ′ + πΌ 2 ππ = 0
β The solution can be obtained as discussed in previous module, assuming that
the rod has uniform material and constant cross sections.
Generalization 1
•
The rod is not uniform and its cross-section is not constant along its length (x
direction) β the value of π
, π, π , and A vary as function of space/axial variable x.
•
The rate of heat transfer from left to right across a cross section at x = π₯0 is
π»(π₯0 , π‘) = −π
(π₯0 )π΄(π₯0 )π’π₯ (π₯0 , π‘)
and at x = π₯0 + π₯π₯
π»(π₯0 + π₯π₯, π‘) = −π
(π₯0 + π₯π₯)π΄(π₯0 + π₯π₯)π’π₯ (π₯0 + π₯π₯, π‘)
•
The net rate at which heat flows into the segment of the bar between x = π₯0 an
x = π₯0 + π₯π₯ is thus given by
π = π»(π₯0 , π‘) − π»(π₯0 + π₯π₯, π‘)
= −π
(π₯0 )π΄(π₯0 )π’π₯ (π₯0 , π‘) + π
(π₯0 + π₯π₯)π΄(π₯0 + π₯π₯)π’π₯ (π₯0 + π₯π₯, π‘)
•
The amount of heat entering the element of the rod in time π₯π‘ is ππ₯π‘
•
The average change in temperature π₯π’, in the time interval π₯π‘, is
π₯π’ =
1 ππ₯π‘
ππ₯π‘
=
π π₯π π (π₯)π(π₯)π΄(π₯)π₯π₯
•
The average temperature change π₯π’ in the bar element under consideration is
the actual temperature change at x = π₯0 + ππ₯π₯, where 0 < π < 1.
•
Hence,
ππ₯π‘ = [π’(π₯0 + ππ₯π₯, π‘ + π₯π‘) − π’(π₯0 + ππ₯π₯, π‘)]π (π₯)π(π₯)π΄(π₯)π₯π₯
•
Equating the formulation for πΈππ
[−πΏ(ππ )π¨(ππ )ππ (ππ , π) + π
(π₯0 + π₯π₯)π΄(π₯0 + π₯π₯)π’π₯ (π₯0 + π₯π₯, π‘)]ππ‘
= π (π₯)π(π₯)π΄(π₯)[π’(π₯0 + ππ₯π₯, π‘ + π₯π‘) − π’(π₯0 + ππ₯π₯, π‘)]ππ₯
•
Dividing by ππ₯π₯π‘ and letting ππ₯ → 0 and π₯π‘ → 0, then the equation can be
represented as:
βͺ
π₯π’π¦
ππ→0
π₯π’π¦
ππ‘→π
βͺ
[−πΏ(ππ )π¨(ππ )ππ (ππ ,π)+π
(π₯0 +π₯π₯)π΄(π₯0 +π₯π₯)π’π₯ (π₯0 +π₯π₯,π‘)]
ππ
π (π₯)π(π₯)π΄(π₯)[π’(π₯0 +ππ₯π₯,π‘+π₯π‘)−π’(π₯0 +ππ₯π₯,π‘)]
=
ππ
The equation above can be written as
[π
(π₯)π΄(π₯)π’π₯ ]π₯ = [π (π₯)π(π₯)π΄(π₯) π’]π‘
π(π₯)π’π‘ = [π(π₯)π’π₯ ]π₯
where π(π₯) = π
(π₯)π΄(π₯) and π(π₯) = π (π₯)π(π₯)π΄(π₯)
β Comparing to the “previous” heat equation, πΌ 2 π’π₯π₯ = π’π‘ β non-constant
parameters
Generalization 2
•
Suppose heat can enter or leave the bar through “other ways”. Heat entering the
bar β a source that adds heat to the bar at a rate πΊ(π₯, π‘, π’) per unit time per unit
length, where πΊ(π₯, π‘, π’) > 0. (If πΊ(π₯, π‘, π’) < 0, then it represent heat leaving the
rod)
•
The equation becomes
π(π₯)π’π‘ = [π(π₯)π’π₯ ]π₯ + πΊ(π₯, π‘, π’)
•
Assuming that πΊ(π₯, π‘, π’) is linear in u and that the coefficient of u does not
depend on t β πΊ(π₯, π‘, π’) = πΉ(π₯, π‘) − π(π₯)π’
•
The differential equation becomes
π(π₯)π’π‘ = [π(π₯)π’π₯ ]π₯ − π(π₯)π’ + πΉ(π₯, π‘)
β the generalized heat conduction equation
Generalization 3
•
Consider a heat conduction problem involving more than one dimensional
propagation (x,y,z), in a homogenous media with uniform material and constant
cross section in all direction, then the heat equation is :
πΌ 2 (π’π₯π₯ + π’π¦π¦ + π’π§π§ ) = π’π‘
•
In steady state condition, π’π‘ = 0, hence it becomes Laplace equation
π’π₯π₯ + π’π¦π¦ + π’π§π§ = 0
Sturm Liouville theory
•
Boundary condition used previously :
•
The temperature at rod’s ends are maintained at a constant value. The BC
at an end can be stated as
π’(0, π‘) = π1 or π’(πΏ, π‘) = π2
βͺ
The rod’s end are insulated so that no heat flows through it. The BC at
insulated end can be stated as
π’π₯ (0, π‘) = 0 or π’π₯ (πΏ, π‘) = 0
•
More general boundary condition represents the condition if the rate of heat flow
through an end of the bar is proportional to the temperature at that end.
•
At one end (“left” end), x=0, if the heat flow rate is proportional to the
temperature at this end, then the boundary condition is
ππ (π, π) − ππ π(π, π) = π , π > π
At the “right” end (x=L), the BC is similar :
ππ (π³, π) + ππ π(π³, π) = π , π > π
where β1 is a non-negative constant. β1 = β2 = 0 β the bar’s ends are
insulated, and β1 → ∞ and β2 → ∞ β temperature at the bar’s end is zero
Further, an initial condition representing the temperature distribution at initial
time
•
π(π, π) = π(π),
•
π≤π≤π³
From the general form of PDE (from heat equation), π(π₯)π’π‘ = [π(π₯)π’π₯ ]π₯ −
π(π₯)π’ + πΉ(π₯, π‘), setting πΉ(π₯, π‘) = 0, then the equation becomes
π(π₯)π’π‘ = [π(π₯)π’π₯ ]π₯ − π(π₯)π’
Separating the variable π’(π₯, π‘) = π(π₯)π(π‘) gives
•
π(π₯)ππ′ = [π(π₯)π ′ ]′ π − π(π₯)ππ
Rearranging the equation :
•
π′ [π(π₯)π ′ ]′ π(π₯)
=
−
= −π
π
π(π₯)π
π(π₯)
•
Then, the following differential equations can be obtained:
[π(π₯)π ′ ]′ + (ππ(π₯) − π(π₯))π = 0
π ′ + ππ = 0
•
Working out the BCs
π’π₯ (0, π‘) − β1 π’(0, π‘) = 0 ⇒ π ′ (0) − β1 π(0) = 0
π’π₯ (πΏ, π‘) + β2 π’(πΏ, π‘) = 0 ⇒ π ′ (πΏ) + β2 π(πΏ) = 0
Sturm-Liouville Problem :
Finding eigenfunction-eigenvalue pair (X(x), π) that solves equation
•
[π(π₯)π ′ ]′ + (ππ(π₯) − π(π₯))π = 0
With the boundary conditions
•
π’π₯ (0, π‘) − β1 π’(0, π‘) = 0
π’π₯ (πΏ, π‘) + β2 π’(πΏ, π‘) = 0
Consider a general differential equation
•
π(π₯)π¦ ′′ + π(π₯)π¦ ′ + π
(π₯)π¦ = 0 . . . (∗)
Introducing an integrating factor π(π₯), and multiplying it to all terms in the
equation (*) above, gives
•
π(π₯)π(π₯)π¦ ′′ + π(π₯)π(π₯)π¦ ′ + π(π₯)π
(π₯)π¦ = 0 … (∗∗)
Which must be transformed into the following form
•
[π(π₯)π(π₯)π¦ ′ ]′ + π(π₯)π
(π₯)π¦ = 0 … (∗∗∗)
Work out the equation (***)
•
[π(π₯)π(π₯)π¦ ′ ]′ + π(π₯)π
(π₯)π¦ = 0
[π(π₯)π(π₯)]′ π¦ ′ + π(π₯)π(π₯)π¦ ′′ + π(π₯)π
(π₯)π¦ = 0 … (4 ∗)
Equating (**) and (4*) gives
•
π(π₯)π(π₯)π¦ ′ = [π(π₯)π(π₯)]′ π¦ ′
π(π₯)π(π₯) = π′(π₯)π(π₯) + π(π₯)π′(π₯)
π′(π₯)π(π₯) − [π(π₯) − π′(π₯)]π(π₯) = 0
π′(π₯) −
1
[π(π₯) − π′(π₯)]π(π₯) = 0
π(π₯)
β First order ordinary differential equation
•
Consider a first order ODE :
π¦ ′ − a(x)y = 0
•
The solution is
y(x) = cπ π΄(π₯)
where A(x) = ∫ π(π₯)ππ₯
•
Hence, for the equation
π′(π₯) −
1
[πΈ(π) − π·′(π)]π(π) = 0
π·(π)
The solution is :
π(π₯) = Cπ π»(π₯)
where
π»(π₯) = ∫ (
1
1
1
[πΈ(π) − π·′(π)]) ππ₯ = ∫ (
πΈ(π)) ππ₯ − ∫ (
π·′(π)) ππ₯
π·(π)
π·(π)
π·(π)
1
π
πΈ(π)
= ∫(
πΈ(π)) ππ₯ − ∫ ( ln(π(π₯))) ππ₯ = ∫
ππ₯ − ln(π(π₯)
π·(π)
ππ₯
π·(π)
•
Hence,
π(π₯) = Cπ
•
(∫
πΈ(π)
ππ₯−ln(π(π₯))
π·(π)
= πΆ.
1 (∫πΈ(π)ππ₯)
π π·(π)
π(π₯)
For the equation related to variable X(x), [π(π₯)π ′ ]′ + (ππ(π₯) − π(π₯))π = 0, It can
be rearranged into
π(π₯)π ′′ + π′(π₯)π ′ + (ππ(π₯) − π(π₯))π = 0
which can be related to the general DE
π(π₯)π ′′ + π(π₯)π ′ + π
(π₯)π = 0
and transformed into
[π(π₯)π(π₯)π ′ ]′ + π(π₯)π
(π₯)π = 0
by using
π(π₯) =
1 (∫π(π₯)ππ₯)
π π(π₯)
π(π₯)
Sturm-Liouville problem :
•
Differential equation :
[π(π₯)π¦ ′ ]′ + (ππ(π₯) − π(π₯))π¦ = 0 , 0 < π₯ < 1
with BCs : π1 π¦(0) + π2 π¦ ′ (0) = 0 and π1 π¦(1) + π2 π¦′(1) = 0
•
Defining an operator L,
πΏ[π¦] = −[π(π₯)π¦ ′ ]′ + π(π₯)π¦
β The differential equation above can also be expressed as
πΏ[π¦] = ππ(π₯)π¦
•
The non-trivial solution :
∞
π¦(π₯) = ∑ ππ ∅π (π)
π=1
where and ∅π are eigenfunctions correspond to eigenvalues ππ , π = π, π, π, …
Theorem :
•
All the eigenvalues ππ are real, ππ < ππ < ππ < β―
•
Eigenfunctions ∅π and ∅π corresponding to eigenvalues π1 and π2 (π1 ≠ π2 ) are
orthogonal, that is
1
∫ π(π₯)∅π (π₯)∅π (π₯)ππ₯ = 0
0
•
For each eigenvalue ππ there is only one eigenfunction ∅π
Normalized eigenfunction
•
Eigenfunctions ∅π correspond to eigenvalues ππ such that
1
∫ π(π₯)∅2π (π₯)ππ₯ = 1
0
is called to be normalized
•
Normalized eigenfunctions in an orthonormal set satisfy the following
1
∫ π(π₯)∅π (π₯)∅π (π₯)ππ₯ = πΏππ
0
where πΏππ is called Kronecker delta, defined as :
0, π≠π
πΏππ = {
1, π=π
Example :
•
Consider the following ODE representing the heat conduction problem in a bar of
unit length
π¦ ′′ + ππ¦ = 0
with BCs : π¦(0) = 0 and y ′ (1) + y(1) = 0
βSturm-Liouville Problem, with π(π) = 1, π(π) = 1, π(π) = 0 (recall the form
[π(π)πΏ′ ]′ + (ππ(π) − π(π))π = 0)
•
The BCs state that at x=0 the temperature is zero and that the heat flow rate at
x=L=1 is proportional to the temperature at x=1, with proportionality h2=1
π=0
•
The equation becomes π¦ ′′ = 0
•
The candidate solution is π¦ = π1 π₯ + π2
•
Applying boundary conditions
π¦(0) = 0 ⇒ π1 . 0 + π2 = 0 ⇒ π2 = 0 ⇒ π¦ = π1 π₯ ⇒ π¦′ = π1
y ′ (1) + y(1) = 0 ⇒ π1 + π1 = 0 ⇒ π1 = 0
β There is no non-trivial solution
π>0
•
The equation π¦ ′′ + ππ¦ = 0
•
Characteristic equation π 2 + π = 0 ⇒ π 2 = −π ⇒ π = ±π√π
•
The solution : π¦ = π1 sin√ππ₯ + π2 cos√πx
•
Applying boundary conditions
π¦(0) = 0 ⇒ π1 sin√π. 0 + π2 cos√π. 0 = 0 ⇒ π2 = 0 ⇒ π = ππ πππ√ππ
y ′ (1) + y(1) = 0 ⇒ π1 √π. cos√π. 1 + π1 sin√π. 1 = 0 ⇒ √π. cos√π + sin√π = 0
⇒ √π = −
sin√π
cos√π
= −tan√π
β The value of π can be determined by plotting the value of √π and −tan√π and
identifying the intersection of the 2 curves
Note that the solution here is valid only for √π ≠ 0
•
The first 3 positive solutions are:
√π1 ≅ 2.029
√π2 ≅ 4.913
√π3 ≅ 7.979
•
For the n-th roots, it can be approximated by:
√ππ ≅
•
(2n − 1)π
,
2
π = 1,2,3, …
Hence the solution (eigenfunctions) are
ππ (π₯, ππ ) = ππ sin√ππ π₯ , π = 1,2,3, …
where ππ is arbitrary coefficients
π<0
•
π = −π, the equation β π¦ ′′ − ππ¦ = 0
•
Characteristic equation π 2 − π = 0 ⇒ π 2 = π ⇒ π = ±√π
•
The solution : π¦ = π1 sinh√ππ₯ + π2 cosh√πx
where √π > 0
•
Applying boundary conditions
π¦(0) = 0 ⇒ π1 sinh√π. 0 + π2 cosh√π. 0 = 0 ⇒ π2 = 0 ⇒ π¦ = π1 sinh√ππ₯
y ′ (1) + y(1) = 0 ⇒ π1 √π. cosh√π. 1 + π1 sinh√π. 1 = 0
⇒ √π = −
sinh√π
= −tanh√π
cosh√π
βThe value of π can be determined by plotting the value of √π and −tanh√π
and identifying the intersection of the 2 curves
ο° there is no intersection between the 2 curves
ο° there is no non-trivial solution for negative eigenvalues
Example :
•
Consider the following ODE
π¦ ′′ + ππ¦ = 0
with BCs : π¦(0) = 0 and π¦(1) = 0
β π(π) = 1, π(π) = 1, π(π) = 0
•
Non − trivial solution if λ > 0
•
Characteristic equation π 2 + π = 0 ⇒ π 2 = −π ⇒ π = ±π√π
•
The solution : π¦ = π1 sin√ππ₯ + π2 cos√πx
•
Applying BCs:
π¦(0) = 0 ⇒ ππ π¬π’π§√π. 0 + ππ ππ¨π¬√π. 0 = 0 ⇒ ππ = 0 ⇒ π = ππ π¬π’π§√ππ
π¦(1) = 0 ⇒ ππ π¬π’π§√π. 1 = 0 ⇒ π¬π’π§√π = π ⇒ √π = nπ ⇒ π = π2 π 2 , π = 1,2,3, …
The solution:
•
Eigenvalues : π = π2 π 2 ⇒ ππ = π 2 , ππ = 4π 2 , ππ = 9π 2 ,…
Eigenfunctions : ∅π (π) = π¬π’π§(ππ), ∅π (π) = π¬π’π§(πππ), ∅π (π) = π¬π’π§(πππ),…
∞
π¦(π₯) = ∑ ππ π¬π’π§(nππ)
π=1
Normalized eigenfunction
•
1
∫ π(π₯)∅2π (π₯)ππ₯ = 1 , π(π₯) = 1
0
1
2
∫ (ππ sin(nππ₯)) ππ₯ = 1
0
1
2
2
ππ ∫ (sin(nππ₯)) ππ₯ = 1
0
•
Working out the integral
1
π2π
2
2
ππ ∫ (sin(nππ₯)) ππ₯ =
=1
2
0
gives ππ = √2
•
Hence the normalized eigenfunctions
∅π (π₯) = √2. sin(πππ₯) , π = 1,2,3, …
Example
•
Consider the following ODE
π¦ ′′ + ππ¦ = 0
with BCs : π¦(0) = 0 and y ′ (1) + y(1) = 0
β π(π₯) = 1, π(π₯) = 1, π(π₯) = 0
•
The nontrivial solution for π > 0 :
π¦ = π1 sin√ππ₯ + π2 cos√πx
•
Applying boundary conditions
π¦(0) = 0 ⇒ π1 sin√π. 0 + π2 cos√π. 0 = 0 ⇒ π2 = 0 ⇒ π = ππ πππ√ππ
y ′ (1) + y(1) = 0 ⇒ π1 √π. cos√π. 1 + π1 sin√π. 1 = 0 ⇒ √π. πππ√π + πππ√π = π
The eigenvalues ππ : the value satisfying √ππ . πππ√ππ + πππ√ππ = π
The eigenfunction : ∅π (π) = ππ πππ√ππ π , π = 1,2,3, …
Normalized eigenfunction (π(π₯) = 1)
1
∫ π(π₯)∅2π (π₯)ππ₯ = 1
0
1
2
ππ2 ∫ (π ππ√ππ π₯) ππ₯ = 1
0
•
Working out the integral
1
1
2
1 1
2
2
ππ ∫ (π ππ√ππ π₯) ππ₯ = ππ ∫ ( − πππ (2√ππ π₯)) ππ₯
2 2
0
0
ππ2
ππ2
=
[2√ππ − π ππ(2√ππ )] = [1 + πππ 2 (√ππ )] = 1
2
4√ππ
•
Hence the coefficients are
ππ = √
•
π
[1 + πππ 2 (√ππ )]
and the normalized eigenfunctions become
∅π (π) = √
π
[1 + πππ 2 (√ππ )]
πππ√ππ π , π = 1,2,3, …