An Introduction To Partial Differential Equations
An Introduction To Partial Differential Equations
53
An introduction to partial differential
equations
solutions. This chapter does no more than introduce
53.1 Introduction the topic.
A partial differential equation is an equation that
contains one or more partial derivatives. Examples
include: 53.2 Partial integration
∂u ∂u
(i) a +b =c Integration is the reverse process of differentiation.
∂x ∂y ∂u
Thus, if, for example, = 5 cos x sin t is integrated
∂t
∂2 u 1 ∂u partially with respect to t, then the 5 cos x term is
(ii) = 2
∂x 2 c ∂t considered as a constant,
(known as the heat conduction equation) ! !
and u = 5 cos x sin t dt = (5 cos x) sin t dt
∂2 u ∂2 u
(iii) + 2 =0
∂x 2 ∂y = (5 cos x)(−cos t) + c
(known as Laplace’s equation)
= −5 cos x cos t + f (x)
Equation (i) is a first order partial differential
equation, and equations (ii) and (iii) are second ∂2 u
order partial differential equations since the high- Similarly, if = 6x 2 cos 2y is integrated par-
∂x∂y
est power of the differential is 2. tially with respect to y,
Partial differential equations occur in many areas
of engineering and technology; electrostatics, heat ! !
∂u " #
conduction, magnetism, wave motion, hydrodynam- then = 6x cos 2y dy = 6x 2
2
cos 2y dy
ics and aerodynamics all use models that involve ∂x
partial differential equations. Such equations are $ %
" 2# 1
difficult to solve, but techniques have been devel- = 6x sin 2y + f (x)
oped for the simpler types. In fact, for all but for 2
the simplest cases, there are a number of numerical
methods of solutions of partial differential equations = 3x 2 sin 2y + f (x)
available.
To be able to solve simple partial differential ∂u
and integrating partially with respect to x gives:
equations knowledge of the following is required: ∂x
(a) partial integration, !
u= [3x 2 sin 2y + f (x)] dx
(b) first and second order partial differentiation — as
explained in Chapter 34, and
= x3 sin 2y + (x) f (x) + g(y)
(c) the solution of ordinary differential equations —
as explained in Chapters 46–51. f (x) and g(y) are functions that may be determined
if extra information, called boundary conditions or
It should be appreciated that whole books have been initial conditions, are known.
written on partial differential equations and their
AN INTRODUCTION TO PARTIAL DIFFERENTIAL EQUATIONS 513
∂2 u
53.3 Solution of partial differential Hence, the solution of 2 = 6x 2 (2y − 1) for the
∂x
equations by direct partial given boundary conditions is:
integration x4
u= (2y − 1) + x sin y + cos y
The simplest form of partial differential equations 2
occurs when a solution can be determined by direct
partial integration. This is demonstrated in the fol- Problem 2. Solve the differential equation:
lowing worked problems. ∂2 u ∂u
= cos(x +y) given that = 2 when y = 0,
∂x∂y ∂x
Problem 1. Solve the differential equation and u = y2 when x = 0.
∂2 u
= 6x 2 (2y − 1) given the boundary condi-
∂x 2
∂u ∂2 u
tions that at x = 0, = sin 2y and u = cos y. Since = cos(x + y) then integrating partially
∂x ∂x∂y
with respect to y gives:
!
∂2 u ∂u
Since 2 = 6x 2 (2y − 1) then integrating partially = cos(x + y)dy = sin(x + y) + f (x)
∂x ∂x
with respect to x gives: ∂u
! ! From the boundary conditions, = 2 when y = 0,
∂u ∂x
= 6x 2 (2y − 1)dx = (2y − 1) 6x 2 dx hence
∂x 2 = sin x + f (x)
6x 3 from which, f (x) = 2 − sin x
= (2y − 1) + f (y)
3 ∂u
= 2x 3 (2y − 1) + f (y) i.e. = sin(x + y) + 2 − sin x
∂x
where f (y) is an arbitrary function. Integrating partially with respect to x gives:
From the boundary conditions, when x = 0, !
∂u u = [sin(x + y) + 2 − sin x]dx
= sin 2y.
∂x = −cos(x + y) + 2x + cos x + f (y)
Hence, sin 2y = 2(0)3 (2y − 1) + f (y) From the boundary conditions, u = y2 when x = 0,
from which, f (y) = sin 2y hence
∂u y2 = −cos y + 0 + cos 0 + f (y)
Now = 2x 3 (2y − 1) + sin 2y I
∂x = 1 − cos y + f (y)
Integrating partially with respect to x gives: from which, f (y) = y2 − 1 + cos y
!
∂2 u
u = [2x 3 (2y − 1) + sin 2y]dx Hence, the solution of = cos(x+y) is given by:
∂x∂y
2x 4 u = −cos(x + y) + 2x + cos x + y2 − 1 + cos y
= (2y − 1) + x(sin 2y) + F(y)
4
From the boundary conditions, when x = 0, Problem 3. Verify that
u = cos y, hence 1
φ(x, y, z) = " satisfies the partial
(0)4 x 2 + y2 + z 2
cos y = (2y − 1) + (0)sin 2y + F(y) ∂2 φ ∂2 φ ∂2 φ
2 differential equation: 2 + 2 + 2 = 0.
∂x ∂y ∂z
from which, F(y) = cos y
514 DIFFERENTIAL EQUATIONS
The partial differential equation 3x 2 − (x 2 + y2 + z2 )
∂2 φ ∂2 φ ∂2 φ + 3y2 − (x 2 + y2 + z2 )
+ 2 + 2 = 0 is called Laplace’s equation.
∂x 2 ∂y ∂z
+ 3z2 − (x 2 + y2 + z2 )
1 = 5
=0
− 21
If φ(x, y, z) = ! = (x 2 + y2 + z2 ) (x 2 + y2 + z2 ) 2
2 2
x +y +z 2
1
Thus, ! satisfies the Laplace equation
then differentiating partially with respect to x gives: x 2 + y2 + z 2
∂φ 1 3
= − (x 2 + y2 + z2 )− 2 (2x) ∂2 φ ∂2 φ ∂2 φ
∂x 2 + 2 + 2 =0
∂x 2 ∂y ∂z
3
= −x(x 2 + y2 + z2 )− 2
Now try the following exercise.
" #
∂2 φ 3 2 2 2 − 25
and = (−x) − (x + y + z ) (2x)
∂x 2 2 Exercise 200 Further problems on the solu-
tion of partial differential equations by direct
3 partial integration
+ (x 2 + y2 + z2 )− 2 (−1)
1. Determine the general solution of
by the product rule ∂u
= 4ty [u = 2ty2 + f (t)]
∂y
3x 2 1
= 5
− 3
(x 2 + y2 + z2 ) 2 (x 2 + y2 + z2 ) 2 ∂u
2. Solve = 2t cos θ given that u = 2t when
∂t
(3x 2 ) − (x 2 + y2 + z2 ) θ = 0. [u = t 2 (cos θ − 1) + 2t]
= 5
(x 2 + y2 + z2 ) 2
3. Verify that u(θ, t) = θ 2 + θt is a solution of
∂u ∂u
Similarly, it may be shown that −2 = t.
∂θ ∂t
u = f(x, t)
P
Problem 4. Find the general solution of the
following differential equations: u (x, t )
(a) X !! − 4X =0 (b) T !! + 4T = 0.
0 L x
x
Exercise 201 Further problems on revising (iii) Let the initial velocity of P be g(x), then
$ %
the solution of ordinary differential equation ∂u
= g(x)
1. Solve T !! = c2 µT given c = 3 and µ = 1 ∂t t=0
[T = Ae3t + Be−3t ] Initially a trial solution of the form u(x, t) = X(x)T (t)
is assumed, where X(x) is a function of x only and
2. Solve T !! − c2 µT = 0 given c = 3 and µ = −1 T (t) is a function of t only. The trial solution may be
[T = A cos 3t + B sin 3t] simplified to u = XT and the variables separated as
explained in the previous section to give:
3. Solve X !! = µX given µ = !1 "
X = Aex + Be−x X !! 1 T !!
= 2
X c T
4. Solve X !! − µX = 0 given µ = −1 When both sides are equated to a constant µ this
[X = A cos x + B sin x] results in two ordinary differential equations:
T !! − c2 µT = 0 and X !! − µX = 0
Three cases are possible, depending on the
53.6 The wave equation value of µ.
Hence, u = {B sin px}{C cos cpt From Fourier series (see page 684) it may be shown
+ D sin cpt} (4) that:
nπx
An is twice the mean value of f (x) sin between
(ii) u = 0 when x = L for all values of t L
x = 0 and x = L
Hence, 0 = {B sin pL}{C cos cpt + D sin cpt}
* L
Now B #= 0 or u(x, t) would be identically zero. 2 nπx
nπ i.e. An = f (x)sin dx
Thus sin pL = 0 i.e. pL = nπ or p = for L 0 L
L
integer values of n. for n = 1, 2, 3, . . . (8)
518 DIFFERENTIAL EQUATIONS
! cnπ "
and Bn is twice the mean value of where c2 = 1, to determine the resulting motion
L u(x, t).
nπx
g(x)sin between x = 0 and x = L
L
# $% L 4
L 2 nπx
u (x, 0)
i.e. Bn = g(x)sin dx
cnπ L 0 L u = f (x)
2
% L
2 nπx
or Bn = g(x)sin dx (9)
cnπ 0 L 0 25 50 x (cm)
Figure 53.2
Summary of solution of the wave equation
u = f(x, t )
P
Exercise 202 Further problems on the wave
equation u (x, t )
If ln T = −p2 c2 t + c1 then
2 2 2 2 2 2
T = e−p c t+c1 = e−p c t ec1 i.e. T = k e−p c t (where 15
c
constant k = e ). 1
u (x, 0)
2 2
Hence, u(x, t) = XT = {A cos px + B sin px}k e−p c t
2 2
i.e. u(x, t) = {P cos px + Q sin px}e−p c t where
P = Ak and Q = Bk.
Applying the boundary conditions u(0, t) = 0 0 1 x (m)
2 2 2 2
gives: 0 = {P cos 0 + Q sin 0}e−p c t = P e−p c t from
2 2
which, P = 0 and u(x, t) = Q sin px e−p c t .
2 2
Also, u(L, t) = 0 thus, 0 = Q sin pL e−p c t and
u (x, t )
since Q "= 0 then sin pL = 0 from which, pL = nπ P
nπ
or p = where n = 1, 2, 3, . . . u (x, t )
L
There are therefore many values of u(x, t).
0 1 x (m)
Thus, in general,
x
∞ "
! 2 c2 t nπx #
u(x, t) = Qn e−p sin Figure 53.5
L
n=1
Applying the remaining boundary condition, that Assuming a solution of the form u = XT , then, from
when t = 0, u(x, t) = f (x) for 0 ≤ x ≤ L, gives: above,
∞ "
! nπx # X = A cos px + B sin px
f (x) = Qn sin
L 2 c2 t
n=1 and T = k e−p .
From Fourier series, Qn = 2 × mean value of
nπx Thus, the general solution is given by:
f (x) sin from x to L.
L $
2 L nπx u(x, t) = {P cos px + Q sin px}e−p
2 c2 t
Hence, Qn = f (x) sin dx
L 0 L
2 c2 t
Thus, u(x, t) = u(0, t) = 0 thus 0 = P e−p
∞ %&$ L ' (
2! nπx −p2 c2 t nπx from which, P = 0 and u(x, t) = {Q sin px}e−p c t .
2 2
f (x) sin dx e sin 2 2
L
n=1 0 L L Also, u(1, t) = 0 thus 0 = {Q sin p}e−p c t .
Since Q " = 0, sin p = 0 from which, p = nπ
This method of solution is demonstrated in the where n = 1, 2, 3, . . .
following worked problem. !∞ "
2 2
# I
Hence, u(x, t) = Qn e−p c t sin nπx
Problem 6. A metal bar, insulated along its n=1
sides, is 1 m long. It is initially at room tem- The final initial condition given was that at t = 0,
perature of 15◦ C and at time t = 0, the ends are u = 15, i.e. u(x, 0) = f (x) = 15.
!∞
placed into ice at 0◦ C. Find an expression for the
temperature at a point P at a distance x m from Hence, 15 = {Qn sin nπx} where, from Fourier
one end at any time t seconds after t = 0. n=1
coefficients, Qn = 2 × mean value of 15 sin nπx from
x = 0 to x = 1,
The temperature u along the length of bar is shown
in Fig. 53.5. $ 1 ) cos nπx *1
2
∂2 u 1 ∂u i.e. Qn = 15 sin nπx dx = 30 −
The heat conduction equation is 2 = 2 and 1 0 nπ 0
∂x c ∂t
the given boundary conditions are: 30
=− [cos nπ − cos 0]
u(0, t) = 0, u(1, t) = 0 and u(x, 0) = 15 nπ
522 DIFFERENTIAL EQUATIONS
30 take c2 = 1.
= (1 − cos nπ)
nπ
∞ * +
! n2 π 2 t
= 0 (when n is even) and
60
(when n is odd) u(x, t) = 320 1
sin
nπ
sin
nπx −
e 400
nπ π2 n 2 2 20
n(odd)=1
the potential at any point within the rectangle OPQR. Since there are many solutions for integer values of n,
The boundary conditions are: ∞
!
u(x, y) = Qn sin px sinh p(b − y)
u = 0 when x = 0 i.e. u(0, y) = 0 for 0≤y≤b n=1
u = 0 when x = a i.e. u(a, y) = 0 for 0≤y≤b !∞
nπx nπ
= Qn sin sinh (b − y)
u = 0 when y = b i.e. u(x, b) = 0 for 0≤x≤a a a
n=1
u = f (x) when y = 0 i.e. u(x, 0) = f (x) The fourth boundary condition is: u(x, 0) = f (x),
for 0 ≤ x ≤ a ∞
! nπx nπb
As with previous partial differential equations, a hence, f (x) = Qn sinsinh
a a
solution of the form u(x, y) = X(x)Y (y) is assumed, n=1
∞ " #
where X is a function of x only, and Y is a function ! nπb nπx
of y only. Simplifying to u = XY , determining par- i.e. f (x) = Qn sinh sin
a a
n=1
∂2 u ∂2 u
tial derivatives, and substituting into 2 + 2 = 0 From Fourier series coefficients,
∂x ∂y " #
gives: X "" Y + XY "" = 0 nπb
X "" Y "" Qn sinh = 2 × the mean value of
Separating the variables gives: =− a
X Y nπx
f (x) sin from x = 0 to x = a
Letting each side equal a constant, −p2 , gives the two $ a a
equations: nπx
i.e. = f (x) sin dx from which,
0 a
X "" + p2 X = 0 and Y "" − p2 Y = 0 Qn may be determined.
from which, X = A cos px + B sin px and This is demonstrated in the following worked
Y = C epy + D e−py or Y = C cosh py + D sinh py problem.
(see Problem 5, page 478 for this conversion).
This latter form can also be expressed as: Problem 7. A square plate is bounded by the
Y = E sinh p( y + φ) by using compound angles. lines x = 0, y = 0, x = 1 and y = 1. Apply the
∂2 u ∂2 u
Hence u(x, y) = XY Laplace equation 2 + 2 = 0 to determine
∂x ∂y
= {A cos px + B sin px}{E sinh p(y + φ)} the potential distribution u(x, y) over the plate,
subject to the following boundary conditions:
or u(x, y) u = 0 when x = 0 0 ≤ y ≤ 1,
u = 0 when x = 1 0 ≤ y ≤1,
= {P cos px + Q sin px}{sinh p(y + φ)} u = 0 when y = 0 0 ≤ x ≤ 1, I
u = 4 when y = 1 0 ≤ x ≤ 1.
where P = AE and Q = BE.
The first boundary condition is: u(0, y) = 0, hence Initially a solution of the form u(x, y) = X(x)Y (y)
0 = P sinh p(y + φ) from which, P = 0. Hence, is assumed, where X is a function of x only, and
u(x, y) = Q sin px sinh p(y + φ). Y is a function of y only. Simplifying to u = XY ,
The second boundary condition is: u(a, y) = 0, determining partial derivatives, and substituting into
hence 0 = Q sin pa sinh p(y + φ) from which, ∂2 u ∂2 u
nπ + = 0 gives: X "" Y + XY "" = 0
sin pa = 0, hence, pa = nπ or p = for ∂x 2 ∂y2
a X "" Y ""
n = 1, 2, 3, . . . Separating the variables gives: =−
The third boundary condition is: u(x, b) = 0, X Y
hence, 0 = Q sin px sinh p(b + φ) from which, Letting each side equal a constant, −p2 , gives the
sinh p(b + φ) = 0 and φ = −b. two equations:
Hence, u(x, y) = Q sin px sinh p(y − b) =
Q1 sin px sinh p(b − y) where Q1 = −Q. X "" + p2 X = 0 and Y "" − p2 Y = 0
524 DIFFERENTIAL EQUATIONS