Professional Documents
Culture Documents
APDEs Lec 6
APDEs Lec 6
OF VARIABLES
Method of separation of variables
We shall introduce one of the most common, oldest and elementary methods
called the method of separation of variables for solving initial-boundary value
problems. Method of separation of variable is applicable to a large number of
linear PDEs. The class of problems for which this method is applicable contain
a wide range of problems of mathematical physics, applied mathematics and
engineering sciences.
The theme here is to reduce the given PDE into number of ODEs and then
construct the solution of the governing ODES. In this method we seek solutions
which are product of functions of separate variables.
The method is illustrated with the help of following examples (heat, wave and
Laplace equation).
Seperation of variable:
Consider the diffusion problem with Dirichlet boundary conditions
𝑢𝑡 = 𝛼 2 𝑢𝑥𝑥 0 < 𝑥 < 𝐿, 𝑡>0
𝑢 0, 𝑡 = 𝑢1 , 𝑢 𝑏, 𝑡 = 𝑢2 , 𝑡>0
𝑢 𝑥, 0 = 𝑓(𝑥) 0<𝑥<𝐿
Here we assume that the end temperatures 𝑢1 and 𝑢2 are constant.
𝑢2 − 𝑢1
𝑢 = 𝑢𝑠 𝑥 = 𝑥 + 𝑢1
𝐿
𝑢
𝑢1
𝑢 = 𝑢𝑠 (𝑥)
-------------------------------------
𝑢2
𝐿
𝑥
Physically we expect all solutions to tend towards the steady state solution as
𝑡 → ∞.
Simplification of the boundary conditions:
Let U 𝑥, 𝑡 = 𝑢 𝑥, 𝑡 − 𝑢𝑠 𝑥
𝑢 and 𝑢𝑠 are both solutions of a homogenous linear PDE, so we know 𝑈 as well
as 𝑢 satisfies 𝑏. 𝑐.
U 0, 𝑡 = 𝑢 0, 𝑡 − 𝑢𝑠 0 = 𝑢1 − 𝑢1 = 0
𝑈 𝐿, 𝑡 = 𝑢 𝐿, 𝑡 − 𝑢𝑠 𝐿 = 𝑢2 − 𝑢2 = 0
𝑈 satisfies a differential initial condition:
U(𝑥, 0) = 𝑢(𝑥, 0) − 𝑢𝑠 (𝑥)
= 𝑓 𝑥 − 𝑢𝑠 (𝑥)
So we can find 𝑈 by solving
𝑈𝑡 =∝2 𝑈𝑥𝑥
U 0, 𝑡 = 0, 𝑈 𝐿, 𝑡 = 0
𝑈 𝑥, 0 = 𝑔 𝑥 = 𝑓 𝑥 − 𝑢𝑠 𝑥
Note: The text takes a direct approach. It doesn’t make use of 𝑢𝑠 , which makes
the solution a little messy.
Solution x by separation of variables:
Try 𝐔 = 𝑿 𝒙 𝑻(𝒕). This is a special form of solution.
𝑼 𝒕 = 𝑿 𝒙 𝑻′ 𝒕 𝑼𝒙𝒙 = 𝒙′′ 𝒙 𝑻(𝒕)
Plug these into PDE:
𝑿 𝒙 𝑻′ 𝒕 = 𝜶𝟐 𝑿′′ 𝑿 𝑻 𝒕
Now divide each side by 𝑋 𝑥 𝑇(𝑡)
𝑻′ (𝒕) 𝑿′′ (𝒙)
= = −𝒌𝟐 ----------eq.1 (variables are
𝜶𝟐 𝑻(𝒕) 𝑿(𝒙)
separated!)
Notice that the left-hand-side is a function of 𝒕 and the right-hand-side is a
function of 𝒙. But 𝒙 and 𝒕 are independent variables; we can change one
without changing the others. Thus equation 1 makes senses only if each
side=constant.
𝑻′ 𝒕 𝑿′′ 𝒙
So = −𝒌𝟐 , = −𝒌𝟐
𝜶𝟐 𝑻(𝒕) 𝑿 𝒙
But linear combinations of this will also satisfy the PDE and homogeneous
boundary condition. So go for an infinite linear combination:
𝑛𝜋𝛼
𝑛𝜋𝑥 −( )2 𝑡
U 𝑥, 𝑡 = σ∞ 𝑘
𝑛=1 𝑛 𝑠𝑖𝑛 𝑒 𝐿
𝐿
Finding the constants 𝒌𝒏 :
Recall that 𝑈 𝑥, 0 = 𝑔(𝑥). But our series solution gives us 𝑈(𝑥, 0) in term of
the constants:
𝑛𝜋𝑥
𝑈 𝑥, 0 = σ∞
𝑛=1 𝑘𝑛 𝑠𝑖𝑛 =𝑔 𝑥 ------------eq.3
𝐿
0 𝑚≠𝑛
𝑙 𝑚𝜋𝑥 𝑛𝜋𝑥
3. −𝑙 cos 𝑙 cos
𝑙
𝑑𝑥 = ቐ 𝑙 𝑚=𝑛≠0
2𝑙 𝑚=𝑛=0
Hence if eq.(1) holds then by using orthogonality we have
1 𝑙
𝑎0 = 𝑓 𝑥 𝑑𝑥 Average value of 𝑓
2𝑙 −𝑙
𝑙
1 𝑚𝜋𝑥
𝑎𝑚 = න 𝑓 𝑥 𝑐𝑜𝑠 𝑑𝑥 𝑚 ≥ 1
𝑙 −𝑙 𝑙
1 𝑙 𝑚𝜋𝑥
𝑏𝑚 = −𝑙 𝑓 𝑥 𝑠𝑖𝑛 𝑑𝑥
𝑙 𝑙
-2 -1 1 2 3
y
𝐹=4 𝐹=4
𝐹=0
-2𝜋 -𝜋 0 𝜋 2𝜋 3𝜋 x
0 𝜋 2𝜋 3𝜋
Let’s calculate it:
𝑙=𝜋
1 𝑙 1 𝜋
𝑎0 = න 𝑓(𝑥) 𝑑𝑥 = න 4𝑑𝑥 = 2
2𝑙 −𝑙 2𝜋 0
1 𝑙 1 𝜋
𝑎𝑛 = −𝑙 𝑓 𝑥 𝑐𝑜𝑠𝑛𝑥𝑑𝑥 = 0 4𝑐𝑜𝑠𝑛𝑥𝑑𝑥
𝑙 𝜋
1 4
= [ 𝑠𝑖𝑛𝑥]𝜋0 = 0
𝜋 𝑛
1 𝑙 1 𝜋
𝑏𝑛 = −𝑙 𝑓 𝑥 𝑠𝑖𝑛𝑥𝑑𝑥 = 0 4𝑠𝑖𝑛𝑥𝑑𝑥
𝑙 𝜋
1 −4 −4
= [ 𝑐𝑜𝑠𝑥]𝜋0 = (𝑐𝑜𝑠𝑛𝜋 − 1)
𝜋 𝑛 𝑛𝜋
4
= (1 − (−1)𝑛 )
𝑛𝜋
4 ∞ 1−(−1)𝑛
So: 𝑓 𝑥 =2 + σ𝑛=1 𝑠𝑖𝑛𝑛𝑥
𝜋 𝑛