Separation of Variables
Separation of Variables
In this method, which is simple but powerful, it is assumed that a solution can be
expressed as a product of unknown functions, each of which depends on only one of
the independent variables. By repetition of this, the unknown functions can be
determined. Superposition of these solutions can then be used to find the actual
solution.
Since 𝑋 depends only on 𝑥 and 𝑌 depends only on 𝑦 and since 𝑥 and 𝑦 are
independent variables, each side must be a constant, say c.
⇒ 𝑋 ′ /4𝑋 = 𝑌 ′ /𝑌 = 𝑐
Then, 𝑋 ′ − 4𝑐𝑋 = 0, 𝑌 ′ − 𝑐𝑌 = 0
whose solutions are 𝑋 = 𝐴 𝑒 4𝑐𝑥 , 𝑌 = 𝐵 𝑒 𝑐𝑦
∴ 𝑢(𝑥, 𝑦) = 𝑋𝑌 = 𝐴𝐵 𝑒 𝑐(4𝑥+𝑦) = 𝐾 𝑒 𝑐(4𝑥+𝑦)
Then 𝑥 ′′ + 𝜆2 𝑥 = 0, 𝑇 ′ + 2𝜆2 𝑇 = 0
2
with solutions 𝑋 = 𝐴1 cos 𝜆𝑥 + 𝐵1 sin 𝜆𝑥 , 𝑇 = 𝑐1 𝑒 −2𝜆 𝑡 (𝑡 > 0 ∴ bounded)
2 2
∴ 𝑢(𝑥, 𝑡) = 𝑋𝑇 = 𝐶1 𝑒 −2𝜆 𝑡 (𝐴1 cos 𝜆𝑥 + 𝐵1 sin 𝜆𝑥) = 𝑒 −2𝜆 𝑡 (𝐴cos 𝜆𝑥 + 𝐵sin 𝜆𝑥)
2
Since 𝑢(0, 𝑡) = 0, 𝑒 −2𝜆 𝑡 (𝐴) = 0 ⇒ 𝐴=0
2
Then, 𝑢(𝑥, 𝑡) = 𝐵𝑒 −2𝜆 𝑡 sin 𝜆𝑥
2
Since 𝑢(3, 𝑡) = 0, 𝐵𝑒 −2𝜆 𝑡 sin 3𝜆 = 0
If 𝐵 = 0, the solution is identically zero, so we must have sin 3𝜆 = 0
or 3𝜆 = 𝑚𝜋 ⇒ 𝜆 = 𝑚𝜋/3, where 𝑚 = 0, ±1, ±2, ⋯ ⋯
2𝑚2 𝜋2 𝑡
∴ 𝑢(𝑥, 𝑡) = 𝐵𝑒 − 9 sin 𝑚𝜋𝑥/3
This boundary value problem has the following interpretation as a heat flow problem.
A bar whose surface is insulated has a length of 3 units and a diffusivity of 2 units. If
its ends are kept at temperature zero units and its initial temperature 𝑢(𝑥, 0) =
5sin4𝜋𝑥 − 3sin8𝜋𝑥 + 2sin10𝜋𝑥, find the temperature at position 𝑥 at time 𝑡, i.e.,
find 𝑢(𝑥, 𝑡).
Partial Differential Equation + Fourier Series to Heat Conduction
Ex: Same example as the above. Find the temperature of the bar, if the initial
temperature 𝑢(𝑥, 0) is 25∘ C.
<Sol>: This problem is identical to the previous example, except that the initial
condition 𝑢(𝑥, 0) = 25. It is necessary to superimpose an infinite number of
solutions, i.e., we must replace the equation by
∞
2 𝜋2 𝑡/9 𝑚𝜋𝑥
𝑢(𝑥, 𝑡) = ∑ 𝐵𝑚 𝑒 −2𝑚 𝑠𝑖𝑛
3
𝑚=1
This problem illustrates the importance of Fourier series in solving boundary value
problems.
𝜕𝑢 𝜕2𝑢
Ex: Solve =2 , 𝑢(0, 𝑡) = 10, 𝑢(3, 𝑡) = 40, 𝑢(𝑥, 0) = 25, |𝑢(𝑥, 𝑡) | < 𝑀
𝜕𝑡 𝜕𝑥 2
<Sol>: This problem is identical to the previous example, except that the ends of the
bar arm are at temperatures 10°C and 40°C instead of 0°C. As far as the solution goes,
this makes quite a difference since we can no longer use separation of variables and
𝑚𝜋
conclude that 𝐴 = 0 and 𝜆 = as in the previous example. To solve this problem,
3
This can be simplified by choosing 𝜓 ′′ (𝑥) = 0, 𝜓(0) = 10, 𝜓(3) = 40 from which
we find 𝜓(𝑥) = 10𝑥 + 10.
which brings the boundary conditions back to zero and allows us to use separation of
variables again.
When 𝑡 → ∞ , the summation term approaches zero. The term 10𝑥 + 10 is the
steady-state temperature, i.e. the temperature after a long time has elapsed. The
summation term represents the transient temperature, i.e., the temperature at the
beginning of time when the system is not yet stable.
Ex: A square plate with sides of unit length has its faces
insulated and its sides kept at 0°C. If the initial
temperature is specified, determine the subsequent
temperature at any point of the plate.
The equation for the temperature 𝑢(𝑥, 𝑦, 𝑡) at any point (𝑥, 𝑦) at time t is
𝜕𝑢 𝜕2𝑢 𝜕2𝑢
= 𝐾( 2 + 2 )
𝜕𝑡 𝜕𝑥 𝜕𝑦
B.C.: 𝑢(0, 𝑦, 𝑡) = 𝑢(1, 𝑦, 𝑡) = 𝑢(𝑥, 0, 𝑡) = 𝑢(𝑥, 1, 𝑡) = 0, 𝑢(𝑥, 𝑦, 0) = 𝑓(𝑥, 𝑦)
|𝑢(𝑥, 𝑦, 𝑡)| < 𝑀, where 0 < 𝑥 < 1, 0 < 𝑦 < 1, 𝑡 > 0
<Sol>: To solve the boundary value problem, let 𝑢 = 𝑋𝑌𝑇 , where 𝑋, 𝑌, 𝑇 are
functions of 𝑥, 𝑦, 𝑡 respectively.
⇒ 𝑋𝑌𝑇′ = 𝐾(𝑋′′𝑌𝑇 + 𝑋𝑌′′𝑇)
Dividing by 𝐾𝑋𝑌𝑇 yields:
𝑇′ 𝑋′′ 𝑌′′
= +
𝐾𝑇 𝑋 𝑌
Since the left side is a function of t alone, while the right side is a function of x and y,
we see that each side must be a constant, say −𝜆2 (which is needed for boundedness).
𝑇 ′ + 𝐾𝜆2 𝑇 = 0
𝑋′′ 𝑌′′
+ = −𝜆2
𝑋 𝑌
Since the left side depends only on x while the right side depends only on y, each side
must be a constant, say −𝜇2 . Thus,
𝑋 ′′ 𝑌 ′′
=− − 𝜆2 = −𝜇2
𝑋 𝑌
⇒ 𝑋 ′′ + 𝜇2 𝑋 = 0, 𝑌 ′′ + (𝜆2 − 𝜇2 )𝑌 = 0
B. C. : 𝑢(0, 𝑦, 𝑡) = 0 ⇒ 𝑎1 = 0
𝑢(𝑥, 0, 𝑡) = 0 ⇒ 𝑎2 = 0
2
⇒ 𝑢(𝑥, 𝑦, 𝑡) = 𝐵𝑒 −𝑘𝜆 𝑡 𝑠𝑖𝑛 𝜇𝑥 𝑠𝑖𝑛 √𝜆2 − 𝜇2 𝑦, where 𝐵 = 𝑏1 𝑏2 𝑎3
∞ ∞
𝜕2𝑦 2
𝜕2𝑦
=𝑎 , 0 < 𝑥 < 𝐿, 𝑡>0
𝜕𝑡 2 𝜕𝑥 2
where 𝑦(𝑥, 𝑡) = displacement from x-axis at time t
B. C. : 𝑦(0, 𝑡) = 𝑦(𝐿, 𝑡) = 0, 𝑡>0
I. C. : 𝑦(𝑥, 0) = 𝑓(𝑥), 0<𝑥<𝐿
𝑦𝑡 (𝑥, 0) = 0 (The initial velocity of the string is 0)
<Sol>: Let 𝑢 = 𝑋𝑇, then 𝑋𝑇 ′′ = 𝑎2 𝑋 ′′ 𝑇 ⇒ 𝑇 ′′ /𝑎2 𝑇 = 𝑋 ′′ /𝑋
2
Calling the separation constant -𝜆 , we have
𝑇 ′′ + 𝜆2 𝑎2 𝑇 = 0, 𝑥 ′′ + 𝜆2 𝑥 = 0
⇒ 𝑇 = 𝐴1 𝑠𝑖𝑛 𝜆𝑎𝑡 + 𝐵1 𝑐𝑜𝑠 𝜆𝑎𝑡 , 𝑋 = 𝐴2 𝑠𝑖𝑛 𝜆𝑥 + 𝐵2 𝑐𝑜𝑠 𝜆𝑥
∴ 𝑦(𝑥, 𝑡) = 𝑋𝑇 = (𝐴2 𝑠𝑖𝑛 𝜆𝑥 + 𝐵2 𝑐𝑜𝑠 𝜆𝑥)(𝐴1 𝑠𝑖𝑛 𝜆𝑎𝑡 + 𝐵1 𝑐𝑜𝑠 𝜆𝑎𝑡)
B. C. : 𝑦(0, 𝑡) = 0 ⇒ 𝐵2 = 0
⇒ 𝑦(𝑥, 𝑡) = 𝐴2 𝑠𝑖𝑛 𝜆𝑥 (𝐴1 𝑠𝑖𝑛 𝜆𝑎𝑡 + 𝐵1 𝑐𝑜𝑠 𝜆𝑎𝑡) = 𝑠𝑖𝑛 𝜆𝑥 (𝐴 𝑠𝑖𝑛 𝜆𝑎𝑡 + 𝐵 𝑐𝑜𝑠 𝜆𝑎𝑡)
𝑚𝜋
𝑦(𝐿, 𝑡) = 0 ⇒ 𝑠𝑖𝑛 𝜆𝐿 = 0 ⇒ 𝜆=
𝐿
∞
𝑚𝜋𝑥
I. C. : 𝑦(𝑥, 0) = 𝑓(𝑥) = ∑ 𝐵𝑚 𝑠𝑖𝑛
𝐿
𝑚=1
2 𝐿 𝑚𝜋𝑥
where 𝐵𝑚 = ∫ 𝑓(𝑥) 𝑠𝑖𝑛 𝑑𝑥
𝐿 0 𝐿
∞
2 𝐿 𝑚𝜋𝑥 𝑚𝜋𝑥 𝑚𝜋𝑎𝑡
∴ 𝑦(𝑥, 𝑡) = ∑ ( ∫ 𝑓(𝑥) 𝑠𝑖𝑛 𝑑𝑥) 𝑠𝑖𝑛 𝑐𝑜𝑠
𝐿 0 𝐿 𝐿 𝐿
𝑚=1
The terms in this series represent the natural or normal modes of vibration. The
𝑚𝜋𝑎𝑡
frequency of the mth normal mode fm is obtained from the term involving 𝑐𝑜𝑠
𝐿
𝑚𝜋𝑎
and is given by 2𝜋𝑓𝑚 = .
𝐿
𝑚𝑎 𝑚 𝜏
⇒ 𝑓𝑚 = = √
2𝐿 2𝐿 𝜇
Since all the frequencies are integer multiples the lowest frequency f1, the vibrations of
the string will yield a musical tone, as in the case of a violin or piano string. The first
three normal modes are illustrated as follows:
Fundamental modes
Integrating over 𝜆:
∞
𝑣(𝑥, 𝑦) = ∫ 𝑒 −𝜆𝑦 [𝐴(𝜆) 𝑐𝑜𝑠 𝜆𝑥 + 𝐵(𝜆) 𝑠𝑖𝑛 𝜆𝑥]𝑑𝜆
0
∞
B. C. : 𝑣(𝑥, 0) = 𝑓(𝑥) = ∫ [𝐴(𝜆) 𝑐𝑜𝑠 𝜆𝑥 + 𝐵(𝜆) 𝑠𝑖𝑛 𝜆𝑥]𝑑𝜆
0
From the Fourier’s integral theorem, we find:
1 ∞ 1 ∞
𝐴(𝜆) = ∫ 𝑓(𝑢) 𝑐𝑜𝑠 𝜆𝑢 𝑑𝑢 , 𝐵(𝜆) = ∫ 𝑓(𝑢) 𝑠𝑖𝑛 𝜆𝑢 𝑑𝑢
𝜋 −∞ 𝜋 −∞
1 ∞ ∞
∴ 𝑣(𝑥, 𝑦) = ∫ ∫ 𝑒 −𝜆𝑦 𝑓(𝑢) 𝑐𝑜𝑠 𝜆(𝑢 − 𝑥) 𝑑𝑢 𝑑𝜆
𝜋 𝜆=0 𝑢=−∞
<Sol>: Let 𝑢 = 𝑋𝑇
𝑑 𝑑𝑋
𝑔(𝑥)𝑋𝑇 ′ = 𝑇 [𝑘(𝑥) ] + ℎ(𝑥)𝑋𝑇
𝑑𝑥 𝑑𝑥
Dividing by 𝑔(𝑥)𝑋𝑇
𝑇′ 1 𝑑 𝑑𝑋 ℎ(𝑥)
= [𝑘(𝑥) ] +
𝑇 𝑔(𝑥)𝑋 𝑑𝑥 𝑑𝑥 𝑔(𝑥)
(c) From the Sturm-Liouville system, we can find eigenvalue 𝜆𝑛 and normalized
eigenfunctions 𝑋𝑛 (𝑥), where 𝑛 = 1, 2, 3, ⋯
𝑇 ′ + 𝜆𝑇 = 0 ⟹ 𝑇 = 𝐶𝑒 −𝜆𝑡
Thus, a solution obtained by superposition is
∞
which leads to
𝐿
𝐶𝑛 = ∫ 𝑓(𝑥)𝑋𝑛 (𝑥)𝑑𝑥
0
∞ 𝐿
∴ 𝑢(𝑥, 𝑡) = ∑ {∫ 𝑓(𝑥)𝑋𝑛 (𝑥)𝑑𝑥 } 𝑒 −𝜆𝑛𝑡 𝑋𝑛 (𝑥)
𝑛=1 0
<Sol>: Taking the Laplace transform of the given differential equation with respect to
𝑡, we have
∞ ∞
−𝑠𝑡
𝜕𝑢 −𝑠𝑡
𝜕2𝑢
∫ 𝑒 ( ) 𝑑𝑡 = ∫ 𝑒 (4 2 ) 𝑑𝑡
0 𝜕𝑡 0 𝜕𝑥
∞
−𝑠𝑡
𝑑 2 ∞ −𝑠𝑡
⟹ 𝑠∫ 𝑒 𝑢𝑑𝑡 − 𝑢(𝑥, 0) = 4 2 ∫ 𝑒 𝑢𝑑𝑡
0 𝑑𝑥 0
𝑑2𝑈
⟹ 𝑠𝑈 − 𝑢(𝑥, 0) = 4
𝑑𝑥 2
Using the given condition 𝑢(𝑥, 0) = 10 𝑠𝑖𝑛 2𝜋𝑥 − 6 𝑠𝑖𝑛 4𝜋𝑥, this becomes
𝑑2𝑈
4 − 𝑠𝑈 = 6 𝑠𝑖𝑛 4𝜋𝑥 − 10 𝑠𝑖𝑛 2𝜋𝑥
𝑑𝑥 2
B. C. : 𝑢(0, 𝑡) = 0 ⟹ 𝑈(0, 𝑠) = 0 , 𝑢(3, 𝑡) = 0 ⟹ 𝑈(3, 𝑠) = 0
Solve:
𝑑2𝑈
4 2 − 𝑠𝑈 = 6 𝑠𝑖𝑛 4𝜋𝑥 − 10 𝑠𝑖𝑛 2𝜋𝑥
𝑑𝑥
𝑈(0, 𝑠) = 0 , 𝑈(3, 𝑠) = 0
10 𝑠𝑖𝑛 2𝜋𝑥 6 𝑠𝑖𝑛 4𝜋𝑥
⟹ 𝑈(𝑥, 𝑠) = −
𝑠 + 16𝜋 2 𝑠 + 64𝜋 2
10 6
∴ u(x, t) = 𝐿−1 {𝑈(𝑥, 𝑠)} = 𝐿−1 { 2
} 𝑠𝑖𝑛 2𝜋𝑥 − 𝐿−1 { } 𝑠𝑖𝑛 4𝜋𝑥
𝑠 + 16𝜋 𝑠 + 64𝜋 2
2 2
= 10𝑒 −16𝜋 𝑡 𝑠𝑖𝑛 2𝜋𝑥 − 6𝑒 −64𝜋 𝑡 𝑠𝑖𝑛 4𝜋𝑥
Theoretically we could have taken the Laplace transform of the given differential
equation with respect to 𝑥 rather than 𝑡 . However, this would lead to various
difficulties as is evident upon carrying out the procedures. In practice, we take
Laplace transform with respect to the various independent variables and then choose
that variable which leads to the greatest simplification.
<Sol>: Since the temperature is initial independent of ∅, the boundary value problem
for determining 𝑢(𝜌, 𝑡) is
𝜕𝑢 𝜕 2 𝑢 1 𝜕𝑢
= 𝑘( 2 + )
𝜕𝑡 𝜕𝜌 𝜌 𝜕𝜌
𝑢(1, 𝑡) = 0 , 𝑢(𝜌, 0) = 𝐹(𝜌) , |𝑢(𝜌, 𝑡)| < 𝑀
Dividing by 𝑘PT,
𝑇 ′ 𝑃′′ 1 𝑃′
= + = −𝜆2
𝑘𝑇 𝑃 𝜌𝑃
from which 𝑇 ′ + 𝑘𝜆2 𝑇 = 0
1
𝑃′′ + 𝑃′ + 𝜆2 𝑃 = 0 ⟹ 𝜌2 𝑃′′ + 𝜌𝑃′ + 𝜆2 𝜌2 𝑃 = 0
𝜌
2
⟹ 𝑇 = 𝐶1 𝑒 −𝑘𝜆 𝑡 , 𝑃 = 𝐴1 𝐽0 (𝜆𝜌) + 𝐵1 𝑌0 (𝜆𝜌)
Since 𝑢 = 𝑃𝑇 is bounded at 𝜌 = 0, ⟹ 𝐵1 = 0
−𝑘𝜆2 𝑡
∴ 𝑢(𝜌, 𝑡) = 𝐴𝑒 𝐽0 (𝜆𝜌) , where 𝐴 = 𝐴1 𝐶1
2
B. C. ∶ 𝑢(1, 𝑡) = 0 = 𝐴𝑒 −𝑘𝜆 𝑡 𝐽0 (𝜆) ⟹ 𝐽0 (𝜆) = 0 , 𝜆 = 𝜆1 , 𝜆2 are positive roots.
Thus, a solution is
2
𝑢(𝜌, 𝑡) = 𝐴𝑒 −𝑘𝜆𝑚 𝑡 𝐽0 (𝜆𝑚 𝜌) , 𝑚 = 1, 2, 3, ⋯
By superposition, a solution is
∞
2
𝑢(𝜌, 𝑡) = ∑ 𝐴𝑚 𝑒 −𝑘𝜆𝑚 𝑡 𝐽0 (𝜆𝑚 𝜌)
𝑚=1
Knowing that
1 1
2 2
𝐴𝑚 = ∫ 𝑥𝐽𝑛 (𝜆𝑚 𝑥)𝑓(𝑥)𝑑𝑥 = 2 ∫ 𝜌𝐹(𝜌)𝐽0 (𝜆𝑚 𝜌)𝑑𝜌
𝐽𝑛+1 2 (𝜆𝑚 ) 0 𝐽1 (𝜆𝑚 ) 0
∞ 1
2 2
∴ 𝑢(𝜌, 𝑡) = ∑ {[ 2 ∫ 𝜌𝐹(𝜌)𝐽0 (𝜆𝑚 𝜌)𝑑𝜌] 𝑒 −𝑘𝜆𝑚 𝑡 𝐽0 (𝜆𝑚 𝜌)}
𝐽1 (𝜆𝑚 ) 0
𝑚=1