Partial Differential Equations: MST209 Mathematical Methods and Models
Partial Differential Equations: MST209 Mathematical Methods and Models
and models
�
����
Study guide
The recommended study pattern is to study the sections in numerical order
over five study sessions. However, the models developed in Section 1 are
solved in Section 3, and the models developed in Section 2 are solved in
Section 4, so you may prefer to study Section 3 straight after Section 1, and
Section 4 straight after Section 2. Section 3 contains the main technique of
the unit and is rather longer than the other sections.
You will need your computer for Section 5, which involves using the com-
puter algebra package for the course as a tool for solving and interpreting
the results from the problems developed earlier in the unit.
Partial differentiation was introduced in Unit 12, and the techniques in
Sections 3 and 4 are based on ideas from Units 3 and 21. The discussion of
diffusion in Sections 2 and 4 uses ideas from Unit 15.
This publication forms part of an Open University course. Details of this and other Open Uni-
versity courses can be obtained from the Student Registration and Enquiry Service, The Open
University, PO Box 625, Milton Keynes, MK7 6YG, United Kingdom: tel. +44 (0)1908 653231,
e-mail general-enquiries@open.ac.uk
Alternatively, you may visit the Open University website at http://www.open.ac.uk where you can
learn more about the wide range of courses and packs offered at all levels by The Open University.
To purchase a selection of Open University course materials, visit the webshop at www.ouw.co.uk,
or contact Open University Worldwide, Michael Young Building, Walton Hall, Milton Keynes,
MK7 6AA, United Kingdom, for a brochure: tel. +44 (0)1908 858785, fax +44 (0)1908 858787,
e-mail ouwenq@open.ac.uk
Introduction 4
Outcomes 33
Index 38
Introduction
Introduction
4
Introduction
Sections 3, 4 and 5 are concerned with solving examples of the wave equation
and the diffusion equation. We shall not be able to obtain general solutions
to these equations, but we shall be able to obtain a whole host of particular
solutions, based on the imposition of appropriate initial conditions and/or
boundary conditions. The techniques that we use to solve these two specific
types of partial differential equation illustrate some of the techniques that
can be applied to partial differential equations in general. However, here
we shall not attempt to generalize beyond solutions to the wave equation
and the diffusion equation. Section 5 shows how problems involving these
equations can readily be solved with the aid of the computer.
Checking whether or not a given function is a solution of a given partial
differential equation is simply a matter of substituting the given function into
the given equation, and seeing whether it is satisfied. The only difference
from the case of an ordinary differential equation is that you have to calculate
all the relevant partial derivatives. For example, let us check that
u(x, t) = sin(kx) cos(kct)
is a solution of the wave equation (0.1) for any constant k. We have
∂u ∂2u
= k cos(kx) cos(kct), = −k 2 sin(kx) cos(kct),
∂x ∂x2
∂u ∂2u
= −kc sin(kx) sin(kct), = −k 2 c2 sin(kx) cos(kct);
∂t ∂t2
so, when u(x, t) = sin(kx) cos(kct),
∂2u 1 ∂2u
=
∂x2 c2 ∂t2
and this function is indeed a solution of the wave equation.
The initial conditions and/or boundary conditions appropriate to obtaining The boundary conditions are
a particular solution of the wave equation or the diffusion equation depend conditions where the spatial
on the context. For example, for the wave equation as a model of the variable x is fixed.
vibrations of a guitar string, we can use two boundary conditions and two The initial conditions are
conditions where the time
initial conditions. If L is the equilibrium length of the string, then the
variable t is fixed (usually at
boundary conditions are zero).
u(0, t) = u(L, t) = 0, t ≥ 0; (0.2)
these conditions correspond to the string being fixed at its ends. The initial
conditions model the action of plucking the string, which sets it in motion.
Plucking consists of holding the string in a certain shape, at rest, and then
releasing it. If the initial shape of the string is given by a function f (x), the
initial conditions may be specified in the form
u(x, 0) = f (x), 0 < x < L, We use the range 0 < x < L
∂u for the initial condition
(x, 0) = 0, 0 ≤ x ≤ L. u(x, 0) = f (x) because the
∂t values of u(x, 0) when x = 0
The first initial condition models the initial shape of the string, while the and x = L are specified by
second corresponds to it being at rest initially. boundary conditions (0.2)
when t = 0.
In order to obtain particular solutions, we shall need to make use of Fourier
series, introduced in Unit 21, and of some ideas from Unit 3. In particu-
lar, we shall need to apply the principle of superposition, which applies to
linear second-order partial differential equations in the same way as to lin-
ear second-order ordinary differential equations. The equations studied in
this unit are all homogeneous, in that each additive term involves the
dependent variable or its derivatives — there are no constant terms or
terms involving solely the independent variables. However, the boundary
5
Section 1 Modelling using the wave equation
In this section we shall look at two situations that can be modelled by the
wave equation. In Subsection 1.1 we shall see how the wave equation arises as
a model of the transverse vibrations of a taut string. Then, in Subsection 1.2,
we shall see how damping can be incorporated into the model.
Example 1.1
Use Equation (1.2) to determine the dimensions of the constant c.
Solution
[∂ 2 u/∂x2 ] = L L−2 = L−1 , [∂ 2 u/∂t2 ] = L T−2 . The dimensions of a
derivative were dealt with in
Therefore Exercise 2.3 of Unit 16.
[∂ 2 u/∂t2 ] L T−2
[c2 ] = 2 2
= −1 = L2 T−2 ,
[∂ u/∂x ] L
so [c] = L T−1 .
7
Section 1 Modelling using the wave equation
Exercise 1.1
Show that T L/M has the dimensions of velocity.
Example 1.2
A taut string of equilibrium length L is plucked at its midpoint, which is
given an initial displacement d, as shown in Figure 1.5. It is then released
from rest. Write down the initial conditions for the wave equation for the
transverse vibrations of this string.
Solution
The displacement shown in Figure 1.5 has two linear sections. These have Figure 1.5
slopes ±d/( 12 L) = ±2d/L. Hence the initial displacement is given by
⎧ 2d
⎪
⎨ x, 0 ≤ x ≤ 12 L,
u(x, 0) = L
⎪
⎩ 2d (L − x),
1 L < x ≤ L.
L 2
As the string is released from rest, the transverse component of the initial
velocity is given by
∂u
(x, 0) = 0, 0 ≤ x ≤ L.
∂t
*Exercise 1.2
A taut string of equilibrium length L is plucked one third of the way along
What is the corresponding initial condition, for this displacement, for the
wave equation for the transverse vibrations of this string? Figure 1.6
conditions that correspond to the ends of the string being fixed. The dis
-
placements of the ends at time t are given by u(0, t) and u(L, t). Hence the
u(0, t) = 0, u(L, t) = 0, t ≥ 0.
Once you have tightened the string, fixed its ends, plucked it and gently let
8
Section 1 Modelling using the wave equation
∂u
(x, 0) = 0, 0 ≤ x ≤ L.
∂t
Exercise 1.3
Show that the solution given by Equation (1.3) satisfies the boundary con-
ditions
u(0, t) = u(L, t) = 0, t ≥ 0,
and the initial condition
∂u
(x, 0) = 0, 0 ≤ x ≤ L.
∂t
We shall see in Section 3 how to find a solution that also satisfies the other
initial condition.
9
Section 1 Modelling using the wave equation
End-of-section Exercises
Exercise 1.4
How would the wave equation have to be modified to deal with a damping
force with a magnitude proportional to the square of the magnitude of the
velocity? Would the resulting equation be linear?
Exercise 1.5
Suppose that the initial conditions for the transverse vibrations of a taut
string are
⎧ 3d
⎪
⎨ − x, 0 ≤ x ≤ 13 L,
u(x, 0) = L
⎪ 3d
⎩ − (L − x), 13 L < x ≤ L,
2L
∂u
(x, 0) = 0, 0 ≤ x ≤ L.
∂t
Describe how the string has been set in motion.
*Exercise 1.6
A taut string is initially in its equilibrium position. At time t = 0, it is
struck in such a way as to impart, instantaneously, a transverse velocity
v (in the positive direction) to the middle third of the string. Modify the
initial conditions for the wave equation for transverse vibrations of the string
to model this situation.
10
Section 2 Modelling using the diffusion equation
11
Section 2 Modelling using the diffusion equation
Therefore, since there is no source of heat transfer into or out of the segment We assume that the segment
other than by conduction along the rod, the rate of change of heat energy is not at either end of the rod.
in the segment at time t is
∂Θ ∂Θ
−κA (x, t) − −κA (x + δx, t)
∂x ∂x
∂Θ ∂Θ
= κA (x + δx, t) − (x, t) . (2.2)
∂x ∂x
Hence, using Equation (2.1), we have
∂Θ ∂Θ M c δx ∂Θ
κA (x + δx, t) − (x, t) (x, t).
∂x ∂x L ∂t
Dividing both sides by δx and taking the limit as δx → 0, we obtain
∂2Θ M c ∂Θ
κA 2
(x, t) = (x, t),
∂x L ∂t
∂2Θ 1 ∂Θ
2
(x, t) = (x, t). (2.3)
∂x α ∂t
This is known as the diffusion equation, or sometimes as the heat equa
-
tion, for the variation of temperature along an insulated rod.
Since the ends of the rod are kept at a steady temperature Θ0 , the boundary
conditions are
*Exercise 2.1
Suppose that the uniform rod in the above model has density ρ. Simplify
12
Section 2 Modelling using the diffusion equation
∂2Θ 1 ∂Θ κAL κ
= , where α = = ,
∂x2 α ∂t Mc cρ
subject to boundary conditions
Θ(0, t) = Θ(L, t) = Θ0 , t ≥ 0,
*Exercise 2.2
Show that the function
απ2 t πx
−
Θ(x, t) = e L2 sin
L
satisfies the diffusion equation (2.3) and the boundary conditions (2.4) if
Θ0 = 0.
*Exercise 2.3
Suppose that, initially, the temperature of the rod rises linearly towards a
peak in the centre, d above the end temperature Θ0 , as shown in Figure 2.3.
Write down a formula describing the initial temperature function f (x). Figure 2.3
13
Section 3 Separating the variables
Exercise 2.4
Use formulae (2.1), (2.2) and (2.6) to obtain a second-order partial differen-
tial equation modelling the temperature variation in the convecting rod.
So, for the convecting rod, the model of the temperature variation is
∂2Θ 1 ∂Θ κAL hS
= + γ(Θ − Θ0 ), where α = and γ = .
∂x2 α ∂t Mc κAL
The boundary and initial conditions are as before.
Exercise 2.5
Suppose that the convecting rod has uniform density ρ and circular cross-
section of radius r. Find expressions for the constants α and γ that do not
involve M , L, A or S.
End-of-section Exercise
*Exercise 2.6
Write down the initial condition describing the temperature distribution if
the central third of the rod is initially heated to a temperature Θ1 while the
remainder of the rod stays at the background temperature Θ0 .
In the first two sections you have seen several physical situations modelled
using partial differential equations. The next step is to find solutions to these
models. We shall find solutions in this and the next section, but detailed
interpretation of these solutions will be left until Section 5, where you will
be able to explore the solutions on your computer.
In this section we shall solve the wave equation and the damped wave equa-
tion from Section 1. We shall do so in the context of the taut string, though
the method of solution is independent of the physical context and can be ap- Indeed, the method of
plied to any model involving the wave equation. We begin in Subsection 3.1 solution can be applied to
by solving the wave equation for the taut string subject to its homogeneous models involving the diffusion
equation too, as you will see
boundary conditions and to the homogeneous initial condition specifying a in Section 4.
zero initial velocity. Then, in Subsection 3.2, we go on to examine how to
amend this solution to satisfy the inhomogeneous initial condition, speci-
fying the initial displacement of the string. Finally, in Subsection 3.3, we
extend our solutions to the damped wave equation. The goal, which is pre-
sented at the end of the section, is a systematic procedure, which will enable
us to solve a wide variety of partial differential equations.
14
Section 3 Separating the variables
*Exercise 3.1
Determine the partial derivatives ∂ 2 u/∂x2 and ∂ 2 u/∂t2 of the function
Substituting the values found for the partial derivatives in Exercise 3.1 into
the wave equation (3.1) gives
ω2
c2
which on rearranging gives
ω2
c
Since the time-dependent function cos(ωt) is not always zero, the other factor
must be zero. So we must have
ω2
c
We have reduced a partial differential equation to an ordinary differential
equation, involving functions and derivatives depending on x alone, which
we can solve immediately.
15
Section 3 Separating the variables
*Exercise 3.2
What is the general solution of the differential equation (3.4)?
So the wave equation (3.1) has normal mode solutions of the form
u(x, t) = X(x) cos(ωt),
where X(x), the initial displacement, is given by Note that u(x, 0) = X(x), so
ωx ωx that X(x) is the initial
X(x) = A cos + B sin , (3.5) displacement.
c c
These solutions do not restrict the angular frequency ω in any way. However,
for the taut string, there are very severe restrictions placed on ω by the
boundary conditions.
*Exercise 3.3
What do the boundary conditions (3.2) tell you about the initial displace
-
ment function X(x)?
16
Section 3 Separating the variables
Hence normal mode solutions of the wave equation (3.1) that also satisfy
the boundary conditions (3.2) are
rπx crπt
u(x, t) = X(x)T (t) = B sin cos , r = 1, 2, 3, . . . , (3.7)
L L
*Exercise 3.4
Interpret solutions (3.8) for r = 1, 2 and 3 in terms of the transverse vibra-
tions of a taut string.
The first three solutions in family (3.8) have initial displacements given by
the graphs in Figure 3.1. Clearly the larger the value of r, the higher the
frequency (and the higher the pitch of the note).
Figure 3.1
17
Section 3 Separating the variables
So far, we have found a family of solutions (3.8) satisfying the wave equa-
tion (3.1) and the boundary conditions (3.2). In fact, these solutions also
satisfy the initial condition (3.3).
Exercise 3.5
Check that the solutions (3.8) satisfy the initial condition (3.3).
which is the initial displacement of a taut string plucked at its centre. The
technique can be applied to other initial displacements, in an obvious way,
as we shall indicate later.
Unfortunately, none of the individual members of the family (3.8) of func-
tions ur (x, t) satisfies condition (3.9), since
rπx
ur (x, 0) = sin f (x).
=
L
However, we can find a linear combination of the family (3.8) of functions
that does satisfy condition (3.9). You will recall from Unit 21 that a function
such as f (x) can be approximated by a Fourier series, i.e. by an infinite sum
of sinusoidal terms. So it should come as no surprise that what we need to
satisfy condition (3.9) is an infinite linear combination of the family (3.8) of
solutions, i.e. a solution of the form
∞
∞
rπx crπt
u(x, t) = Br ur (x, t) = Br sin cos . (3.11)
r=1 r=1
L L
The principle of superposition extends to such infinite sums, so that they
satisfy not only the wave equation (3.1), but also the homogeneous boundary
conditions (3.2) and the homogeneous initial condition (3.3). So all that
remains is to determine when Equation (3.11) satisfies the inhomogeneous
initial condition (3.9).
18
Section 3 Separating the variables
1 5πx 5πct
+ sin cos − ... .
25 L L
This may seem a very complicated solution, and you may not be able to see
immediately how this combination of terms behaves. However, in Section 5
you will be able to plot the solution graphically, using your computer. The
method used to obtain this solution, known as separating the variables, can
be applied to a variety of homogeneous linear partial differential equations,
not just the wave equation.
19
Section 3 Separating the variables
⎧ 2d
⎪
⎨ x, 0 < x ≤ 12 L,
u(x, 0) = L (3.14)
⎪
⎩ 2d (L − x), 1 L < x < L,
L
2
∂u
(x, 0) = 0, 0 ≤ x ≤ L. (3.15)
∂t
We shall assume that the damping is very weak, so that ε is small, as this
Step (a)
In Subsection 3.1 we wrote the unknown function as
u(x, t) = X(x)T (t) = X(x) cos(ωt).
Such solutions, with T (t) = cos(ωt), represent a system that vibrates in
-
definitely. At a point a distance x along the string, the amplitude of the
vibration is X(x) for all times t. Clearly, this will not do for the damped
taut string, as we expect the vibrations to fade away. So here we just look
*Exercise 3.6
If the function u is defined as a product
u(x, t) = X(x)T (t),
find formulae for the partial derivatives ∂u/∂t, ∂ 2 u/∂t2 and ∂ 2 u/∂x2 in
20
Section 3 Separating the variables
Step (b)
Substituting the results of Exercise 3.6 into Equation (3.12) gives
1
On the left-hand side there is a function of the variable x only, and on the
right-hand side there is a function of the variable t only. Whatever the value
of x and whatever the value of t, the two sides of the equation must always
be equal. The only way that this can occur for all x and all t is for both
sides of the equation to be constant. Let us call this constant µ. Then
X (x) 1 T (t) T (t)
= 2 + 2ε = µ.
X(x) c T (t) T (t)
The single equation (3.16) then becomes a pair of equations. The first of
these is
X (x)
= µ,
X(x)
which on rearranging becomes
X − µX = 0. (3.17)
*Exercise 3.7
Find the corresponding differential equation satisfied by the function T .
21
Section 3 Separating the variables
Step (c)
We solve the differential equations for X and T so that the boundary con
-
ditions (3.19) are satisfied.
For the function X, we have Equation (3.17) and boundary conditions (3.19).
L= 0 and k
= 0 we have
ekL − e−kL = 0, so that
A = B = 0.
Hence, to obtain interesting answers, we assume that µ is negative and write
µ = −k 2 , for some non-zero number k. Equation (3.17) becomes
X + k2 X = 0,
with general solution
X(x) = A cos(kx) + B sin(kx).
As in Subsection 3.1, the boundary conditions (3.19) tell us that A = 0 and
B sin(kL) = 0, so that B = 0 or sin(kL) = 0. The case B = 0 gives the
trivial solution again, whereas the case sin(kL) = 0 restricts k to take one
of the values rπ/L, where r is an integer. Hence, as in Subsection 3.1, we
find again a family of solutions to the boundary-value problem for X of the
form
rπx
Xr (x) = B sin , r = 1, 2, 3, . . . , (3.20)
L
where B is an arbitrary constant.
Now we must deal with the equation for T . We know from our discussion of
the function X that to have a non-trivial solution u, we must have µ = −k 2
and k = rπ/L (for positive integers r), so that the differential equation (3.18)
for T becomes
T + 2εT + ω2 T = 0, where ω = ck. (3.21)
To solve Equation (3.21) for T , we first solve the auxiliary equation
λ2 + 2ελ + ω2 = 0,
which gives
λ = −ε ± ε2 − ω2 .
Using the assumption that ε ω, i.e. ε is much smaller than ω, which
corresponds to very weak damping, this reduces to
λ −ε ± iω.
The corresponding general solution is
T (t) e−εt (α cos(ωt) + β sin(ωt)),
where α and β are arbitrary constants.
22
Section 3 Separating the variables
Using the allowed values for k (i.e. rπ/L, for positive integers r), where
ω = ck, this gives the approximate solutions
−εt crπt crπt
Tr (t) e α cos + β sin , r = 1, 2, 3, . . . , (3.22)
L L
where α and β are arbitrary constants.
Thus, we can combine the two families of solutions (3.20) and (3.22) to
obtain the family of approximate solutions
ur (x, t) = Xr (x)Tr (t) The fact that we allow all
linear combinations of
−εt rπx crπt crπt
e sin α cos + β sin , members of the family (3.23)
L L L allows us to omit the
r = 1, 2, 3, . . . , (3.23) arbitrary constants from
family (3.20), but we cannot
where α and β are arbitrary constants. By the principle of superposition, any omit the arbitrary constants
linear combination of members of this family of solutions is (approximately) α and β.
a solution to the original partial differential equation (3.12) and satisfies the
boundary conditions (3.13).
Step (d)
Now we try to satisfy the initial conditions. We begin with the homogeneous
initial condition (3.15). This was automatically satisfied for the undamped
problem, but it is not automatically satisfied here. We know, from the
principle of superposition, that if each member of family (3.23) satisfies the
homogeneous initial condition (3.15), then so will any linear combination of
members of the family. So we just need to consider ur (x, t) for an arbitrary
r (in the range r = 1, 2, 3, . . .). Differentiating (3.23) with respect to t, we
obtain
∂ur −εt rπx crπ crπt crπ crπt
(x, t) e sin −α sin +β cos
∂t L L L L L
rπx crπt crπt
− εe−εt sin α cos + β sin .
L L L
When t = 0, and writing ω = ck = crπ/L as earlier, we obtain
∂ur crπ rπx rπx
(x, 0) β − εα sin = (ωβ − εα) sin .
∂t L L L
For initial condition (3.15) to be satisfied, for 0 ≤ x ≤ L, we must have
ωβ − εα 0. For very weak damping, as we noted earlier, we have ε ω.
This means that to satisfy ωβ − εα 0, we must have β 0. Thus, to satisfy
the initial condition (3.15), approximately, we need to restrict family (3.23)
to
−εt rπx crπt
ur (x, t) αe sin cos , r = 1, 2, 3, . . . ,
L L
where α is an arbitrary constant. As before, since our solutions are linear
combinations of these functions ur (x, t), we can ignore the arbitrary con-
stants α and obtain the family of approximate solutions
−εt rπx crπt
ur (x, t) e sin cos , r = 1, 2, 3, . . . . (3.24)
L L
By the principle of superposition, any linear combination of members of
this family of solutions is (approximately) a solution to the damped wave
equation (3.12) and satisfies the homogeneous boundary conditions (3.13)
and (approximately) the homogeneous initial condition (3.15).
23
Section 3 Separating the variables
u(x, 0) = L
⎪
⎩ 2d (L − x), 1 L < x < L.
L 2
The situation is exactly the same as in Subsection 3.2, so we obtain the same
Fourier coefficients Br as there. Substituting these into approximation (3.25)
gives the final form of the approximate solution as
8d −εt πx πct 1 3πx 3πct
u(x, t) 2 e sin cos − sin cos Remember that this is an
π L L 9 L L approximate solution, under
the assumption of very weak
1 5πx 5πct
+ sin cos − ... . damping, where ε is very
25 L L small.
This is the same as the solution to the undamped problem except for the
factor e−εt , which describes exponential decay. Hence the shape of the
string is roughly the same as before, apart from the amplitude becoming
progressively smaller by the factor e−εt . The shape determines the sound,
so the sound stays the same, only now it gets progressively quieter, since
the volume is determined by the amplitude. You will be able to investigate
the predicted behaviour more fully by use of your computer in Section 5.
As promised, we now summarize the method of separating the variables in
the form of a procedure.
24
Section 3 Separating the variables
r=0
End-of-section Exercises
*Exercise 3.9
This exercise asks you to verify that the principle of superposition applies to
the wave equation subject to certain homogeneous conditions, to justify its
use in this section. Suppose that the functions u1 and u2 satisfy the wave
equation
∂2u 1 ∂2u
=
∂x2 c2 ∂t2
and the homogeneous conditions
∂u
u(0, t) = u(L, t) = 0 and (x, 0) = 0.
∂t
Show that the linear combination u = a1 u1 + a2 u2 , where a1 and a2 are
constants, is a function that satisfies the same equation and conditions.
25
Section 4 Solving the heat transfer problems
*Exercise 3.10
Use Steps (a) to (c) of Procedure 3.1 to find an infinite family of solutions
for the following model:
∂2u ∂2u
+ 2 = 0, This equation is known as
∂x2 ∂t Laplace’s equation.
subject to boundary conditions
u(0, t) = u(1, t) = 0, t ≥ 0.
In this short section we shall see how the method of separating the variables,
in Procedure 3.1, can be used to solve the diffusion equation subject to ap-
propriate boundary and initial conditions. We shall do this in Subsection 4.1
in the context of the insulated rod problem of Subsection 2.1, and in Sub-
section 4.2 in the context of the convecting rod problem of Subsection 2.2.
If you feel confident about the method of Procedure 3.1, then you might
like to try and solve the models for these problems yourself before working
through this section — in this way you might consider this section as an
extended End-of-section Exercise for Section 3.
Later in this subsection we shall see how our solution can be adapted to
cover any fixed temperature Θ0 at the ends of the rod.
Step (a)
We begin separating the variables by setting
Θ(x, t) = X(x)T (t), (4.4)
and finding the relevant partial derivatives:
∂2Θ
= X T, (4.5)
∂x2
∂Θ
= XT . (4.6)
∂t
26
Section 4 Solving the heat transfer problems
Step (b)
To find separate ordinary differential equations for X and T , we substitute
the formulae for the partial derivatives into the partial differential equation,
and rearrange. Here, substituting (4.5) and (4.6) into Equation (4.1) gives
1
X T = XT .
α
X
1 T
= . (4.7)
X α T
Here the left-hand side is a function of the variable x alone and the right
-
hand side is a function of the variable t alone, so both are equal to a con
-
stant µ. The single equation (4.7) then becomes a pair of equations
X
1 T
= µ, = µ,
X αT
which on rearranging give
X − µX = 0, (4.8)
T − αµT = 0. (4.9)
To find boundary conditions for X, we put x = 0 and x = L in Equation (4.4)
Step (c)
Next we solve the differential equations for X and T , and combine the
families of solutions.
The differential equation (4.8) for X, and its boundary conditions (4.10), are
the same as in Section 3. You have seen that a non-trivial solution occurs
rπx
Xr (x) = B sin , r = 1, 2, 3, . . . , (4.11) As before, k takes one of the
L values rπ/L.
where B is an arbitrary constant.
Our next task is to solve Equation (4.9) for the function T when the constant
µ is replaced by −k 2 and k takes the value rπ/L for some positive integer r. Under these circumstances,
Equation (4.9) is the equation
*Exercise 4.1 for exponential decay.
Solve the differential equation
T + αk2 T = 0.
Putting k = rπ/L in the solution to Exercise 4.1 gives the family of solutions
αr2 π2 t
Tr (t) = Ae− L2 , r = 1, 2, 3, . . . , (4.12)
where A is an arbitrary constant.
27
Section 4 Solving the heat transfer problems
Combining families (4.11) and (4.12), we obtain the following family of so-
lutions to the diffusion equation (4.1) subject to boundary conditions (4.2):
αr2 π2 t rπx
− 2
Step (d)
Finally, we form the infinite linear combination
∞
αr2 π2 t rπx
Θ(x, t) = Br e− L2
sin , (4.14)
r=1
L
and use the initial condition (4.3) and results on Fourier series to determine
the coefficients Br . Setting t = 0 in Equation (4.14) gives
∞
rπx
Θ(x, 0) = Br sin .
L
r=1
The function f (x) used in initial condition (4.3) is the same as that used
in Section 3, hence we arrive at the same values for the coefficients Br , and
the solution is therefore
8d − απ22 t πx 1 − 9απ22 t 3πx
Θ(x, t) = 2 e L sin − e L sin
π L 9 L
2
1 25απ t 5πx
+ e− L2 sin − ··· .
25 L
Now, as promised earlier, let us see how to amend our solution to cover the
case where Θ0 = 0, i.e. where the boundary conditions are
Θ(0, t) = Θ(L, t) = Θ0 , t ≥ 0.
*Exercise 4.2
Consider the diffusion equation
∂2Θ 1 ∂Θ
2
= ,
∂x α ∂t
subject to boundary conditions
Θ(0, t) = Θ(L, t) = Θ0 , t ≥ 0,
where Θ0
= 0, and initial condition
(a) Show that the function Θ(x, t) = Θ0 satisfies the differential equation.
(b) Use the principle of superposition, Equations (4.13) and the result from
part (a) to obtain a family of solutions to the differential equation sub-
ject to the boundary conditions.
(c) Explain how you would go on to obtain a solution that also satisfies the
initial condition.
28
Section 4 Solving the heat transfer problems
Θ(x, 0) = L (4.17)
⎪
⎩ 2d (L − x), 1
L 2L < x < L.
Exercise 4.3
Perform Steps (a) and (b) of Procedure 3.1 to begin the process of solving
the above model for a convecting rod.
Exercise 4.4
Solve the differential equation
T + α(k2 + γ)T = 0.
Putting k = rπ/L, for any positive integer r, into the solution to Exercise 4.4
gives the family of solutions
r 2 π2
−α +γ t
L2
Tr (t) = Ae , r = 1, 2, 3, . . . , (4.19)
where A is an arbitrary constant.
Combining families (4.18) and (4.19), we obtain the following family of so-
lutions to Equation (4.15) subject to boundary conditions (4.16):
r 2 π2
−α +γ t rπx
L2
Θr (x, t) = e sin , r = 1, 2, 3, . . . .
L
As before, any linear combination of members of this family is a solution
to (4.15) subject to (4.16).
29
Section 4 Solving the heat transfer problems
π2 9π2
8d −α L2 +γ t πx 1 −α L2 +γ t 3πx
Θ(x, t) = 2 e sin − e sin
π L 9 L
2
25π
1 −α L2 +γ t 5πx
+ e sin − ···
25 L
8d −αγt − απ22 t πx 1 − 9απ22 t 3πx
= 2 e e L sin − e L sin
π L 9 L
2
1 25απ t 5πx
+ e− L2 sin − ··· .
25 L
This is the same as the solution for the insulated rod except for the e
−αγt
factor, so the convecting rod cools more quickly than the insulated rod by
a factor of e−αγt .
End-of-section Exercises
*Exercise 4.5
Apply Steps (a) to (c) of Procedure 3.1 to the diffusion equation
∂2Θ 1 ∂Θ
2
= ,
∂x α ∂t
subject to boundary conditions These boundary conditions
model the situation where the
∂Θ ∂Θ
(0, t) = (L, t) = 0, t ≥ 0, ends of a hot rod are
∂x ∂x insulated.
⎧ 2d
⎪
⎨ x, 0 ≤ x ≤ 12 L,
Θ(x, 0) = L
⎪
⎩ 2d (L − x), 1 L < x ≤ L.
L 2
Explain how you would go about applying Step (d) of the procedure, but
do not attempt to find the Fourier coefficients needed for the solution that
30
Section 5 Interpreting solutions
Exercise 4.6
Consider the diffusion equation
∂2Θ 1 ∂Θ
2
= ,
∂x α ∂t
subject to boundary conditions These boundary conditions
model the situation where the
Θ(0, t) = Θ0 , Θ(L, t) = ΘL , t ≥ 0, ends of the rod are kept at
fixed temperatures.
where Θ0 and ΘL are non-zero constants, and initial condition
Θ(x, 0) = f (x), 0 < x < L,
for some function f (x).
(a) Show that the function
L−x x
Θ(x, t) = Θ0 + ΘL
L L
satisfies the differential equation and the boundary conditions.
(b) Obtain a family of solutions to the differential equation subject to the
boundary conditions.
(c) Explain how you would go on to obtain a solution that also satisfies the
initial condition.
31
Outcomes
Outcomes
After studying this unit you should be able to:
• understand how the wave and diffusion partial differential equations can
be used to model certain systems;
• determine appropriate simple boundary and initial conditions for such
models;
• find families of solutions for the wave equation, damped wave equation,
diffusion equation and similar homogeneous linear second-order partial
differential equations, subject to simple boundary conditions, using the
method of separating the variables;
• combine solutions of partial differential equations to satisfy given initial
conditions by finding the coefficients of a Fourier series.
33