Mth647 Assignment Solution by Pin
Mth647 Assignment Solution by Pin
By Pin✌️
MTH 647
Question No 1:
PDE 𝑢𝑡 = 𝑢𝑥𝑥 , 0 < 𝑥 < π, 𝑡>0
BC 𝑢𝑥(0, 𝑡) = 0 , 𝑡≥0 ,
𝑈𝑥(π, 𝑡) = 0 , 𝑡≥0,
IC 𝑢(𝑥 , 0) = 2 + 3𝑐𝑜𝑠𝑥.
Solution:
The problem is defined as follows:
1. Partial Differential Equation (PDE):
𝑢𝑡 = 𝑢𝑥𝑥 , 0 < 𝑥 < π, 𝑡>0
𝑈𝑥(π, 𝑡) = 0 , 𝑡≥0,
1. Compute 𝑢𝑡
'
𝑢𝑡 = 𝑋(𝑥)𝑇 (𝑡)
2. Compute 𝑢𝑥𝑥
''
𝑢𝑥𝑥 = 𝑋 (𝑥)𝑇(𝑡)
2. For X(x)X(x)X(x)
''
𝑋 (𝑥) + λ𝑋(𝑥) = 0
𝑈𝑥(π, 𝑡) = 0 , 𝑡≥0,
1. For n=0: 𝐴0 = 2
2. For n=1: 𝐴1 = 3
3. For n≥2: 𝐴𝑛 = 0
Final Solution
The solution to the problem is :
𝑡
𝑢(𝑥, 𝑡) = 2 + 3 𝑐𝑜𝑠𝑥
Question no 2:
a) 𝑎 𝐿
1 𝑛π𝑥
𝑛= 𝐿
∫ 𝑓(𝑥)𝑐𝑜𝑠 𝐿
𝑑𝑥
−𝐿
b) 𝑏 𝐿
1 𝑛π𝑥
𝑛= 𝐿
∫ 𝑓(𝑥)𝑠𝑖𝑛 𝐿
𝑑𝑥
−𝐿
Solution:
Step 1: Fourier Series Representation
The function f(x) is represrnted by the Fourier series:
∞
𝑛π𝑥 𝑛π𝑥
f(x)=A+ ∑ (𝑎𝑛𝑐𝑜𝑠 𝐿
+ 𝑏𝑛𝑠𝑖𝑛 𝐿
)
𝑛=1
Where 𝑎𝑛 𝑎𝑛𝑑 𝑏𝑛 𝑎𝑟𝑒 𝑡ℎ𝑒 𝑓𝑜𝑢𝑟𝑖𝑒𝑟 𝑐𝑜𝑒𝑓𝑓𝑖𝑐𝑖𝑒𝑛𝑡 𝑓𝑜𝑟 𝑡ℎ𝑒 𝑐𝑜𝑠𝑖𝑛𝑒 𝑎𝑛𝑑 𝑠𝑖𝑛𝑒 𝑡𝑒𝑟𝑚𝑠, 𝑟𝑒𝑠𝑝𝑒𝑐𝑡𝑖𝑣𝑒𝑙𝑦.
Step 2: Deriving 𝑎𝑛
𝑚π𝑥
To find 𝑎𝑛 we multiply both sides of the Fourier series by cos 𝐿
(where m is an integer) and
integrate over (-L,L):
𝐿 𝐿 ∞
𝑚π𝑥 𝑛π𝑥 𝑛π𝑥 𝑚π𝑥
∫ 𝑓(𝑥)𝑐𝑜𝑠 𝐿
𝑑𝑥 = ∫ (𝐴 + ∑ 𝑎𝑛𝑐𝑜𝑠 𝐿
+ 𝑏𝑛𝑠𝑖𝑛 𝐿
)𝑐𝑜𝑠 𝐿
𝑑𝑥
−𝐿 −𝐿 𝑛=1
Using the orthogonality of sine and cos functions, all terms where n≠𝑚 will integrate to zero leaving
only the term with n=m
𝐿 𝐿
𝑚π𝑥 2 𝑚π𝑥
∫ 𝑓(𝑥)𝑐𝑜𝑠 𝐿
𝑑𝑥 = 𝑎𝑚 ∫ 𝑐𝑜𝑠 𝐿
𝑑𝑥
−𝐿 −𝐿
𝐿
2 𝑚π𝑥
Since ∫ 𝑐𝑜𝑠 𝐿
𝑑𝑥=L
−𝐿
We get
𝐿
𝑚π𝑥
∫ 𝑓(𝑥)𝑐𝑜𝑠 𝐿
𝑑𝑥 = 𝑎𝑚𝐿
−𝐿
𝐿
1 𝑚π𝑥
𝑎𝑚 = 𝐿
∫ 𝑓(𝑥)𝑐𝑜𝑠 𝐿
𝑑𝑥
−𝐿
Step 3: Deriving 𝑏𝑛
𝑚π𝑥
Similarly to find 𝑏𝑛 we multiply both sides of the fourier series by sin 𝐿
and integrate over (L,-L)
𝐿 𝐿 ∞
𝑚π𝑥 𝑛π𝑥 𝑛π𝑥 𝑚π𝑥
∫ 𝑓(𝑥)𝑠𝑖𝑛 𝐿
𝑑𝑥 = ∫ (𝐴 + ∑ 𝑎𝑛𝑐𝑜𝑠 𝐿
+ 𝑏𝑛𝑠𝑖𝑛 𝐿
)𝑠𝑖𝑛 𝐿
𝑑𝑥
−𝐿 −𝐿 𝑛=1
Again due to the orthogonality of sine and cos functions, all terms where n≠𝑚 will integrate to zero
leaving only the term with n=m
𝐿 𝐿
𝑚π𝑥 2 𝑚π𝑥
∫ 𝑓(𝑥)𝑠𝑖𝑛 𝐿
𝑑𝑥 = 𝑏𝑚 ∫ 𝑠𝑖𝑛 𝐿
𝑑𝑥
−𝐿 −𝐿
𝐿
2 𝑚π𝑥
Since ∫ 𝑠𝑖𝑛 𝐿
𝑑𝑥=L
−𝐿
We get
𝐿
𝑚π𝑥
∫ 𝑓(𝑥)𝑠𝑖𝑛 𝐿
𝑑𝑥 = 𝑏𝑚𝐿
−𝐿
𝐿
1 𝑚π𝑥
𝑏𝑚 = 𝐿
∫ 𝑓(𝑥)𝑠𝑖𝑛 𝐿
𝑑𝑥
−𝐿
Final Answer
The Fourier coefficients are given by:
𝐿
1 𝑛π𝑥
𝑎𝑛 = 𝐿
∫ 𝑓(𝑥)𝑐𝑜𝑠 𝐿
𝑑𝑥
−𝐿
𝐿
1 𝑛π𝑥
𝑏𝑛 = 𝐿
∫ 𝑓(𝑥)𝑠𝑖𝑛 𝐿
𝑑𝑥
−𝐿