PARTIAL DIFFERENTIAL EQUATIONS I Introdu
PARTIAL DIFFERENTIAL EQUATIONS I Introdu
I Introduction
∂u ∂2u ∂2u
ux = , uxx = , uxy = , etc.
∂x ∂x2 ∂x∂y
so that the above PDE can be written y 2 ux + uy = u. The order of the PDE is the
order of the highest partial derivative. A PDE whose unknown function and its
partial derivatives appear linearly in the equation is said to be linear. For example,
A(x, y)uxx + B(x, y)uxy + C(x, y)uyy + D(x, y)ux + E(x, y)uy + F (x, y)u = G(x, y)
which is the general form of second-order linear PDE. If each term in the PDE contains
either the dependent variable or one of its derivatives, i.e., G(x, y) = 0, then it is said
Examples
1. ut = c2 uxx 1 dimensional heat conduction equation
In general, the solution of PDE presents a much more difficult problem than
the solution of ODE and except for certain special types of linear PDE, no general
of the important equations in practice are not only linear, but also of second order,
is a function that has all the partial derivatives appearing in the equation in some
Theorem
(i) If u1 and u2 are two solutions of a linear homogeneous PDE in some region,
k2 are constants.
Proof Trivial.
Consider a thin metal rod with cross-section area A. Assume that the lateral surface
is wrapped with insulation such that heat conducts along the x-direction only.
∆x
x x0
L
Figure 1
Newton’s law of cooling (Fourier’s law) =⇒ the quantity of heat (flux) flowing across
Therefore Qx0 = −kAux (x0 , t) where k is the thermal conductivity of the metal.
The quantity of heat loss along a small segment [x0 , x0 + 4x] per unit time is given
by
H = Qx0 − Qx0 +4x = kA [ux (x0 + 4x, t) − ux (x0 , t)] .
4
amount of heat loss and inversely proportional to the mass 4m of the element.
H4t
Therefore 4u = , where s is the specific heat of the metal. This gives
s4m
4u
On the other hand, 4x → 0 =⇒ 4t → 0 =⇒ → ut (x0 , t), therefore
4t
k
ut (x, t) = uxx (x0 , t) =⇒ ut = c2 uxx
sρ
k
where c2 = is called the thermal diffusivity of the material (note that k, s, ρ are
sρ
all properties of the material and are all positive).
Note If heat is added or removed from the rod, then the equation becomes ut =
c2 uxx +f(x, t) which is nonhomogeneous and f(x, t) is the heat source or sink density.
Suppose that the ends x = 0 and x = L of the rod are kept at temperatures T0 and
T1 , and the initial temperature distribution of the rod is f (x), then the boundary
conditions (B.C.) are u(0, t) = T0 and u(L, t) = T1 , while the initial condition (I.C.)
is u(x, 0) = f(x).
Separation of Variables
As the heat equation is linear and homogeneous, the approach is to seek solu-
tions of the differential equation and boundary conditions and then superposing them
to satisfy the initial conditions. First we solve the PDE ut = c2 uxx by a method
ut = XT 0 and uxx = X 00 T,
T0 X 00
hence ut = c2 uxx =⇒ XT 0 = c2 X 00 T =⇒ = .
c2 T X
T0 X 00
= = −λ, where λ is some constant.
c2 T X
Hence
T 0 + λc2 T = 0 =⇒
2t
T = e−λc
X 00 + λX = 0
(i) λ = 0 =⇒ X 00 = 0 =⇒ X = α + βx.
Therefore,
α + βx if λ = 0,
u= 2 2
e−k c t (αekx + βe−kx ) if λ = −k2 < 0,
e−k2 c2 t (α cos kx + β sin kx) if λ = k2 > 0.
6
Note that α, β and λ (or k) are arbitrary in the above solution, whose values
will be determined by the boundary and initial conditions, which depend on the type
A PDE together with the initial and boundary conditions is called an IBV P
We now discuss how to find the solution to the IBVP for the heat equation
(i) λ = 0 =⇒ u = α + βx
nπ
To get non-trivial solution, we must keep β 6= 0, hence sin kL = 0 =⇒ k = =⇒
L
³ nπ ´2
λ = k2 = , n = 1, 2, · · · . Thus for each n = 1, 2, · · · ,
L
2 c2 t nπx
un = β n e−(nπ/L) sin
L
PDE which satisfies the boundary conditions, but not the initial condition in general.
In order to satisfy the initial condition, we add all un together (known as the
principle of superposition):
∞
X ∞
X 2 c2 t nπx
u(x, t) = un = β n e−(nπ/L) sin
n=1 n=1
L
∞
X nπx
f (x) = β n sin , 0 < x < L.
n=1
L
ZL
2 nπx
Using Fourier sine series expansion, we get β n = f(x) sin dx.
L L
0
Therefore the solution to the IBVP is given by
∞
X ZL
−(nπ/L)2 c2 t nπx 2 nπx
u(x, t) = β ne sin with β n = f(x) sin dx.
n=1
L L L
0
λ = 0 =⇒ u = α + βx. Hence
ux (0, t) = 0 =⇒ X 0 (0) = 0 =⇒ β = 0 =⇒ u ≡ α.
nπx −(nπ/L)2 c2 t
u0 (x, t) ≡ α0 , un (x, t) = αn cos e , n = 1, 2, · · · .
L
∞
X ∞
X 2 c2 t nπx
u(x, t) = un = α0 + αn e−(nπ/L) cos .
n=0 n=1
L
The Heat Equation (Diffusion equation) 9
∞
X nπx
u(x, 0) = f(x) = α0 + αn cos , 0 ≤ x ≤ L,
n=1
L
ZL ZL
1 2 nπx
α0 = f (x)dx, αn = f (x) cos dx n = 1, 2, · · · .
L L L
0 0
∞
X 2 c2 t nπx
u(x, t) = α0 + αn e−(nπ/L) cos .
n=1
L
λ = 0 =⇒ X = α + βx
X(1) + X 0 (1) = 0 =⇒ β + β = 0 =⇒ β = 0
=⇒ X ≡ 0 =⇒ u ≡ 0 (trivial solution).
10
X(0) = 0 =⇒ α + β = 0 =⇒ α = −β.
X(1) + X 0 (1) = 0
=⇒ β = 0, α = −β = 0 =⇒ X = 0 =⇒ u ≡ 0 (trivial solution).
2 c2 t
λ > 0 =⇒ X = α cos kx + β sin kx and u = e−k (α cos kx + β sin kx).
It can be shown that tan k = −k has infinitely many roots 0 < k1 < k2 < · · · < ∞,
2 2
hence X(x) = β sin kx =⇒ un = β n e−kn c t sin kn x, n = 1, .2, · · · . It follows that
∞
X 2 2
u(x, t) = β n e−kn c t sin kn x
n=1
∞
X
u(x, 0) = f(x) =⇒ f(x) = β n sin kn x, 0 < x < 1.
n=1
Z1
To find β n , use the fact that sin kn x sin km xdx = 0, m 6= n, to obtain
0
Z1 Z1 ÃX
∞
!
f(x) sin km xdx = β n sin kn x sin km xdx
0 0 n=1
∞
X Z1 Z1
= βn sin kn x sin km xdx = β m sin2 km xdx.
n=1 0 0
R1
f(x) sin km xdx
0
Hence β m = , m = 1, 2, · · · .
R1 2
sin km xdx
0
Other cases for (a1 , a2 , a3 , a4 ) can be dealt with in the similar way.
The Heat Equation (Diffusion equation) 11
(**) is referred to as the Sturm-Liouville Problem (S-L) associated with the PDE
and B.C. To solve the S-L problem, those λ which gives non-trivial solution of X are
called the eigenvalues and the corresponding solutions X(x) are the eigenfunctions
of the S-L problem. The solution to the IBVP has the form
∞
X 2
u(x, t) = β n e−λn c t Xn (x)
n=1
where λn and Xn are the eigenvalues and eigenfunctions of the S-L problem.
The following theorem about the eigenfunctions of the S-L problem is useful:
of variables cannot be used. Let u(x, t) = v(x) + w(x, t) where v(x) is time-
independent representing the “steady state” solution and w(x, t) represents the
x
Take v(x) = (T2 − T1 ) + T1 . Then
L
x
v(x, t) = T1 (t) + (T2 (t) − T1 (t))
L
x 0
and vt (x, t) = T 01 (t) + (T2 (t) − T10 (t)).
L
h x 0 i
2 2
0 0
Hence, wt = c wxx − vt = c wxx − T 1 (t) + (T 2 (t) − T 1 (t))
L
homogeneous.
14
Xn (x) are eigenvalues and eigenfunctions of the associated S-L problem respectively.
∞
P
We now seek a solution of the form u(x, t) = Tn (t)Xn (x) for the non-homogeneous
n=1
2
equation by choosing appropriate Tn (t) (note that Tn (t) = β n e−λn c t when g = 0, but
∞
X ∞
X ∞
X
2
Tn0 (t)Xn (x) =c Tn (t)Xn00 (x) + gn (t)Xn (x).
n=1 n=1 n=1
which is satisfied if
However, since Xn satisfies the S-L problem, i.e. Xn00 (x) + λXn (x) = 0, the above
equations become
The last equation is a first-order linear ODE and its solution is given by
Zt
−λn c2 t λn c2 p
Tn (t) = e T (0) + gn (p)e dp .
n
0
It remains to determine Tn (0) and gn (t), and to satisfy the I.C. To do so,
RL
note that Xm (x) and Xn (x) are orthogonal for m 6= n (i.e., Xm (x)Xn (x)dx = 0) by
0
the Sturm-Liouville theorem as they are solutions of the S-L problem. Hence
ZL ZL "X
∞
#
g(x, t)Xm (x)dx = gn (t)Xn (x) Xm (x)dx
0 0 n=1
∞
X ZL ZL
2
= gn (t) Xm (x)Xn (x)dx = gm (x) Xm (x)dx.
n=1 0 0
Therefore.
RL
g(x, t)Xn (x)dx
0
gn (t) = .
RL
Xn2 (x)dx
0
∞
X
u(x, 0) = Tn (0)Xn (x) = f (x).
n=1
RL
f(x)Xn (x)dx
0
Tn (0) = .
RL
Xn2 (x)dx
0
∞
X
u(x, t) = Tn (t)Xn (x).
n=1
16
First we look for λn and Xn (x), which are the eigenvalues and eigenfunctions
Next, calculate
RL R1
g(x, t)Xn (x)dx sin 3πx sin nπxdx
1, n = 3
0 0
gn (t) = = =
RL R1
Xn2 (x)dx 2
sin nπxdx 0, n 6= 3
0 0
and
RL R1
f (x)Xn (x)dx sin πx sin nπxdx
1, n = 1,
0 0
Tn (0) = = =
RL R1
Xn2 (x)dx 2
sin nπxdx 0, n 6= 1.
0 0
as follows:
2 2 c2 t
n = 1, g1 (t) = 0, T1 (0) = 1 =⇒ T1 (t) = e−λ1 c t = e−π ,
n = 3, g3 (t) = 1, T3 (0) = 0 =⇒
Zt Zt " 2 2
#t
c2 t c2 p −9π 2 c2 t 9π 2 c2 p −9π 2 c2 t e9π c p
T3 (t) = e−λ3 eλ3 dp = e e dp = e
9π 2 c2
0 0 0
−9π 2 c2 t 9π 2 c2 t
e
(e − 1) 1 2 2
= 2 2
= 2 2 (1 − e−9π c t ),
9π c 9π c
n ≥ 4 =⇒ gn (t) = Tn (0) = 0 =⇒ Tn (t) = 0.
More Heat Conduction Equations 17
2 c2 t 1 2 2
= e−π sin πx + 2 2
(1 − e−9π c t ) sin 3πx.
9π c
As diffusion along the x direction is represented by c2 uxx , the term −αu would
wt = c2 wxx
Suppose that the string is distorted and then at a certain instant, t = 0 say,
it is released and allowed to vibrate, the problem is to determine the vibration of the
string or to find its deflection u(x, t) at any point x and at each instant time t > 0.
β
α T2
u B
A
T1
x
O x0 x0 + ∆x L
Figure 2
Assumptions : (i) the string offers no resistance to bending so that the tension
no motion in the horizontal direction, the horizontal components of the tension must
It follows that
1 ρ
[ux (x + δx, t) − ux (x, t)] = utt .
δx T0
ρ
Letting δx → 0 =⇒ uxx = utt =⇒ utt = c2 uxx (c2 = T0 /ρ), which is called
T0
the wave equation.
n2 π 2 nπx
(i) =⇒ λn = ; Xn (x) = sin , n = 1, 2, · · ·
L2 L
nπc nπc
(ii) =⇒ Tn (t) = αn cos t + β n sin t.
L L
∞ ³
P nπc nπc ´ nπx
u(x, t) = αn cos t + β n sin t sin ,
n=1 L L L
ZL
2 nπx
u(x, 0) = f (x) =⇒ αn = f(x) sin dx,
L L
0
ZL
2 nπx
ut (x, 0) = g(x) =⇒ βn = g(x) sin dx.
nπc L
0
A(x, y)uxx + B(x, y)uxy + C(x, y)uyy + D(x, y)ux + E(x, y)ux + F (x, y)u = G(x, y) (∗)
C = −1. Hence B 2 − 4AC = 4c2 > 0. Thus the wave equation is hyperbolic.
parabolic.
Laplace Equations 21
Note that solutions of Laplace equation are called harmonic functions. Particular
solutions are :
(i) u(x, y) = a + bx + cy, (ii) u(x, y) = xy,
1 1
∇2 u = urr + ur + 2 uθθ = 0.
r r
1 1
∇2 u = uxx + uyy + uzz = uρρ + uρ + 2 uφφ + uzz = 0.
r ρ
1. Consider the 2-D Laplace equation with cylindrical symmetry (e.g. steady state
pipe).
22
1 1
∇2 u = urr + ur + 2 uθθ = 0.
r r
· ¸
2 d2 u 1 du d2 u du d du
∇u = + = 0 =⇒ r 2 + =0 =⇒ r =0
dr2 r dr dr dr dr dr
du dr
=⇒ r = k (constant) =⇒ du = k
dr r
=⇒ u = A ln r + B, r 6= 0.
d2 u 2 du d2 u du
∇2 u = 0 =⇒ + =0 =⇒ r2 + 2r =0
dr2 r dr dr2 dr
· ¸
d 2 du du
=⇒ r = 0 =⇒ r2 = k (constant)
dr dr dr
A
=⇒ u = + B, r 6= 0.
r
as ³ nπx ´
n2 π 2
λn = , Xn = sin , n = 1, 2, · · ·
a2 a
³ nπy ´
(**) =⇒ Yn (y) = αn sinh .
a
³ nπx ´ ³ nπy ´
Therefore un (x, y) = Xn (x)Yn (y) = αn sin sinh and so
a a
∞
X ∞
X ³ nπx ´ ³ nπy ´
u(x, y) = un (x, y) = αn sin sinh .
n=1 n=1
a a
∞
X ³ nπx ´ µ ¶
nπb
f(x) = u(x, b) = αn sin sinh .
n=1
a a
Za
2 nπx
Therefore, αn = ¡ ¢ f (x) sin dx
a sinh nπb
a
a
0
Theorem on the principle of superposition
2
∇ u = 0 in Ω = {(x, y) : 0 < x < a, 0 < y < b}
The Dirichlet problem
u(0, y) = f1 (y); u(a, y) = f2 (y); 0 < y < b
with boundary conditions
u(x, 0) = f3 (x); u(x, b) = f4 (x); 0 < x < a
Proof Exercise.
24
1 1 R00 R0 Θ00
R00 Θ + R0 Θ + 2 RΘ00 = 0 =⇒ r2 +r =− = −λ (constant)
r r R R Θ
=⇒ rR0 = c1 =⇒ R = c2 + c1 ln r.
However, limR(r) < ∞ =⇒ c1 = 0 =⇒ R(r) = c2 .
r→0
∞
X
u(r, θ) = α0 + rn (αn cos nθ + β n sin nθ)
n=1
∞
X
u(A, θ) = f (θ) =⇒ f (θ) = α0 + An (αn cos nθ + β n sin nθ),
n=1
Z 2π
1
which leads to α0 = f(θ)dθ,
2π 0
Z 2π
1
αn = f(θ) cos nθdθ (n = 1, 2, ...),
πAn 0
Z 2π
1
βn = f (θ) sin nθdθ (n = 1, 2, ...).
πAn 0
*******************************
Reference Books:
Kreyszig E., Advanced Engineering Mathematics, Wiley International Edition.
Farlow S.J., Partial Differential Equations for Scientists and Engineers, Wiley Inter-
national Edition.
Boyce W.E. and DiPrima R.C., Elementary Differential Equations and Boundary
Derrick W.R. and Grossman S.I., Elementary Differential Equations with Boundary