Answer of P. D .Equations
Answer of P. D .Equations
(1) Suppose
∂2 y 2∂ y
2
= c for 0 < x < a (1)
∂t 2 ∂x 2
(ii) use the initial condition (2) y( x ,0) = 0 in equation (12) we have
2
Partial differential Equations
nπ x nπ x
yn (= 0 + =
En 0 since ≠ 0 then En = 0 and
a
x , 0) sin sin
a
nπ x nπ ct
the solution (12) becomes yn ( x , t ) = Dn sin sin .
a a
according the super position rule
let
=y( x , t ) y1 ( x , t ) + y2 ( x , t )
πx π ct2π x 2π ct
= D1 sin sin + D2 sin
sin
a a a a
∂y ( x , t ) π c πx π ct 2π c 2π x 2π ct
D1 sin cos + D2 sin cos
∂t a a a a a a
∂y( x ,0) π c π x 2π c 2π x πx 2π x
= D1 sin + D2 sin = A sin + B sin
∂t a a a a a a
Then
Aa Ba
=D1 = , D2
πc πc
and the general solution in this case
Aa π x π ct Ba 2π x 2π ct
= y( x , t ) sin sin + sin sin
πc a a πc a a
**************************************************
U
3
Partial differential Equations
nπ x nπ ct
∴ yn ( x , t ) = En sin cos
a a
and the general solution
∞ ∞ nπ x nπ ct
= y ∑ = yn ( x , t ) ∑ En sin cos
= n 1= n 1 a a
apply the condition
πx
y( x ,0) = C sin 3
a
∞ nπ x πx
= y ( x , 0) ∑ = En sin C sin3
n =1 a a
********************************************************
U
∂T ∂ 2T
(2) Derive the one-dimensional heat equation =k 2,
∂t ∂x
T0 − x2
and verify that T = exp 2 is a solution.
(1 + 4kt / a )
2
a + 4 kt
********************************************************
U
4
Partial differential Equations
5
Partial differential Equations
∂ 2T 1 ∂T 1 ∂ 2T
+ + = 0 (1)
∂r 2 r ∂r r 2 ∂θ 2
let T ( r ,θ ) = F ( r )G (θ )
substitute in (1)
1 1
F ′′( r )G (θ ) + F ′( r )G (θ ) + 2 F ( r )G ′′(θ ) =
0
r r
F ′′( r ) F ′( r ) G′′(θ )
r2 +r + = 0
F (r ) F ( r ) G (θ )
F ′′( r ) F ′( r ) G′′(θ )
r2 +r = −
F (r ) F (r ) G (θ )
F ′′( r ) F ′( r ) G′′(θ )
r2 +r = − = λ2
F (r ) F (r ) G (θ )
6
Partial differential Equations
F ′′( r ) F ′( r )
r2 +r λ2
= (2)
F (r ) F (r )
G ′′(θ )
= −λ 2 (3)
G (θ )
B
=
F ( r ) Ar n + n
r
G (θ ) ( C cos nθ + D sin nθ )
=
B
∴ T ( r ,θ ) = Ar n + n ( C cos nθ + D sin nθ )
r
********************************************************
U
∂u ∂ 2u
= k 2 , in 0 < x < a
∂t ∂x
subject to the boundary conditions
u= (0, t ) u= (a , t ) 0 for t > 0,
and the initial condition
x 1
a if 0 < x ≤
a
u( x ,0) =
1 − x if
1
≤ x<a
a a
Answer:
U
7
Partial differential Equations
T ′( t )
=−α 2 ⇒ T ( t ) =Exp( −α 2 kt )
kT ( t )
X ′′( x )
=−α 2 ⇒ X ( x ) =A sin α x + B cos α x
X ( x)
exp( −α 2 kt ) [ A sin α x + B cos α x ]
u( x , t ) =
From the boundary condition u(0, t ) = 0
u(0, t )= exp( −α 2 kt ) [ A sin 0 + B cos 0]= exp( −α 2 kt ) [ B ]= 0 ⇒ B= 0
so
, t ) exp( −α 2 kt ) [ A sin α x ]
u( x=
From the boundary condition u(a , t ) = 0
∴ u(a , t ) =exp( −α 2 kt ) [ A sin ax ] =0 since exp( −α 2 kt ) ≠ 0
∴ A sin α a =0 ⇒ α a =nπ
nπ
=α = , n 0,1,2,...
a
− n2π 2 kt nπ − n2π 2 kt nπ
=
un ( x , t ) exp( ) An sin x An exp( )sin x
a 2
a a 2
a
according the super position theory
∞ ∞ − n2π 2 kt nπ
=u( x , t ) ∑ = un ( x , t ) ∑ An exp( 2
)sin x
= n 1= n 1 a a
from the initial condition
x a
∞ a if 0 < x ≤
nπ 2
=u( x ,0) ∑ = An sin x
n =1 a 1 − x a
if ≤ x<a
a 2
which show that An is the coefficient of odd sine Fourier series for the
a
2
4 x (2n − 1)π x
given function An = ∫
a0a
sin
a
dx
8
Partial differential Equations
a
4 −x a (2n − 1)π x a (2n − 1)π x2
cos + sin
a a (2n − 1)π a (2n − 1)2 π 2 a 0
1 (2n − 1)π ( −1)n −1
= sin
4(2n − 1)2 π 2 2 4(2n − 1)2 π 2
1 ∞ ( −1)n −1 − n2π 2 kt (2n − 1)π
u( x , t ) = ∑ exp( )sin x
4π 2 n =1 (2n − 1) 2
a 2
a
********************************************************
U
9
Partial differential Equations
10
Partial differential Equations
11
Partial differential Equations
, t ) exp( −α 2 kt ) [ B sin α x ]
T ( x=
From the boundary condition T (a , t ) = 0
T (a , t ) =exp( −α 2 kt ) [ B sin α a ] =0 ⇒ α a =nπ
nπ
αn
= = , n 0,1,2,...
a
Since The initial temperature is = T ( x ,0) F= ( x )G (0) 0 [but
G (0) = 1] for 0 < x < a , then F ( x ) = 0 and From equation (2)
F ′′( x ) = 0
Which has a general solution F (= x ) C1 x + C 2 where
C1 , C 2are constants
At x = 0 F (0) =C1 .0 + C 2 =0 ⇒ C 2 =0
1
∴ F ( x) = C1 x at x = a we find F (a ) =C1a =1 ⇒ C1 = then
a
x
∴ F ( x) =
a
so
x n2π 2 k t nπ
Tn ( x , t ) = + Bn exp( − ) sin x ,n = 1,2,3,...
a a2 a
and
x ∞ n2π 2 k t nπ
T ( x, t ) =+ ∑ B exp( − ) sin x (3)
a n =1 n a2 a
at t = 0 we have T ( x ,0) = 0
x ∞ nπ
T ( x ,0) = + ∑ Bn sin x =0
a n =1 a
∞
nπ − x
∴ ∑ Bn sin = x , a< x<a
n =1 a a
which show that
12
Partial differential Equations
a
2 a −x nπ x 2 − x − a nπ x 1 nπ x
Bn = ∫
a0 a
sin
a
dx
a a nπ
cos −
a n2π 2
sin
a 0
2 nπ x 2( −1)n
= = cos
nπ a nπ
∂ 2T ∂ 2T
+ = 0 (1)
∂x 2 ∂y 2
Assume that T ( x , t ) = X ( x )Y ( y ) is a solution of (1). Then it
becomes
X ′′( x )Y ( y ) + X ( x )Y ′′( y ) =
0
X ′′( x )Y ( y ) X ( x )Y ′′( y )
+ =0
X ( x )Y ( y ) X ( x )Y ( y )
X ′′( x ) Y ′′( y )
+ = 0
X ( x) Y ( y)
X ′′( x ) Y ′′( y )
= − = −α 2
X ( x) Y ( y)
13
Partial differential Equations
X ′′( x )
= −α 2 (2)
X ( x)
Y ′′( y )
=α2 (3)
Y ( y)
Solution X Equation
U
Yn ( y ) = 2C n sinh ny
the general solution in the form
= n ( x )Yn ( y ) 2 ( C n Bn ) sinh ny=
Tn ( x , y ) X= sin nπ , n 0,1,2,3,
14
Partial differential Equations
∞
T ( x, y) = ∑ 2 Dn sinh ny sin nπ (11)
n =1
∞
T ( x ,π ) ∑
= 2 Dn sinh nπ sin nπ 1
n =1
which show that 2 Dn sinh nπ is the coefficient of Fourier sine series
as follows
π
2π 2 −1 −2
n sinh nπ
2 D= ∫
= sin nxdx = cos nx [ cos nπ − 1]
π0 πn 0 nπ
4
−2 = nπ
n odd
= ( − 1) n
− 1
nπ
0 n even
4
2 Dn sinh nπ =
(2n − 1)π
4
2 Dn =
π (2n − 1)sinh(2n − 1)π
in final form (11) becomes
4 ∞ 1 sinh(2n − 1) y sin(2n − 1)π
T ( x, y) = ∑
π n =1 (2n − 1) sinh(2n − 1)π
15