Professional Documents
Culture Documents
UNDERGRADUATEJJ TEXTS 15
Partial Differential
Equations and
Boundary-Value
Problems with
Applications
Third Edition
Mark A. Pinsky
QA374.P55 2011
515'.353-dc22
2011012736
Copying and reprinting. Individual readers of this publication, and nonprofit libraries
acting for them, are permitted to make fair use of the material, such as to copy a chapter for use
in teaching or research. Permission is granted to quote brief passages from this publication in
reviews, provided the customary acknowledgment of the source is given.
Republication, systematic copying, or multiple reproduction of any material in this publication
is permitted only under license from the American ~athematical Society. Requests for such
permission should be addressed to the Acquisitions Department, American ~athematical Society,
201 Charles Street, Providence, Rhode Island 02904-2294 USA. Requests can also be made by
e-mail to reprint-permission~ams. org.
1998 held by the American ~athematical Society. All rights reserved.
Printed in the United States of America.
9 The paper used in this book is acid-free and falls within the guidelines
established to ensure permanence and durability.
Visit the A~S home page at http://ww . ams .org/
10 9 8 7 6 5 4 3 2 1 16 15 14 13 12 11
Preface
This third edition is an introduction to partial differential equations for students
who have finished calculus through ordinary differential equations. The book
provides physical motivation, mathematical method, and physical application.
Although the first and last are the raison d'etre for the mathematics, I have
chosen to stress the systematic solution algorithms, based on the methods of
separation of variables and Fourier series and integrals. My goal is to achieve a
lucid and mathematically correct approach without becoming excessively involved
in analysis per se. For example, I have stressed the interpretation of various
solutions in terms of asymptotic behavior (for the heat equation) and geometry
(for the wave equation).
This new edition builds upon the solid strengths of the previous editions and
provides a more patient development of the core concepts. Chapters 0 and 1 have
been reorganized and refined to provide more complete examples that will help
students master the content. For example, the Sturm-Liouville theory has been
rewritten and placed at the end of Chapter 1 just before it is used in Chapter 2.
The coverage of infinite series and ordinary differential equations, formerly in
Chapter 0, has been moved to appendixes. In addition, we have integrated the
applications of Mathematica into the text because computer-assisted methods
have become increasingly important in recent years. The previous edition of this
text made Mathematica applications available for the first time in a book at this
level, and this edition continues this coverage. Each section of the book contains
numerous worked examples and a set of exercises. These exercises have been kept
to a uniform level of difficulty, and solutions to nearly 450 of the 700 exercises in
the text have been provided.
Chapter 0 is a brief introduction to the entire subject of partial differen-
tial equations and some technical material that is used frequently throughout
the book. Chapters 1 to 4 contain the basic material on Fourier series and
boundary-value problems in rectangular, cylindrical, and spherical coordinates.
Bessel and Legendre functions are developed in Chapters 3 and 4 for those in-
structors who want a self-contained development of this material. Instructors
who do not wish to use the material on boundary-value problems should cover
only Sees. 3.1 and 4.1 in Chapters 3 and 4. These sections contain several inter-
esting boundary-value problems that can be solved without the use of Bessel or
Legendre functions.
Chapter 5 develops Fourier transforms and applies them to solve problems in
unbounded regions. This material, which may be treated immediately following
Chapter 2 if desired, uses real-variable methods. The student is referred to a
subsequent course for complex-variable methods.
The student who has finished all the material through Chapter 5 will have
a good working knowledge of the classical methods of solution. To complement
these basic techniques, I have added chapters on asymptotic analysis (Chapter 6),
vi PREFACE
numerical analysis (Chapter 7), and Green's functions (Chapter 8) for instructors
who may have additional time or wish to omit some of the earlier material. The
accompanying flowchart plots various paths through the book.
Chapters 1 and 2 form the heart of the book. They begin with the theory
of Fourier series, including a complete discussion of convergence, Parseval's the-
orem, and the Gibbs phenomenon. We work with the class of piecewise smooth
functions, which are infinitely differentiable except at a finite number of points,
where all derivatives have left and right limits. Despite the generous dose of the-
ory, it is expected that the student will learn to compute Fourier coefficients and
to use Parseval's theorem to estimate the mean square error in approximating a
function by the partial sum of its Fourier series. Chapter 1 concludes with Sturm-
Liouville theory, which will be used in Chapter 2 and repeatedly throughout the
book.
Chapter 2 takes up the systematic study of the wave equation and the heat
equation. It begins with steady-state and time-periodic solutions of the heat
equation in Sec. 2.1, including applications to heat transfer and to geophysics,
and follows with the study of initial-value problems in Sees. 2.2 and 2.3, which
are treated by a five-stage method. This systematic breakdown allows the student
to separate the steady-state solution from the transient solution (found by the
separation-of-variables algorithm) and to verify the uniqueness and asymptotic
behavior of the solution as well as to compute the relaxation time. I have found
that students can easily appreciate and understand this method, which combines
mathematical precision and clear physical interpretation. The five-stage method
PREFACE vii
is used throughout the book, in Sees. 2.5, 3.4, and 4.1. Chapter 2 also in-
cludes the wave equation for the vibrating string (Sec. 2.4), solved both by the
Fourier series and by the d' Alembert formula. Both methods have advantages
and disadvantages, which are discussed in detail. My derivations of both the wave
equation and the heat equation are from a three-dimensional viewpoint, which I
feel is less artificial and more elegant than many treatments that begin with a
one-dimensional formulation.
Following Chapter 2, there is a wide choice in the direction of the course.
Those instructors who wish to give a complete treatment of boundary-value prob-
lems in cylindrical and spherical coordinates, including Bessel and Legendre func-
tions, will want to cover all of Chapters 3 and 4. Other instructors may ignore
this material completely and proceed directly to Chapter 5, on Fourier trans-
forms. An intermediate path might be to cover Secs. 3.1 and/or 4.1, which treat
(respectively) Laplace's equation in polar coordinates and spherically symmetric
solutions of the heat equation in three dimensions. Neither topic requires any
special functions beyond those encountered in trigonometric Fourier series.
Chapter 5 treats Fourier transforms using the complex exponential notation.
This is a natural extension of the complex form of the Fourier series, which is
covered in Sec. 1.5. Using the Fourier transform, I reduce the heat, Laplace,
wave, and telegraph equations to ordinary differential equations with constant
coefficients, which can be solved by elementary methods. In many cases, these
Fourier representations of the solutions can be rewritten as explicit representa-
tions (by what is usually known as the Green function method). The method of
images for solving problems on a semi-infinite axis is naturally developed here.
The Green functions methods are developed more systematically in Chapter B.
After preparing the one-dimensional case, I give a self-contained treatment of the
explicit representation of the solution of Poisson's equation in two and three di-
mensions. In addition to the traditional physical applications, the Black-Scholes
model of option pricing from financial mathematics is included.
Throughout the book I emphasize the asymptotic analysis of series solutions
of boundary-value problems. Chapter 6 gives an elementary account of asymp-
totic analysis of integrals, in particular the Fourier integral representations of
the solutions obtained in Chapter 5. The methods include integration by parts,
Laplace's method, and the method of stationary phase. These culminate in an
asymptotic analysis of the telegraph equation, which illustrates the group velocity
of a wave packet.
No introduction to partial differential equations would be complete without
some discussion of approximate solutions and numerical methods. Chapter 7
gives the student some working knowledge of the finite difference solution of the
heat equation and Laplace's equation in one and two space dimensions. The
material on variational methods first relates differential equations to variational
viii PREFACE
problems and then outlines some direct methods that may be used to arrive at
approximate solutions, including the finite elem~nt method.
This book was developed from course notes for Mathematics C91-1 in the
Integrated Science Program at Northwestern University. The course has been
taught to college juniors since 1977; Chapters 1 to 5 are covered in a IO-week
quarter. I am indebted to my colleagues Leonard Evens, Robert Speed, Paul
Auvil, Gene Birchfield, and Mark Ratner for providing valuable suggestions on
the mathematics and its applications. The first draft was written in collaboration
with Michael Hopkins. The typing was done by Vicki Davis and Julie Mendel-
son. The solutions were compiled with the assistance of Mark Scherer. Valuable
technical advice was further provided by Edward Reiss and Stuart Antman.
In preparation of this new edition, I received valuable comments and sugges-
tions from Andrew Bernoff, Joseph B. Keller, Thaddeus Ladd, Jeff Miller, Carl
Prather, Robert Seeley, and Marshall Slemrod. I also acknowledge the reviewing
services of the following individuals: David Bao, University of Houston; William
O. Bray, University of Maine; Peter Colwell, Iowa State University; Kenneth A.
Heimes, Iowa State University; Yinxi Huang, University of Memphis; Mohammad
Kozemi, University of North Carolina-Charlotte; and William Mays, Gloucester
Community College (NJ).
In preparation of the past edition, I received valuable comments and sugges-
tions from James W. Brown, Charles Holland, Robert Pego, Mei-Chang Shen,
Clark Robinson, Nancy Stanton, Athanassios Tzavaras, David Kapov, and Den-
nis Kosterman. For the second edition, I also acknowledge the reviewing services
of the following individuals: William O. Bray, University of Maine; William E.
Fitzgibbon, University of Houston; Peter J. Gingo, University of Akron; Moham-
mad Kozemi, University of North Carolina-Charlotte; Gilbert N. Lewis, Michi-
gan Technical University; Geoffrey Martin, University of Toledo; Norman Mey-
ers, University of Minnesota-Minneapolis; Allen C. Pipkin, Brown University; R.
E. Showalter, University of Texas-Austin; and Grant V. WeIland, University of
Missouri-St. Louis.
In the preparation of the first edition I was encouraged by John Corrigan
of the McGraw-Hill College Division. Preparing the second edition of this text,
I benefited from the editorial services of Karen M. Hughes and Richard Wallis.
Most recently, for this new edition with Waveland Press, it has been a pleasure to
work with Jan Fisher and the staff of Publication Services. The current printing
was completed with the editorial assistance of Miron Bekker, Harry R. Hughes,
Monica Sharpnack, Nancy Stanton, and Alphonse Sterling.
Mark A. Pinsky
Contents
Preface v
Chapter O. PRELIMINARIES 1
0.1. Partial Differential Equations 1
0.1.1. What is a partial differential equation? 1
0.1.2. Superposition principle and subtraction principle 3
0.1.3. Sources of PDEs in classical physics 4
0.1.4. The one-dimensional heat equation 5
0.1.5. Classification of second-order PDEs 9
0.2. Separation of Variables 10
0.2.1. What is a separated solution? 10
0.2.2. Separated solutions of Laplace's equation 11
0.2.3. Real and complex separated solutions 13
0.2.4. Separated solutions with boundary conditions 18
0.3. Orthogonal Functions 21
0.3.1. Inner product space of functions 21
0.3.2. Projection of a function onto an orthogonal set 24
0.3.3. Orthonormal sets of functions 28
0.3.4. Parseval's equality, completeness, and mean square convergence 29
0.3.5. Weighted inner product 30
0.3.6. Gram-Schmidt orthogonalization 31
0.3.7. Complex inner product 32
Chapter 1. FO URIER SERIES 35
1.1. Definitions and Examples 35
1.1.1. Orthogonality relations 35
1.1.2. Definition of Fourier coefficients 36
1.1.3. Even functions and odd functions 37
1.1.4. Periodic functions 41
1.1.5. Implementation with Mathematica 41
1.1.6. Fourier sine and cosine series 42
1.2. Convergence of Fourier Series 46
1.2.1. Piecewise smooth functions 47
1.2.2. Dirichlet kernel 51
1.2.3. Proof of convergence 52
1.3. Uniform Convergence and the Gibbs Phenomenon 58
1.3.1. Example of Gibbs overshoot 58
1.3.2. Implementation with Mathematica 61
1.3.3. Uniform and nonuniform convergence 64
1.3.4. Two criteria for uniform convergence 64
1.3.5. Differentiation of Fourier series 65
1.3.6. Integration of Fourier series 66
1.3.7. A continuous function with a divergent Fourier series 67
1.4. Parseval's Theorem and Mean Square Error 71
1.4.1. Statement and proof of Parseval's theorem 71
1.4.2. Application to mean square error 72
1.4.3. Application to the isoperimetric theorem 74
x CONTENTS
INDEX 521
ABOUT THE AUTHOR 527
CHAPTER 0
PRELIMINARIES
INTRODUCTION
2
8 u _ [flu
8x 2 ay2
=0 (the wave equation)
2
a u _ au = 0 (the heat equation)
ox2 8y
82 u 82 u
ox2 + 8y2 = g(x, y) (Poisson's equation)
2 O. PRELIMINARIES
In order to simplify the notation, we will often use subscripts to denote the
various partial derivatives, so that U x = au/ax, U xx = a 2 u/ax2 , and so forth. In
this notation, the above four examples are written, respectively,
uxx +u1l1l = 0, u xx - U yy = 0, uxx - u y = 0, u xx + U yy = 9
The order of a PDE is indicated by the highest-order derivative that appears.
All of the above four examples are PDEs of second order.
In the case of a function of several variables u(xt, .. . , x n ), the most general
second-order partial differential equation can be written
where the dots imply the other partial derivatives that may occur. In case n = 1
we obtain the second-order ordinary differential equation F(x, '1., '1.', '1.11) = 0. The
necessary information on ordinary differential equations is reviewed in Appen-
dix A.I.
Another important concept pertaining to a PDE is that of linearity. This
is most easily described in the context of a differential operator applied to
a function u. Examples of differential operators are '1. = au/ax, '1. = 3u +
siny8u/8x, and '1. = '1. {)2u/8x 2 The operator is said to be linear if for any two
functions u, v and any constant c,
('1. + v) = '1.+ v, (cu) = cu
A PDE is said to be linear if it can be written in the form
(0.1.1) u=g
where is a linear differential operator and 9 is a given function. In case 9 = 0,
(0.1.1) is said to be homogeneo'U..'J. For example, three of the above examples
(Laplace's equation, the wave equation, and the heat equation) are linear homo-
geneous PDEs. The most general linear second-order PDE in two variables is
written
a(x, y)uxx + b(x, Y)U Xy + c(x, y)u yy + d(x, y)u x + e(x, y)uy + f(x, y)u = g(x, y)
where the functions a, b, c, d, e, I, 9 are given.
EXERCISES 0.1.1
1. Write down the most general linear first-order PDE in two variables. How
many given functions are necessary to specify the PDE?
2. Write down the most general linear first-order PDE in three variables. How
many given functions are necessary to specify the PDE?
3. Write down the most general linear first-order homogeneous PDE in two
variables. How many given functions are necessary to specify the PDE?
4. Write down the most general linear first-order homogeneous PDE in three
variables. How many given functions are necessary to specify the PDE?
0.1. PARTIAL DIFFERENTIAL EQUATIONS 3
5. Define the operator , by the formula 'u(x, y) = d(x, y)u x + e(x, y)u y +
J(x, y)u. Show that , is a linear differential operator.
6. Define the operator , by the formula 'u(x, y) = a(x, y)u xx + b(x, y)uxy +
c(x, y)u yy . Show that , is a linear differential operator.
7. Suppose that '1 and '2 are linear differential operators. Show that '1 +2
is also a linear differential operator.
Proof. We have
.c(Ul - U2) = .cUI - .cU2 = 0
For example, if Ul and U2 are both solutions of the Poisson equation uxx+uyy =
1, then Ul - U2 is a solution of Laplace's equation U xx + u yy = O.
The subtraction principle allows us to find the general solution of a nonhomo-
geneous equation .cu = 9 once we know a particular solution of the equation and
the general solution of the related homogeneous equation Cu = O. The result is
expressed as follows.
Corollary. The general solution of the linear partial differential equation
.cu = 9 can be written in the form
u=U+v
EXERCISES 0.1.2
1. Show that for any constant k, the function u(x, y) = ekx cos ky is a solution
of Laplace's equation U xx + U yy = O.
2. Show that for any constant k, the function u(x, y) = ekxek2y is a solution
of the heat equation U xx - u y = O.
3. Show that for any constant k, the function u(x, y) = ekxe- ky is a solution
of the wave equation U xx - u yy = O.
4. Show that for any constant k, the function u(x, y) = (k/2)x 2 + (1- k)y2/2
is a solution of Poisson's equation U xx + u yy = 1.
0.1.3. Sources of PDEs in classical physics. Many laws of physics are
expressed mathematically as differential equations. The student of elementary
mechanics is familiar with Newton's second law of motion, which expresses the
acceleration of a system in terms of the forces on the system. In the case of
one or more point particles, this translates into a system of ordinary differential
equations when the force law is known.
For example, a single spring with Hooke's law of elastic restoration and no
frictional forces gives rise to the linear equation of the harmonic oscillator, which
is well studied in elementary courses. A system of particles that interact through
several springs gives rise to a second-order system of differential equations, which
0.1. PARTIAL DIFFERENTIAL EQUATIONS 5
may be resolved into its normal modes- each of which undergoes simple har-
monic motion. Newton's law of gravitational attraction gives rise to a more com-
plicated system of nonlinear ordinary differential equations. Generally speaking,
whenever we have a finite number of point particles, the mathematical model is a
system of ordinary differential equations, where time Viays the role of independent
variable and the positions/velocities of the particles are the dependent variables.
In Chapter 2, we will give the complete derivation of the wave equation, which
governs the motion of a tightly streched vibrating string.
For time-dependent systems in one spatial dimension, we will use the notation
u(x; t) to denote the unknown function that is a solution of the PDE. In the case
of two or three spatial dimensions we will use the repective notations u(x, Yi t)
and u(x, y, z; t) to denote the solution of the PDE.
In the following subsection we will give a simplified derivation of the one-
dimensional heat equation. The complete derivation of the heat equation as it
applies to three-dimensional systems is found in Chapter 2.
For example, if the point Xl is at 50 degrees and the neighbor to the left is at
40 degrees while the neighbor to the right is at 60 degrees, then we expect no
change in temperature.
On the other hand, if this condition of local equilibrium is not satisfied, then
we may expect that the temperature will change, in relation to the amount of
disequilibrium. Certainly one expects the temperature to increase if both neigh-
bors are warmer, but also if the average is warmer; for example, if the point x,
is at 50 degrees while the left neighbor is at 45 degrees and the right neighbor is
at 65 degrees, then the average is 55 degrees-5 degrees warmer than the home
temperature.
In order to quantify this, we postulate the following dynamical law.
65 65
60
/ I 60
55
/ / 55
50 / /t ~ SO
45 / L ~ 45
40 / 40
I I I
.to XI X2 Xo XI X2
where the points x~, x~' satisfy X,-l ~ x~' :5 x, :5 x~ ~ XHI. Recalling that
the points are equally spaced, let L).x = X,+l - Xs be the common spacing, and
0.1. PARTIAL DIFFERENTIAL EQUATIONS 7
(0.1.4) I~ = Ku" I
The constant K is called the diffusivity.
With no further information, the heat equation (0.1.4) will have infinitely
many solutions. In order to specify a solution of the heat equation, we consider
various boundary conditions and initial conditions. Assuming that the rod occu-
pies the interval 0 < x < L of the x-axis, we consider three types of boundary
conditions at the endpoint x = 0:
I u(O;t) To =
II : U x (0; t) = 0
III : -ux(O; t) = h(Te - u(O; t)) whereh> 0
Boundary condition I signifies that the temperature at the end x = 0 is held
constant. In practice this could occur as the result of heating the end by means
of some device. Boundary condition II signifies that there is no heat flow at the
end x = O. In practice this could occur by means of insulation, which prohibits
the flow of heat at this end. Boundary condition III is sometimes called Newton's
law of cooling: the negative of the partial derivative is interpreted as the heat flux,
i.e., the rate of heat flow out of the end x = 0, and is required to be proportional to
the difference between the outside temperature Te and the endpoint temperature
u(O; t). If this difference is large, then we may expect heat to flow out of the rod
at a rapid rate. If Te is less than the endpoint temperature, then u(O; t) > Te and
the rate will be negative, so that we may expect heat to flow into the rod from
the exterior. The concept of flux will be discussed in more detail in Chapter 2,
when we derive the three-dimensional heat equation.
Similarly, we can have each of the three boundary conditions present at the
end x = L; in detail,
I : u(L;t) = 70
II : U x (L; t) = 0
III : ux(L; t) = h(Te - u(Lj t whereh > 0
The constants To, h, and Te may be the same as for the endpoint x = 0 or may
have different values. The interpretations are exactly the same as for the endpoint
8 O. PRELIMINARIES
x = 0, with one small exception: in the third boundary condition (III), the heat
flux at the end x = L is written without the minus sign, since this measures the
rate of heat flow out of the end x = L. As before, we expect that if the external
temperature Te is much greater than the endpoint temperature u(Lj t), then the
rate of heat flow out of the end will be large, whereas if the external temperature
is less than the endpoint temperature, then the heat flow out will be negative.
A typical boundary-value problem for the heat equation will have one bound-
ary condition for each end x = 0 and x = L. Considering all possible cases, we
have nine different combinations, of which we list the first three below:
u(O; t) = To, u(L;t) = TL
u(O; t) = To, ux(L; t) = 0
u(O; t) = To, ux(L; t) = h(Te - u(L; t))
The final piece of information used to specify the solution is the inital data.
This is simply written
u(x; 0) = f(x), O<x<L
This signifies that the temperature is known at time t = 0 and is given by the
function f(x),O < x < L. Note that we do not insist that this agree with the
values of the solution at the endpoints x = 0, x = L. Specification of boundary
conditions and initial conditions is known as the initial-boundary-value problem.
In Chapter 2 we will make a detailed study of this for the one-dimensional heat
equation.
In the remainder of this subsection we will determine the steady-state solutions
of the heat equation corresponding to the various boundary conditions. u is said
to be a steady-state solution if au/at = O. Referring to the heat equation (0.1.4),
this is equivalent to the statement that U xx = O.
EXAMPLE 0.1.2. Find the steady-state solution of the heat equation with the
boundary conditions u(Oj t) = Ttl u(L; t) = T2.
Solution. Since the solution is independent of time, we can write u = U(x),
with U"(x) = O. The general solution of this is a linear function: U(x) = Ax+ B.
The boundary condition at x = 0 gives B = Tt , whereas the boundary condition
at x = L gives AL + B = T2, A = (T2 - Td/ L. The steady-state solution is
U(x) I
= Tl + T2 ~ Tl X = T2 + Tl (1 - I) .
EXAMPLE 0.1.3. Find the steady-state solution of the heat equation with the
boundary conditions u(Oj t) = TIl ux(L; t) = h(Te - u(Lj t).
Solution. Since the solution is independent of time, we can write u = U(x),
with U"(x) = O. The general solution of this is a linear function: U(x) = Ax+ B.
The boundary condition at x = 0 gives B = T1 , whereas the boundary condition
0.1. PARTIAL DIFFERENTIAL EQUATIONS 9
EXERCISES 0.1.4
1. Find the steady-state solution of the heat equation with the boundary
conditions u(O; t) = T 1 , u:r;(L; t) = O.
2. Find the steady-state solution of the heat equation with the boundary
conditions u:r;(O; t) = h(To - u(O; t, u:r;(L; t) = <I>, where h, To, <I> are
positive constants.
3. Find the steady-state solution of the heat equation with the boundary
conditions -u:r;(O; t) = h(To - u(O; t, u:r;(L; t) = h(TI - u(L; t where
To, T I , h are constants with h > O.
0.1.5. Classification of second-order PDEs. It is impossible to formu-
late a general existence theorem that applies to all linear partial differential equa-
tions, even if we restrict attention to the important case of second-order equations.
Instead, it is more natural to specify a solution through a set of boundary con-
ditions or initial conditions related to the equation. For example, the solution
of the heat equation Ut = K U:r;:r; in the region 0 < x < L, 0 < t < 00 may be
specified uniquely in terms of the initial conditions at t = 0 and the boundary
conditions at x = 0 and x = L. On the other hand, the solution of the wave
equation Utt - t?u:r;:r; = 0 in the region 0 < x < L, 0 < t < 00 is uniquely obtained
in terms of the boundary conditions at x = 0, x = L and two initial conditions,
pertaining to the solution u(x; 0) and its time derivative fJujfJt(x; 0). In order
to put this in a more general context, one may classify the second-order linear
partial differential equation as follows:
(0.1.5)
a(x, y)u xx + b(x, y)u:r;y + c(x, y)uyy + d(x, y)u x + e(x, y)u y + I(x, y)u = g(x, y)
If 4ac - 1Jl > 0, the PDE (0.1.5) is called elliptic.
If 4ac - b2 = 0, the PDE (0.1.5) is called parabolic.
If 4ac - b2 < 0, the PDE (0.1.5) is called hyperbolic.
For example, Laplace's equation and Poisson's equation are both elliptic, while
the wave equation is hyperbolic. The heat equation is parabolic. General the-
orems about these classes of equations are stated and proved in more advanced
texts and reference books. Here we indicate the types of boundary conditions
that are natural for each of the three types of equations.
If the equation is elliptic, we may solve the Dirichlet problem, namely, in
a region D to find a solution of Cu = 9 that further satisfies the boundary
10 O. PRELIMINARIES
The initial conditions Ib h represent the initial position and velocity of the
vibrating string. The boundary conditions at x = 0 and x = L signify that ends
of the string are fixed for all time at the position u = O.
EXERCISES 0.1.5
Case 1. If,,\ > 0, we write ,,\ = k 2 , where k > 0. The general solutions to
(0.2.1) and (0.2.2) are
X(x) =
A 1ek:c + A 2 e-k:c
Y(y) = A3 cos ky + A4 sin ky
where AI, A 2 , A 3 , A4 are arbitrary constants. These cannot be determined until
we have imposed further conditions, which will be done later.
Case 2. If,,\ = 0, we have the equations X" = 0, Y" = 0, for which the
general solutions to (0.2.1) and (0.2.2) are linear functions:
X(x) = A 1x + A2
Y(y) = A3 y + A4
where AI, A 2 , A31 A4 are arbitrary constants.
The second and fourth terms are negatives of one another. Therefore U xx + U yy =
0, and we have verified Laplace's equation in case A > O.
In case A = 0 we have
Ux = Al(Aay + A4), U xx = 0
uy = (AlX + A2 )A a , uyy = 0
so that both of the partial derivatives Uxx and U yy are zero and Laplace's equation
is immediate in this case. The verification for A < 0 is left to the exercises.
EXERCISES 0.2.2
1. Verify that u(x, y) = (AI cos Lx +A2 sin lx)(Aae'Y+A4e-ly) satisfies Laplace's
equation, for any 1 > O.
2. Suppose that u(x, y) is a solution of Laplace's equation. If 0 is a fixed real
number, define the function v(x,y) = u(xcosO - ysinO,xsin9 + ycos9).
Show that vex, y) is a solution of Laplace's equation.
3. Apply the result of the previous exercise to the separated solutions of
Laplace's equation of the form u(x, y) = (Ale b + A 2 e- b )(Aa cos ky +
A4 sin ky), to obtain additional solutions of Laplace's equation. Are these
new solutions separated?
4. From the definitions of the hyperbolic functions, prove the following prop-
erties:
(a) sinh 0 = 0, cosh 0 = 1
(b) (djdx)(sinhx) = cosh x, (d/dx)(coshx) = sinh x
(c) cosh x 2: 1 for all x
(d) cosh x 2: sinh x for allx
(e) sinh(x + y) = sinh x cosh y + cosh x sinh y
(f) cosh(x + y) = cosh x cosh y + sinh x sinh y
0.2.3. Real and complex separated solutions. In the previous subsec-
tion we found all of the separated solutions of Laplace's equation, in terms of
trigonometric functions, exponential functions, and linear functions using a real
separation constant.
In looking for separated solutions of a PDE, it is often convenient to allow
the functions X(x) and Y(y) to be complex-valued, corresponding to a complex
separation constant. The following proposition shows that the real and imaginary
parts of any complex-valued solution will again satisfy the PDE.
PROPOSITION 0.2.1. Let u(x, y) = VI (x, y) + iV2(X, y) be a complex-valued
solution of the linear PDE
u = au xx + buxy + CU yy + dux + euy + fu = 9
where a, b, c, d, e, f, 9 are real-valued functions of (x,y). Then Vt(x,y) =
Reu(x,y) satisfies the PDE u = g, and V2(X,y) = Imu(x,y) satisfies the asso-
ciated homogeneous PDE u = O.
14 O. PRELIMINARIES
When we take the real and imaginary parts, we obtain the following real-valued
solutions of Laplace's equation:
ek(x+y) cos k(x - y), ek(x+y) sin k(x - y)
ek(x-y) cos k(x + y) ek (X-lI) sin k(x + y)
u (x ,y) = ek(y-x) cos k(x + y),' ek(y-x) sin k(x + y)
{
e- k (X+lI) cos k(y - x), e-k(x+y) sin k(y - x)
When we consider more general linear PDEs, complex-valued separated so-
lutions may always be found if the functions a, b, c, d, e, f that occur in the
equation are independent of (x, y); in this case we speak of a PDE with constant
coefficients, whose solutions may be written as exponential functions.
PROPOSITION 0.2.2. Consider the linear homogeneous PDE
au xx + buxy + cuyy + dux + euy + fu = 0
Suppose that a, b, c, d, e, f are real constants. Then there exist complex separated
solutions of the form
u(x, y) = eQxe!y
for appropriate choices of the complex numbers Q, {l.
0.2. SEPARATION OF VARIABLES 15
Proof. We first note that the ordinary rules for differentiating eOx are valid
for complex-valued functions. For example, if a = a + ib,
The term in the first set of brackets depends only on x, while the term in the
second set depends only on y; therefore both are constant and we have reduced the
problem to ordinary differential equations. Introducing the separation constant
A, we have in detail
a(x)X" (x) + d(x)X'(x) + A X(x) = 0
C(y)yll(y) + e(y)yl(y) - A Y(y) = 0
EXERCISES 0.2.3
1. Find the separated equations satisfied by X(x), Y(y) for the following
partial differential equations:
(a) U xx - 2u yy = 0 (b) U xx + U yy + 2ux = 0
(c) x 2u xx - 2yu y = 0 (d) Uxx + U x + u y - u = 0
2. Which of the following are solutions of Laplace's equation?
(a) u{x,y) = eXcos2y (b) u(x,y) = eXcosy+eYcosx
(c) u(x, y) = eXeY (d) u(x, y) = (3x + 2)eY
18 O. PRELIMINARIES
The following example occurs repeatedly in the solution of the heat equation
in Chapter 2.
EXAMPLE 0.2.6. Find the separated solutions u(x; t) of the heat equation U xx -
Ut =0 in the region 0 < x < L, t > 0 that satisfy the boundary conditions
u(O; t) = 0, u(L; t) = O.
Solution. In Example 0.2.2 we found the real-valued separated solutions
u(x; t) = (AI sin /Lx + A2 cos j.lx)e-1'2 t
In order to satisfy the boundary condition at x = 0 we must have 0 = u(O; t) =
A 2e-1'2 t , which is satisfied if and only if A2 = O. In order to satisfy the boundary
condition at x = L, we must have 0 = u(L; t) = Al (sin j.lL) e-1'2t. This is satisfied
if and only if JLL = n1f' for some n = 1,2, .... Therefore the separated solutions
satisfying the boundary conditions are of the form
u(x; t) = Al sin n~x e-(mrI L)2 t , n = 1,2,...
The next example occurs repeatedly in the discussion of the vibrating string
in Chapter 2, Sec. 2.4.
EXAMPLE 0.2.7. Find the separated solutions of the wave equation Utt -c2 u xx =
o that satisfy the boundary conditions u(O; t) = 0, u(L; t) = O.
Solution. Assuming the separated form u(x; t) = X(x)T(t), it follows that
X(x)T"(t)-c2 X" (x)T(t) = O. Thus X"(X)+AX(X) = 0, T"(t)+Ac2T(t) = O. The
boundary conditions require X(O) = 0, X(L) = 0; thus X(x) = A3 sin(n1f'x/L),
T(t) = Al cos (n1f'ct/ L) + A2 sin (n1f'ct/ L) for constants At, A2, A 3 . The required
separated solutions are
u(x; t) = (AI cos (n1f'ct/ L) + A2 sin(n1f'ct/L sin (n1f'x/ L) n = 1,2,...
In all of the preceding examples we used one or more boundary conditions
to pick out certain values of the separation constant that satisfy the boundary
conditions. This can also be carried out through conditions of boundedness as
indicated in the following examples. Physically these represent a stationary solu-
tion, corresponding to a system that has been in existence over a very long period
of time.
EXAMPLE 0.2.8. Find the complex separated solutions u(x; t) of the wave
equation Utt - c2uxx = 0, which are bounded in the form !u(x; t)! ~ M for some
constant M and all t, -00 < t < 00.
20 O. PRELIMINARlES
The final example, concerning stationary solutions of the heat equation, will
be developed in more detail in Chapter 2, Sec. 2.1, in connection with heat flow
in the earth.
EXAMPLE 0.2.9. Find the complex separated solutions u(x; t) o/the heat equa-
tion Ut - U xx = 0, which are bounded in the form lu(x; t)1 ~ M for some constant
M and all t, -00 < t < 00.
Solution. Taking u(x; t) = eax+bt and substituting in the heat equation, we
have b - a2 = O. In order that this solution be bounded for all t, -00 < t < 00,
it is necessary that the constant b be purely imaginary; otherwise the solution
would tend to +00 for large It I if b had a nonzero real part. Hence we set b = iw,
where w is real. Assuming w > 0, the equation a2 = iw has two solutions,
The alert reader will note that these separated solutions are closely related
to those found in Example 0.2.3, where we stipulated in advance that w be real
and positive. Now we have shown that the reality of w can be deduced from the
qualitative condition of boundedness of the solution for all time.
EXERCISES 0.2.4
The inner product is linear and homogeneous in both arguments. This means
that, for any functions <PI, <P2, 'l/Jl, 'l/J2 and any real number a,
Definition Two functions <p, 'l/J are orthogonal on the interval a ~ x ~ b if and
only if (<p, 'l/J) = o.
EXAMPLE 0.3.1. Show that the functions c/>{x) = sinx, 'l/J{x) = cosx are
orthogonal on the interval 0 ~ x ~ 'Tr but are not orthogonal on the interval
O~x~1r/2.
Therefore we have orthogonality in the first case but not in the second case .
For more than two functions, we say that (<PI,"" <P N) are orthogonal if
"I j. This is illustrated by the next example.
(<PI' <PJ) = 0 for i
EXAMPLE 0.3.2. Show that the set of functions sin x, sin 2x, ... ,sin N x is or-
thogonal on the interval 0 ~ x ::; 1r for any N ~ 2.
0.3. ORTHOGONAL FUNCTIONS 23
II sin xW = f.0
~
sin
2
xdx = f.~ 1
0 2(1 - cos 2x)dx
1
= 211"
The distance between <P and 7/J is defined by d(<p,7/J) = 11<p - 7/J1!. For example,
the distance between sin x and cos x on the interval 0 ~ x ~ 11" is obtained from
two functions are orthogonal, one may think of a "right triangle" in the space of
functions, for which we have computed the hypotenuse.
In order to formulate the notion of angle for functions on an interval, we
recall that for vectors in three-dimensional space we have the dot product formula
v . w = IIvllllwll cosO, where 0 is the angle between the vectors v and w and
llvll, IIwll are the lengths of the respective vectors. Hence the cosine of the angle
between the two vectors may be computed as the ratio of the dot product to the
product of the lengths. In order to extend this to functions on an interval, we
need to know that the corresponding ratio is not greater than 1 in absolute value.
This is known as the Schwarz inequality.
PROPOSITION 0.3.1. Suppose that <p(x), 7/J(x) are nonzero functions defined
on an interval a ::; x ::; b. Then
(0.3.2)
24 O. PRELIMINARIES
Proof. By the linearity and homogeneity of the inner product, we have, for
any real number t,
D(t) := IIcp - t?jJW = IlcpW - 2t(cp,?jJ) + t 211?jJ1I2
= 1I?jJ1I 2 (t2 _ 2t (cp, ?jJ) + (cp,1/J)2)
1I?jJ112 111/J114
+ (II cp 11
2
-ww-
(cp,1/J)2)
= 11"1'11 2
Cj/
(
t-
(cp,?jJ}) 2
11?jJ11 2 +
(II cp 112 --ww
(cp,?jJ}2)
2This means that the set of exceptional values can be included in a union of intervals whose
total length is arbitrarily small.
0.3. ORTHOGONAL FUNCTIONS 25
~ IIfll2 - t
i=l
(f, tp,~2
Iltp,1I
Clearly, the minimum is achieved when Ci = ~ := (f, tpi)/litpiIl 2, as required. The
value of the minimum is
As a first example, we consider the orthogonal set consisting of the three functions
{sinx,sin2x,sin3x} on the interval 0 ~ x ~ 7r.
26 O. PRELIMINARIES
EXAMPLE 0.3.3. Find the projection of the junction f{x) = 1 onto the or-
thogonal set {sin x, sin 2x, sin 3x} on the interval 0 ~ x ~ 1r and compute dmin .
Solution. We first note that the norms are given by
where the Fourier coefficients Co, C}, C2 are computed from the equations
11
1 11 Co
-1
1
dx =
-1
1rX
cos Tdx
1 = 2 CI
-1
1
x 2 dx
-1
xcos
1rX
dx
C2
h
1 1)2 11 ( )
1 ( X
-1
2
--
3
dx =
-1
2 1
x - - cos-dx
3
1rX
2
1 -1
1
2
2 . 1rX I =1
1r
1rX
cos-dx=-sm-
2 x=-1
4
=,
1r
h
t h us Co = -
1r
2
The next is also easy since the function x cos 1rX /2 is odd; thus Cl = O. To perform
the final integral, we write
1 1 X2
-1
cos 1rX dx = ~
2 1r
11 -1
x 2 d (sin 1r2X)
= -sin-
1r 2
2X2 7rX 11 - -
-I
411
7r -I
xsin-dx
2
1rX
= ~7r + 7r82 1 -I
1
xd (cos 7rX)
2
4
= -+2
1r 1r
7rX 11 -
8 ( xcos-
2 -1
11 -1
1rX
cos-dx
2
)
4 32
11 (X2 _
-1
!)
3
cos 1rX dx =
2
32 _ ~
7r?f3 31r
i_
81r 2 - 96
= 3?f3
But J~l (x 2 - ~)2dx = J~l (x 4-
iX2 + ~)dx = ~ - (i) +
2
= Therefore i !.s.
C2 = ~(87r2-96)/31r3 = 15(1r2-12)/1r3. Thus the required orthogonal projection
is
28 O. PRELIMINARlES
~= Gr = 0.4053
111112 = L dx=2
II x
2
- 31112 =
11 (
-1 x
2
- 31)2 dx = 5'2 - 9'4 + 9'2 = 0.1778
EXAMPLE 0.3.5. Let f{)1 = 1, f{)2 = sinx, f{)3 = cos x for -7r < X < 1r. Verify
that this is an orthogonal set and find the corresponding orthonormal set.
Solution. Direct computation reveals that each of the inner products (f{)i, f{)3)
1If{)1]]2 = I:
is zero for i =1= j. To find the orthonormal set, we compute
dx = 21T
This is valid for every N = 1,2, ... ; hence the infinite series I::l Cf converges
and we have
00
This is called Parseval's equality. We will show that Parseval's equality is equiv-
alent to the mean square convergence of the series E:l c,cp" which is defined by
the limiting statement
(0.3.7)
Letting N ~ 00, we see that the right side tends to zero if and only if Parseval's
equality is valid. The left side tends to zero (by definition) if and only if we have
mean square convergence. Therefore the proposition is proved .
One may note that Parseval's equality is not true for an arbitrary function.
For example, the set of functions 11'-1/2 (sin nx, cos nX)n>l is an orthonormal set
for -11' ~ X ~ 11'. The function I(x) = 1 has all Fourier coefficients zero; indeed,
f~1f sin nx dx = 0 = f;1f cosnx dx, n ~ 1. Yet 111112 f~1f 1 dx = 211'. In this case
=
Bessel's inequality is the statement that 0 = 2::1 C~ < IIfll2 = 211".
If Parseval's equality holds for all functions f with f:
I(X)2 dx < 00, then
we say that the orthonormal set is complete on the interval a ~ x ~ b. For
example, in Chapter 1 it will be shown that the trigonometric system consisting of
{II $ , (sin nx}/...ji, (cos nx)1 ...ji}n~l is complete on the interval -11' ~ X ~ 11'.
Therefore we see that if qJ( x), ( x) are orthogonal on the interval a ~ x ~ b, then
the functions <,0 (h(y)) , (h(y)) are orthogonal with respect to the weight function
h'(y) on the interval c ~ y ~ d, where a = h(c), b = h(d).
EXAMPLE 0.3.6. Given the orthogonal functions PI (x) = x, P2 (x) = 3x 2 - 1
on the internal -1 ~ x ~ 1, find the weighted orthogonality relation on the
internal 0 ~ y ~ 1r under the transformation x = - cos y.
Solution. We have the transformed functions PI (h(y)) = - cos y, P2(y) =
3 cos2 Y - 1, with the weight function p(y) = h'(y) = sin y .
n-I ( )
,,/. ~ <'on, i ,,/.
'l-'n = qJn - L...J (",.. "I.) 'l-'i
i=l '1-'11 '1-'&
The functions (1/;t, ... , 1/;n) are orthogonal. These formulas may seem less myste-
rious if we note that in the ith formula we are subtracting from <'os its projection
onto the orthogonal set 1/;1, ... , 'l/Ji-I
The sets (<Pb"" <Pn) and ('l/;b"" 'l/;n) have the same linear span; Le., any
function of the form f = CI <PI + ... + Cn<Pn can be written in the form d1 'l/;1 +
... + dn'l/;n for appropriate (d1 , .. , dn), and the converse is also true.
EXAMPLE <P2 = X, <pa = x 2 for 0 ::; x ::; 1. Apply the
0.3.7. Let <PI = 1,
Gram-Schmidt procedure to find the orthogonal functions 'l/;I, 'l/;2, 1{;a.
Solution. We have 1{;1 = <PI = 1, (<P2,1{;1) = fol xdx =~, ('l/lt,1{;I) = 1. Thus
'l/;2 =x - ~. The remaining inner products are
(<P3 1{;2)
, = Jofl x 2 (x - ~)
2
dx = ~ - ~ (~) = 2-
4 2 3 12
Jof I (x _ ~)
(1{;2 'l/;2) =
, 2
2 dx = ~ _ ! + ~ = 2-
3 2 4 12
(CP3,IM = 11
x 2dx = ~
EXERCISES 0.3
11. Prove that the inner product defined by (0.3.1) satisfies (cpl, 1/JI + 1/J2)
= (CPl, 1/Jl) + (cpt, 1/J2).
12. Prove that the inner product defined by (0.3.1) satisfies (CPI + CP2, "pI)
= (cpt, "pI) + (CP2, "pI).
13. Prove that the inner product defined by (0.3.1) satisfies (acpl' "pI) = a(cpl' "pI)'
14. Prove that the inner product defined by (0.3.1) satisfies (cpt, a"pl) = a(cpl, "pI)'
15. Prove the complex form of Schwarz's inequality. [Hint: Examine the non-
negative quadratic polynomial G(t,s) = IIt1/J - scpe- i6 11 2 , where the inner
product has the polar form (cp,,,p) = Re~8. Check that the discriminant
= R2 = !lcp1l2111/J1I2 - (cp, "p}2 ~ 0.]
CHAPTER 1
FOURIER SERIES
INTRODUCTION
(1.1.1)
where Ao, At, B I, .. are constants. This is a series of sines and cosines whose
frequencies are multiples of a basic angular frequency 1r / L and whose amplitudes
are arbitrary. In this chapter we will explore the possibility of expanding a large
class of functions f(x), -L < x < L, as trigonometric series. We first prove
directly that this set of functions is orthogonal on the interval - L < x < L.
o n:f:.m
(1.1.2)
l-L
L n1rX m1rX
cos - - cos - - dx =
L L
{
L n=m:f:.O
2L n=m=O
35
36 1. FOURIER SERIES
(1.1.3)
i
L
sin n1rX sin m1rX dx = 0 {~ ~:: ~
-L L LOn = m = 0
L
(1.1.4)
i -L
. n1rX
L
m1rX
sm -cos --dx = 0
L
all m,n
IL
-L
n1rX
cosLcos L
m1rx
dx
IlL [
-_ 2
-L
cos
(n - m)1rx
L + cos
(n + m)1rx] d
L X
=0
Ifn=m~O, we have
I L COS2
-L
n1rX dx =
L 2
! IL (1 +
-L
cos 2n1rX) dx
L
L
= !2 (2L+ ~sin 2n1r
2n1rxl )
L_L
=L
Finally, if n = m = 0, the integral is 2L. This completes the proof of (1.1.2).
The proofs of (1.1.3) and (1.1.4) are left as exercises .
Having established the orthogonality and performed the computation of these
integrals, we can now define the Fourier series of a function I(x), -L < x < L.
De6nition Let I(x), -L < x < L, be a real-valued function. The Fourier series
of I is the trigonometric series (1.1.1) where (An, Bn) are defined by
(1.1.7) An =
l/L
L
-L
!(x)cosLdx
n7rX
n= 1,2, ...
(1.1.8) Bn =
IlL .
L
-L
-L
f(x)sln-Y;-dx
n1fX
n = 1,2, ...
These definitions were suggested in Chapter 0, where we showed that for any
orthogonal set (CPh"" CPN), the minimum of IIf - 2::=1 CnCPnll 2is determined by
choosing (Cl, ... , CN) as the Fourier coefficients (f, CPn) / (CPn, <(In), 1 $ n $ N.
1.1.3. Even functions and odd functions. In order to simplify the com-
putation of Fourier series of many functions encountered in practice, we of-
ten exploit symmetry arguments. A function f(x), -L < x < L, is even if
f( -x) = f(x), -L < x < L. A function f(x), -L < x < L, is odd if
I( -x) = - f(x), -L < x < L. For example, f(x) = x, f(x) = x 3 , and
f(x) = sin x are odd functions, whereas f(x) = X2, f(x) = X4, and f(x) = cosx
are even functions. Of course, many functions are neither even nor odd, for ex-
ample, f(x) = x + x 2 , The product of two even functions is an even function,
the product of an odd function and an even function is an odd function, and the
product of two odd functions is an even function. These properties result from
the multiplication facts (+1)(+1) = +1, (-1)(+1) = -1, and (-1)(-1) = +1.
If I(x), -L < x < L, is an odd function, the integral J~L f(x)dx = O. This may
be seen in detail by writing
1-L
0 f(x)dx = -1 L
I( -t)dt (x = -t, dx = -dt)
= t f(-t)dt (t = - {)
l L
-L
f(x)dx = 1 0
-L
f(x)dx +
Jo
L
r I(x)dx = _ Jor
L
f(x)dx + r
Jo
L
f(x)dx = 0
Bn = -IlL xsm-dx
. n1rX
L -L L
= -
21L xsm-dx
. n1rX
L 0 L
We integrate by parts with u = x, dv = sin (n1rx/ L) dx. Thus
An = -2 ( XL- S. l D
n7rX- ILL
- -
1L sm-dx
. n1fX )
L n1f L 0 n7r 0 L
1.1. DEFINITIONS AND EXAMPLES 39
The first term is zero at both endpoints x = 0, x = L, while the integral can
be evaluated as JoL sin(n1f'x/L)dx = (L/n1f')(l - (-1)n]. Thus we have An =
-(2L/n21f'2)[1- (_1)n] for n ~ O. For n = 0, we have Ao = (I/L) JoL xdx = L/2.
Therefore the Fourier series of f(x) = lxi, -L < x < L, is
!: _ 2L ~ 1 - (-l)n cos n1f'X
2 1f'2 L....J n2 L
n=l
by writing n = 2m-l and noting that 1-(-1)n = 0 if n is even and 1-( _1)n = 2
if n is odd .
It will be shown in Sec. 1.2 that these Fourier series are convergent and that
the equation
00
" (Ancos-y+BnslDL
n1f'X . n1f'x)
f(x)=Ao+L...J
n=l
is valid for - L < x < L. We illustrate this graphically for the preceding two
examples. To do this, we define the partial sum of order N of a trigonometric
series as the function
In Figs. 1.1.1 and 1.1.2 we give the partial sums for the Fourier series of the
preceding two examples.
The method of these two examples may be extended to compute the Fourier
series of any polynomial f (x) = Co + Cl X + ... + c"x". To do this, it is sufficient to
handle each term separately and integrate by parts. Thus we have the reduction
formulas
1
L
-L
n1f'X
x"sin-dx = -Lx"
L
n1f'x l
- cos-
n1f' L -L
L
Lk
+-
n1f'
1L "1
-L
n1f'x
x - cos--dx
L
1
L
-L
n1f'X
L
Lxk . n1f'xlL
xlccos--dx = - sm-
n1f'
-Lk
-
L -L n1f' -L
1 . n1f'X
x- sm--dx
L
1L "
Proceeding inductively, we can compute the necessary integrals.
If a function f (x), - L < x < L, can be written as a finite trigonometric
sum, then its Fourier series is that trigonometric sum. For example, the Fourier
40 1. FOURIER SERIES
(-n.O)
_ ~6' = x
(n.O)
FIGURE 1.1.1 Graphs of the partial sums fN(X) for N = 1,2,3 of the Fourier
series of f(x) = X, -'fr < X < 'fr.
12(x)
II (x)'
--~--------------------~--------------------~---x
(-n.O) (0,0) (n,O)
FIGURE 1.1.2 Graphs of the partial sums fN(X) for N = 0,1,2 of the Fourier
series of f(x) = lxi, -'fr < x < 'fr.
series of f(x) = sin2 x, -'fr < X < 'fr, can be obtained by observing that sin2 x =
~(1 - cos 2x); thus Bn = 0 for all n, while Ao = ~, A2 = -~, and An = 0 for
n = 1,3,4, 5, . . .. It is not necessary to perform any integrations to find the
Fourier series in this case.
1.1. DEFINITIONS AND EXAMPLES 41
To graph the function F[x,3], type F[3] instead of F[x,3], and the result is as
shown in Fig. 1.1.3.
Mathematica can also be used to compute the Fourier coefficients of a piece-
wise smooth function f (x), - L < x < L. To do this, we make the following
commands:
AO[L_,f_]:=(1/(2Pi Integrate[f[x], {x,-L,L}]
A[n_,L_,f_]:=(1/(Pi Integrate[f[x] Cos[n x], {x,-L,L}]
B[n_,L_,f_]:=(1/(Pi Integrate[f[x] Sin[n x], {x,-L,L}]
Then we can define a function f (x) in Mathematica and use the above definitions
to compute the Fourier coefficients. For example, consider f(x) = eX, -L < x <
L. To enter this, we type
f[x_]:=E"'x
and then type
A[n,L,f]
which produces the output
n L
(-1) E
Out[2]= ----------
2 2
Pi n
L(1+ ------)
2
L
1.1.6. Fourier sine and cosine series. Suppose we are given a function
f(x), 0 < x < L, and we desire a Fourier series representation. To get this, we
extend f to the interval - L < x < L and then compute the Fourier coefficients.
1.1. DEFINITIONS AND EXAMPLES 43
There are two natural ways of doing this, giving rise to the Fourier sine series
and the Fourier cosine series.
One way of extending f is to define a new function f 0 by
f(x) 0 <x<L
(1.1.11) fo(x) = { - f( -x) -L < x < 0
o x=O
fo is called the odd extension of f to (-L, L). It is an odd function, and therefore
its Fourier coefficients are given as follows:
(1.1.12) An = 0 n = 0,1, ...
(1.1.13) Bn = L1 lL fO(X)SlllL dx
. n1f'X
= L2 J.L f(X)SlDLdx
. n1rX
-L 0
Therefore we have the Fourier sine series
00
~B . n1rX
L..J nSlllL
n=l
where
Bn = L2 J.L . n1f'X
0 f(X)SlD-y-dx
(1.1.17) An =
1
L
lL IE(X)cos-y-dx = L2 J.L l(x)cosLdx
-L
n1rX
0
n1rX
and
r
2L n1rX
An = L 10 /(x)cosLdx n = 1,2, ...
EXAMPLE 1.1.4. Compute the Fourier sine series 0/ /(x) = 1, 0 < x < L.
Solution. We have
21L slD-dx=--cos-
Bn=- . n1rX 2L n1rxlL =-[1-(-1)
2 n
1
L 0 L Ln1r L 0 n1r
The Fourier sine series is
2 ~ 1- (-l)n . n1rX
- L..J SIn-
1r n=1 n L
We now give an alternative method for computing the Fourier sine series of
certain functions that satisfy boundary conditions. Let J(x), 0 ~ x ~ L, be a
function with J(O) = 0, J(L) = 0, and /"(X) continuous for 0 ~ x ~ L. Then
(1.1.18) Bn =
2
L 10
rLJ(x)slDLdx
. n1rX
0
=
2 n1rX 1 +-
-/(x)cos- 2 lL J(x)cos-dx
I n1rX
n1l" L L n1r 0 L
The first term is zero, and the second term can be integrated again by parts, with
the result
10r
L
L)22 J"( ) . n1l"x
Bn = - ( n1l" L x sm L dx
Therefore the Fourier sine series of /(x), 0 < x < L, is obtained from the Fourier
sine series of J"(x) , 0 < x < L, by multiplication of the nth term of the series by
-(L/n1r)2.
EXAMPLE 1.1.5. Find the Fourier sine series oj J(x) = x 3 - L2x, 0 < X < L.
Solution. The function satisfies /(0) = 0, /(L) = 0 with J"(x) = 6x. The
Fourier sine series of 6x is (12L/1I") E~( _l)n+1 sin (n1l"x/ L)/n. Therefore the
Fourier sine series of J(x) is (12L3/1I"3) E~(-1)nsin(n1l"x/L)/n3 .
EXERCISES 1.1
In Exercises 1 to 10, compute the Fourier series of the indicated functions.
1. J(x) = X2, -L < x < L
2. J(x) = x 3, -L < x < L
3. J(x) = Ix1 3 , -L < x < L
4. J(x) = eX, - L < x < L
5. J(x) = sin2 2x, -11" < X < 11"
1.1. DEFINITIONS AND EXAMPLES 45
20. A function J(x), 0 < x < 7r /2, is to be expanded into a Fourier series
00
By extending I to -7r < X < 7r in four different ways, give four different
prescriptions for finding the Fourier coefficients {An}~=o, {Bn}~l' (Hint:
There are two choices for extending I to 0 < x < 7r and two more choices
for further extending I to -7r < X < 7r.)
21. Illustrate the expansions of Exercise 20 with I(x) = 1, 0 < x < 7r/2. Find
the four different Fourier series.
For each of the functions in Exercises 22 to 29 state whether or not it is periodic
and find the smallest period.
22. I(x) = sin 7rX
23. I(x) = sin2x + sin3x
24. I(x) = sin4x + cos6x
25. I(x) = sinx + sin 7rX
26. I(x) = x - [x] ([x] = integer part of x)
27. I(x) = tan x
28. I(x) = I;:'J (_1)nx2n /(2n)!
29. I(x) = sin x
30. Compute the Fourier sine series of I(x) = x 2 - Lx, 0 < x < L.
31. Compute the Fourier sine series of I(x) = x4 - 2Lx 3 + L 3 x, 0 < X < L.
32. Let I (x), - L < x < L, be an even function. Show that
j LI(x)dx
-L
= 2 J.L I(x)dx
0
where (An, Bn) are the Fourier coefficients of the function I(x), -L < x < L. For
simplicity in writing, we take L = 7r in the exposition; all results obtained can
be transformed to the interval - L < x < L by the change of variable x' = 1f'X / L.
IThis section treats theoretical material and can be omitted without loss of continuity.
1.2. CONVERGENCE OF FOURIER SERIES 47
The limit (1.2.2) is denoted f(Xi + 0) and is called the right-hand limit. Likewise,
the limit (1.2.3) is denoted f(Xi - 0) and is called the left-hand limit. These are
supposed to be finite.
Of course, we assume that the subdivision points Xo < Xl < ... < XP+I are the
same for f and all of its derivatives. With this definition, the derivative of a
piecewise smooth function is again piecewise smooth.
If f(x), a < x < b, is piecewise smooth, then f'(x) exists except for X =
Xl, . , Xl" This is the piecewise derivative of f. Many of the usual operations
with ordinary derivatives are valid for piecewise derivatives; the sum, difference,
and product rules are valid except at the subdivision points (Xl,"" xl')' The
quotient rule is also valid unless the denominator is zero. The fundamental
theorem of calculus must be modified for piecewise smooth functions to the form
b l'
f(b - 0) - f(a + 0) =
!.
a
f'(x)dx + E[J(Xi + 0) - f(x, - 0)]
1=1
Indeed, on each interval (Xit X1+I) we may apply the ordinary fundamental theo-
rem of calculus in the form
X .+ 1
f(x,+1 - 0) - f(Xi + 0) =
1 x.
f'(x)dx
If the piecewise smooth function I (X), a < x < b, is also continuous, then the
r.
fundamental theorem of calculus may be applied in its usual form,
I is continuous on (-'Tr, 'Tr). I' is continuous on (-'Tr, 'Tr) with the exception of the
point x = O. However, 1'(0 + 0) and 1'(0 - 0) do not exist, so I(x), -'Tr < x < 'Tr,
is piecewise continuous but is not piecewise smooth.
EXAMPLE 1.2.5.
1
I(x) = x2 _ 11"2 -1('<x<1('
In this case I(x), -7r < X < 1(', is continuous, but it is not piecewise continuous
since I( -'Tr + 0) and 1(1(' - 0) are not finite. In particular, I(x), -1(' < x < 'Tr, is
not piecewise smooth.
When working with piecewise smooth functions, we may omit the definition
of I(x) at the subdivision points xo, x., ... , Xp+l. This causes no difficulty in
the discussion of Fourier series, since the Fourier coefficients An, Bn are defined
as integrals, which are insensitive to the value of I(x) at a finite number of
1.2. CONVERGENCE OF FOURIER SERIES 49
points. More precisely, if 11 (x) = 12(x), except for x = Xo, XI, . .. , Xp+b then
f:depend
It (x)dx f: 12 (x)dx.
= Therefore we see that the Fourier coefficients do not
on any 01 the numbers f(xo), . .. , I(x
p+l)'
Suppose I(x), -1r < X < 1r, is piecewise smooth. We define the 21r-periodic
extension of I by setting
f(x + 2n1r) = f(x) wherex E (-1r, 1r)
THEOREM 1.1. (Convergence theorem). Let I(x), -1f < X < 7r, be piecewise
smooth. Then the Fourier series of I converges for all x to the value ~ [lex + 0) +
l(x - 0)1, where I is the 21r-periodic extension of I
From the periodicity, we see that the left-hand limit 1(7r - 0) is equal to the
left-hand limit l( -7r - 0), with a corresponding statement for the right-hand
limit. Therefore the average of the left- and right hand-limits at the endpoints
agrees with the common average of the function at the endpoints; in symbols,
1 - - 1
'2[f( -1r - 0) + f( -1r + 0)] = '2[J( -1r + 0) + 1(7r - 0)1
1 - - 1
'2[f(1r - 0) + 1(1r + 0)] = '2[f( -1r + 0) + 1(7r - 0)1
The restriction to the interval -7r < X < 1r is of no significance. It has been
made here so that, instead of writing cos(m7rx/L) and sin(m1rx/L) , we may
write cosmx and sinmx.
Before proceeding with the proof, we need two lemmas.
Lemma 1 (Riemann). If I and I' are piecewise continuous on (a, b), then
lim
"\-"00
1
a
6
f(x) sin AX dx = 0
50 1. FOURJER SERIES
Using the definitions of Ao, Am, Em given in Sec. 1.1, formulas (1.1.6), (1.1.7),
(1.1.8), we have
fN(X) = 27r
1111' f(t)dt+ ~;
-11'
N1j1l' f(t)(cosmtcosmx+sinmtsinmx}dt
-11'
and
S = sin(N + ~)acos ~a
sina
Substituting the identity sin a = 2 sin ~a cos ~a completes the proof of Lemma 2.
(For a shorter proof of Lemma 2, using complex numbers, see Exercise 13 at the
end of this section.)
f N ()
X =-
1 /11' f( t )sin(N. +1 ~)(t - x) d
t
7r -11' 2sm 2(t - x)
This form is preferable because it makes no mention of the Fourier coefficients
{An}, {Bn }.
1.2.2. Dirichlet kernel. To proceed further, we make the definition
From Fig. 1.2.1 we see that DN(U) behaves roughly like a periodic function
with period 21l'/N, except in the neighborhood of U = 0, 21l', ... , where it is
peaked. The most important property of the Dirichlet kernel is that it provides
an explicit representation of the Fourier partial sum, through the formula
(1.2.4)
= {I: + {}f(X+U)DN(U)dU
1.2. CONVERGENCE OF FOURIER SERIES 53
1o
11" [J(x
- + u) - f(x 1
- + O)]DN(U)du = - lim 111" g(u)U(u) sin
'/r N~oo 0
(1
N+ )udu
-2
where
u
U(u) = 2sin u/2 u tf 0
U(O) = 1
Using L'Hospital's rule, we see that the function U(u) is continuous and has a
continuous derivative, -'/r ~ U ~ 'If. Similarly, we can use L'Hospital's rule to
compute the limits
(1.2.7) limg(u) = j'(x + 0)
u,J.O
(1.2.8) limg'(u)
u,J.O
= -21t- '(x + 0)
Therefore g(u) is piecewise continuous with a piecewise continuous derivative.
But U(u) has a continuous derivative, and therefore the product g(u)U(u) also
has a piecewise continuous derivative. Applying Lemma 1, we have proved that
Having proved the convergence of the Fourier series, we can now obtain many
useful conclusions. Referring to the first two examples in Sec. 1.1, we have the
convergent Fourier series
(_1)n+l
2 L
00
sin nx = x - 7r < X < 7r
n=1 n
7r 2 ~ 1 - (-1)n
"2 - ;: L..J n2 cosnx = Ixl - 7r < X < 7r
n=1
Both of these examples are continuous functions, for which f(x+O) = f(x-O) =
f(x) for all x, -7r < X < 7r. However, the periodic extension is not continuous in
the first case, where f(x) = x, -7r < X < 'Tr.
As an example of a discontinuous function, we have the convergent Fourier
series
O<x<'Tr
-7r2 L
00 1 _ (-1)n
n
sinnx=
{ 1
0 x=O
n=1 -1 -7r <X <0
These can also be used to obtain various numerical series. Taking x = 0 in
the Fourier series for lxi, we have 0 = 7r /2 - (2/,rr)(2 + ~ + ~ + ... ), 7r2 /8 =
fs
1 + ~ + + .. '. Similarly, taking x = 7r /2 in the third example, we obtain
7r/4=1-~+k-''''
EXERCISES 1.2
o
sinx dx
x 2
56 1. FOURIER SERIES
(a) Let 1)
I{u) = (2Si:U/2 - it u#o 1(0) = 0
Show that I, I' are continuous on (0,11'). (The only trouble occurs at u = O.
Use L'Hospital's rule to show that the appropriate limits are finite.)
(b) Use Lemma 1 to conclude that
1
lim /.7T
N~oo 0
[2 smu
. 1 /2 - .!.]
u
sin(N + -2 )u du = 0
23. Let f(x), -1T < X < 71", be a piecewise smooth function with Fourier
coefficients An, Bn. Apply Exercise 20 with a = -1T, b = 1T, g'(x) = cosnx
to find an asymptotic formula for An, Bn, n -+ 00.
1.3. Uniform Convergence and the Gibbs Phenomenon2
We have seen that the Fourier series of a piecewise smooth function converges to
the function except at points of discontinuity, where it converges to the average
of the function's left- and right-hand limits. Since we are interested in approx-
imating functions by partial sums of their Fourier series, it is of interest how
the Fourier series converge near a discontinuity, that is, how the partial sums of
Fourier series behave near discontinuities of their functions. We turn first to an
example.
1.3.1. Example of Gibbs overshoot. Consider the function
f(x) = {-I 1
-1T
O~X~lT
~x< 0
The cosine coefficients are all zero (f is odd), and the sine coefficients are given
by
Bn = -2111" sinnxdx = -[1-
2 (-It] n = 1,2, ...
1T 0 nlT
The partial sum of the Fourier series is therefore
4 [ . sin3x sin(2n - I)X]
hn(x) = f2n-l(X) = -; smx + -3- + ... + 2n -1
From the graph of Fig. 1.3.1 we see that, just before the discontinuity, the
partial sums overshoot the right- and left-hand limits and then slope rapidly
toward their mean. On the interval -1T ~ X ~ 1T, It has one maximum and one
minimum, h has three maxima and three minima, 15 has five maxima and five
minima, etc. We can actually calculate the overshoot by computing the derivative
4
(1.3.1) f~n-l(X) = -[cos x + cos3x + cos5x + ... + cos(2n - l)xJ
1T
f2n-l (~) = i [sin ~ +! sin 37r + ... + _1_ sin (2n - 1)7r]
2n 7r 2n 3 2n 2n - 1 2n
for large n. The technique we will use for evaluating this sum consists of rewriting
the sum so that it looks like the approximating sum of a Riemann integral and
then evaluating the integral. Our answer will be exact when n t 00 and so should
give a good approximation for large n.
The function whose integral we will approximate is g(x) = (sinx}/x. Consider
the partition of [0, 7rJ, given by the points {Xk}, where
7rk
Xk k = 1, ... ,n
=
n
7r
~Xk =
n
If we choose the midpoints x~ of each of these intervals as our sampling points,
then we have
~ ( ') A
L-, 9 xk UXk = sin 7r /2n -1r + ... + sin(2n - 1)7r /2n 7r
- ~
l1t - - dx
sin x
k=l 1r /2n n (2n - 1)7r /2n n 0 x
60 1. FOURIER SERIES
x
(-n.O) (0.0) (n.O)
(-n. -1)
(-n; -1.18) (0, -1.18) (n, -1.18)
1(x) = {-I 1
-1r < x ~
O<x<1r
0
To implement this in Mathematica, we first define a step function by means of
the "If' function:
0.8
0.6
0.4
0.2
I I
1.5 2
I
2.5 3
I
= ~ ~ sin((2k - l)x)
j 2n-l ()
X 1T' L....J 2k - 1
k=l
fgraph[n_]:=Plot[f[n,x],{x,-2Pi, 2Pi}]
1.3. UNIFORM CONVERGENCE AND THE GIBBS PHENOMENON 63
0.5
-6 -4 -2 2
-0.5
0.5
-6 -4 -2 2 4 6
-0.5
Plot[{f[3,x], f[10,x]},{x,-2Pi,2Pi}]
64 1. FOURIER SERIES
to obtain
0.5
-6 -4 -2 2 4 6
n=l
Then the Fourier series converges uniformly.
For example, E:=1 (sin nx)/n2 is a uniformly convergent Fourier series.
PROPOSITION 1.3.2. (Second criterion for uniform convergence). Let
f(x), -L < x < L, be a piecewise smooth function. Suppose in addition that
f is continuous - L < x < Land f(-L + 0) = f(L - 0)
Then the Fourier series converges uniformly.
l.3. UNIFORM CONVERGENCE AND THE GIBBS PHENOMENON 65
A~ = 2L
1 lL -L
1
f'(x) dx = 2L (f(L - 0) - f(-L + 0))
A~ = 2L
IlL -L f'(x) cos (n7rx/ L) dx ~lL
=L -L f (x) sin (n7rx/ L) dx ~
= yBn
1
B~ = 2L
l-L
L
f'(x) sm(n7rx/ L) dx
n7r
= -Y lL f
-L (x) cos (n7rx/ L} dx
n7r
= -TAn
where we have integrated by parts and used the continuity of f(x}, -L < x < L.
The result now follows from Theorem 1.1 .
For example, suppose that we want to compute the Fourier series of f(x) = x 2 ,
- L < x < L. The Fourier series of this even function is of the form Ao +
2::0=1 An cos nx, where {An} are to be determined. From Proposition 1.3.3 we
may write
00
2x = - LnAnsinnx
n=l
But from Example 1.1.1, Sec. 1.1, we know that
x 2 = 1r 2 /3 + 42)(-1)n/n2 ]cosnx
n=l
PROPOSITION 1.3.4. Let f(x), -1r < x < 1r, be a piecewise smooth function
with Fourier series
00
1
xo
f(u)du = Ao(x - xo)
where (An' En) are the Fourier coefficients of F. To compute these, we have, for
ntfO,
An = - 1f
1r -1r
F(x) cosnxdx
n=l
If we replace x by Xo and subtract the result, then Ao cancels and we have proved
the stated result .
(1.3.4)
Cn(O)
(1.3.6) -- 2
--+ 00
n
(1.3.9) l ~sinkxl
~
k
k=l
~ 4 n = 1, 2, ... , -1r ~ X ~ 1r
From (1.3.9) the second factor is less than or equal to 4, and we have proved
(1.3.5).
To prove (1.3.6), we write
1
Cn(O) = Dn(O) = 1 + 2 + ... + mn > log(mn)
n3
If we choose mn = 2 , then log(mn) = n 3 10g2, and thus Cn(0)/n 2 and Dn(0)/n2
tend to 00, as required.
To prove (1.3.7) we define NI = 3 and for n > 1, N n+1 - N n = 2mn +l' With
this choice, it immediately follows that Nn+l - Nn > mn+l + m n, as required.
Having defined N n , ffin, it follows from (1.3.5) that the series (1.3.4) is uni-
formly convergent and therefore f(x), -1r < x < 1r, is a continuous function. It
remains to compute the Fourier series of f.
Since f(x), -1r < X < 1r, is an even function, the Fourier sine coefficients Bn ==
O. To compute the Fourier cosine coefficients, we may multiply the uniformly
convergent series (1.3.4) by cos nx and integrate on -1r < X < 1r. From (1.3.7)
there is exactly one nonzero term corresponding to each integer of the form n =
Nk 1, ... ,Nk mk. These nonzero terms are of the form
1
An = -; if n = Nk j 1 ~ j ~ mk
J
In particular, the partial sums at x = 0 satisfy
Ck(O) - Dk(O)
fNIc+m,,(O) = (C1(0) - D1(0)) + ... + k2
If the sequence of partial sums fn(O) were convergent, it would follow that
lim(fNk+mA: (0) - fNHl (0 = 0, which contradicts (1.3.6). Therefore the Fourier
series diverges at x = 0, which was to be proved.
EXERCISES 1.3
1. Let
Show that
k1f)
J2n-l ( -2n
2
~ -
J.k1r -
sin x d
- x k = 1,2, ...
1f 0 x
[Hint: Write the sum for hn-l(k1f/2n) as the approximating sum for an
appropriate Riemannian integral.]
k1r
2. Estimate the integral Jo (sinx)/xdx for k = 2,3,4.
3. Let f(x), -L < x < L, be a piecewise smooth function. Show that the
first criterion for uniform convergence follows from the Weierstrass M -test
(Appendix A.2.).
4. Let f(x}, -L < x < L, be a piecewise smooth function. Show that An =
O(l/n}, Bn = O(I/n} when n t 00.
5. Let f(x), -L < x < L, be a piecewise smooth function. Let A~, B~ be the
Fourier coefficients of f'.
A~ =
IlLL -L
n1fX
f'(x) cos L dx
f'(x) = "n1r
L...J-e
-(n21r/L2) n1rX
cos-
n=l L L
10. Consider the Fourier series of f(x) = x found in Example 1.1.1, Sec. 1.1.
By formally differentiating the series at x = 0, show that it is not valid to
differentiate a Fourier series term by term, even if the function is differen-
tiable.
11. Consider the Fourier series of f(x) = x found in Example 1.1.1, Sec. 1.1.
By integrating this series, find a series for x 2
12. Integrate the series of Exercise 11 and compare the result with Example
1.1.5.
13. Among the series for x, X2, and x 3- L 2x found in Exercises 10 to 12, which
are uniformly convergent?
14. Let f(x) = X, -1r < X < 1r. Find the maximum of the partial sum fN(X)
and verify the presence of Gibb's phenomenon.
15. This exercise provides the missing steps in the proof of (1.3.9).
(i) If 0 ~ x ~ 1r, establish the identity
. sin 2x sin nx
SlDX+--+"'+--
rz:
= Jo (cost++cosnt)dt
2 n
= {X sin(n + (1/2))t dt _ =
Jo 2sin(t/2) 2
(ii) Rewrite the integral in (i) as
{X sin(n + {1/2))t ( .1 _ ~) dt + {X sin(n + (1/2))t dt
Jo 2 sm{t/2) t Jo t
(iii) Use the inequalities 1sin 8 - 81 ~ 83 /6, sin 8 2:: 28/1r for 0 ~ 8 ~ 1r to
bound the first integral in the form
(v) Conclude that Isin x + ... + {sin nx}/nJ ~ 3.75 for 0 ~ x ~ 1r.
1.4. PARSEVAL'S THEOREM AND MEAN SQUARE ERROR 71
Then
(1.4.1) 2~ 1 L
-L
f(X)2cJx
00
= A~ + ~ E(A; + B~)
n=l
The left side represents the mean square of the function f(x), -L < x < L. The
right side represents the sum of the squares of the Fourier components in the
various coordinate directions cos n7rx/L, sin n7rx/ L.
Proof. The proof of Parseval's theorem is especially simple if the piecewise
smooth function is also continuous with f( -L + 0) = f(L - 0). In that case we
multiply the uniformly convergent Fourier series by f(x) to obtain
00
~
f(X)2 = Aof(x) + L.. [Anf(x) cos n7rX . n1rx]
L + Bnf(x) sm-y;-
n=l
This series is also uniformly convergent, and we may integrate term by term for
- L < x < L, with the result
1: f(X)2cJx = Ao 1: f(x)cJx
(1.4.2)
This number measures the average amount by which fN{X) differs from f(x).
The Fourier series of f(x) - fN{X) is
00
'""
L..-J \ An cos L
n1fX L
+ Bn sm n'lfX)
n=N+l
(1.4.3)
The mean square error is half the sum of the squares of the remaining Fourier
coefficients. This formula shows, in particular, that the mean square error tends
to zero when N tends to infinity.
EXAMPLE 1.4.1. Let f(x) = lxi, -'If < x < 'If. Find the mean square error
and give an asymptotic estimate when N -4 00.
Solution. We have Bn = 0, A2m = 0, A2m - 1 = -4/'If(2m -1)2, so that
~2
V2N-l -
_ ~2
V2N ~
=!2 L...J A2
n
n=2N+l
= 1 4 ]2
"2 E
00
m=N+l
[
'If(2m -1)2
8 00 1
= 'lf2 E
m=N+l
{2m-l)4
y =rpl x)
N N+ 1 N+2 N+3
------ x
EXAMPLE 1.4.2 . Let J( x) = X, -11' < X < 7r . Find the mean squam eTTor
and give an asymptotic estimate when N --) 00 .
Solution. We have Am = 0, Bm = (-J)m-I(2/m), and therefore
1 00 4 00 1
a~ = 2" L
m=N + l
rn2 = 2 L
m=N+ l
m2
so that
2
N 1
---
x' - N
N--)oo
74 1. FOURIER SERIES
THEOREM 1.3. Suppose that we have a smooth closed curve in the xy plane
that encloses an area A and has perimeter P. Then
p 2 ~ 47rA
where x' = dx / dt, y' = dy / dt. By reparametrizing the curve, we may suppose
that X'(t)2 + y'(t)2 is constant (see Exercise 20); in fact, it must be
00
Since the functions x(t), y(t) are supposed smooth, we also have the convergent
Fourier series
00
y'(t) = Ln(-cnsinnt+dncosnt)
n=l
104. PARSEVAL'S THEOREM AND MEAN SQUARE ERROR 75
-7r
A = 1: x(t)y'(t)dt
n=l
= 7r E n(andn - bnCn)
n=l
Performing the necessary algebraic steps, we have
p2 00
The right side is a sum of squares with nonnegative coefficients; thus P2/27r -
2A ~ O. If the sum is zero, then all of the terms are zero; in particular, a! + b! +
~ + ~ = 0 for n > 1 and al - d1 = 0, bI + Cl = O. This means that
EXERCISES 1.4
Find the mean square errors for the Fourier series of the functions in Exercises I
to 3.
1. f(x)=lforO<x<7r,j(O)=O, andj(x) =-1 for -1r<x<O.
2. j(x) = x 2 , -7r ~ X :::; 7r
3. f(x) = sin lOx, -1r < X < 1r
4. Write out Parse val 's theorem for the Fourier series of Exercise 1.
5. Write out Parseval's theorem for the Fourier series of Exercise 2.
6. Show that, in Exercise 1, (J~ = O(N-l), Nt 00.
7. Show that, in Exercise 2, (]~ = O(N-3), Nt 00.
8. Let I(x) = x(7r - x), 0 ~ x :::; 7r.
(a) Compute the Fourier sine series of f.
(b) Compute the Fourier cosine series of f.
(c) Find the mean square error incurred by using N terms of each series
and find asymptotic estimates when N ~ 00.
(d) Which series gives a better mean square approximation of I?
76 1. FOURIER SERIES
00
-L n=l
Note that this formula corresponds to the dot product formula
f:
n=-oo
(a 2 - n2 )-2 = ~(asina7r)-211r cos2axdx
2 -1r
(d) Prove that L:~~l n- 4 = 7r 4 /90. [Hint: Make a three-term Taylor
expansion of part (c) in powers of a and identify the coefficients.]
11. Let <p(x) he defined for x > 0 with <p(x) > 0, <p'(x) < 0, and the integral
floo <p(x)dx convergent.
(a) Show that
roo
iN+l
<p(x)dx ~ f:
n~N+l
<p(n) ~ roo <p(x)dx
iN
-<p(N) ~ f:
n=N+1
<p(n) -
iN
roo <p(x)dx ~ 0
12. Let <p(x) = l/x s where s > 1.
(a) Use Exercise 11 to show that
-1 00 1 1 1
-
NS<- "
L....J -n -
S
-
s --1 <
Ns-l 0
-
n=N+l
1.4. PARSEVAL'S THEOREM AND MEAN SQUARE ERROR 77
~ ~_ (s -
L..J n S -
1
l)Ns-I [l+O(~)]
N
N-+oo
n=N+l
13. Let C7~ be the mean square error in the Fourier series of f(x) = X, -1f <
X < 1f. Use Exercise 12 to show that a~ = (l/N)[l + O(l/N)], N -+ 00.
14. Let l,O(x) = 1/P{x) where P(x) is a polynomial of degree s, s > 1. Modify
Exercise 11 (b) to show that
15. Let a~ be the mean square error in the Fourier series of f{x) = lxi, -1r <
x < 1r. Use Exercise 14 to find an asymptotic estimate of the form C7~ =
(C/NS)[l + O(l/N)], N -+ 00 for appropriate constants C, s.
16. Let l,O(x) = e- x , x > O. Discuss the validity of the asymptotic estimate
t
n=N+l
y>(n) = [X> y>(x)dx[1 + O(I/N)]
N
N-+oo
23. Use the triangle inequality from Sec. 0.3 to prove the inequality Ilf - fN II ~
IIf - f*1I + IIf - fNII
24. Show that there is an integer No so that for N 2:: No we have IIf - IN II < f.
[Hint: Combine Proposition 0.3.4 with the Parseval theorem already proved
for the function f(x), -L < x < L.]
25. Conclude the validity of Parseval's theorem for the piecewise smooth func-
tion f(x), -L < x < L.
1.5. Complex Form of Fourier Series
1.5.1. Fourier series and Fourier coefficients. It is often useful to rewrite
the formulas of Fourier series using complex numbers. To do this, we begin with
Euler's formula
(1.5.1) el6 = cosO + isinO
and the immediate consequences
To obtain integral formulas for the coefficients {an}, we use (1.1.7) and (1.1.8),
LIlL
-L
f()
X X
( n1rX
cos L - Z..SID L
n1rx) d
x
= ~ lL f(x)e-(lmrz/L)dx
L -L
with a corresponding formula for the plus sign. When n = 0, (1.1.6) shows that
ao is given appropriately. Thus we have
(1.5.4)
{O
l-L
L e(in1rx/L)e-(im1rx/L)dx = n
2L n=m
#m
These may be proved by using Euler's formula and the orthogonality of the
trigonometric functions cos (n1rx/ L), sin (n1rx/ L). Knowing these orthogonality
relations, we can develop the complex form of Fourier series in its own right,
without reference to the original formulas of Sec. 1.1.
The theory of Fourier series may also be extended to complex-valued func-
tions f(x), -L < x < L. These are of the form f{x) = flex) + ih(x), where
ib 12 are real-valued functions. The Fourier coefficients are defined by the
same formulas an = (1/2L) J~L f(x)e-(sn1rx/L)dx. If both It and h are piece-
wise smooth functions, then the complex Fourier series converges for all x to
4 [1(x + 0) + l(x - 0)], where 1 is the periodic extension of the piecewise smooth
function f(x), -L < x < L. This convergence is understood as the limit of the
sum E~N when N tends to infinity.
The Fourier coefficients of a real-valued function are characterized by the
relation
where the bar indicates the complex conjugate of a complex number: if c = a+ib,
then c = a - ib.
To simplify the computation of complex Fourier series, we indicate some for-
mulas that are of frequent use. If c = a + ib is a complex number, the exponential
function eCX = eaxeWx = eax(cosbx + isinbx). From this we have (d/dx)e CX =
aeax cos bx - beax sin bx + i( aeQX sin bx + beClX cos bx) = (a+ ib)eClX (cos bx +i sin bx) =
cecx. Hence the differentiation formula
d
_ecx = ceCX
dx
is valid for any complex number c.
EXAMPLE 1.5.1. Compute the complex Fourier series of f(x) = eClX, -1r <
X < 7r, where a is a real number.
80 1. FOURIER SERIES
If we were to use the real form of Fourier series, we would encounter many cum-
bersome trigonometric identities. With the complex approach, we avoid these.
We begin with the identity
1 .
cos x = 2(eIX + e- IX )
We expand the mth power, using the binomial theorem:
This is the complex form of the Fourier series for cosm x. As a by-product, we
can obtain some useful integrals. To do this, we multiply the previous equation
by e- mx and integrate for -~ < x < ~. By orthogonality all the integrals are
zero except when 2j - m - n = 0, in which case the integral is 2~. In particular,
m + n must be even. Therefore we have
1 111' ( )m -inx d {O m + n odd
2~ -11' cos x e x = 2~ (j) 0 ~ m + n = 2j ~ 2m
The Fourier series for cosm x can also be written in a real form, to obtain
familiar trigonometric identities. It is simpler to consider separately the cases m
even and m odd. Thus, if m = 2k + 1, we can group the terms of the Fourier
1.5. COMPLEX FORM OF FOURIER SERIES 81
2 1
COS k+ X = (2I)2k [cos(2k + l)x + ... + (2k k+ 1) cos x1
In particular, this gives the identities
1
cos 3 x = 4(cOS 3x + 3 cos x)
1
cos5 X = I6(cos5x + 5 cos 3x + 10 cos x)
If m is even, we group the term j = 0 with j = m, etc., as before and finish
with one ungrouped term in the middle. Applying Euler's theorem again, we
have, with m = 2k,
n = 0, I, 2, ...
For n = 0 this is the total mass per unit length: (to = [F(L-O)-F( -L+0)]/(2L).
The precise meaning for n =1= 0 can be defined by partial integration. If the mass
distribution consists of several point masses plus a density, then each of the terms
can be done separately.
82 1. FOURJER SERJES
EXAMPLE 1.5.2. Find the Fourier coefficients oj the mass distribution that
consists oj a uniJorm distribution oj mass M on the interval -L < x < L,
together with a Dirac 6 distribution oj mass m situated at the point x = o.
Solution. The mass distribution function is linear with a jump at the point
x = O. In detail, we have
(M/2L)(x + L) if -L < x < 0
F(x) = { m+ (M/2L)(x + L) if 0 < x < L
The Fourier coefficients are obtained as
ao = (1/2L)(m + M),
since the last integral is zero for n =1= O
an = (m/2L) + (M/2L) I: e-inrz/Lax = (m/2L)
The following theorem shows that the theory of Fourier inversion of mass
distributions is especially simple.
THEOREM 1.4. (Convergence theorem). Suppose that F(x), -L < x < L,
defines a mass distribution m with Fourier coefficients an. Define the Fourier
partial sum by
N
fN(x) = L ane,mfxjL - L < x < L, N = 1,2, ...
n=-N
Proof. We can repeat the steps of the proof of Fourier convergence, noting
that
lim
N~oo
lb
a
DN(X - y) dx = 1 a<y<b
lim
N~oo
lb
a
DN(X - y) dx = 1/2 y = a,b
lim
N~oo
lb
a
DN(X - y) dx = 0 otherwise
1.5. COMPLEX FORM OF FOURIER SERIES 83
and that the integral is uniformly bounded by a constant. Therefore one may
take the limit inside the sign of integration to obtain the result .
EXERCISES 1.5
1. Verify that the orthogonality relations hold, in the form
l L
-L
e
tn1rx/L -lm7rx/Ld,x _
e -
{O if n f; m
2L'f
1 n =m
2. Use the formulas in Exercise 1 to prove (1.5.3) from (1.5.2). You may
assume that the series (1.5.2) converges uniformly for -L < x < L.
3. Use the complex form to find the Fourier series of f(x) = eX, -L < x < L.
4. Let 0 < r < 1, f(x) = 1/(1 - re'X), -7r < X < 1r. Find the Fourier series
of f. (Hint: First expand f as a power series in r.)
5. Use Exercise 4 to derive the real formulas
l-rcosx ~ n
1+r -
2 2
r cos X
= 1 + n=
L.J r
1
cos nx, O~r<l
- -rSlllX
---- =
Lrnslnnx,
00
' O~r<l
1 + r2 - 2r cos x
n=l
6. Show that the convergence theorem from Sec. 1.2 can be written in complex
form as
N
~[j(x + 0) + J{x - 0)] =
2
lim
N~oo
L Cinelmrx/L
n=-N
In the following exercises, find the Fourier coefficients of the indicated mass dis-
tributions.
8. A mass m at the point Xo.
9. A row of three equally spaced masses of mass m/3 at the points x =
-L/2,x = O,X = L/2.
10. A uniform distribution of mass M on the interval -L/2 < x < L/2.
11. A triangular mass distribution described by the density function f(x) =
M(L -lxl)/L2, -L < x < L.
84 1. FOURIER SERIES
12. Theorem 1.4 in the text gives no information in case a = b. Show that in
this case
. fN(a)
m( {a }) = N-+oo
hm 2N + 1
[Hint: Examine the behavior of DN(X)/(2N + 1) when N is large.]
13. Show that the following analogue of Parse val's identity is valid:
2N +la1 l = L ({ a})2
2
I 1m E:=-N n
m
N-+oo
a
where the sum is over all of the point masses of the mass distribution.
14. A sequence of functions fn(x), -7r < X < 7r, is said to converge weakly
to the function f(x), -7r < x < 7r, if for every piecewise smooth function
g(x), -7r < X < 7r, we have
[q,.(X)<I>7(x)dx+ AI [<I>I(X)q,.(X)dx =0
The first integral can be integrated by parts, to obtain
<1>2 (X) <1>; (x)I;~~ - [ <1>; (X) <1>; (X) dx + AI [ <1>1 (x)q,. (X) dx =0
Now we interchange the roles of (4)., AI) and (4)2, A2) to obtain
(<1>2 (X) <1>; (x) - <1>1 (X) <1>; (X) I;~~ + (At - A2) [ <l>t (x)q,. (x) dx = 0
From the boundary conditions, we conclude that the endpoint terms contribute
zero, so we are left with the statement
(0, O)I----~----'----~--....I..----__=
n = 1,2, ...
where the eigenvalues An are determined by solving (1.6.5) .
From the graph of the cotangent function (Fig. 1.6.1), it is seen that the
eigenvalues satisfy the inequalities
(1.6.6)
n=l
where the Fourier coefficients are defined by
(1.6.7) An = I: ~(x)
tPn(X) dx n=1,2, ...
14 4>n(x)2 dx
The following theorem shows that we may always expect a complete set of
eigenfunctions for the Sturm-Liouville eigenvalue problem.
THEOREM 1.6. There exist an infinite sequence of solutions An,4>n{X) of the
Sturm-Liouville eigenvalue problem defined by (1.6.1)-{1.6.3) that possess the
following properties.
v'An+! - ,;>::;. ~ 'If / L, n ~ 00
If f(x), a < x < b, is a piecewise smooth function, the series (1.6.6) con-
verges to f(x + 0)/2 + f{x - 0)/2, a < x < b.
Parseval's relation holds, in the form
n=l 4 a
The proof will not be given here, but can be found in more advanced texts of
analysis. 4
A final point of detail regarding Sturm-Liouville eigenvalue problems is the
question of positivity of the eigenvalues. From the previous theorem, we see that
we must have An > 0 for all large n, but it may happen that in some cases
Al :=; O-for example, AI = 0 in case 0 = 'If /2, {3 = 7r /2. The following sufficient
condition is easily proved.
THEOREM 1.7. Suppose that the parameters 0, {3 satisfy the inequalities 0 ::;
o < 7r /2, 0 ::; (3 < 7r /2. Then all eigenvalues of the Sturm-Liouville eigenvalue
problem (1.6.1) with the boundary conditions (1.6.2),(1.6.3) satisfy An > O.
Proof. Suppose that 4>{x) is a nontrivial solution of the Sturm-Liouville
problem (1.6.1)-(1.6.3). We mUltiply (1.6.1) by 4>(x) and integrate on the interval
a:=;x:=;b:
1 6
q,(X)q,"(X) dx + A l q,(X)2 dx =0
4See, e.g., G. Birkhoft' and G. C. Rota, Ordinary Differential Equations, Ginn, Lexington,
MA,1962.
90 1. FOU RJ ER SERJES
L--- a
FIGURE 1.6.2 Regions of positive a nd negative eigenvalues.
The new integra l on t he ri ght-ha nd side is stri ctly positive, since otherwise (.?;)
would be a constant functi on , which is possible if and only if a = ,,/2, /3 = 7r / 2,
which is excl uded. On the other ha nd , we can rewri te the boundary conditions
in the form (a) = L tan a' (a) , (b) = - L tan /3' (b), which leads to
1b(x)'dx
A > L'(a)'tan a + L'(bftan /3 ~0
since a and /3 both lie in the first quadrant 0 :'0 a, /3 < 11'/2 .
We emphas ize that the prev ious theorem only provides a s ufficient condi tion
for the positivity of the eigenvalues. In order to obtain more precise resul ts,
we can plot the set of points (a, (3) for which Al > O. Figure 1.6. 2 shows that
t his region contains the square 0 :'0 a, /3 < ,,/2 and is bounded by a curve whose
equation is sin (a+/3)+cos a cos /3 = O. T his cu rve passes t hrough t he t hree points
(a,/3) = (3"/4 , 0) , (,,/2,7r/2), and (0, 3,,/4). The complete analysis of negative
eigenvalues is described next. Furt her details are described in t he exercises.
We now present the complete analysis of the existence of negative eigenvalues
for the Sturm-Liouville eige nvalue problem (1.6.1)- (1.6.3). If A = - J.l' < 0 is a
1.6. STURM-LIOUVILLE EIGENVALUE PROBLEMS 91
In case (i), the left side of (1.6.8) is positive, while the right side is negative
for J.L > 0; hence there are no solutions-in accord with Theorem 1.7.
In case (ii), the denominator of the right side of (1.6.8) is zero when J.LL =
vi cot a cot {31, yielding a vertical asymptote, to the right of which the right side
of (1.6.8) is negative. The number of solutions to (1.6.8) depends on the initial
value of the right side at J.L = 0, which is seen to be
sin(a + {3)
(1.6.9)
cosacos/1
We consider two subcases:
(iia) sin(a + {3) + cosacos{3 > 0
(iib) sin (a + {3) + cos a cos fi < 0
In sub case (iia) the initial value (1.6.9) is greater than 1 and the right side
of (1.6.8) increases to infinity, whereas the left side remains less than 1 and
tends to zero. Hence the graphs do not intersect, and we have no solution. In
subcase (iib) the initial value (1.6.9) is less than 1 and the right side of (1.6.8)
increases to infinity, so that the graphs must intersect at some point to the left of
the vertical asymptote. Hence there exists exactly one solution J.Ll that satisfies
0< J.L1L < vi cotacot{3l
Case (iii) is identical to (ii) with the roles of a and /1 interchanged; hence the
analysis is identical.
92 1. FOURIER SERIES
Note that the function v --7 Av/(B+Cv2) begins from the origin; it rises steadily
to a maximum value, strictly larger than 1, at v = VB/C = vi
cotacot,8l, and
then steadily decreases to zero. The number of solutions depends on the slope at
v = 0, leading again to the consideration of su bcases:
(iva) sin(a + (3) + cos acos {3 < 0
(ivb) sin(a + ,8) +cosacos,8 > 0
In subcase (iva) the slope of the right side of (1.6.10) at v = 0 is greater than
1, the slope of the hyperbolic tangent; hence we have no intersection to the left
of the maximum. To the right of the maximum the right side of (1.6.10) tends
to zero; hence there is exactly one intersection with the graph of the hyperbolic
tangent.
In subcase (ivb) the slope of the right side of (1.6.10) at v = 0 is less than
the slope of the hyperbolic tangent; therefore initially it lies below the hyperbolic
tangent. But at the maximum the order is reversed; hence there is precisely one
solution to the lef~ of the maximum. To the right of the maximum the right
side of (1.6.10) tends steadily to zero, whereas the hyperbolic tangent tends to 1;
hence there is another solution to the right.
Summarizing the preceding analysis, we have the following breakdown:
There are no negative eigenvalues if either 0 < a < 7r /2 and
sin(a+,8)+cosacos,8 > 0 orO < f3 < 7r/2 and sin(a+f3) + cos a cos {3 > O.
There is precisely one negative eigenvalue if sin(a +,8) + cos a cos,8 < O.
This is in the interval 0 < LA < vi
cot a cot ,81.
There are precisely two negative eigenvalues if 7r /2 < a < 7r, 7r /2 < f3 < 7r,
and sin(a + (3) + cosacos{3 > O. The first one satisfies 0 < L~ <
vicot a cot{31 while the second one satisfies L-I-)..2 > vi cot a cot f31.
In other words, the equation sin (a + f3) + cos a cos f3 = 0 defines two curves that
divide the square 0 < a < 7r, 0 < (3 < 7r into three regions, corresponding to
two, one, or zero negative eigenvalues. This is depicted in Fig. 1.6.2, where the
unshaded region corresponds to no negative eigenvalues, the darker shaded region
corresponds to one negative eigenvalue, and the lighter shaded region corresponds
to two negative eigenvalues.
where s(x), p(x), q(x) are given functions on the interval a < x < b with p(x) > O.
We have already studied the special case s(x) == 1, p(x) == 1, q(x) = O. The
new feature here is that the eigenfunctions will satisfy a property of weighted
orthogonality with respect to the weight function p(x), a < x < b. ..
As before, we also need to consider boundary conditions at the endpoints
x = a, x = b. These are written in the form (1.6.2)-(1.6.3), exactly as in the
previous cases. We state and prove the corresponding orthogonality properties
of the Sturm-Liouville eigenfunctions.
THEOREM 1.8. Consider the Sturm-Liouville problem (1.6.11),(1.6.2)-(1.6.9).
Suppose that f/JI (x), f/J2(X) are nontrivial solutions with different eigenvalues Al :j:.
A2' Then the eigenfunctions are orthogonal with respect to the weight function
p(x),a < x < b:
t 4>,(x) q,.(x)p(x) dx = 0
If the two eigenfunctions belong to the same eigenvalue Al = A2, then the eigen-
functions must be proportional: f/J2(X) = Cf/Jl (x) for some constant C.
Proof. Write the Sturm-Liouville equation satisfied by f/Jl:
[sf/J;]' + (AlP - q)f/Jl =0
Multiply this equation by 4J2 and integrate the resulting equation on the interval
a < x < b:
q,.(x)s(x)4>; (x)l: - t t
4>~(x)s(x)4>; (x) dx + 4>2 (X)(A,p(X) - q(x4>, (x) dx = 0
Now we interchange the roles of f/Jl (x) and f/J2(X) to yield
(x)s(x)4>~(x)I: t t/>',(x)s(x)4>~(x) t
(1.6.13)
EXAMPLE 1.6.8. Consider the Sturm-Liouville eigenvalue problem for the equa-
tion </>" + ArP = 0 on the internal - L < x < L with the periodic boundary condi-
tions rP( - L) = </>( L ), rP' ( - L) = til (L ). Find the eigenfunctions and the associated
orthogonality relation for A > O. .
Solution. The general solution of the equation t/>" + At/> = 0 with A > 0 is
</>(x) = Acosxv'X + Bsinxv'X. The periodic boundary conditions translate into
the following system of two simultaneous linear equations:
AcosL-IX - BsinL~ = AcosL~ + BsinL.J5..
-v'AAcosL~ - VABsinLv'A = -AcosL~ + BsinLv'A
This system has a nontrivial solution if and only if sin LVX = 0, namely, LVX =
n1T'. The eigenfunctions are of the form rPn(x) = A cos (n1T'x/ L) + Bsin(n1T'x/ L),
and the orthogonality relation is f~L t/>m (x)rPn (x) dx = 0 if m i= n .
1.6.6. Complex-valued eigenfunctions and eigenvalues. In the above
discussion of Sturm-Liouville eigenvalue problems, it has been tacitly assumed
that both the eigenvalue and eigenfunction are real-valued. We now demonstrate
that this leads to no loss of generality.
PROPOSITION 1.6.1. Suppose that t/>(x) is a complex-valued function and A is
a (possibly) complex number that satisfies the Sturm-Liouville equation (1.6.11)
where s(x), p{x), q(x) are real-valued/unctions. Suppose/urther that t/>{x) satisfies
one of the above boundary conditions. Then A is a real number, and both the real
and imaginary parts of fjJ(x) are eigenfunctions of the Sturm-Liouville eigenvalue
problem.
Proof. We multiply the Sturm-Liouville equation (1.6.11) by the complex
conjugate of t/>(x) and integrate over the basic interval:
which proves that the imaginary part of A is zero; in other words, A must be a
real number. Writing 4>(x) = u(x) +iv(x), we see that both u(x) and v(x) satisfy
the same Sturm-Liouville equation that was satisfied by the complex function
<fJ(x), which was to be proved .
EXAMPLE 1.6.9. Consider the Stunn- Liouville eigenvalue problem for the equa-
tion 4>"(x) + A4>(X) = O. Find the complex-valued eigenfunctions satisfying the
periodic boundary conditions 4>( - L) = 4>( L), 4>' (- L) = 4>' (L ).
Solution. From the previous work, all of the real-valued solutions are written
sin(n7rx/L), cos(n7rx/L) with the eigenvalue A = (n1r/L)2, where n = 0,1,2 ....
The corresponding complex-valued functions may be written
4>(x) = eimrz/L 4>(x) = e-imfZ/L
EXERCISES 1.6
10. Suppose a = 0 and 0 ~ 13 < 37f /4. Show directly that all eigenvalues of
the Sturm-Liouville eigenvalue problem (1.6.1)-(1.6.3) satisfy An > 0, n =
1,2, .... [Hint: If ljJ(x) = Asinh(JL(x - a)) is an eigenfunction satisfying
the boundary condition at x = a, find a transcendental equation for J.L and
show that it has no solution. Also check A = 0 separately.]
11. Suppose that /3 = 0 and 0 $ O! < 37r /4. Show directly that all eigenvalues of
the Sturm-Liouville eigenvalue problem (1.6.1)-(1.6.3) satisfy An > 0, n =
1,2, .... [Hint: Use instead cjJ(x) = A sinh(J.L(x-b)) to find the appropriate
transcendental equation.]
12. Show that the Sturm-Liouville eigenvalue problem (1.6.1)-(1.6.3) has a neg-
ative eigenvalue if and only if the the parameters a, /3 satisfy the inequality
sin(a + {3) + cos a cos {3 < O. [Hint: If cjJ(x) = Asinh(JLx) + Bcosh(J.Lx) is
an eigenfunction, show that J.L must be a solution of the transcendental
equation
t h( L) - -L sin(a + 13)
an JL - JL cos a cos {3 + (LJ.L)2 sin a sin {3
and that this equation will have a nonzero solution if and only if the slope
at J.L = 0 is larger than 1.]
13. With reference to the generalized Sturm-Liouville problem, let L be the
linear differential operator defined by L<p = (s<p')' - q<p. Prove the Lagrange
identity <P2 L<PI - <Pl L<P2 = (S(<P~<P2 - <Pl<P~)), where <pI, <P2 are twice-
differentiable functions.
14. Use the Lagrange identity to give an alternative proof of Theorem 1.8.
15. Show that if sex) ~ 0, q(x) ~ 0, then all eigenvalues of the generalized
Sturm-Liouville problem with the two-point boundary conditions <pea) = 0,
<p(b) = 0 satisfy An ~ O. [Hint: Apply the Lagrange identity with <P2 = 1.]
CHAPTER 2
BOUNDARY-VALUE PROBLEMS IN
RECTANGULAR COORDINATES
INTRODUCTION
In this chapter we will derive the general form of the heat equation and the
wave equation for the vibrating string. These PDEs will eventually be solved in
regions with rectangular, cylindrical, and spherical boundaries. In this chapter we
focus attention on the case of rectangular boundaries, where we can use the usual
cartesian coordinates (x, y, z), coupled with trigonometric Fourier series, which
were introduced in Chapter 1. Regions with cylindrical or spherical boundaries
will be treated in Chapter 3 and Chapter 4, respectively.
q = -k gradu
where k is the thermal conductivity of the material. From calculus we know
that grad u points in the direction of the maximum increase of u. Since heat
is expected to flow from warmer to cooler regions, we insert the minus sign in
Fourier's law. Thus q points in the direction of maximum decrease of u and Iql
is the rate of heat flow in that direction.
99
100 2. BOUNDARY-VALUE PROBLEMS IN RECTANGULAR COORDINATES
where c is the heat capacity per unit mass and p is the mass density of the
material. Equating these, dividing by ~t, and letting ~t -+ 0, we have the
continuity equation
This equation is valid for any region, no matter how large or small. In particular,
we take a small spherical region R about the point (x, y, z), divide by the volume,
and take the limit when the diameter of the sphere tends to zero. The surface
integral can be handled using the divergence theorem,
IL q-ndS= !fIn{diVq)dV
and we obtain the differential form of the continuity equation:
CPUt = div(k grad u) + s
This is the general form of the heat equation.
In most problems k is independent of X, and we can bring it outside and thus
obtain the heat equation in the form
(2.1.1) IUt = K div(grad u) + r = KV 2u + r I
where K = k/cp and r = s/cp are the renormalized conductivity and source
terms, respectively. K is called the thermal diffusivity of the material. The
Laplacian of a function u is defined by
V 2 u = div(grad u) = U:z::z: + u1l1l + Un
Remark. We can derive the heat equation without using the divergence theorem,
by the following direct argument. Let R be the rectangular box defined by the
2.1. THE HEAT EQUATION 101
(X2 -
1
Xd(Y2 - Yl)(Z2 -Zt}
If. 8R
q ndS
When X2 --+ XI, the integrand tends to q;(XI, y, z), a continuous function. When
Y2 q;
--+ Yl, Z2 --+ Zl, the resulting integral tends to (Xl, Yl, Zl). The same result is
obtained if we first let Y2 ~ Yl, Z2 -+ Zl. The second integral, where qX is replaced
by qll, tends to q:(xt, Yt, zt} when X2 -+ Xl, Y2 4 Yh Z2 ~ Zl in any order, and
similarly for the third integral. This proves that J JR q . n dS, divided by the
volume of the box R, tends to div q when the sides tend to zero, in any order.
Referring to the continuity equation and letting X2 -+ Xl, Y2 --+ Yl, Z2 --+ Zl, we
have proved that CptLt(Xl, Yt, zd = -div q(Xl' Yb zt} + S(XI' Yb Zl), which was to
be shown.
2.1.3. Boundary conditions. The heat equation describes the flow of heat
within the solid material. To completely determine the time evolution of temper-
ature, we must also consider boundary conditions of various forms. For example,
if the material is in contact with an ice-water bath, it is natural to suppose that
u = 32F on the boundary. Alternatively, we can imagine that the heat flux
across the boundary is given; therefore by Fourier's law the appropriate bound-
ary condition is of the type V'u n = a, a given function on the boundary. For
example, an insulated surface would necessitate V'u n = 0 on the boundary. A
third type of boundary condition results from Newton's law of cooling, written
in the form
qn = h(u-T)
The heat flux across the boundary is proportional to the difference between the
temperature u of the body and the temperature T of the surrounding medium.
102 2. BOUNDARY-VALUE PROBLEMS IN RECTANGULAR COORDINATES
In many problems it is important to compute the flux through the faces of the
slab. From our earlier discussion, the flux is given by -kVu nj here n = (0,0,1)
for the upper face and n = (0,0, -1) for the lower face. Thus in Example 2.1.1,
the flux from the upper face is -k8U /8z = khTt/(l + hL), while the flux from
the lower face is k8U /8z = -khTt/(1 + hL) .
We now consider an example with internal heat sources.
To solve this problem, we first look for complex separated solutions, of the
form
u(z; t) = Z(z)T(t)
Since the heat equation has real coefficients, the real and imaginary parts of a
complex-valued solution are again solutions. Thus we may allow Z(z), T(t) to
be complex-valued. Substituting into the heat equation, we have
KZ"(z) T'(t)
Z(z) = T(t)
Both sides must be a constant, which we call -"\. Thus we have the ordinary
differential equations
T'(t) + "\T(t) = 0
.,\
Z"(z) + K Z(z) = 0
The first equation has the solution T(t) = e-'\t. Since we require bounded solu-
tions for -00 < t < 00, .,\ must be pure imaginary, .,\ = i/3 with /3 real. To solve
the second equation, we try Z(z) = e'YZ. Thus we must have "(2e'Yz+("\1 K)e'Yz = 0,
yielding the quadratic equation
2 if3 0
"(+-=
K
In the case where /3 > 0, this has two solutions:
Taking the real and imaginary parts, we have the real solutions
e- cz cos({3t - cz), e- cz sin(/3t - cz), c= J /312K
(If /3 < 0, it can be shown that no new solutions are obtained.) We refer to these
as the quasi-separated solutions.
To solve the original problem, we suppose that the boundary temperature has
been expanded as a Fourier series.
uo(t)=Ao+~
~ ( Ancos-r-+Bnsm-
2n1rt . 2n7rt)
-
r
We take (3n = 2n7r Ir, en = Jn1r IK r in the quasi-separated solutions just devel-
oped to obtain the solution in the form
00
To verify that this is indeed a rigorous solution to the original problem, we may
suppose that An, Bn are bounded by some constant. Then it may be shown that
the formal series for U Z , U zz , Ut converge uniformly, and hence u indeed satisfies
the heat equation.
EXAMPLE 2.1.3. Solve the heat equation Ut = K U zz for z > 0, -00 <t< 00,
with the boundary condition
27rt
u(O; t) = Ao + A 1 COS -
T
where Ao, AI, and T are positive constants. Graph the solution as a function of
t for zV7r/KT = 0, 7r/2, 7r, 37r/2, 27r and 0 ~ t ~ T.
EXAMPLE 2.1.4. Suppose that K = 2 x 10-3 cm2 /s, T = 3.15 X 107s. Find the
depth necessary for a change from summer to winter.
Solution. We have V7rKr = 4.45 x 102 cm. Therefore when it is summer on
the earth's surface, it is winter at a depth of 4.4 meters. -
This theory can also be used to estimate the thermal diffusivity of the earth.
To do this, we define the amplitude variation of the solution u(z; t) as
A(z) = -oo<t<oo
max u(z; t) - min
-oo<t<oo
u(z; t)
EXAMPLE 2.1.5. Estimate the thermal diffusivity of the earth if the summer-
winter amplitude variation decreases by a factor of 2 at a depth of 1.3 meters.
106 2. BOUNDARY-VALUE PROBLEMS IN RECTANGULAR COORDINATES
l=2..J~
equat ion
Ut = J( U ZZl z > 0, -00 < t < 00
wit h the boundary condition
27it
u(O; t) = cos T
u(z t) =
l
e - c l~ cos ( -21ft
T - c 1-"
)
l
to yield
108 2. BOUNDARY-VALUE PROBLEMS IN RECTANGULAR COORDINATES
At the front of this graph, moving from left to right, we see the change of
seasons at the surface of the earth, while at the back of the graph, moving from
left to right, we see the change of seasons at a depth of 2 feet.
EXERCISES 2.1
Exercises 12 to 14 require the solution of the heat equation in the slab 0 < z < L,
where one face is maintained at temperature zero. Thus we have the boundary-
value problem
Ut = Ku zz o < z < L, -00 < t < 00
u(O; t) = Ao + Al coS(27rt/7) -00 < t < 00
u(L;t) = 0 -00 < t < 00
12. Find all complex separated solutions satisfying the heat equation that are
of the form u(z; t) = e1z e,{3t, where /3 is positive.
13. By taking the real and imaginary parts of the complex-valued solutions
found in Exercise 12, show that we have the quasi-separated solutions
u(z; t) = eCz cos(3t + cz) u(z; t) = e- cz cos(/3t - cz)
u(Zj t) = eez sin(3t + cz) u(Zj t) = e- cz sin(3t - cz)
where c = V/3/2K.
14. By taking suitable linear combinations of the quasi-separated solutions
found in Exercise 12 and steady-state solutions, solve the boundary-
value problem in the slab 0 < z < L.
15. Suppose that the daily temperature variation at the earth's surface is a
periodic function cp(t) = Ao + Al coS{27rt/7). Find the depth necessary
for a change from maximum to minimum daily temperature if K = 2 X
10-3 cm2 /s and 1" = 24 x 3600 s.
16. Find the bounded solution of the heat equation Ut = K U zz for z > 0,
-00 < t < 00, satisfying the boundary conditions u(O; t) = 1 for 0 < t <
47, u(O; t) = -1 for 47 < t < 7, where u(O; t) is periodic with period 7.
17. Find the bounded solution of the heat equation Ut = Ku zz for z > 0,
-00 < t < 00, satisfying the boundary condition uz(O; t) = Al cos {jt,
where (3 and Al are positive constants.
18. Find the bounded solution of the heat equation Ut = K Uzz for z > 0, -00 <
t < 00, satisfying the boundary condition uz(Oj t) - hu(O; t) = Al cos {jt,
where h, (j, and Al are positive constants.
19. For the solution found in Exercise 14, find the limit of u(z; t) when L ~ 00
and compare it with the solution for Example 2.1.3.
20. Find the steady-state solution of the heat equation Ut = KV 2u + r in the
slab 0 < z < L satisfying the boundary conditions uz(O; t) = hfu(O; t) - TIl,
uz(Lj t) = -h[u(L; t) - T2 ], where r, h, T I , and T2 are positive constants.
21. For which values of the constants K, r, <Ph and <P2 does there exist a steady-
state solution of the equation Ut = KV 2u + r satisfying the boundary
conditions uz(x,y,O;t) = <PI, uz(x,y,L;t) = <P2?
110 2. BOUNDARY-VALUE PROBLEMS IN RECTANGULAR COORDINATES
Our first example corresponds to a slab with both faces maintained at tem-
perature zero.
EXAMPLE 2.2.1. Find all the separated solutions of the heat equation Ut =
Ku zz for 0 < Z< L satisfying the boundary conditions u(O; t) = 0, u(L; t) = O.
Solution. The associated Sturm-Liouville problem is "(Z) + A(Z) = 0 with
the boundary conditions (O) = 0, 4>(L) = O. In Sec. 1.6, we found that the
solutions are n(z) = sin (n7rz/ L), An = (n7r / L)2. Thus we have the separated
solutions
n = 1,2,...
The next example corresponds to a slab with one face insulated and the other
face maintained at temperature zero.
EXAMPLE 2.2.2. Find all the separated solutions of the heat equation Ut =
Ku zz for 0 < Z < L satisfying the boundary conditions u(O; t) = 0, uz(L; t) = O.
n=l
The solution has been written as a superposition of separated solutions of the heat
equation satisfying the indicated homogeneous boundary conditions. The Fourier
coefficients An are obtained from the orthogonality relations by the formulas
To prove that the formal solution (2.2.5) is a rigorous solution of the heat equa-
tion, we must check that, for each t > 0, the series for u, u z , U zz , and Ut are
uniformly convergent for 0 ::; z ::; L. This can be shown for each type of bound-
ary condition we consider.
EXAMPLE 2.2.3. Solve the initial-value problem Ut = K U zz for t > 0, 0 < z <
L, with the boundary conditions u(O; t) = 0, u(L; t) = 0 and the initial condition
u(z; 0) = 1.
Solution. The separated solutions of the heat equation satisfying the bound-
ary conditions are sin(n7rz/L)e-(n1r/L)2 Kt , n = 1,2, .... To satisfy the initial
condition, we must expand the function J(z) = 1 in a Fourier sine series. The
Fourier coefficients are given by
An
i
0
L
sin
2 n7rZ
L dz=
iL
0
n7rZ L
sinydz= n7r[l-(-l)n]
2.2. HOMOGENEOUS BOUNDARY CONDITIONS ON A SLAB 113
where An are the Fourier sine coefficients of the piecewise smooth function f(z),
0< z < L. Thus
lu(z; t) 1 ~ 2M L e- n2at
n=l
00
In particular u(z; t) --7 0 when t --7 00, which means that u(z; t) is a transient
solution.
We define the relaxation time T by the formula
1 . 1
- = - hm - In /u(z; t)1
T t--.oo t
114 2. BOUNDARY-VALUE PROBLEMS IN RECTANGULAR COORDINATES
provided that the limit exists and is independent of z, 0 < z < L. For transient
solutions of the heat equation, the relaxation time can be computed explicitly
from the first nonzero term of the series solution. The following theorem extends
the previous example to the general set of homogeneous boundary conditions.
THEOREM 2.1. For the heat equation Ut = K U zz with the boundary condi-
tions (2.2.1) and (2.2.2), suppose that all eigenvalues An are positive. Then
u(z; t) = E~=l Ann{z)e- AnKt is a transient solution of the heat equation, and
the relaxation time is given by T = 1/ AIK iJ Al =f. O.
Solution. We write
00
~~
u(z;t)
t=O
l
1 2 3 1 2 3
~~ 1 2 3 2 3
z
~ ~ 2 3 2 3
z
~b 2 3 2
~
3
z
t=0.~7
I.....-:=:::t:::,........ t =0.8
=&z z
1 2 3 1 2 3
FIGURE 2.2.1 Solution of the heat equation at 10 different times.
For this purpose, suppose that Ul and U2 are two solutions with the same
initial and boundary conditions, and set U = Ul - U2. Then U satisfies the heat
equation with zero boundary conditions and zero initial conditions. Let
w(t) = 21 J.L
0 u(z; t)2dz
116 2. BOUNDARY-VALUE PROBLEMS IN RECTANGULAR COORDINATES
Then
But K is a positive constant and uz(z; t)2 ~ 0, since squares of real numbers are
greater than or equal to zero. Thus we have both
w'(t) ~ 0 and w(t) ~ 0
But u(z; 0) = 0, which means that w(O) = O. To complete the proof, we use the
fundamental theorem of calculus:
(0,0) t----~-------+----..L..-----
Bsinhz~ A < 0
</>( z) = Bz ,\ = 0
{
B sin zV). ,\ > 0
For the second boundary condition we consider three cases:
Case 1: A < 0, BHcoshLH = hB sinh L H
Case 2: A=O, B=hBL
Case 9: A > 0, B../X cos L../X = hB sin L~
In each case we desire a nontrivial solution; hence B =1= O. Dividing by B, we can
rewrite these three equations.
Case 1: A < 0, tanhLH = LH/Lh
Case 2: A = 0, Lh = 1
Case 3: ,\ > 0, tan L../X = L../X/ Lh.
For A < 0, we examine the graph of y = tanh x (Fig. 2.2.3). If Lh ~ 1, we see
from the graph that the line y = x / Lh does not intersect the curve y = tanh x
for x > 0; hence there are no solutions for A < 0, Lh :::; 1. If Lh > 1, the line
y = x / Lh intersects the curve y = tanh x in exactly one place x > 0; hence there
is one solution A < 0 if Lh > l.
For ,\ = 0, we have a solution if and only if Lh = l.
For ,\ > 0, we examine the graph of y = tan x, shown in Fig. 2.2.4. From
the graph we see that the line y = x/ Lh intersects the curve y = tan x infinitely
many times. If Lh < 1, the first such intersection occurs for 0 < LV). < 1r /2;
otherwise the first intersection occurs for 1r < L../X < 31r /2.
Summarizing, we have the following:
y= U, ,Lh>l
---.~-- Y = tanh x
(0,0) x=L~
FIGURE 2.2.3 Graphical solution of the transcendental equation
tanh L..;x = ..;x/h.
2.2. HOMOGENEOUS BOUNDARY CONDITIONS ON A SLAB 119
y
y
x=L..fi:'
Therefore we have found all the separated solutions of the heat equation with
the boundary conditions (2.2.9). We emphasize that the eigenvalues An must
be determined graphically or by a numerical method. There is no elementary
formula for the solution of the transcendental equation tan L~ = ";>:;/h.
EXERCISES 2.2
1. Solve the initial-value problem Ut = K U zz for t > 0, 0 < z < L, with
the boundary conditions u(O; t) = 0, u(L; t) = 0 and the initial condition
u(z; 0) = z, 0 < z < L.
2. Solve the initial-value problem Ut = K Uzz for t > 0, 0 < z < L, with
the boundary conditions u(O; t) = 0, u(L; t) = 0 and the initial conditions
u(ZjO) = T for 0 < Z < ~L, u(z;O) = 0 for ~L < Z < L, where T is a
positive constant.
3. Solve the initial-value problem Ut = K U zz for t > 0, 0 < Z < L, with
the boundary conditions u(O; t) = 0, uz(L; t) = 0 and initial condition
u(Zj 0) = 3 sin 7rz/2L + 5 sin 37rz/2L.
4. Find all of the separated solutions of the heat equation Ut = K Uzz satisfying
the boundary conditions uz(O; t) = 0, uz(L; t) = O.
5. Solve the initial-value problem Ut = K U zz for t > 0, 0 < z < L, with the
boundary conditions uz(O; t) = 0, uz(L; t) = 0 and the initial condition
u(Zj 0) = z, 0 < Z < L.
6. Solve the initial-value problem Ut = K Uzz for t > 0, 0 < Z < L, with the
boundary conditions uz(Oj t) = 0, uALj t) = 0 and the initial condition
=
u(ZjO) 3+4cos1fz/L+7cos37rz/L, 0 < Z < L.
7. Consider the heat equation
tanLVA = - -
-IX
h
2.3. NONHOMOGENEOUS BOUNDARY CONDITIONS 121
problems for the heat equation in other coordinate systems, studied in Chapters
3 and 4.
n=l
The coefficients An are determined by expanding the initial condition J(z) -U(z)
in a series of eigenfunctions L~=l An<Pn(z). Equivalently, they may be computed
from the integrals
n=l
n=1
00
n=l
00 2
U zz : U"(z) - LAn (7) sin (n7rz/ L) e- AnKt
n=l
We have IAnl ~ 2M, where M is the maximum of !J(z) - U(z)l. Therefore, for
each t > 0, each of these series is uniformly convergent for 0 ~ z ~ L. Hence the
colons become equality and U satisfies the heat equation Ut = Ku zz + r, together
with the boundary conditions.
124 2. BOUNDARY-VALUE PROBLEMS IN RECTANGULAR COORDINATES
00
~ L 2M(e- at )n2
n=l
(a= 1r~~)
00
~ 2ML(e- at )n
n=l
2Me- at
=
1 - e- at
~T = - t-+oo
lim ! In lu(z; t) - U(z)1
t
(2.3.10)
2.3. NONHOMOGENEOUS BOUNDARY CONDITIONS 125
provided that Al :f; 0. 1 We illustrate the computation in the case of zero bound-
ary conditions u(O; t) = 0, u(L; t) = O. In this case
00
The final term tends to zero when t ~ 00, and the first term is independent of t.
Dividing by t, we see that
1 1r2K
t~r! t In lu(z; t) - U(z)1 = -V
Therefore the relaxation time is given by T = L2 /1r 2 K, provided Al :f; O. This
makes good physical sense, for the larger the conductivity K, the smaller the
relaxation time. Likewise the larger the width of the slab L, the larger the
relaxation time. (If At = 0 and A2 :f; 0, then T = L2 /41r 2K.)
This concludes our analysis of the initial-value problem (2.3.1)-(2.3.4). We
will use this method repeatedly for solving problems with nonhomogeneous bound-
ary conditions.
The following examples are worked in detail in order to illustrate the five-stage
method.
EXAMPLE 2.3.1. Solve the initial-value problem for the heat equation Ut =
Ku zz with the boundary conditions u(O;t) = T}, uz(Ljt) = 0 and the initial
condition u(Zj 0) = T31 where Tl and T3 are positive constants.
Solution. We use the five-stage method outlined above.
Stage 1: Steady-state solution. In this case the steady-state solution satisfies
Uzz = 0, U(O) = Tb Uz(L) = O. The general solution is U(z) = Az + B, and the
boundary conditions give B = Tt, A = 0, so the steady-state solution is
U(z) = Tl
Stage 2: Transformation of the problem. Again we set v(z; t) = u(z; t) - U(z).
Then v(Zj t) satisfies
(I') Vt = Kv zz
(2') v(Oj t) = 0, t > 0
(3') vz(L; t) = 0, t > 0
(4') v(z; 0) = T3 - Tl
126 2. BOUNDARY-VALUE PROBLEMS IN RECTANGULAR COORDINATES
The boundary conditions (2') and (3') are homogeneous; this means that the
superposition principle can be applied.
Stage 3: Separation of variables. We look for separated solutions
v(z; t) = lP(z)T(t)
that satisfy the heat equation and the homogeneous boundary conditions v(O; t) =
0; vz(L; t) = O. The heat equation requires that
lP"(z) _ T'(t)
4J(z) - KT(t)
and hence both sides equal the constant -'\. Thus
(2.3.11) T'(t) + K '\T(t) = 0
(2.3.12) 4J"(z) + '\4J(z) = 0
Equation (2.3.11) requires that
T(t) = Ce-)"Kt
for some constant C. Equation (2.3.12) must be solved taking into account the
boundary conditions. Separating the three cases ,\ > 0, A = 0, and A < 0, we
have
lP(z) = Acosz~ + Bsinz~ (A > 0)
4J(z) = A + Bz (,\ = 0)
4J(z) = Acoshz~+BsinhzH (,\ < 0)
We now apply the boundary conditions. In the case where ,\ > 0, this means
that A = 0, B...!X cos L...!X = 0, so that for a nonzero solution we must have
n = 1,2, ...
In the case where ,\ = 0, we must have A = 0, B = 0, which is a zero solu-
tion. Finally, in the case where A < 0, the boundary conditions require A = 0,
BHcoshLH = 0, again a zero solution.
The separated solutions of the heat equation that satisfy the homogeneous
boundary are therefore of the form
n = 1,2, ...
As before, the superposition principle shows that any function of the form
2.3. NONHOMOGENEOUS BOUNDARY CONDITIONS 127
= ~(T3 _ Td 2
exp( -7r Kt/4L2)
1r 1 - exp( -1r2 Kt/2L2)
Hence we see, as before, that u(z; t) ~ U(z) when t ~ 00. The relaxation time
is given by T = 4L2 /7r 2K, provided that Tl -:I T3 .
Our next example corresponds to a slab where one face exchanges heat by
convection and the other face is maintained at a fixed temperature.
EXAMPLE 2.3.2. Solve the initial-value problem for the heat equation Ut =
K U zz with the boundary conditions u(O; t) = TJ, uz(L; t) = -h[u(L; t) - T2 ] and
the initial condition u(z; 0) = T31 where h, Tl I T2 and T3 are positive constants.
Solution. We use the five-stage method.
Stage 1. We look for the steady-state solution U(z) that satisfies KU" = 0
and the boundary conditions U(O) = Tt, U'(L) = -h[U(L) - T2 ]. The general
sol ution of the equation is U (z) = A + B z. The first boundary condition requires
A = T I , while the second boundary condition requires B = -h(A + BL - T2)'
Solving these, we have the steady-state solution U(z) = Tl +hz(T2 -T1 )/(1+hL).
128 2. BOUNDARY-VALUE PROBLEMS IN RECTANGULAR COORDINATES
v(Zjt) = EAnsinz~e->'nKt
n=l
lL sin zY'A dz =
1- cosL../X
../X
lL zsin zY'Adz =
- Lcos LVA sin LVA
VA + A
lL sin2 zY'Adz = ~2 (L _ sin2LVA)
2VA
2.3. NONHOMOGENEOUS BOUNDARY CONDITIONS 129
y=cotx
By making the necessary substitutions and using the transcendental equation for
An, we obtain the Fourier coefficients in the form
where the An have just been obtained and the An are determined from the tran-
scendental equation ~ cos L~ + h sin L~ = O.
Stage 4: Verification of the solution. From the graph of the cotangent func-
tion, we see that L~ - (n - ~)7r ---+ 0 when n ---+ 00. From the formula for An,
we see that An tends to zero when n ---+ 00; in particular, IAnl S; M for some
constant M. These estimates permit us to conclude that, for each t > 0, the
following series are uniformly convergent for 0 S; Z S; L:
E~=l An sin(z~)e-AnKt
L~=l AnAcos(z~)e-AnKt
L~=l AnAn sin(z~)e-AnKt
Therefore u(Zj t) is a differentiable function and u(z; t) satisfies the heat equation
Ut = K Un for t > 0, 0 < z < L.
Stage 5: Asymptotic behavior. When t ---+ 00, u(z; t) tends to the steady-state
solution U(z). The relaxation time is obtained from the first term of the series.
Thus, if T3 - Tl and Tl - T2 are both positive, we have T = 1/ A1K, where Al is
obtained from the graph of the cotangent function in Fig. 2.3.1.
2.3.3. Temporally nonhomogeneous problems. The methods used to
study the general boundary-value problem for the one-dimensional heat equation
in the temporally homogeneous case can also be used to study problems with
explicit time dependence. The most general problem of this type is of the form
Ku zz = r(zj t)
Ut -
rn(t) = foL r(z; t)<Pn(z) dz. In = foL l(z)<Pn(z) dz. u,,(t) = foL u(z; tl<Pn(z) dz
2.3. NONHOMOGENEOUS BOUNDARY CONDITIONS 131
Substituting the series for u{z; t) into the nonhomogeneous heat equation, we
have
00 00
This system of linear equations has a unique solution if and only if the deter-
minant of the coefficients is nonzero-cos a sin f3 + sin a cos,B + cos a cos f3 i= 0,
which is equivalent to the statement that A = 0 is not an eigenvalue of the
Sturm-Liouville problem with the associated homogeneous boundary conditions.
Assuming this, we can determine A(t), B(t) and infer that the function v(z; t)
so defined satisfies the homogeneous boundary conditions. This leads to the trial
solution in the form
00
v{z; t) = L vn{t)lPn{z)
n=l
This can be done as above, once we determine the right side. We must have
Vt - Kv zz = r{z; t) - [A'{t) + zB'{t)]
v(z; 0) = I{z) -. [A{O) + z B(O)]
132 2. BOUNDARY-VALUE PROBLEMS IN RECTANGULAR COORDINATES
To solve the problem, we must find the generalized Fourier series of the linear
function a + bz,
00
where we have used the inner product notation for the generalized Fourier coef-
ficients. Replacing rn(t) and Vn suitably, we are led to the solution
EXAMPLE 2.3.3. Find the solution of the heat equation Ut - K U zz = 0 with the
boundary conditions u(O; t) = ao+bot, u(L; t) = al +b1t and the initial conditions
u(z;O) = O.
bo + (b i -
z
bo) (-) = -
L 1r
2
L
00
n=1
(
bo
n
n bl - bo
n
n+l. n7rZ
-[1- (-1) ] + --(-1) ) sm-
L
The solution of the given problem is u(z; t) = U(z; t) + I::=l Vn(t)4>n(z) when we
make the appropriate substitutions for U(z; t) and vn(t) from above .
2.3. NONHOMOGENEOUS BOUNDARY CONDITIONS 133
EXERCISES 2.3
1. Solve the initial-value problem for the heat equation Ut = K U zz with the
boundary conditions u(Oj t) = Tb uz(L; t) = 4>2 and the initial condition
u(z; 0) = Ta, where Tb 4>2) and Ts are positive constants. Find the relax-
ation time.
2. Solve the initial-value problem for the heat equation Ut = Ku zz with the
boundary conditions uz(Oj t) = 0, uz(L; t) + h[u(L; t) - T2J = 0 and the
initial condition u(z; 0) = TSI where h, T2 ) and T3 are positive constants.
3. Solve the initial-value problem for the heat equation Ut = K U zz + r with
the boundary conditions u(O; t) = T 1 , u(L; t) = T2 and the initial condition
u(z; 0) = T3 , where r, Tb T2 , and T3 are positive constants. Find the
relaxation time.
4. Consider heat flow in an infinite slab 0 ~ z ~ L, with the no-flux bound-
ary conditions U z = 0 at z = 0, z = L and the initial condition u =
273 + 96(2L - 4z). Find the solution of this initial-value problem and de-
termine the relaxation time. (Warning: The steady-state solution cannot
be determined from the boundary conditions alone.)
5. Solve the initial-value problem for the heat equation Ut = K U zz with the
boundary conditions uz(O; t) = 4>, uz(L; t) = 4> and the initial condition
u(z; 0) = T3 , where 4> and Ta are positive constants.
6. Consider heat flow in the infinite slab 0 < z < L with a source that
generates heat at a rate per unit volume that is directly proportional to the
distance from the face z = O. Initially the temperature is zero throughout
the slab; both faces are maintained at that temperature forever.
(a) Show that this leads to the equation Ut = Kuzz+az with u(O; t) = 0,
u(L; t) = O.
(b) Find the steady-state solution U, the full solution u, and the relax-
ation time 1'.
7. Consider heat flow in an infinite slab 0 < z < L that is initially at tem-
perature zero. The face z = 0 is maintained at temperature zero, and the
temperature at the face z = L increases linearly with time.
(a) Show that this leads to the heat equation Ut = Ku zz with u(Oj t) = 0,
u(L; t) = At, u(z; 0) = O.
(b) Show that the solution may be obtained in the form u(z; t) =
Azt/ L + v(z; t), where v(z; t) is a suitable Fourier sine series.
8. If a slender wire is placed in a medium that exchanges heat with the sur-
roundings, the "linear law of heat transfer" dictates the equation Ut =
K Un - bu, where b is a positive constant. Assume that the ends of the
wire are insulated and that initially the temperature u = To.
(a) Find the steady-state solution of the problem.
(b) Find the solution of the full initial-boundary-value problem. (Hint:
The function w(z; t) = ehtu(zj t) solves a known problem.J
134 2. BOUNDARY-VALUE PROBLEMS IN RECTANGULAR COORDINATES
In this section we derive and solve the equation of the vibrating string. This equa-
tion is the one-dimensional form of the wave equation, which occurs throughout
many branches of mathematical physics.
2.4.1: Derivation of the equation. Imagine a perfectly flexible elastic
string, which at rest is stretched between two fixed pegs. For convenience we
take a system of rectangular coordinates, so that the pegs are at the points
(0,0,0) and (L, 0, 0). The points of the string are labeled by a parameter s,
o ::; s ::; L (see Fig. 2.4.1). The motion of the string is described by a vector
function r(s; t) = (X(s; t), Y(s; t), Z(s; t)), which gives the rectangular coordi-
nates of the string point s at the time instant t. Thus the vector 8r / as is tangent
to the string at the point s (Fig. 2.4.2). The vector 8r/8t is the instantaneous
velocity of the string at the point s, while the vector a2 r/at 2 is the instantaneous
acceleration of the string at point s.
(0,0,0) (L. 0, 0)
!.bp(s): (s; t)ds = momentum of the segment of the string for which a ~ s ~ b
A typical segment of the string for which a ::; s ::; b is subject to contact forces
exerted at a and b by the rest of the string and to external forces (such as gravity)
from the environment. These external forces may be written as a vector function
F(s; t) = (Ft (s; t), F2(s; t), F3(s; t)), representing the force per unit mass acting
on the point s of the string. To describe the contact forces, we introduce the
tension T(s; t). The segment of the string with b ::; s ::; L exerts a contact force
at b, on the segment a $ s $ b of the string, of the form
T+(b. t) (8rj8s)(b; t) = force on the segment a ::; s ::; b
, 1(8rj8s)(b;t)1 due to the segment b::; s::; L
This means that the force is directed along the tangent to the string, as illustrated
in Fig. 2.4.3. This property is a mathematical statement of the assumption that
the string is perfectly flexible. Similarly, we set
-T(a.t) (or/os)(a;t)
~a.)(a;I)1
r(a;I)~~
T(b.t) (or/os)(b;t)
I (or/os) (b;t) I
FIGURE 2.4.3 Contact forces on vibrating string.
136 2. BOUNDARY-VALUE PROBLEMS IN RECTANGULAR COORDINATES
o2r 0 [ (or/os)(s; t) ]
(2.4.1) p(s)8i,2 (s; t) = p(s)F(s; t) + as T(s; t) 1(&/8s)(s; t)1
The vector equation (2.4.1) is equivalent to three scalar equations for the four
variables X, Y, Z, T. We obtain a determinate system by saying how the tension
T(s; t) is influenced by the stretch factor I(fJr/os)(s; t)l. For each elastic material,
there is a well-defined function N expressing this dependence by
Taking the square root and using the Taylor expansion (1+a)1/2 = 1+~a+0(a2),
we have
-arl 8x
=1+i-+0(i 2
las as )
Thus
8r/8s = ( 1 +0 (2
18r/asl 8y (2 8z 2)
i ),i 8s +0 i )'8s +O(i)
If we insert these into (2.4.1) and use (2.4.3), (2.4.4), and (2.4.5), we obtain the
following equations for the x, y, and Z components:
138 2. BOUNDARY-VALUE PROBLEMS IN RECTANGULAR COORDINATES
(2.4.8)
EXAMPLE 2.4.1. Suppose that pes) = p and f(s; t) = g, independent of (s, t).
Find the steady-state solution of the wave equation (2.4.8) satisfying the boundary
conditions yeO) = 0, y(L) = O.
Solution. The function y( s) must satisfy the ordinary differential equation
o = 9 + To y" (s)
p
The general solution of this equation is yes) = -(pg/2To)s2 + As + B, where
A and B are arbitrary constants. Applying the boundary conditions, we have
0= B, 0 = -(pg/2To)L2 + AL + B. The solution is yes) = (pg/2To){Ls - s2) .
In Example 0.2.7 we showed that the separated solutions that satisfy the bound-
ary conditions and the second initial condition are sin (n7rs/ L) cos (n7rct/ L), n =
1,2, .... Therefore we may obtain a formal solution by the superposition principle
as
(2.4.9)
If II (s), 0 < s <L, is continuous and piecewise smooth, the Fourier series (2.4.9)
converges for all s to the odd periodic extension of 11, denoted 11. Therefore, to
solve the problem, we have a simple rule: Given 11, compute Bn from (2.4.11)
and substitute into (2.4.9) to solve the problem. This is called the Fourier rep-
resentation of the solution. We illustrate with the problem of the symmetric
plucked string.
EXAMPLE 2.4.2. Solve the vibrating string problem in the case where
The Fourier representation (2.4.9) displays the solution as a Fourier sine series
for each time t. The nth term of this series is a purely harmonic vibration of
frequency n1rcl L and amplitude Bn. Hence this form of the solution affords a
natural analogy between the vibrating string and an infinite system of harmonic
oscillators.
the formula for the mean square error, which was developed in Sec. 1.2.4; thus
Ii
1
o
L [ . 1CS 1Cct ] 2 1 8 n1Cct
y(s;t)-A1SInycos-y; dS=2l:A!cOS2'L
n=2
We have lost the factor 1/(2m - 1)2, which ensured convergence of the series for
y(s; t). The new series converges for no value of t.
A second disadvantage of the Fourier representation is that it provides little
geometric insight into the motion of the vibrating string. We expect that an initial
disturbance will be propagated as some sort of wave motion, but the Fourier
representation does not show this directly.
4Data obtained from D. Halliday and R. Resnick, University Physics, 3d ed., 1977, John
Wiley & Sons, New York.
142 2. BOUNDARY-VALUE PROBLEMS IN RECTANGULAR COORDINATES
=~ f
n=1
Bn [SiD 7, (8 + ct) + sin n; (8 - ct)]
We recognize the Fourier sine series for It(s + ct}, 11(s - ct), where II is the
odd, 2L-periodic extension of 11(S}, 0 < s < L. Therefore we have the explicit
representation
1 - -
(2.4.12) yes; t) = 2III (s + ct) + II (s - ct)]
In physical terms, we have written yes; t) as a sum of two traveling waves, one
moving to the right with speed c and the other moving to the left with speed c.
This will enable us to obtain graphical representations of the solution.
Using the representation (2.4.12), we now verify that y(s; t} satisfies the wave
equation. Indeed, whenever J~, !{' exist, we have
1 -, ( ) 1 -, (
Yt = 2cl1 s + ct - 2cl1 S - ct )
1 2 - 1 2-
Ytt = -c
2
I:'(s + ct) + -c
2
It'(s - ct)
1 -, ) 1-,
Ys = 211(s+ct + "2 11 (s-ct)
1 -If 1 -If
Yss = 211 (s + ct) + 2ft (s - ct)
where we have used the oddness and 2L-periodicity of f. The initial condition
yes; 0) = J(s) is satisfied everywhere, while Yt(s; 0) = 0 wherever JI is defined.
This completes the validation of the solution.
The second application of (2.4.12) is to obtain a picture of the motion of the
vibrating string. We will now illustrate this in the case of the asymmetric plucked
string, where
11(s) = {S(L-S o) O<s<so
So (L - s) So < s < L
When we extend It as an odd periodic function, we obtain the graph depicted
in Fig. 2.4.4. The extended function satisfies fl(-s) = - II (s), h(s+2L) = It(s)
for any s. We substitute this into (2.4.12) and get
1 - -
yes; t) = 2[It (s + ct) + 11 (s - ct)]
To obtain a picture of the motion of the plucked string, we must average the
left and right translates of fl. Since the average of two linear functions is again
linear, it suffices to plot five points in the interval 0 ~ s ~ L: the two endpoints
where the string is fixed, the interior point where 11 (s + ct) = 11 (s - ct), and the
two interior points where J:(s + ct) changes sign.
The diagrams in Fig. 2.4.5 give a motion picture of the plucked string during
the half-period 0 ~ t ~ Llc. For convenience we take So = 3L14. At t = 0, we
have the odd periodic function 11(s) with vertices at A(s = 3L/4), B(s = 5LI4),
and C(s = -3L/4). These points, which determine the discontinuities of Ii,
move along the axis and are labeled AI B, C. For t = LISe, we have A+,
A_ as the only vertices with 0 ~ s ~ L. When t = L/4c, A_ has arrived at the
middle of the interval and the plucked string is symmetric about s = L/2. The
vertex A+ is replaced by B_. When L/4c ~ t ~ 3L/4c, part of the string goes
below the axis, until it reaches the symmetric configuration shown at t = 3L/4e.
When t = 3LI 4e, the A_ vertex disappears from the interval and is replaced
by C+; this results in the symmetric configuration completely below the axis.
Finally, when t = L/c, the string has completed one-half of its period and is
congruent to its initial position with vertex at s = L14.
L =it (s-ct)
1+ =]1 (s + ct)
o~
~
--- "L
O~
~
~- ~L
O~L
O~L
O~L
O~L
2.4.6. Motion of the struck string. We now solve the problem of the
vibrating string, starting from equilibrium, with nonzero initial velocity. Thus
we must solve
Ytt(S; t) = c2 yss t > 0,0 < S < L
y(Oj t) = 0 = y(Lj t) t>O
y(s;O) =0 O<s<L
Yt(s; 0) = 12(S) O<s<L
The initial velocity profile 12(s) is unspecified for the moment.
To solve this problem, we begin with the separated solutions that satisfy the
wave equation, the boundary conditions, and the first initial condition. These
are of the form
. n7l"s . n7l"ct
slllTslllL
To satisfy the second initial condition, we try a superposition of these:
(2.4.13)
This is the Fourier representation of the solution. The coefficients {Bn} are
determined by differentiating this series with respect to t and setting t = 0; thus
In other words, (n7l"c/ L)Bn is the nth Fourier sine coefficient of 12(s), 0 < s < L:
n7l"c
TBn =L 21L 12(s)slllyds
. n7l"S
0 n= 1,2, ...
If 12(S), 0 < s < L, is continuous and piecewise smooth, the Fourier series (2.4.14)
converges for all s to the odd periodic extension of 12, denoted 12. This completes
the Fourier representation of the solution.
To obtain an explicit representation, we apply the trigonometric identity
sinasin,8 = Mcos(a -,8) - cos(a + ,8)] to the Fourier representation. Thus
y(s; t) =
1
2 L Bn
00
n::::::l
[ n1r n1r]
cos y(s - ct) - cos T(s + ct)
146 2. BOUNDARYVALUE PROBLEMS IN RECTANGULAR COORDINATES
Y(8; t) =
1 00
2'LBny
l nll' S ct
+ nll' Z
sinLdz
n=l a-ct
= 11
2'
S
8-ct
ct
+ {
~Bny sin L
00 nll' n1rz}
dz
where we have formally interchanged the summation and integration. Aside from
the factor c, we recognize the formula in braces as the Fourier sine series for 12,
the odd, 2L-periodic extension of 12(8), 0 < s < L. Thus we have the explicit
representation
(2.4.15) 1
Y(Sj t) = 2"
e
l s ct
+
a-ct
12 (z)dz
The formula (2.4.15) defines a solution of the wave equation and satisfies the
boundary conditions and both initial conditions. In particular cases this formula
can be used to graph the solution of the wave equation.
y(s;t)
t
o 0 L
L
&0 L
L
4c 0 L
3L
&0 L
\
FIGURE 2.4.6 Successive positions of the struck string.
L
Suppose that it, It, f{l, 12, and f~ are continuous functions. Then
The careful reader will note that Examples 2.4.2 and 2.4.3 do not satisfy the
hypotheses of the proposition. Therefore this proposition, although mathemat-
ically rigorous, excludes examples of physical interest. In order to improve this
point of the theory, mathematicians have extended the concept of solution to in-
clude functions yes; t) for which some of the indicated partial derivatives may not
exist. The basic idea is that a function y(x; t) is a weak solution if there exists a se-
quence of (twice-differentiable) solutions Yn(x; t) so that y(x, t) = lilIln--HX) Yn(Xj t)
for each (x, t). For example, Yn(x; t) can be chosen as the partial sum of the
Fourier series. This concept of weak solution is discussed further by Weinberger. 5
yes; t) =
n=l
g(8)
00
= LBn sin
n=l
n;s
~ ["
L...J An(t) + (nll'C) . n1T8
L 2 An(t)]sm ~ Bn sin-
L = coswt L...J n1Ts
n=l n=l L
We choose An(t) to be solutions of the ordinary differential equations
A"()
n t +
(n1TC)
L 2 An(t) = Bn coswt
5Weinberger,op. cit.
2.4. THE VIBRATING STRING 149
~ Bn sin (n7rs/ L)
(2.4.17) y(s; t) = coswt L, ( / L)2 2
n=l n7rC - w
The solution is a periodic function of time with the same period. The series for
y(s; t) converges uniformly for 0 ~ s ~ L. If g(s) is continuous and satisfies
the boundary conditions, the differentiated series for Ys, Yss, Yt, Ytt also converge
uniformly for 0 ~ s ~ L, and y(s; t) is a solution of the problem.
EXAMPLE 2.4.4. Find a particular solution of the problem Ytt -c2Yss = A cos wt,
satisfying the boundary conditions y(O; t) = 0 = (L; t), where A and ware positive
constants with w :/; n7rc/ L.
Solution. In this case we use the Fourier sine series expansion of the constant
function
1= ~ t
7r n=l
1- (-l)n sin n7rS
n L
0<s<L
The series for Ys, Yss, Yt, Ytt converge uniformly for fJ ~ s ~ L - fJ for any fJ > 0,
and this implies that y(s; t) is a solution of the equation .
EXAMPLE 2.4.5. Find a particular solution of the problem Ytt-c2Ys8 = A cos wt,
satisfying the boundary conditions y(O; t) = 0 = y(L; t), where A and ware posi-
tive constants with w = N7rc/ L for some integer N.
Solution. We look for a particular solution in the form
00
To solve the equation for n = N, we use the following observation. For any
Wi =1= W,
EXERCISES 2.4
1. Consider the initial-value problem for the symmetric plucked string.
2
Ytt = C YS8 t > 0, 0 < S < L
y(O; t) = 0 = y(L; t) t>0
y(s; 0) = s 0 < s 5: L/2
y(s; 0) = L - S L/2 < S < L
Yt(s; 0) = 0 0<s<L
Make a graphical representation of the solution for ct = L/4, L/2, 3L/4,
L. At what time is y(s; t) = 0 for all 0 < S < L?
2. Let y(s; t) = 2:~1 Bn cos (n1rct/ L) sin(n1rs/ L) be a solution of the vibrat-
ing string problem. Suppose that the string is further constrained at its
midpoint, so that y(L/2, t) = 0 for all t. What condition does this impose
on the coefficients Bn?
3. Let y(s, t) = 2::=1 Bn cos (n7rct/ L) sin(n1rs/ L) be a solution of the vi-
brating string problem. Suppose that the string is constrained so that
y(L/3, t) = 0 for all t. What condition does this impose on the coeffi-
cients Bn?
4. The energy of a vibrating string of tension To and density p = m/ L is
defined by
Jor
L
1 2 2
E = 2" (pyt + Toys)ds
2.4. THE VIBRATING STRING 151
Let
00
15. Use the chain rule and the fundamental theorem of calculus to show that
(d/dx) f:~~t J(z) dz = J(x + ct) - J(x - ct).
16. Use the chain rule and the fundamental theorem of calculus to show that
(d/dt) f:~~t J(z) dz = cJ(x + ct) + cJ(x - ct).
17. The voltage u(x; t) in a transmission cable is known to satisfy the partial
differential equation Utt + 2aut + a2 u = c2uxx , where a and c are posi-
tive constants. Let y(x; t) = eatu(x; t) and show that y satisfies the wave
equation Ytt = c'lyxx'
18. Use Exercise 17 and d'Alembert's formula to solve the initial-value problem
utt+2aUt+a2u = r?u xx for t > 0, -00 < x < 00, with the initial conditions
u(x;O) = gl(X), Ut(x;O) = O.
19. Use Exercise 17 and d' Alembert's formula to solve the initial-value problem
2
Utt + 2aut + a u = r?uxx for t > 0, -00 < x < 00, with the initial condtions
u(x; 0) = 0, Ut(x; 0) = g2(X).
20. A vibrating string with friction in a periodic force field is described by the
equation Ytt + 2aYt - c2 yss = Acoswt and boundary conditions y(O; t) =
= y(L; t), where A, a, and ware positive constants. Find a particular
solution that is also periodic in time.
00
'" A . m1rX . n1rY
L...J mnslllL slllL
m ,n=1 1 2
Amn =
4 1L2 r
LIL2 0 10
L1
m7rX n7ry
f(x, y) sin L. sin L2 dx dy
If f(x, y) is a smooth function in the rectangle, the series converges to f(x, y) for
o < x < LI, 0 < y < L 2
2.5.1. The heat equation (homogeneous boundary conditions). As
our first application of double Fourier series, we consider the heat equation in a
rectangular column 0 < x < LIt 0 < Y < L2 , with the homogeneous boundary
conditions that u = 0 on all four sides of the column, x = 0, x = L 1 , Y = 0,
Y = L 2 The separated solutions, which depend on (x, y, t), are of the form
u(x, y; t) = tPl (x)tP2(y)T(t)
Substituting in the heat equation and dividing by K u, we have
T'(t) tPr(x) ~(y)
KT(t) = tPl(X) + tP2(Y)
The left side depends on t and the right side depends on (x, y). Therefore each
side is a constant, which we call -A. Applying the same argument to the right
side, we see that both <pr/<Pl and tP~/<P2 are constants, to be called -J.Ll and -J.L2,
respectively. Therefore we have the ordinary differential equations
T'(t) + AKT(t) = 0
tP~(x) + J.LltPl(X) = 0
<p~(y) + J.L2tP2(Y) = 0
where A = J.Ll + J.L2. From the boundary conditions we must have <PI (0) = 0,
<PI (Ld= 0, 4>2(0) = 0, <P2(L2) = O. The solutions of these Sturm-Liouville
problems are <PI (x) = sin (m7rx/ Ld, J.Ll = (m7r / Ld 2, t/>2(Y) = sin(n7rY/ L2), J.L2 =
(n7r/~)2; we have T(t) = e->'Kt, where A = (m7r/Ll)2+(n7r/~)2. Thus we have
154 2. BOUNDARY-VALUE PROBLEMS IN RECTANGULAR COORDINATES
the separated solutions of the heat equation in the column, with zero boundary
conditions:
. m1rx . n1ry >. Kt
SIll-- slll-e- mn m,n = 1,2, ...
Ll L2
(2.5.1) u(x
"
y' t) = ~ B sin m7rX sin n7ry e->'mnKt
L mn L L
m,n=1 1 2
We can use these to solve initial-value problems for the heat equation.
EXAMPLE 2.5.1. Solve the initial-value problem for the heat equation Ut =
KV 2u in the column 0 < x < Lll 0 < y < L21 with the boundary conditions
u(O, y; t) = 0, U(Lb y; t) = 0, u(x, OJ t) = 0, u(x, L2 ; t) = 0 and the initial condi-
tion u(x, y; 0) = 1, for 0 < x < L 1 , 0 < y < L 2 Find the relaxation time.
Solution. We look for the solution as a sum of separated solutions (2.5.1).
The Fourier coefficients Bmn are obtained by setting t = 0 and using the initial
conditions. Thus we have
00
~ B . m7rX . n7ry
1 = L mnSIllLslDL
m,n=1 1 2
Bmn = Ll L2
4 J.L2J.Ll sm. --y;;-
0 0
m7rX . n7ry
SIll~ dx dy
4 [1- (-I)m][l- (-I)n]
=
7r 2 mn
The solution is
4 ~ 1 - (_I)m 1- (-I)n m1rX n7ry Amn, K
u(x, y; t) = - L sin - - sin - e- t
7f2 m,n=1 m n Ll L2
For each t > 0, the series for u, u x , u y, U xx , Uyy, Ut converge uniformly for 0 ~
x :5 L 1 , 0 :5 y :5 L 2 , and hence U is a rigorous solution of the heat equation. The
relaxation time is given by the first term of the series, when m = 1, n = 1. Thus
[(7f2/LD+ (7r2/L~)]KT = 1, and the relaxation time is T = L~L~/K1r2(L~+L~) .
Initial-value problems for the heat equation in a three-dimensional cube can
be handled similarly, using Fourier series in three variables. For example, if we
have the cube 0 < x < L, 0 < y < L, 0 < z < L, then we find the separated
solutions in the form sin(m1rx/ L) sin (n1rY/ L) sin{p7rz/L)e->'Kt, where (m, n,p)
are independent indices and A = (m7r/L)2 + (n7r/L)2 + {p7r/L)2. The initial
2.5. APPLICATIONS OF MULTIPLE FOURIER SERIES 155
EXAMPLE 2.5.3. Solve Laplace's equation in the column 0 < x < L 1 , 0 <
Y < L2 with the boundary conditions u(O, y) = 0, u(Lt, y) = 0, u(x,O) = 0,
u(x,~) = 1.
Solution. In Example 2.5.2 we found the separated solutions satisfying the
first two boundary conditions,
. n1rX ( n7ry . n7rY)
u(x, y) = sm T;- A cosh L; + B 8mh L;
156 2. BOUNDARY-VALUE PROBLEMS IN RECTANGULAR COORDINATES
The third boundary condition requires 0 = A sin n1Tx/ L 1 , 0 < x < L 1 ; hence
A = O. We look for the solution as a superposition
00
" BnsmLsm
( ) =~
ux,y
. n1TX . h Ln1Ty
n=l 1 1
~ 0 ~ 0 0
T'DT,=oDo+oDo+T'Do+oDT'
~ ~ 0 0 0
FIGURE 2.5.1 Solution of Laplace's equation by superposition.
EXAMPLE 2.5.6. Solve the initial-value problem for the heat equation Ut =
KV 2u in the column 0 < x < L 1 , 0 < Y < L21 with the boundary conditions
u(O, y; t) = 0, u(Lr, y; t) = 0, u(x, 0; t) = 0, u(x, L2 ; t) = T2 and the initial
condition u(x, y; 0) = Tl1 where Tl and T2 are positive constants.
Solution. The steady-state solution, denoted U(x, y), satisfies Laplace's equa-
tion V 2 U = 0 with the indicated boundary conditions. This was solved in Ex-
ample 2.5.3.
To obtain the required coefficients B mn , we begin with the Fourier sine expansion
of the hyperbolic sine .
. h a7rY _ 2sinha7r ~ n(_l)n+l . n7ry
~2 sm L
sm L2 - 7r n=l a + n
2
2
Letting a = mL2/ Ll and substituting in the formula for U(x, y), we have the
double Fourier sine series
_ 4T2 ~ [1- (-l)m]n(-l)nH . m7rX . n7ry
U( x, y ) - 2 ~ [2 ( L /L )2] sm L 1 sm L 2
7r m,n::::l m n + m 2 1
Likewise, the double Fourier sine expansion of Tl is
4Tl
Tl = -
Eoo
1- (_l)m 1- (_l)n . m7rX . n7ry
SlD-- SlD-
~ m n Ll ~
m,n=1
From these we can obtain Bmn as the coefficient of sin(m7rx/ L 1 ) sin(n7rY/ L2 ).
The solution of the original boundary-value problem is
00
. m7rX . n7ry ->'mnKt
~
u(x, Yi t) = U(x, y) + ~ Bmn SID Lt sm L2 e
m,n=}
For each t > 0, the series for u, uz , U zz , tty, uyy , Ut are uniformly conver-
gent for 0 < x < LlJ 0 < y < L 2 ; thus u(x, y; t) is a rigorous solution of the
2.5. APPLICATIONS OF MULTIPLE FOURIER SERIES 159
boundary-value problem. The relaxation time is given by the first term of the
series, (7r 2/Lr + 7r2/L~)KT = 1 if Ell ~ O.
2.5.4. The wave equation (nodal lines). We now turn to an example
involving the wave equation. The small transverse vibrations of a tightly stretched
membrane are governed by the two-dimensional wave equation. This has the form
Utt = c2 (u xx + uyy )
where u(x, Yi t) denotes the transverse displacement of the membrane from its
equilibrium position and c is a positive constant. The membrane is supposed
to cover the rectangle 0 < x < L 1 , 0 < Y < L2 with the edges fixed; thus
u(x, Y; t) = 0 for x = 0, x = Lb Y = 0, Y = 2.
As a first step we find the separated solutions of the wave equation that satisfy
these boundary conditions. These have the form
u(x, Y; t) = 4>1 (x)cP2(y)T(t)
Substituting in the wave equation and separating variables, we have
T"(t) tPf(x) 4>~(Y)
c2T(t) = 4>1 (x) + 4>2(Y)
The left side depends on t alone, while the right side depends on (x, y); thus each
is a constant, say -A. Introducing further separation constants ILl and IL2, we
have the ordinary differential equations
T"(~) + Ac2T(t) =
tP~(x) + ILl tPl (x) =
4>~(Y) + J.L24>2(Y) = 0
with A = ILl + JL2. The boundary conditions require 4>1(0) = 0, 4>1(L 1) = 0,
4>2(0) = 0, 4>2(L2) = O. These Sturm-Liouville problems have the solutions
tPI(X) = sin(m1rx/Ld, 4>2(Y) = sin(n1ry/L2), ILl = (m1r/Lr)2, IL2 = (n1r/L2)2.
Thus A > 0, and we can write T(t) = A cos (ct v'X) + Bsin(ctv'X). We now have
the separated solutions of the rectangular membrane
(2.5.5) . -y;;-
umn(x, Yi t) = sm m1rX sm
. n1rY
L2 (A mn cos wmnt + B ')
mn sm wmnt
2 2] 1/2
(2.5.6) Wmn = C [(~~) + (~)
The constants Amn and Bmn can be chosen to fit various initial conditions by
using the superposition principle and the methods of double Fourier series.
EXAMPLE 2.5.7. Solve the initial-value problem for the vibrating membrane
with the initial conditions u(x, Y; 0) = 0, Ut(x, Yi 0) = 1.
160 2. BOUNDARY VALUE PROBLEMS IN RECTANGULAR COORDINATES
Thus Bmnwmn = (2/1r)2Il- (-I)m][l- (-l)n]/mn, and we have found the formal
solution of the problem:
4 ~ II - (-l)mJIl - (-l)n] m1rX n1ry
u(x, y; t) = 2' L.J sin - - sin - - sinwmnt
1r m.n=1 mnwmn Ll L2
In contrast with the heat equation, the double Fourier series solutions ob-
tained do not converge sufficiently fast to verify the convergence of the series for
the various derivatives ux , U xx , u y , uyy , Ut, Utt. Therefore we usually restrict at-
tention to solutions that contain only a finite number of terms. In particular, it is
interesting to examine the separated solutions obtained previously. Indeed, these
solutions have an important physical interpretation as standing waves. The pro-
file is given by the function sin (m1rx/ L 1 ) sin(n1rY/ L 2 ). This function undergoes
a periodic oscillation with period T = 21r /wmn , owing to the time dependence
A cos wmnt + B sin wmnt. The membrane can be divided into various zones, de-
pending on the sign of u; these zones are divided by curves, which are called
nodal lines. We illustrate in Fig. 2.5.2 the nodal lines for some of the separated
solutions we have just found.
We now consider in more detail the vibrating square membrane with 0 < x <
L, 0 < y < L. Thus we take Ll = L, L2 = L. The first 10 frequencies of the
separated solutions are listed in Table 2.5.1.
We distinguish between simple frequencies and multiple frequencies. For ex-
ample, Wll = (1rcl L)V2 is a simple frequency, whereas W12 = (1rcl L)J5 is a
multiple frequency, of multiplicity 2. We may obtain solutions with a more com-
plex nodal structure by taking sums of solutions corresponding to a multiple
frequency. For example,
. 1rX . 2'Try . 21rx . 1ry
U12 - U21 = sm T sm L - sm L sm T
= 2 sin 1rX sin 'Try (cos 'Try _ cos 1rX)
L L L L
Thus U12 - U21 = 0 for x = y, since the factor cos ('Try I L) - cos( 'TrX I L) = 0 on
that line. If we consider the multiple frequency W13 = ('Trcl L) v'lO, and study
the difference U13 - U3h it may be shown that this function is zero along both
lines x + y = Land y = x. These possibilities are illustrated in Fig. 2.5.3. More
complex diagrams may be obtained by considering higher values of (m, n).
GG. H. Hardy and E. M. Wright, An Introduction to the Theory of Numbers, 5th ed.
Oxford University Press, Oxford, 1979.
2.5. APPLICATIONS OF MULTIPLE FOURIER SERIES 163
2
53 = 7 + 22 2 53
58 = 72 + 32 2 229 I
61 = 62 + 52 2 61
65 = ~+42 4 5 13
= 82 + 12
68 = 82 + 22 2 22 .17
2
72 = 6 + 6 2 1 23 .32
2
73 = 8 + 3 2 2 73
74 = 72 + 52 2 237
80 = 82 + 42 2 24 .5
2
82 = 9 + 12 2 241
85 = 92 + 22 4 5 17
= 722+ 62
89 = 8 + 52 2 89
90 = 92 + 32 2 2.32 .5
97 = 9 + 4
2 2 2 97
98 = 72 + 72 1 2.72
2
100= 8 + 6 2
2~ ,2_2.52
-
TABLE 2.5.2
164 2. BOUNDARY-VALUE PROBLEMS IN RECTANGULAR COORDINATES
the only multiple eigenvalues are those that are products of distinct primes of the
form 4n + 1.
2.5.6. Implementation with Mathematica. One can use Mathematica
to obtain three-dimensional graphs of the rectangular drumhead. We apply the
command Plot3D to the formula (2.5.5) with A = 1, B = 0, Ll = L2 = 7r, and
c = 1, so that
Vmn(X, y; t) = sin mxsin ny cos(v'm2 + n 2 t)
2.5. APPLICATIONS OF MULTIPLE FOURIER SERIES 165
vv[l,2,O] vv[2,2,O]
vv[l,4,O] vv[2,5,O]
vV[l,2,O] vV[1,4,O]
1 ~B . n7rX . h n7rL2
-2x(Ll - x) = L...J nsmLsm ~
n=l 1 1
3
The Fourier series of x(L l - x) is (8Lr/ 7r 3) Lnodd n- sin (n7rx/ Ld. Equating
coefficients gives
Combining this with the Fourier series for U, we may write the solution of Pois-
son's equation as a single series in the form
(
U
) _ 4L~ """' -3 . ~
x, y - 11'3 L...J n sm Ll
[2 _
sinh (nll"Y/ L 1 ) + sinh(n7r(L2 - y)1 L 1 )]
sinh (nll"L2/ L 1 )
nodd
We now compare this with another method of solution.
EXAMPLE 2.5.9. Find the solution of Poisson's equation V 2 u = -1 in the
rectangle 0 < x < L 1 , 0 < y < L2 in the form of a double Fourier sine series
IX)
~ A . mll"X . n7ry
u (X,y ) = L...J mnsmLsmL
m,n=l 1 2
m,n=l
Amn [()2
L + (L )2] smLsm L
m7r
1
m7rx . n7ry
n7r
2
.
1 2
It is interesting to compare the two forms of the series solution obtained for
Poisson's equation. In the first example, the nth term of the series for v(x, y)
tends to zero at the exponential rate, where the exponent is the larger of e- mTY / Ll
and e- n7r (L2-Y)/ Ll In the second case, the double Fourier series tends to zero
at an algebraic rate, according to 1/mn(m2 + n 2). The series for ux, Uxx , u y, u yy
converge at an even slower rate. Thus, for the purposes of numerical computation,
the first series is superior to the second series.
EXERCISES 2.5
u(O,y,z) = 0
uy(x, L, z) = 0
ux(L, y, z) =
u(x,y,O) =0
u(x,O,z) =
u(x,y,L)= 1
2.5. APPLICATIONS OF MULTIPLE FOURIER SERIES 169
10. Solve Laplace's equation V 2 u = 0 in the cube 0 < x < L, 0 < Y < L,
o < z < L, with the boundary conditions
uz(O, Y, z) =0 uz(L, Y, z) = 0 uy(x, 0, z) = 0
uy(x, L, z) = 0 uz(x, Y, 0) = 0 u(x,y,L) = 1
11. Solve the initial-value problem for the heat equation Ut = KV 2 u in the
column 0 < x < L 1 , 0 < y < L2 with the boundary conditions uz(O, Y; t) =
0, uz(Lt, Yi t) = 0, u(x, 0; t) = T}, u(x,~; t) = T2 and the initial condition
u(x, Y; 0) = T3, where T I , T2 and T3 are constants.
12. Solve the initial-value problem for the heat equation Ut = KV 2u in the
square column 0 < x < L, 0 < Y < L with the boundary conditions
u(O, Yj t) = 0, u(L, Yj t) = 0, u(x, 0; t) = 0, u(x, Lj t) = Tl and the initial
condition u(x, Y; 0) = O. Find the relaxation time.
13. Solve the initial-value problem for the vibrating membrane in the square
o < x < L, 0 < Y < L with u(x,yjO) = 3 sin (-rrx/L) sin (27ry/L) +
4sin(37rx/L)sin(57ry/L), Ut(x,y;O) = O.
14. Find the separated solutions of the wave equation Utt = c2 (u zz + U yy ) in the
square 0 < x < L, 0 < y < L with the boundary conditions uz(O, y; t) = 0,
uz(L, y; t) = 0, uy(x, 0; t) = 0, uy(x, L; t) = q and the initial conditions
u(x, y; 0) = O.
15. Find the first 10 frequencies of the separated solutions found in Exercise 14.
16. A vibrating membrane in the shape of an isosceles right triangle covers the
region 0 < Y < x < L. Show that U mn - U nm satisfies the wave equation
with zero boundary conditions, where m < nand U mn is given by (2.5.5)
with LI = L 2
17. Find the first 10 frequencies of the separated solutions found in Exercise 16.
18. Solve the initial-value problem for the wave equation on the isosceles right
triangle 0 < y < x < L with zero boundary conditions and the initial
=
conditions u(x, Y, 0) = 0, Ut(x, y, 0) 1.
19. Consider a vibrating membrane covering the equilateral triangle 0 < y <
=
xJ3,o < y < v'3(L-x). Let d 1 = Y, d2 = ~(xv'3-y), d3 ~[v'3(L-x)-y]
be the distance from the point (x, y) to the ith side of the triangle, i =
1,2,3. For n = 1,2, ... let
. 47rnd 1 47rnd2 47rnd3 )
un(x, y; t) = ( sm ~ + sm -r.f" + sm ---;:;; coswt
Lv3 Lv3 Lv3
Show that Un satisfies the wave equation with zero boundary conditions if
w is suitably chosen. (Hint: To check the boundary conditions you may
use the fact that d 1 + d2 + d3 = L=/3/2.)
20. Let n = 1 in Exercise 19. Show that if Ul(X, Yj 0) = 0 and d 1 > 0, d2 > 0,
then d3 = O.
21. Use Exercise 20 to show that Ul (x, y; 0) # 0 inside the equilateral triangle.
170 2. BOUNDARY-VALUE PROBLEMS IN RECTANGULAR COORDINATES
22. Let n = 2 in Exercise 19. Show that U2(X, y; 0) = 0 along the lines d1 =
L.../3/4, ~ = L.../3/4, d3 = L.../3/4 and draw a diagram.
23. Let n = 3 in Exercise 19. Plot the nodal lines along which U3(X, y; 0) = O.
24. In Example 2.5.6 compute Bu. Show that Bll = 0 if and only if 2Tt/ = Lr
T2/(L~ + L~). Show that, for a square column, this is the statement that
the initial temperature is the average of the boundary temperatures.
25. Find all of the eigenvalues ,,\ = m 2 + n 2 in the range 101 < ,,\ ~ 200 and
their multiplicities for the square 0 < x < 1r, 0 < y < 1r corresponding to
the boundary conditions that u = 0 on all four sides.
26. Find all of the eigenvalues ,,\ = m2 + n 2 in the range 101 < ,,\ ~ 200 and
their multiplicities for the 45-45-90 triangle 0 < x < y < 7r, corresponding
to the boundary conditions that u = 0 on all four sides.
27. Find all of the eigenvalues ,,\ = m2 + n 2 in the range 0 ::S ,,\ ~ 100 and
their multiplicities for the square 0 < x < 7r, 0 < y < 7r corresponding to
the boundary conditions that the normal derivative au/an = 0 on all four
sides.
CHAPTER 3
BOUNDARY-VALUE PROBLEMS IN
CYLINDRICAL COORDINATES
INTRODUCTION
(3.1.1) x = pcoscp
(3.1.2) y = psincp
(3.1.3) z =z
These are simply polar coordinates in the xy plane, where we have saved the more
conventional letter r for the three-dimensional distance and the more conventional
letter () for the three-dimensional polar angle in Chapter 4.
Let u(x, y, z) be a smooth function and U(p, cp, z) the corresponding function
in cylindrical coordinates: U(p, cp, z) = u(pcoscp,psincp,z). We wish to express
u zz + u yy in terms of the partial derivatives Upp, Uf.{)f.{)' Up, Uf.{)'
We begin with the chain rule for partial derivatives:
u
z
= au = au ap + au acp
ax ap ax acp ax
au au ap au acp
uy = By = {)p By + acp By
171
172 3. BOUNDARY-VALUE PROBLEMS IN CYLINDRICAL COORDINATES
Therefore we must determine ap/ax, acp/ax, ap/ay, acp/ay. From (3.1.1) and
(3.1.2) we have p2 = x 2 + y2, so that
ap ap
2Pax = 2x 2P
ay
= 2y
which are solved to yield
ap x ap y .
-=-=coscp - = - =smcp
ax p ay p
Differentiating both sides of (3.1.2) with respect to x, we have
ap. acp
O = ax smcp + pcoscp ax
. acp
= cos cp sm cp + Pcos cp ax
acp sin cp
ax
= ---
p
Differentiating both sides of (3.1.1) with respect to y, we have
ap . acp
o= ay
-coscp - psmcp-
ay
. . acp
= smcpcoscp - psmcp ay
coscp
=
p
Therefore we can express the action of the partial derivative operators a/ax and
a/ ay in cylindrical coordinates as
au au sin cp au
(3.1.4) = coscp- - - -
ax ap p acp
au . au coscp au
(3.1.5) ay = sm cp ap + -p- acp
Next we apply them again to obtain
fPu 2 (flU 2 cos cpsin cp au 2sincpcoscp a2u
(3.1.6) ax2 = cos cp ap2 + p2 acp - p ap8cp
2 2
sin cp au sin cp a u 2
+----+----
p ap p2 acp2
a2u . 2 a2u 2 sin cp cos cp au 2 sin cp cos cp {}2U
(3.1.7) ay2 = sm cp ap2 - p2 acp + p apacp
cos cp au cos2 cp a2U
2
+----+----
P ap p2 acp2
3.1. LAPLACE'S EQUATION AND APPLICATIONS 173
2 {PU 1 au 1 a2 u a2 u
(3.1.8) V u = 8p2 + P7iP + fj 8cP2 + (h2
EXAMPLE 3.1.1. Compute V 2[X(X 2 + y2)3].
Solution. The function u = x(x2 +y2)3 is expressed in cylindrical coordinates
as U = p7 cos cpj we have Up = 7p6 cos cp, Upp = 42ps cos cp, Uvxp = - p7 cos cpo
Therefore, the Laplacian is given by V 2u = 48p5 cos cp = 48x(x2 + y2)2 .
The correspondence u ~ U produces a smooth function U(p, cp, z) for every
smooth function u(x, y, z). But many smooth functions of (p, cp, z) do not arise
in this manner. For example, U = p is a function of (x, y, z), but it is not
smooth since the partial derivative 8p/8x is undefined at p = O. The example
U = cp does not correspond to a smooth function of (x, y, z) since cp changes by
21r when we make a 3600 rotation about the z-axis and return to the same point.
These theoretical difficulties need not hinder us in our work if we check that each
solution we obtain in cylindrical coordinates corresponds to a smooth function of
(x,y,z). For example, U = pncosncp can be written as a polynomial in (x,y) if
n is an integer and therefore is a smooth functionj if n is not an integer, U is not
a smooth function of (x, y). With these precautions in mind, we now formulate
and solve some boundary-value problems in cylindrical coordinates. By abuse
of notation, we write the solution as u = u(p, cp, z), assumed to be a smooth
function of (x, y, z).
The first term depends only on p and the second only on tp; therefore both are
constant. This leads to the ordinary differential equations
(3.1.9) 4>" + A4> = 0, 4>{ -7r) = 4>{7r), 4>' {-7r) = 4>'{7r)
nI, 1 nI A
(3.1.10) IT. +-IT.
p
--R=O
p2
where A is the separation constant. 4> must satisfy the indicated periodic bound-
ary conditions because u is supposed to be a smooth (single-valued) function
of (x, y). The solution to the Sturm-Liouville problem (3.1.9) was obtained in
Sec. 1.6 with the result
4>{ tp) = Am cos mtp + Bm sin mcp m = 0,1,2, ...
Equation (3.1.10) is a form of Euler's equidimensional equation. For m -:f:. 0,
it has solutions R(p) = pm, p-m; for m = 0, the solutions are R(p) = 1, lnp.
Combining these, we get the following separated solutions of Laplace's equation:
pm (Am cosmtp + Bm sin mtp) m = 1,2, ...
(3.1.11) u(p, cp) = Ao + Bo lnp m= 0
{ p-m(Cmcosmtp + Dmsinmcp) m = 1,2, ...
One may note that the first set of solutions correspond to smooth functions of
(x, y). These polynomial solutions of Laplace's equation are listed in the following
table.
The logarithmic solution and the solutions containing negative powers are not
smooth functions of (x, y), since they become infinite when p ~ O. Nevertheless
they may be used to solve boundary-value problems in the exterior of a circle or
cylinder.
EXAMPLE 3.1.2. Find the solution of Laplace's equation in the region PI <
P < /J2, with the boundary conditions U(PI) = T I , u(/J2) = T2, where TI and T2
are constants. Solve for the average temperature u{p) = (T1 + T2 ) /2.
3.1. LAPLACE'S EQUATION AND APPLICATIONS 175
Solution. Since the boundary conditions are independent of cp, we use the
previous separated solutions with m = O. Thus
u(p) = Ao + Bo lnp
To satisfy the boundary conditions, we must have
T} = Ao + Bo In PI
T2 = Ao + Eo In P2
Solving these simultaneous linear equations yields
T2 - TI lnpl
Eo = In(P2/PI) Ao = Tl - (T2 - T I ) In(P2/ PI)
The solution can be written in the form
In(p/ PI)
u(p) = TI + (T2 - Td In(P2/ PI)
= Tl In(P2/ p) + T2 In(p/PI)
In(fJ2/PI) In{P2/PI)
This example shows that the average temperature is not assumed at the average
= =
radius P ~(PI + P2) but instead at the geometric mean P (PIP2)1/2. Indeed,
U((PIP2P/2) = TI + ~(T2 - T 1 ) = ~(TI + T2)'
In many problems of practical interest, it is required to compute the steady-
state flux.
Tl (cp) and T2 (cp) are piecewise smooth functions that give the temperature on the
inner and outer cylinders. We will obtain the solution of Laplace's equation in
176 3. BOUNDARY-VALUE PROBLEMS IN CYLINDRICAL COORDINATES
the form
00
-2
1
1r
1" -11'
Tl(CP)dcp = Ao + Bolnpt
1111' T2(CP)dcp
21r -11' = Ao + Bo InP2
.!.111'
1r
Tl(CP) sin mcp dcp = p,,!:,Bm + PlmDm
-11'
m = 1,2, ...
.!.111" T2(CP) sin mcpdcp = pi Em +P2 mDm m = 1,2, ...
1r -11"
These simultaneous equations can be solved to obtain the coefficients Am, Bm,
Cm,Dm.
EXAMPLE 3.1.4. Solve Laplace's equation in the cylinder 1 < P < 2 with the
boundary conditions u(l,cp) = 0 and u(2,cp) = 1 if 0 < cP < 1r and u(2,cp) = -1
if -1r < cp < O.
3.1. LAPLACE'S EQUATION AND APPLICATIONS 177
boundary values uI(R, cp) = u2(R, cp) for -7r :s; cp :s; 7r. The function u = UI - U2
satisfies Laplace's equation V 2 u = 0 in the region 0 :s; p < R, with boundary
value u(R, cp) = O. We may apply Green's theorem i(M dx + N dy) = ff{Nx -
My)dx dy, where the line integral is taken over the circle p = R and the double
integral is taken over the disc p < R, with M = -uu y, N = uU x ' The line integral
178 3. BOUNDARY-VALUE PROBLEMS IN CYLINDRICAL COORDINATES
is zero, since u = 0 on the circle, while the integrand in the double integral is
Nx-My = (uux)x+(uuy)y = UU xx + (u x)2+uuyy + (Uy)2 = U(Uxx+Uyy )+ (u;+u;).
The first parenthetical term is zero since V 2 u = 0, and we are left with 0 =
ff(u; + u;)dxdy. Both u; and u; are nonnegative, and their integrals are zero;
hence they must both be zero. This means that u(x, y) must be a constant. But
u = 0 on the circle, which proves that Ul = u2-the desired uniqueness result.
3.1.6. Exterior problems. The separated solutions of Laplace's equation
can be used to solve boundary-value problems in the exterior of a cylinder. Sup-
pose that we wish to determine the solution u(p, <p) of Laplace's equation V 2 u = 0
for p > R satisfying the boundary condition u(R, <p) = T(<p) , a given piece-
wise smooth function. We require in addition that the solution be bounded:
lu(p, <p) I ::; M for some constant M; otherwise we may have nonuniqueness. For
example, the function UI (p, <p) = 1 + (p/ R) cos <p - (R/ p) cos <p satisfies Laplace's
equation in the exterior of the cy Hnder p > Rand Ul (R, <p) = 1. The function
U2(P, <p) == 1 also satisfies Laplace's equation with the same boundary values.
EXAMPLE 3.1.5. Find the bounded solution of Laplace's equation V 2 u = 0 in
the exterior p > R satisfying the boundary conditions u(R, <p) = 1 if 0 < <p < 1r,
u(R, <p) = -1 if -1r < <p < O.
Solution. To ensure boundedness, we take a sum of separated solutions of
the form 00
Bsin n<p), but n is no longer necessarily an integer. The allowed values of n will
depend on the wedge opening a and the nature of the boundary conditions that
are imposed at <p = 0, <p = (l'.
EXAMPLE 3.1.6. Find the solution of Laplace's equation in the wedge domain
o< p < 1, 0 < <p < (l' satisfying the boundary conditions u(p, 0) = 0, u(p, a) = 0
for 0 < p < 1, and u(l, <p) = 1 for 0 < <p < a.
Solution. For the separated solutions pn (A cos n<p + B sin n<p) the boundary
conditions at <p = 0 and <p = a require that A = 0, sin na = O. Therefore
n = m1r/a for m = 1,2,3, .... To satisfy the boundary condition at p = 1, we
3.1. LAPLACE'S EQUATION AND APPLICATIONS 179
try a sum of separated solutions: u(p, cp) = E:=1 B mpm7r jli sin mmp/a. We must
have 1 = 2::=1 Bm sin m7rcp/a, 0 < cp < aj therefore Bm = (2/m7r)[l- (-l)m].
The solution is u(p,cp) = (2/7r) E:=I[I- (_l)m]m-lpm7rjli sin m7rcp/a .
EXAMPLE 3.1.7. Find the solution of Laplace's equation in the cylinder 0 <
p < R and satisfying the Neumann boundary condition 8u/8p = 1 for 0 < cp < 7r
and 8u/8p = -I for -7r < cp < o.
Solution. The solution is sought in the form u(p, cp) = E~=lpn(An cosncp +
Bn sin ncp). The boundary conditions require that An = 0 and nRn- 1Bn =
(2/n7r)[1 - (_l)n]. The solution is
Ao = 2~ i:
the formulas for the Fourier coefficients, written with the integration variable ?jJ:
T(.p)d.p
R Am = ;rI1tr
m
-tr T() cos m d m= 1,2, ...
I1tr
RmBm = :; -tr T(?jJ) sin m?jJ d?jJ m=1,2, ...
u(p, '1') =~{ T(.p) [~+ ~ (~r cosm(.p - '1')] d.p, O~p<R.
The inner sum was evaluated in the exercises for Sec. 1.5, with the result
1 00 (p) m R2 _ ,;
2+ ~ R cosm(?jJ - rp) = 2[R2 + p2 - 2pRcos('l/; - cp)]
This gives the Poisson integral formula
(3.1.14)
~----------------------------------------------~
R2 _ p2
u(p, rp) = (21r)-1 J~7T R2 + p2 _ 2Rpcos('l/; _ rp) T(?jJ)d'l/; O~p<R
The Poisson integral formula has some important theoretical consequences for
solutions of Laplace's equation. We list these facts in the form of a proposition.
3. If u(Po, CPo) = max_ tr :5t/1:511'T(1fJ) for some Po < R, -1r ~ CPo ~ 1r, then
u(p, cp) is a constant for all 0 ~ p ~ R, -1r ~ cP ~ 1r.
3.1. LAPLACE'S EQUATION AND APPLICATIONS 181
EXERCISES 3.1
15. Find the solution u(p, cp) of Laplace's equation in the cylindrical region
1 < P < 2 satisfying the boundary conditions u(l, cp) == 0, u(2, cp) = 0 for
-7r < cp < 0 and u(2, cp) = 1 for 0 < cp < 7r.
16. Find the bounded solution of Laplace's equation in the exterior of the
cylinder P > R satisfying the boundary condition u( R, cp) = 3 + 4 cos 2cp +
5 sin 3cp, -1r ~ cp ~ 1r.
17. Let u(p, cp) be the bounded solution of Laplace's equation in the exterior of
the cylinder p > R with the boundary condition u(R, cp) = G(cp), a given
piecewise smooth function. Show formally that
1 111'
u(p, cp) ~ 21r -11' G(cp)dcp when p~ 00
18. Find the separated solutions of Laplace's equation in the wedge domain
o < p < 1, 0 < cp < 1r /2 satisfying the boundary conditions u(p, 0) = 0,
u(p, 1r /2) = O.
19. Use the separated solutions found in Exercise 18 to solve Laplace's equation
in the wedge domain 0 < p < 1, 0 < cp < 7r /2 with the boundary conditions
u(p,O) = 0, u(p, 1r /2) = 0 for 0 < P < 1 and u(l, cp) = 1 for 0 < cp < 7r /2.
20. Find separated solutions of Laplace's equation in the wedge domain 0 <
p < 1, 0 < cp < 1r satisfying the boundary conditions u",(p,O) = 0,
u!p(p,1r) = 0 for 0 < p < 1.
21. Use the separated solutions found in Exercise 20 to find the solution of
Laplace's equation in the wedge domain 0 < p < 1, 0 < cp < 7r satisfying
the boundary conditions u!p(p,O) = 0, u!p(p,7r) = 0 for 0 < p < 1 and
u(l, cp) = cp(1r - cp) for 0 < cp < 7r.
22. Let
In p -inpi
u(p) = TI + (T2 - Td I I
nP2 - npl
be the solution of Laplace's equation in the cylindrical region PI < p < P2.
(a) Show that u(p) ~ T2 if PI ~ 0 and p is a fixed number with
0< p ~ P2.
(b) Show that u(p) ~ Tl if P2 ~ 00 and p is a fixed number with
p ~ Pl
23. Let u(p, cp) be the solution of Laplace's equation in the cylinder 0 ~ p ~ R
with the boundary condition u(R, cp) = T if 0 < cp < 7r and u(R, cp) = 0 if
-1r < cp < O.
(a) Show that u(p,O) = ~T for 0 ~ p < R.
(b) Show that u(p,7r/2) = ~T+ (2T/7r) tan- I p/R for 0 ~ p < R.
24. Let u(p, cp) be a solution of Laplace's equation in the cylinder 0 ~ p < R
represented by the Poisson integral formula (3.1.14) with 0 ~ G(cp).
3.2. BESSEL FUNCTIONS 183
where h > 0 and T(<p) is a piecewise smooth function with Fourier series
00
(3.2.1) Iy" + (d - 1) ~ + ex - $) y = 0 I
The parameters are assumed to satisfy the restrictions d ~ 1, Jl ~ O. Because
of their typical origins, we call the parameter d the dimension, the parameter A
=
the eigenvalue, and the parameter Jl the angular index. The special case A 0 is
184 3. BOUNDARY-VALUE PROBLEMS IN CYLINDRICAL COORDINATES
3.2.2. The power series solution of Bessel's equation. The Bessel equa-
tion becomes singular at p = 0; therefore we cannot expect two linearly indepen-
dent solutions that remain bounded when p ~ O. There is always one solution
that remains bounded when p ~ O. To find it, we will follow the method of
Frobenius and look for the solution as a power series
00 00
In order for this to be equal to the series for - AY, the two series must agree,
term by term. The series for >..y begins with the power p'Y, while the above series
begins with p'Y-2. Therefore we must have
(3.2.5) o= ('Y('Y+d-2)-p,)ao
(3.2.6) o= ((l+'Y)('Y+d-l)-p,)al
(3.2.7) o = ((n+'Y)(n+'Y+d-2)-J.L)an+Aan-2 n=2,3, ...
We obtain a nonzero solution by taking
ao =f:. 0,
(3.2.8)
3.2. BESSEL FUNCTIONS 185
The exponent "'{ is nonnegative and is the largest root of the indicial equation
2) - /-L = 0, from (3.2.5). To determine an, n 2:: 2, we use the indicial
"'{("'{ + d -
equation to write
(n + "'{)(n + "'{ + d - 2) - /-L = n(n + 2"'{ + d - 2)
Thus (3.2.7) becomes
n(n + 2"'{ + d - 2)an + 'xan-2 = 0, n=2,3, ...
at = 0 requires a3 = 0 = as = ... , while
-,X
a2 = 2(d + 2"'{) ao
-,X -,X
2(d + 2"'{) 4(d + 2"'{ + 2) ao
( _,X)n
-2(~d-+-2-"'{-:-)4~(d-+-2",{-+"";"2-:-).-.-.2-n-:""(d":""'+-2"'{-+-2n----:"'2) ao n= 1,2, ...
We may check convergence of the series (3.2.9) by the ratio test. The ratio of
two consecutive terms is a2n+2p2n+2/a2np2n = -,Xp2/(2n + 2)(d + 2"'{ + 2n). For
any p this tends to zero when n ~ 00. Therefore the series (3.2.9) converges for
all p. By a similar use of the ratio test, it may be shown that the differentiated
series (3.2.3), (3.2.4) converge for all p. This convergence is uniform on all finite
intervals, and therefore we may differentiate the series term by term and verify
that (3.2.9) is a solution of Bessel's equation.
In case d = 2 and .Jii = m is an integer, there is a standard choice of ao,
which we shall adopt. From (3.2.8) we see that 'Y = m; therefore the formula for
a2n simplifies to
(3.2.10)
186 3. BOUNDARY-VALUE PROBLEMS IN CYLINDRICAL COORDINATES
for m > -1. This is often denoted by r(m + 1), the so-called gamma function.
Integration by parts shows
r(m+ 1) = I."" tme-'dt
= _ I."" t m d(e-')
= I."" tm-1e-'
m dt
= mf(m)
The fundamental property of factorials is preserved: (m + I)! = (m + l)m! for
m > -1. We now define the Bessel function Jm(x) for arbitrary m > -1 by
formula (3.2.10). The series converges for all x and is a solution of the Bessel
equation (3.2.1) with d = 2, ;\ = 1. The formula (3.2.11) is also valid for arbitrary
m> -1, since the factorials have the property (m + n)! = (m + n) (m + l)m!
for n = 0, 1,2, ... and arbitrary m > -1.
EXAMPLE 3.2.1. Find the power series solution of the Bessel equation with
d = 2, J.L = 0, ;\ > O.
Solution. In this case we have 'Y = 0,
(_A)n
a2n = 22n (n!)2 ao
The solution is
~ (-A)nao 2n
yep) =~ 22n(n!)2 p
(_I)n(pJX)2n
= ao t1
00
22n(n!)2
= aoJo(p/X)
EXAMPLE 3.2.2. Find the power series solution of the Bessel equation with
d = 3, J.L = 0, A > O.
The solution is
00 (->.) naOp2n
y(p)
= ~ (2n+ I)!
an 00 (_1)n(py'X)2n+l
= p../X ~ (2n + I)!
sinp~
= ao-~~
p~
In this example the solution of Bessel's equation is an elementary function .
In case d ;f; 2 the general solution (3.2.9) can be expressed in terms of the
standard Bessel function J m for a suitable value of m provided that>. > O.
PROPOSITION 3.2.1. Suppose that>. > O. Then the power series solution
{9.2.9} is related to J m by
where
d- 2 / (d - 2)2
m="Y+ -2- = YJ1.+ 4
Proof. With this choice of m, the denominator of (3.2.9) is
2(d + 2"Y)4 2n(d + 2"Y + 2n - 2) = 2(2 + 2m)4(4 + 2m) 2n(2n + 2m)
= 22nn!(1 + m)(2 + m) ... (n + m)
which is precisely the denominator of (3.2.10). The numerator is (->.rJ)n =
( -1)n (pVA)2n. Dividing by p'Y completes the identification .
In some problems we encounter Bessel's equation with>' < O. To treat such
problems, we define the modified Bessel junction by
The solution is
00 _2n
~ C-aO 2n
y = ~22n(n!)2 p
= ao1o(cp)
In other words, imJm(x) is the mth Fourier coefficient of the complex function
o~ eixcos (). Since we know that Jm is a real function, the imaginary part of this
integral is zero, and we can obtain an equivalent real form. For example, when
m = 0, we can write
Jo(x) = 27r
1 j7r cos(x cos 0) dO
-1r
For a fixed x, this series converges uniformly for -7r ~ 0 ~ 7r. When we multiply
by e- im9 , we still have uniform convergence, and we can therefore integrate term
by term, with the result
This integral was worked out in Sec. 1.5, where we found a nonzero value only
for m + n even, 0 ~ m + n ~ 2n, in particular n 2:: m. For fixed m, the nonzero
coefficients are obtained when n = m, m + 2, m + 4, . . .. Introducing a new
3.2. BESSEL FUNCTIONS 189
=
00 (ix)m+23
~ em + 2j)! 2m+23
1 (m + 2j)
j
00 (ix)m+23
= ~ 2m+21j!(m + j)!
m m
00 (2)3
-x
= z x L
3=0
2m +23 j!(m + j)!
= imJm(x)
This completes the proof of (3.2.12).
EXAMPLE 3.2.4. Show that IJm(x)1 ~ 1 for m = 0,1,2, ....
Solution. The function elXcosge-lmfJ has absolute value 1. Therefore the
integral (3.2.12) has absolute value no greater than 1.
We will now prove a differentiation formula. Beginning with the integral
where we have used the fact that the integral is real and the final integrand is an
odd function of (), -7r < () < 7r. Thus
(3.2.14) J~(x) = -J1 (x)
We now use integration by parts to find another useful formula, known as the
recurrence formula. From (3.2.12) we have
lm6 1f
= eix cos 6 _e-_._ 1 _ _1 171" eix cos 8x sin (}e -im8 dB
= --
x l -tm
1f
etX cos 6
-71' m_1T
e- t (m-l)8 - e- t (m+1)8
dB
m -'IT 2i
ix [27rim - 1Jm - 1(x) - 27rim +1 Jm +1 (x)J
=
2m
In the second line we have used periodicity to discard the first term. Therefore
we have the recurrence formula
(3.2.15) m=1,2,1
This formula allows us to compute Jm + 1 in terms of Jm and Jm - 1 Combining this
with (3.2.10) and (3.2.11), adding, and subtracting, we obtain the differentiation
formulas
(3.2.16) J:n(x) + m Jm(x) = Jm-1(x) m = 1,2, ...
x
(3.2.17) J:n(x) - m Jm(x) = -Jm+ 1(x) m = 0,1,2, ...
x
Using the integrating factors xm, these can be rewritten in the form
These formulas can be used to reduce certain integrals that occur in the
normalization of the Bessel functions. For example, with m = 1 we have
d
dx (xJd = xJo
Integrating this for 0 ~ x ~ R, we have
= V
" d -1,
[Yl + -p- Yl + (\/\ - J.L) Yl
p2 1+ 2v Yt + v Yl + -p-
I I d -1 (' Yl )
"
V
= 1+2[(~-lr+l'r
This is greater than or equal to 1, and hence the integral for v(p) diverges when
p~O.
To study this more precisely, we consider separate cases. If d = 2 and J.L = 0,
then 'Y = 0 and we have
dp
1
1
v(p) ,...., c - = -clogp
p p
192 3. BOUNDARY-VALUE PROBLEMS IN CYLINDRlCAL COORDINATES
(3.2.22)
X2 x 4p [ x2]
1- 4" + ~ 24p[(2p)!)2 1- 4(2p + 1)2
00
=
If 0 ~ x S 2, all of the terms in the summation are positive since
x 2 ~ 4 < 4(2p + 1)2 P = 1,2, ...
Therefore we have the inequality
x2
Jo(x) > 1- 4"
In particular Jo(2) > o.
On the other hand, we may write the series in the form
x2 X4 00 {X4P+2 X4P+4}
Jo(z) = 1- 4" + 64 - ~ 24P+2[(2p + 1)1]2 - 24.+4[(2p + 2)!)2
X2 X4 X4p+2 ( X2)}
= 1 - 4" + 64 - ~
00 {
~------~------~~------~~~----~~------x
or (ii) as A -7 +00. In either limiting case the Bessel equation resembles the sim-
ple harmonic equation y" + AY = 0, whose solutions are trigonometric functions
if A> O.
To see this in detail, we begin by removing the first derivative term in (3.2.1)
by defining the new function z(p) = p(d-l)/2 y (p). A straightforward computation
shows that z satisfies the differential equation
The second reduction consists of defining an amplitude A(p) and a phase 9(p) by
means of the equations
A'(p) Csin9(p)cos9(p)
(3.2.26) =
A(p) p2.J).
It will be shown that asymptotically 9(p) behaves as a linear function and A(p)
behaves as a constant function. This is embodied in the following proposition.
PROPOSITION 3.2.2.
1. Suppose that yep) is a solution of {3.2.1} with fixed parameters d ~ 1, Jl ~ 0,
A > 0, defined for p > O. Then there exist constants A oo , 900 so that when p --7 00
In particular,
U
~(u) du
The integral tends to a limiting value when p -t 00 with an error 0{1/ p), which
proves the asymptotic form of (J(p). Similarly, (3.2.26) is integrated to obtain
Proof. We note from (3.2.24) that the zeros of z(p) occur precisely when
sin(J(p = 0, or equivalently 8(p) = nTr for some n = 1,2, ....
196 3. BOUNDARY-VALUE PROBLEMS IN CYLINDRICAL COORDINATES
In case 1, we can solve the equation 8(Pn) = n7r, since P -+ O(p) is unbounded
when P -+ 00. From Proposition 3.2.2, the successive zeros satisfy
7r = 8(Pn+l) - (}(Pn)
= v'X(Pn+l - Pn) + 0(1/ p}
hence Pn+! - Pn -+ 7r /...;1, as required. In case 2, we note that (}(p, A) depends
continuously on A and increases to +00 when A -+ 00. Therefore we can uniquely
solve the equation (}(p, A) = n7r to uniquely determine An = An(P), The successive
zeros satisfy
7r = 6(p, An+!) - 6(p, An)
= VA
n+l(P - Po) - A(p - po) + 0(1/v'X)
from which the result follows .
Remark. The preceding method of proof yields precise information on the spac-
ing of the zeros of the Bessel function Jm(p). Setting A = 1, d = 2, J.L = m 2 , we
have C = m 2 - (1/4), and (3.2.27) reads
p
sin20(u)
O(p) - (}(Po) = (p - Po) - (m2
Evaluating this at two consecutive zeros Pn
- (1/4
pn +l sin2 (}(u)
Pn+l - Pn = 'Tr + (m2 - (1/4)
lPn U
2 du
In particular, if m 2 > 1/4, then Pn+l - Pn > 'Tr. If m 2 < 1/4, then Pn+l - Pn < 'Tr,
while if m 2 = 1/4, then Pn+1 - Pn = 'Tr. For example, the spacing between the
successive zeros of Jo(p) is less than 'Tr.
By specializing to the case d = 2, A = 1, we can state a result that summarizes
the computations.
PROPOSITION 3.2.4. The equation Jm(x) =0 has infinitely many positive
solutions {x n }, n = 1,2, .... They satisfy
lim
n-+oo
Xn = 00
lim (Xn+l - xn)
n-+oo
= 'Tr
In many problems it is important to have information about the zeros of
cos (j Jm(x) + sin (j xJ:n(x), where 0 < {j ::; 'Tr /2.
PROPOSITION 3.2.5. For any 0 < (j::; 'Tr/2, the equation cos{j Jm(x)+sin{jxJ:n(x)
has infinitely many positive solutions {x n }, n = 1,2, .... They satisfy
(3.2.29) lim Xn
n-+oo
= 00
(3.2.30) lim (xn+1 - x n)
n-+oo
= 'Tr
3.2. BESSEL FUNCTIONS 197
Proof. We use the phase plane representation JXJm(x) = R(x) sin 8(x),
(JXJm)'(x) = R(x)cos8(x). The equation cos{3Jm(x) + xsin{3J:n(x) = 0 is
equivalent to
1 - cot {3
(3.2.31) cot8(x) = .::..2_ __
X
From the graph of the cotangent function it is seen that (3.2.31) has a unique
solution Xn satisfying n7r < 8(xn) < (n+ 1)7r. Furthermore, 8(xn) -n7r --+ 0 when
n --+ 00. On the other hand, 8(xn+d - O(xn) = 7r + O(l/n). Combining these, we
have proved (3.2.29) .
3.2.7. Fourier-Bessel series. In many problems it is important to expand
a given function in a series of the form E:=l AnJm(XXn) , where m is a fixed
positive number and {Xn} are determined from a suitable boundary condition.
The boundary condition might be Jm(xn) = 0 or J:n(x n) = 0, or that some linear
combination of these equals zero. To study series of this type, we first derive the
orthogonality properties of the functions Jm(xxn).
PROPOSITION 3.2.6. Let {xn} be the nonnegative solutions of the equation
(3.2.32) cos{3 Jm(Xn) + sin {3xnJ:n(X n) = 0
where m ~ 0 and 0 ~ {3 ~ 7r /2. Then
2
+ 2cot2 2 {3)Jm(Xn)2
(3.2.35)
1 o
1 J {
m XXn
)2
x
dx _ (x; - m
-
Xn
Proof. If y(x) = Jm(xxn), then Y'(x) = xnJ:n{xxn). In this notation the
;1
iJ 0 <
(3
~
/
7r 2
equation for Xn becomes cos{3y{l) + sin (3y'(1) = O. The Bessel equation can be
rewritten in the form
(3.2.36) (xY')' + (xx~ _ :2) Y = 0
But (3.2.32) requires that the first term be zero; hence the second term is also
zero. But X;l - X;2
=1= 0; therefore we conclude that the integral is zero, which
was to be shown. Thus we have proved (3.2.33).
To compute the integrals (3.2.34), we multiply (3.2.36) by xy' to obtain
(3.2.37) [(xy')2], + (X~X2 - m 2)(y2)' = 0
Integrating (3.2.37) for 0 < x < 1 and integrating the second term by parts, we
have
(3.2.38)
One may note that the sum of the series will have the value /(0 + 0) at x = O.
It is important to note under what conditions we may have Xl = O. Since
y(x) = Jm(XXl) must be nonzero, this implies that 0 =I Jm(O), that is, m = O. We
must also have the boundary condition cos (3Jm (O) = 0, which requires f3 = 7r /2.
Conversely, the function y = JO(XXI) is a solution of the Bessel equation satisfying
the boundary condition cos {3Jo(xd + sin,BxI JMxt} = 0 if Xl = O. We record this
as a proposition.
n = 1,2, ...
To compute the first integral, we use (3.2.18) with m = 1. With the substitution
t = XX n, we have
The integral fol JO(xxn)2x dx was already shown to be ~Jl (xn)2, by (3.2.34). The
required expansion is
O<x<l
To compute the first integral, let t = XXn and use the formulas (3.2.1S)-(3.2.19)
in the forms (d/dt)(tJd = (tJo), (d/dt)(Jo) = -J1. Thus
from Example 3.2.5 and integration by parts. The second integral, Jo JO(xxn)2x dx,
1
1 - X2 -
-
sf: JO(xxn)
n=l X~J1 (xn)
0<x <1
= [p~.(X)(Xy')(x)dx
= - [ [xP'2n(x)J'y(x)dx
= [P2.-2(X)xY(X)dX
Therefore the Fourier-Bessel coefficients of P2n are obtained from those of P2n - 2
upon division by ,\ = x~. For example, beginning with the expansion
O<x<l
3.2. BESSEL FUNCTIONS 201
we have
O<x<1
O<x<1
EXAMPLE 3.2.7. Let f{x), 0 < x < 1, be defined by f(x) = 1 for 0 < x < ~
and f(x) = 0 for ~ < x < 1. Find the Fourier-Bessel expansion of f(x), 0 < x <
1, with m = 0, (3 = o.
Solution. The desired expansion is of the form f(x) = E::IAnJo(xxn),
where JO(xn) = O.
The coefficients are determined by orthogonality-leading to
101
An JO(xxn)2dx = I:
f(x)Jo{XXn)X dx = fo1/2 JO(XXn)X dx. The first integral
was evaluated in Proposition 3.2.6 as ~Jl (xn)2. To evaluate the second integral,
we make the substitution t = XXn and find
Thus
-1-
x~+2
f.x
0
n
t m+1 J (t)dt
m
1 m+l T ( )
= x m+2 xn "m+l Xn
n
1
= -Xn Jm + 1 (x n )
Hence An = 2/xnJm+1 (x n), and we have the expansion
Xm _- 2~
~
Jm(xxn) (m)
Xn = xn 0 < X< 1
n=l xnJm+1 (Xn)
1 - x 2 = 8 co t /Jf.l~
~ 2( 2
JO(xxn) 0<x <1
n=1 Xn Xn + cot2 /Jf.l) JO(Xn )
3.2.8. Implementation with Mathematica. In Mathematica the com-
mand for the Bessel function In(x) is BesseIJ[n,x]. For example, if we want to
obtain the power series expansion for Jo(x) at x = 0 up to and including terms
wi th x8, we can type
In[l]= Series[BesselJ[0,x],{x,0,8}]
to yield the output
2 4 6 8
x x x x 9
Out [1] 1 - -- + -- - --- + ------ + a[x]
4 64 2304 147456
3.2. BESSEL FUNCTIONS 203
Note that the odd terms are zero, so that we obtain only five nonzero coefficients
in this case.
The second linearly independent solution of Bessel's equation is denoted
BesseIY[n,x] in Mathematica. We can ask Mathematica to solve Bessel's equa-
tion of order 2 by typing
DSolve[ x~2 y"[x] + x y'[x] + (x~2-4)y[x]==O, y[x],x]
to yield the output
{{y[x]-> BesselY[2,x] C[l] + BesselJ[2,x]C[2]}}
Graphs of Bessel functions can be obtained using Mathematica in much the
same way that we plotted trigonometric functions and Legendre functions. In
order to obtain the available options, simply type ??Plot to obtain these options
together with their default values. For example, the option PlotPoints has a
default value of 25, but for a highly oscillatory function such as Js(x) the number
should be increased from 25 to 40. In order to obtain the plot shown in Fig. 3.2.2,
we type
Plot[BesselJ[5,x],{x,-50,50},PlotPoints->40]
The graphing capabilities of Mathematica can be effectively used to find the
zeros of Bessel functions. Let's find the first positive zero of J1 , which is the
smallest positive number that satisfies J 1 (x) = 0; call it xt. To begin, we define
a plot-valued function .ij by
jj[a_,b_]:=Plot[BesselJ[l,x],{x,a,b}]
204 3. BOUNDARY-VALUE PROBLEMS IN CYLINDRICAL COORDINATES
This shows that xtlies between 3.5 and 4. To obtain a more accurate estimate,
type .ii[3.5,4] to obtain the graph
0.1
0.05
-0.05
which shows that xtlies between 3.8 and 3.85. At the next stage we would type
.ii[3.8,3.85] and learn that xtis slightly more than 3.8317.
The asymptotic behavior of the Bessel function Jo(x) can be illustrated effec-
tively with Mathematica. From the results of chapter 6, it is found that
If we type
we obtain
0.4
0.2
-0.2
-0.4
One can also illustrate the Fourier-Bessel expansions with Mathematica, based
on the function
- {I if 0 ~ x ~ 1/2
J( x ) - 0 if 1/2 < x < 1
The Fourier-Bessel expansion was obtained in Example 3.2.7,
~ J 1 (x n /2)
f(x) = L...J J ( )2 Jo(X Xn)
n=l Xn 1 xn
where Xn is the nth zero of the Bessel function Jo(x). These can be obtained from
tables and incorporated as a list. For example, for the first 20 zeros, we write
X= {2.405, 5.520, 8.654, 11.192, 14.931,
18.011, 21.212, 24.352, 27.493, 30.635,
33.716, 36.972, 40.058, 43.200, 46.863,
49.482, 52.624, 55.766, 58.907, 62.049}
The kth zero is thus represented as X[[k]]. The nth partial sum of the Fourier-
Bessel series is descri bed as follows in Mathematica:
f[x_,n_]:=Swn[
BesselJ[l, Release[X[[k]]]/2] BesselJ[O, x Release[X[[k]]]]
/(Release[X[[k]]] BesselJ[l, Release[X[[k]]]]~2),{k,n}]
These partial sums are defined for all real values of x, despite the fact that the
original function is defined only on the interval 0 ~ x < 1. The following two
graphs are obtained by typing, respectively,
Plot[f[x,10],{x,-1,2},PlotPoints->40]
206 3. BOUNDARY-VALUE PROBLEMS IN CYLINDRICAL COORDINATES
and
Plot[f[x,20],{x,-1,2},PlotPoints->40]
0.75
0.5
0.25
-1 -0.5 0.5
-0.25
-0.5
0.75
0.5
0.25
-1 0.5 0.5
-0.25
-0.5
It is interesting to note that the partial sums oscillate more strongly in the
neighborhoods of x = 0 and x = 1/2 than elsewhere. The latter oscillations are
identical to those encountered with Gibbs' phenomenon in Chapter 1, where we
compute the partial sums of a Fourier series in the neighborhood of a disconti-
nuity. The oscillations near x = 0 are of a different character, related to a slower
rate of convergence of the series. At the points x # 0 the rate of convergence
is O(I/n), n ~ 00, whereas at x = 0 the rate of convergence can be shown to
3.2. BESSEL FUNCTIONS 207
J3 j2{X) =
{2 (Sinx
V;; -X- - cos x )
17. Let O(p) and A{p) be functions that satisfy the equations (3.2.25) and
(3.2.26). Show that z(p} = A-1/2 A(p} sin O(p) satisfies the equation z" +
[A - (C/p2)JZ = O.
18. Show that f~1r e,xcos8e-im8dO = f~1r e,xcos8eim9d,8 for m = 0,1,2, ....
208 3. BOUNDARY-VALUE PROBLEMS IN CYLINDRICAL COORDINATES
19. Use Exercise 18 and the integral representation of Jm(x) to show that
J~1r etXCOS8e,mOdO = 21t'i1mI Jlml(x) for m = 0, 1, 2, ....
20. Use Exercise 19 and the properties of complex Fourier series to show that
e lXcos () = E~oo i 1mI Jlml(x)e,m8.
21. Use Exercise 20 to show that
cos(X cos 0) = Jo(x) - 2J2(x) cos 20 + 2J4 (x) cos 40 ..
-sin(xcosO) = -2Jt (x) cosO + 2J3 {x) cos 30 - 2J5 {x)cos50 ...
22. Use Exercise 21 and Parseval's theorem to show that
00
1 = JO(X)2 +2 L Jm(X)2
m=l
35. Let y(p) be a solution of the Bessel equation (3.2.1). Define a new function
by z(p) = p-sy(pr), where r and 8 are constants with r > O. Show that
z(p) satisfies the differential equation
z"(p) + 28 + 1 + r(d - 2) z'(p)
p
2
+ [,xr 2P<s+2)(r-l) _ r m + 8
2 2
; r8(d - 2)] z(p) = 0
[Hint: Let t = pr, y(t) = ts/rz(t 1/ r) and express y'(t), y"(t) in terms of z,
z', z".]
3.3. The Vibrating Drumhead
As a first application of Bessel functions, we study the small transverse vibrations
of a circular membrane whose perimeter is fixed. This gives a mathematical
model of a drumhead and is closely related to the rectangular membrane that
was treated in Sec. 2.5.
3.3.1. Wave equation in polar coordinates. To be specific, suppose that
the drumhead occupies the disc x 2 + y2 ~ a2. Let u(x, Yi t) be the displacement
of the point (x, y) at the time instant t. By an argument entirely similar to the
derivation of the one-dimensional wave equation, it is seen that u(x, Yi t) satisfies
the partial differential equation
(3.3.1)
where c is a positive constant, expressible in terms of the mass, area, and tension
of the drumhead. The wave equation (3.3.1) is second order in time, and therefore
it is natural to specify two initial conditions:
(3.3.2) u(x, Yi 0) = Ul(X, y) if x 2 + y2 < a2
(3.3.3) Ut(x, Yi 0) = U2(X;Y) if x 2 + y2 < a2
These correspond to the initial position and velocity of the drumhead. Finally,
we have the boundary condition
(3.3.4) u(x, Yi t) = 0 if x 2 + y2 = a2.
This means that the perimeter of the drumhead is fixed during the motion. The
equation (3.3.1) and boundary conditions (3.3.4) are both homogeneousi therefore
we can immediately proceed to look for separated solutions of the wave equation.
To do this, we take polar coordinates x = p cos <p, Y = Psin <po By abuse of
notation, we let u(p, <Pi t) denote the displacement in polar coordinates. The
wave equation takes the form
Equations (3.3.8) to (3.3.10) are the ordinary differential equations whose solu-
tions describe the vibrating membrane.
First we treat (3.3.9). The membrane occupies the disc whose equation in
polar coordinates is 0 ~ p < a, -7r ~ cp ~ 7r. Therefore <P must be a smooth
periodic function.
<1>(-71') = <1>(7r)
<1>'( -7r) = <I>'(7r)
The general solution of (3.3.9) can be analyzed according to three cases. This is
a Sturm-Liouville problem with periodic boundary conditions, which will now be
solved. We have
Case 1: J.l > 0, <1>(cp) = A cos cp.jJi + B sin cpfo
Case 2: J.l = 0, <1>( cp) = A + Bcp
Case 9: J.l < 0, <1>( cp) = A cosh cpycp, + B sinh cpycp,
In case 1 the boundary conditions require that
A cos( -7r Vii) + B sin( -7rVii) = A cos 7r Vii + B sin 7r Vii
It'(p) 1 It(p) +
+P (m2)
A - p2 R(p) = 0
R(a) = 0
From the discussion of Bessel functions in Sec. 3.2, the solution is
R(p) = Jm(p...IA)
where A is chosen so that Jm(aVX) = O. Thus
a...IA = x(m)
n
where x~m) are the positive zeros of the Bessel function Jm. Finally the time
dependence is obtained by solving (3.3.8).
n=1 n =1 n =1
m=O m=l m=2
of a fixed fundamental frequency, as was the case for the vibrating string, where
we had separated solutions of the form
px(m) ctx(m)
u(p,<p;t) = EJm ( --;- (Amncosm<p+Bmnsinm<p)cos~
m,n
EXAMPLE 3.3.2. Find the solution of the vibrating membrane problem in the
case where U2(P, cp) = 0, Ul(P, cp) = a2 - 0 < P < a. r,
Solution. From Sec. 3.2 we have the Fourier-Bessel expansion
O<x<l
We see that Bmn = 0 for all m, nand Amn = 0 for m > 0, while Aan =
8a2/(X~O)3 J 1(x~O). The solution of the problem is
EXAMPLE 3.3.3. Find the solution of the vibrating membrane problem in the
case where U2(P, cp) = 0, Ul(P, cp) = J3(PX~3) fa) cos3cp.
Solution. In this case the initial data are already written as a Fourier-Bessel
series as in the previous example, with A31 = 1 and all other coefficients zero.
Therefore the solution of the problem is
(3) d (3)
u(p, cp; t) = J3 ( P; cos3cp cos ~
214 3. BOUNDARY-VALUE PROBLEMS IN CYLINDRICAL COORDINATES
uu[m_,x_,t_]=CylindricalPlot3D[u[m,x,rho,phi,t],
{rho,0,1},{phi,0,2Pi,Pi/15}, boxed->False]
Then the three-dimensional nodal plots corresponding to Fig. 3.3.1 and Fig. 3.3.2
are generated by the commands
EXERCISES 3.3
1. Suppose the drumhead is under the influence of gravity. The wave equation
takes the form
Find the steady-state solution of the form u = U(p) that satisfies the
boundary condition U (a) = O.
2. Let f (<p) = A cosh <pA + B sinh <pA, f.L < O. Show that if f satisfies
the boundary conditions f(O) = f(21r), 1'(0) = 1'(21r), then A = B = O.
3. Sketch the drumhead profiles for n = 3, 4.
4. Find the solution of the vibrating membrane problem in the case where
Ul(P,<P) = Fl(P), U2(P,CP) = o.
5. Find the solution of the vibrating membrane problem in the case where
Ul(P, <p) = 0 and U2(P, <p) = F2(P)'
6. Find the solution of the vibrating membrane problem in the case where
Ul(P,<P) = 0 and U2(p,<P) = 1, 0 < P < a.
7. Find the solution of the vibrating membrane problem in the case where
Ul(P, <p) = 0 and U2(p, cp) = a2 - I, 0 < P < a.
8. Find the solution of the vibrating membrane problem in the case where
Ul(P, <p) = 0, U2(P, <p) = J3(PX~3) la) cos3cp.
9. Consider a membrane in the shape of a half-circle 0 $ cP $ 1r, 0 $ P $ a.
Show that the separated solutions of the wave equation with zero boundary
conditions have the form
EXAMPLE 3.4.1. Find the solution of the heat equation in the infinite cylinder
o ~ p < Pmax1 satisfying the boundary condition u(Pmax, 'P; t) = 0 and the initial
condition u(p, <Pi 0) = !(p, 'P).
separated solutions are Jm(pv'X)(A cosm<p+ B sin m<p)e->'Kt. The boundary con-
dition requires that Jm(Pmaxv'X) = OJ thus Pmaxv'X = x~m), a positive zero of the
Bessel function Jm . The solution takes the form
Kt]
u(p, <Pj t) =L
m,n
Jm - -
( px~m)
Pmax
(Amn cos m<p + Bmn sin m<p) exp
[_(X~m)2
,.2
Pmax
To satisfy the initial condition, we must have
EXAMPLE 3.4.2. Find the solution of the heat equation in the infinite cylinder
o ~ P < Pmax satisfying the boundary condition u(Pmax, <p; t) = 0 and the initial
condition u(p, <pj 0) = 1. Find the relaxation time.
Solution. We use the method of the previous example with f(p, <p) = 1. In
this case, we use the Fourier-Bessel expansion
= 2 ~ JO(xxn) = 2 ~ Jo(pxnI Pmax)
1 L....J ( L....J () 0 < P < Pmax
n=1 Xn J l xn) n=1 xnJ. Xn
where JO(xn) = 0 and we have made the substitution x = piPmax. Therefore the
solution of the initial-value problem is
For each t > 0, the series for u, uP' uPP ' Ut converge uniformly; hence U is a
rigorous solution. When t ~ 00, the solution tends to zero, the steady-state
solution. The relaxation time can be computed from the first term of the series.
. -1 In 1U (P;<Pjt )1
1 = hm
-- x~K
= ---
T t-+oo t P~ax
EXAMPLE 3.4.3. Find the solution of the following heat equation in the infi-
~ P < Pmax:
nite cylinder 0
Solution.
Stage 1. To find the steady-state solution, we try U = U(p), independent
of cp (since the boundary condition is independent of cp). We obtain the ordi-
nary differential equation K[U" + (1/ p)U'] + (J = 0 with the boundary condition
U(Pmax) = T 1 The general solution of the equation is U = -(Jr /4K +A+B logp.
We must have U(Pmax) = Tb U(O) finite; hence B = 0, A = Tl + (JP-:nax/4K).
The steady-state solution is
= EAnJo (pxn)
n=l Pma:x
< < P Pmax
where
An Td/xn - 2arma:x/Kx~
= 2(T2 - n = 1,2, ...
J1 (xn)
The solution of the original problem is therefore
PXn Xn t
u(p, p; t) = U(p) + LAnJo
00 ( - ) exp [2K
- - 2 -]
n=l Pmax Pmax
Stage 4. For each t > 0, the series for u, uP' u pp , Ut converge uniformly for
~ P ~ Pmax; hence U satisfies the heat equation.
Stage 5. If Al =1= 0, the relaxation time is given by the first term of the series:
'T = P~ax/(x~K) .
The next example illustrates the possibility of boundary conditions that in-
volve radiation of heat to the exterior of the cylinder.
EXAMPLE 3.4.4. Find the solution of the following heat equation in the infi-
nite cylinder 0 ~ P < Pmax:
U( P) -- ,." a Pmax k a ( 2 2)
J.l + 2hK + 4K Pmax - P
3.4. HEAT FLOW IN THE INFINITE CYLINDER 221
v = v(p; t) = ~
LJAnJo ( -
PXn
-) exp [X2
- ,:;Kt]
n=l Pma:x Pinax
To satisfy the initial condition, we must have
The Fourier coefficients {An} are obtained from the Fourier-Bessel expansion of
Example 3.2.9 with cot /3 = hpma:x/ k.
__ 2kpmax ~ JO(XXn)
1 LJ O<x<l
h n=l [x~ + (hPmax/ k )2]JO(xn)
1 - X2 = 8kPmax f JO(XXn)
h n=l x~[x~ + (hPmax/ k )2]JO(xn)
0<x <1
u(p; t) = U(p) + ~
L.JAnJO ( -PXn ) exp [x2
-~ K t]
n= 1 Pmax Pmax
Stage -4. For t > 0, the series for
u, uP' u PPl and Ut converge uniformly for
o :::; P :::; Pmax.
Hence u is a rigorous solution of the heat equation.
Stage 5. When t ~ 00, U(Pi t) tends to U(p), the steady-state solution. The
relaxation time T = p~axlx~K, where (k/Pmax)XIJ~(xd +hJO(Xl) = 0, Al # 0.
radius /12. To solve problems of this type, we need both solutions of Bessel's equa-
tion. We consider the following initial-boundary-value problem:
Ut = KV 2u t > 0, PI < P < /12, -7r ~ cp ~ 7r
u(pr, cp; t) = TI t > 0, -1r ~ cp ~ 7r
U(P2, cp; t) = T2 t > 0, -1r ~ cp ~ 7r
u(p, cp; 0) = 1(p, cp) PI < P < P2, -1r ~ cp ~ 1r
The eigenfunctions R';: are orthogonal with respect to the weight pdp for different
values of n, meaning that
p2
lPI
u:..~pdp=O
3.4. HEAT FLOW IN THE INFINITE CYLINDER 223
~ M2 !.P2 pIRn(p)ldp
PI
~ M2 ( p~ -2 PI) 1/2
where we have used Schwarz's inequality for integrals and the normalization
f~2 R",(p)2pdp = 1. Therefore the terms of the series L:::IAnRn(p)e- An Kt
are bounded by the terms of the series M3L~=1(e-at)n, a = 7rK/(P2 - PI),
M3 = M2 (1 + P2/ pd 1/ 2 Likewise the series for up, u PP ' and Ut are bounded
by convergent numerical series and hence are uniformly convergent.
Stage 5. When t --+ 00, the solution u(p, <Pi t) tends to the steady-state solu-
tion U(p). To compute the relaxation time, we again restrict attention to radially
symmetric solutions, where Amn = 0 for m -::/: 0 and Bmn = O. In this case the
eigenvalues {An} have been tabulated numerically for various values of the ratio
pd{J2. The following table lists some representative values. 2
2Milton Abramowitz and Irene A. Stegun, Handbook of Mathematical Functions, Dover
Publications, New York, 1972, p. 415.
224 3. BOUNDARY-VALUE PROBLEMS IN CYLINDRICAL COORDINATES
For example, if PI = 3, P2 = 5, then we can read from the second line of the table
that A~ ~ 2.45, Ag ~ 9.86, Ag = 22.18. The relaxation time can be obtained from
the first term of the series for u(p; t); thus AIKr = 1. For example, if PI = 3,
P2 = 5, then T = 1/2.45K = 0.41/ K to two decimal places.
3.4.4. Implementation with Mathematica. We can use Mathematica to
numerically determine the eigenvalues of the heat flow problem in an annular
region. We begin with the separated solutions
u(p,cp;t) = R(p)(Acosmcp+ Bsinmcp)e- AKt
where
R(p) = R(p, A) = Jm(pv'X)Ym(PI v'X) - Jm(Pl v'X)Ym(pY'A)
The eigenvalue A must be chosen so that R(P2, A) = O. This requires that
Jm(/J2v'X)Ym(Pl v'X) - Jm(PI v'X)Ym(P2v'X) = 0
In order to render this in Mathematica, we consider the example PI = 3, P2 = 5.
We define
To determine the first three eigenvalues, we look for the first zero corresponding
to m = 0, 1, 2. To determine the numerical values, we can use Mathematica's
FindRoot command:
In[2]:=eigs=Table[FindRoot[a/.m->i,{p,1}],{i,O,2}]
Out[2]={{p->1.56569},{p->1.58602},{p->1.64543}}
3.4.5. Time-periodic heat flow in the cylinder. It is also possible to
find solutions of the heat equation in the infinite cylinder corresponding to a
time-periodic boundary condition, as we did for the slab in Sec. 2.1. Specifically,
we have the boundary-value problem
solution of the heat equation in the cylinder with v(a; t) = 0 for all t. But any
solution is represented as
00
v(p; t) =L An JO(pxn/a)e->.nKt
n=l
EXERCISES 3.4
5.
and the initial condition u(p, pj 0) = T2(1 - r/ rmax)
Find the separated solutions of the heat equation Ut = KV 2u in the infinite
half-cylinder 0 5 P < Pmax, 0 < p < 1r satisfying the boundary conditions
u(p, OJ t) = 0, u(p, 1rj t) = 0, u(Pmax, pj t) = O.
6. Find the solution of the heat equation Ut = KV 2 u in the infinite half-
cylinder 0 5 P < Pmax, 0 < p < 1r satisfying the boundary conditions
u(p, 0; t) = 0, u(p, 7r; t) = 0, u(Pmax, p; t) = 0 and the initial conditions
u(p, pj 0) = f(p).
7. Consider heat flow in the region PI < P < P2 with PI = 3 cm, P2 = 15 cm.
The boundary conditions are Tl = OC, T2 = 100C. Find the steady-state
solution and the relaxation time.
8. Consider heat flow in the cylinder 0 ~ P < 2, where the surface P = 2 is
maintained at 100C. At t = 0, we have U = 0 for 0 ~ P < 1 and u = 50C
for 1 ~ P < 2. Find the solution U = u(pj t) for all t > 0, 0 ~ p < 2. (Hint:
Use the method of Example 3.2.7.)
9. Consider the heat flow in the cylinder 0 ~ P < R, where the surface p = R
is insulated, 8u/8p = 0 at P = R. Find the separated solutions of the heat
equation that satisfy this boundary condition. Solve the problem in the
case where u(p; 0) = 100C. (Hint: Xl = 0 from Proposition 3.2.7.)
10. Find the solution u(p, pj t) of the heat equation Ut = KV 2u in the infinite
half-cylinder 0 ~ P < Pmax, 0 < p < 1r satisfying the boundary conditions
3.5. HEAT FLOW IN THE FINITE CYLINDER 227
u, = KV u = K ( u pp + ~ up + ~ u'I'P + un)
2
(3.5.2)
Type I: V 2 u = 0, U = 0 on z = 0, U = 0 on z = L.
Type II: V 2 u = 0, U = 0 on z = 0, U = 0 on P = Pmax.
Type III: V 2 u = 0, u = 0 on z = L, U = 0 on P = Pmax.
The type I solutions are zero on the upper and lower circular faces of the cylinder.
The solutions of type II are zero on the lower circular face and also on the
curvilinear boundary, while the solutions of type III are zero on the upper circular
face and on the curvilinear boundary. See Fig. 3.5.1. The general solution of
Laplace's equation in the finite cylinder can be represented as a sum of solutions
of these three types:
U = Uf + UI/ + UI/f
We now find the separated solutions of Laplace's equation of types I, II, and III.
Type 1. In this case the function Z (z) must satisfy the ordinary differential
equation (3.5.5) with the boundary conditions Z(O) = 0 = Z(L). This is a
3.5. HEAT FLOW IN THE FINITE CYLINDER 229
u:::::O u:::::O
,- ..... .....
'"
~ 1'00.. -'
(
- ~
u:::::O u:::::O
u:::::O u-:;;;O
Sturm-Liouville eigenvalue problem that has been solved previously, with the
eigenfunctions and eigenvalues
Z(Z) = sin(k1rz/L), II = (k1r/L)2 k = 1,2, ...
Referring to (3.5.8), we see that 7 = -II = -(k1r / L)2 and therefore R(p) must
be a solution of the Bessel equation
whose general solution apart from a constant is the modified Bessel function
m = 0, 1,2 ...
Hence we have the general separated solution of type I:
(3.5.9) U I (p, tp, z) = 1m (k1r P/ L) (Am cos mtp + Bm sin mtp) sin (k1r Z / L )
Type II. In this case the function R(p) must satisfy the Bessel equation (3.5.6)
with the boundary conditions R(Pmax) = O. The general solution apart from a
constant is
m= 0,1,2, ...
where Xn is a zero of the Bessel function Jm and where we make the identification
7 = (xn/ Pmax)2 and hence from (3.5.8) II = -7 = -(xn/ Pmax)2. Returning to
(3.5.5), we see that Z(z) must satisfy this ordinary differential equation with the
boundary condition Z(O) = O. Apart from a constant, the general solution can
be written as
Z(z) = sinh(zv'=il) = sinh(xnz/ Pmax)
230 3. BOUNDARY-VALUE PROBLEMS IN CYLINDRJCAL COORDINATES
EXAMPLE 3.5.1. Find the solution of Laplace's equation in the finite cylinder
o< z < L, 0 < P < Pmax satisfying the boundary condition that U = 1 for
P = Pmax and U = 0 for z = 0, z = L.
Solution. We use the separated solutions of type 1. Since the boundary
conditions are independent of !p, it suffices to take m = O. A general sum of
separated solutions of type I with m = 0 is written
00
This is a Fourier sine series for the function fez) = 1,0 < z < L, whose expansion
is
1= i L sin{k1fz/L)
1f leodd k
3.5. HEAT FLOW IN THE FINITE CYLINDER 231
which allows one to solve for the coefficient Ak and obtain the solution of Laplace's
equation
( ) 4 E sin(k7rz/L)Io(ktrp/L)
u p, Z =;. kodd k 10 (k7rPmax/ L)
EXAMPLE 3.5.2. Find the solution of Laplace's equation in the finite cylinder
o < z < L, 0 < P < Pmax satisfying the boundary condition that u = 1 for z = L
and u = 0 for z = 0, P = Pmax.
Solution. We use the separated solutions of type II. Since the boundary
conditions are independent of tp, it suffices to take m = O. A general sum of
separated solutions of type II with m = 0 is written
00
n=l
In order to satisfy the boundary condition at z = L, we must have
00
These may be used to solve various initial-value problems for the heat equation
with zero boundary conditions.
EXAMPLE 3.5.3. Solve the heat equation Ut = KV 2u in the finite cylinder
o < Z < L, 0 ~ P < Pmax with the initial conditions u(p, <p, Zj 0) = 1 and the
boundary conditions that u = 0 on the top, bottom, and lateml boundaries of the
cylinder. Find the relaxation time.
Solution. Since the boundary conditions are independent of <p, we look for
a solution with m = O. The general sum of solutions of this type is written
u(p, Zj t) = E AknJO(PXn/Pmax) sin (ktrz/ L)e-A1cnKt
k,n
The initial conditions require that
1= E AknJo(PXn/Pmax) sin (k7rz/ L)
k,n
This is a Fourier sine series for the function 11 (z) = 1, multiplied by a Fourier-
Bessel series for the function h (p) = 1. The appropriate expansion is
1= ~ E sin(k7rz/ L) JO(pxn/ Pmax)
7r kodd ,n~l kXnJI (xn)
so that the solution of the heat equation is
sin(ktrz/L) Jo(pxn/Pmax) -AL Kt
U (p, Zj t ) = -8 "
L...J e ..n
7r kodd,n~1 kxnJ I(xn)
The relaxation time T is found from the first nonzero term of the series; thus
AllKr = 1, r- 1 = KAu = K ({7r/L)2 + (xtfPmax)2)
3.5.4. General initial-value problems for the heat equation. We can
combine the methods of the previous two subsections to treat a general initial-
value problem for the heat equation in the finite cylinder, with nonhomogeneous
boundary conditions. This has the form
(3.5.12) Ut = KV 2u+r
u{p,cp,O,t) = T1{p,cp)
u(p, cp, L; t) = T2 (p, <p)
u(Pmruo cp, z; t) = T3{Z, cp)
u(p, <p, z; 0) = I(p, cp, z)
Note that we have included a source term, as well as the most general nonho-
mogeneous boundary conditions. The analysis proceeds by means of the five-
stage method. In stage 1 we find a steady-state solution; the function Uo(p) =
3.5. HEAT FLOW IN THE FINITE CYLINDER 233
(r / K) (rrnax - 1') can be used to replace the source term by r = 0, at the ex-
pense of changing the initial and boundary conditions. Then we solve Laplace's
equation with the new boundary conditions to obtain the steady-state solution
U(p, <p, z). In stage 2 we define v(p, <p, Z; t) = u(p, <p, Z; t) - U(p, <p, z), which sat-
isfies the heat equation with r = 0 and with zero boundary conditions. This is
written as a sum of separated solutions:
v(p, <p, Z; t) =
L Jm(pxn/Pmax)(Akmn cosm<p + Bkmn sin m<p) sin (k1rz/ L)e-).lcmn Kt
k,m,n
The coefficients A kmn and Bkmn are determined by expansion of the function
f(p, <p, z) - U(p, <p, z) =
L Jm(pxn/ Pmax) (Akmn cosm<p + BkmrJ3in m<p) sin(k1rz/ L)
k,m,n
This gives the formal series solution of the problem
u(p, <p, z; t) = U(p, <p, z) + v(p, <p, z; t)
Stage 4 consists of verifying that the series that define U,Ut, u z , U zz , uP' uPP ' U""
u!ptp are uniformly convergent and thus U is a smooth function of (p, <p, z, t) that
satisfies the heat equation. Stage 5 consists of the asymptotic analysis:
u(p, <p, z; t) - U(p, <p, z) = O(e-).lllKt) t ---* 00
For large time the solution tends to the steady-state solution and the relaxation
time T is given by the first nonzero term of the series, AU1Kr = 1, provided that
the corresponding Fourier coefficient is nonzero.
EXERCISES 3.5
1. Find the solution u(p, <p, z) of Laplace's equation V 2u =
0 in the finite
cylinder 0 ~ P < Pmax, 0 < z < L satisfying the boundary conditions
u(Pmax,<P,z) = 0 for -1r ~ <p ~ 1r, 0 < Z < L; u(p,<p,O) = 1 for 0 ~ P <
Pmax, -7r ~ <p ~ 7r; u(p, <p, L) = 0 for 0 ~ P < Pmax, -1r ~ <p ~ 1r.
2. Find the solution of Laplace's equation in the finite cylinder 0 ~ P < Pmax,
o < z < L satisfying the boundary conditions u(Pmax, <p, z) = 0 for -1r ~
<P ~ 1r I 0 < z < L; u(p, <p, 0) = Tl for 0 ~ P < Pmax, -'Ir ~ <p ~ 'Ir;
u(p, <p, L) = T2 for 0 ~ P < Pmax, -'Ir ~ <p ~ 'Ir.
3. Find all of the separated solutions u(p, <p, z) of Laplace's equation V 2 u = 0
in the finite cylinder 0 ~ P < Pmax, 0 < z < L satisfying the boundary
conditions u(p, <p, 0) = 0 = uz(p, <p, L) for 0 ~ P < Pmax, -1r ~ <p ~ 'Ir.
4. Find the solution u(p, <p, z) of Laplace's equation V 2 u = 0 in the finite
cylinder 0 ~ P < Pmax, 0 < z < L satisfying the boundary conditions
u(p, <p, 0) = 0 = uz(p, <p, L) for 0 ~ P < Pmaxl -'Ir ~ <p < 'Ir; U(Pmaxl <p, z) =
1 for -'Ir ~ cp :::; 'Ir, 0 < z < L.
234 3. BOUNDARY-VALUE PROBLEMS IN CYLINDRICAL COORDINATES
BOUNDARY-VALUE PROBLEMS IN
SPHERICAL COORDINATES
INTRODUCTION
~(X. y. z)
/1
I I
I I
,
I
I
y
x
FIGURE 4.1.1 Spherical coordinates.
It remains to compute up. From the chain rule for partial derivatives, we have
ar 80 8cp
up = ur8p +U8 ap +utp8p
The transformation from cylindrical coordinates to spherical coordinates gives
r = (p2 + Z2)1/2, fJ = tan- 1 p/z, cp = cp. From this it follows that 8r/8p = piT,
8fJ/8p = (cosfJ)/r, 8cp/8p = O. Substituting these in the equation for up, we have
p cos 0
up = U r -r + U or- -
Substituting this into (4.1.4) and rearranging yields the result
2 1 2
(4.1.5) V 2u = Urr + - Ur + "2 (uoo + cot 0 Us + csc fJ utptp)
r r
This is the required formula.
EXAMPLE 4.1.1. Compute V 2(X2 + y2 + z2)5/2.
Solution. If we were to use the definition of V2, this would be a tedious
computation. Noting that the function is expressed in spherical coordinates as
r 5 , we have
V 2 (r5 ) = 20r 3 + ~ 5r 4
r
= 30r3
Taking spherical coordinates, we look for the solution in the form u = u(r; t).
Thus we must have
Thus Wt = rUt, Wr = rUr + U, Wrr = rUrr + 2ur Multiplying the heat equation
by r and making these substitutions, we have
(4.1.7) Wt = KW rr < t < 00, 0
- 00 ~ r<a
w(a; t) = auo(t) -oo<t<oo
w(O; t) =0 -oo<t<oo
The final boundary condition comes from the fact that the temperature at the
center of the sphere must be finite for all time.
The result of the above transformations is to reduce the three-dimensional
spherically symmetric heat flow problem to a one-dimensional heat flow problem
in a slab with zero tempemture on one face. 1 This problem can be solved by
looking for complex separated solutions
w(r; t) = elWte"Yr
Substituting in the heat equation (4.1.7), we find that "l = iw/ K; hence 'Y =
v'w/2K(1 + i), which yields the complex separated solutions
e -cr e,(wt-cr) ,
C=J2~
To match the boundary conditions, we assume that uo(t) has been expanded as
a Fourier series.
~( 27rnt . 27rnt)
Uo(t) = Ao+ ~ AncOST+BnSlnT
L
00
= O'.n e2'1nnt/T
n=-oo
Therefore it suffices to solve the problem with uo(t) = e2wt and to take the real
and imaginary parts. For this we try a linear combination of complex separated
solutions
w(rj t) = C 1e- cr e'(wt-cr) + C 2e cr e,(wt+cr)
The boundary conditions at r = 0 and r = a require that
o = C 1ewt + C 2e IWt
ae wt = C 1e- ca e l (wt-ca) + C 2 e ca e,(wt+ca)
Thus C 1 + C 2 = 0, a = C 1e-cae-'ca + C2ecaeica. Solving these two equations
simultaneously and simplifying, we have
. ec(I+i)r _ e-c(lH)r
W - ae lWt ---,--....,..-----:--......,.,..-
(r',t)- e c(1+I)a _ e-c(I+i)a
IThis general principle applies to all the applications discussed in this section.
4.1. SPHERICALLY SYMMETRIC SOLUTIONS 239
where c = VwI2K. To find u(O; t), we may appeal to L'Hospital's rule to take
the limit when r -+ O. Thus
u ( 0; t ) = r-.O
(
hm u r; t =
)
Ao + aA I Re e
lWt 2c(1 +_i)(1+ )
eC(1+ t )a _ e c t a
This is exactly the solution we found in Sec. 2.1, Example 2.1.3 for the flat earth.
Hence we see that, for shallow depths, the earth's surface can be assumed flat. To
make a numerical estimate, note that the solution (4.1.9) differs from the solution
(4.1.10) in two respects: (i) the factor air and (ii) the exponential terms in the
numerator and denominator of the final fraction. Assuming the approximate
values a = 6400 km, z = 1.6 km, K = 2 X 10- 3 cm, T = 3.15 X 107 s, we have
c = vwl2K, cr = 1.02 X 107 , so that e- cr is negligibly small. On the other hand,
air = 0.99974, so that if we replace air by 1, we incur less than 0.1 percent error
in the solution.
This concludes the discussion of the time-periodic solutions of the heat equa-
tion.
240 4. BOUNDARY-VALUE PROBLEMS IN SPHERICAL COORDINATES
This is a one-dimensional problem for heat flow in a slab, for which we know the
separated solutions:
(4.1.13)
The coefficients Bn can be obtained by setting t = 0 and using the formulas from
Fourier series. Thus,
1~ . n1fr
(4.1.14) f(r) = Tl + - L,Bn sm- O<r<a
r n=l a
Bn = -2 J.a .
r[f(r) - T t ] sm -n1f'r dr n= 1,2, ...
a 0 a
If f(r), 0 ~ r < a, is piecewise smooth, the series (4.1.13) converges for 0 ~ r ~ a
and u satisfies the heat equation, initial conditions, and boundary conditions.
The relaxation time can be found by taking the first term of the series; thus
T = a /tr K if Bl =fi O.
2 2
4.1. SPHERICALLY SYMMETRIC SOLUTIONS 241
Bn =
2(T2 - T 1 ) /.4 . rSln- r
n7rr d
a 0 a
These integrals were computed in Example 1.1.1, with the result
2
-
/.4 rsm-dr=
. (_l)n+l
n7rr
-
2a
a 0 a n 7r
Therefore, from (4.1.13), we have the solution
2a(T2-Td~(-1)n+l. n7rr -(n1r/a)2Kt
U (r; t ) = T1 + ~ sm - e
7rr n=l n a
At the center we have
00
time is r = 1/1.18 = 0.85, to two decimals. For t = 5, the first term of the series
is 0.0027 and the remaining terms are less than 10- 11 This leads to the estimate
u(O; t) = 0.54. For t = 1, the first two terms of the series are 0.3073 - 0.0089
and the remaining terms are less than 10-4 This leads to the estimate u(O; 1) =
59.68, to two decimal places. For t = 0.1, the first five terms of the series are
0.8887 -0.6237+0.3458-0.1514+0.0523 = 0.5117. If we use this to estimate the
temperature, we have u(Oj 0.1) = 102.34, to two decimals, a physically unrealistic
result. To obtain a more realistic result,. we may average the fourth and fifth
partial sums of the series. This leads to the estimate u(O; 0.1) = 97.11, to two
decimals .
242 4. BOUNDARY-VALUE PROBLEMS IN SPHERICAL COORDINATES
At the end of this section we will discuss in some greater detail the preceding
convergence problems.
where h > 0, k > 0, and f(r),O ::; r < a, is a piecewise smooth function. The
initial and boundary conditions are independent of (8, cp), and therefore we may
expect the solution in the form u = u(r; t). Letting w(r; t) = ru(r; t), we have
Wt = rut, Wr = rUr + u, Wrr = rU rr + 2ur = rV u. We multiply the equations
2
ur3
W(r) = -6K +A+Br
= 3K
h[W(r) - rTd = h (Br - :~ - rTI)
Therefore B is determined by the equation
= !
2
(a _sin2a~)
2~
The Fourier coefficients An can be obtained using these relations. Thus by setting
t = 0 in (4.1.18), multiplying by sin rA, and integrating, we have
EXAMPLE 4.1.4. Find the Fourier coefficients in the case where f(r) = T21 a
constant.
a
l
o rsin r..J5..dr = A
6sina/>.
/>.
6acosa/>. 2a2 sin aVA
l 2
o r(a - r2) sin n/Xdr = A2 A3/2 A
We substitute these in the above formulas and use the relation a/>. cot aVA =
1 - ha/k, with the result
where the steady-state solution U(r) = (0" /6K)(a 2 -r2 )+T1+O"ak/3Kh; the eigen-
values {An} are determined from the transcendental equation a~ cot a~ =
1- ha/k, and the Fourier coefficients {An} are obtained from (4.1.19). We have
An = 0(1) and a";>:;; = n1r + 0(1) when n ~ 00. Therefore for each t > 0,
the series (4.1.20) and the differentiated series for 'Ur, U rr ' and Ut all converge
uniformly for 0 ~ r ~ a. Thus u(r; t) is a rigorous solution of the heat equation.
Stage 5. When t ~ 00, the solution u(r; t) tends to the steady-state solution
U(r). We use the method from Chapter 2 to estimate the rate of approach; thus
1 00
;:LAn sinrAe->'n Kt = O(e->'lKt) t ~oo
n=l
(0.1)
'\3
Case 3 -------- y =1- kha > 0
C~e2~---+=---~--~~--~--~~---x=aiX
2.
(5 0)
y=l-": =0
Case 1
The heat equation can be used to study the cooling of an apple placed
into a refrigerator. Assuming a perfect sphere of radius a = 2 in, diffusivity
K = 0.720 in2/h, and Biot modulus hal k = 1.0, we have, for the first eigen-
value a.;A; = 7r/2, .;>::; = 0.7854 and the relaxation time r = 1/A 1K =
1/(0.720)(0.7854)2, about 2 hours. From this we expect that within 10 hours
the apple will be within 1 percent of the ambient refrigerator temperature, rela-
tive to its initial temperature.
4.1. SPHERICALLY SYMMETRIC SOLUTIONS 247
This is the one-dimensional wave equation that was encountered in the discus-
sion of the vibrating string in Sec. 2.4, where we found the separated solutions
w(rjt) = (Asinkr+Bcoskr)(Ccoskct+Dsinkct). The function w must satisfy
the additional boundary condition that w(O; t) = O. This gives the separated
solutions of the wave equation in the form
(4.1.23) .)
u (r,t = L
~sin n7rr/a(cnCOS--
n7rct + Dn SIn
. -n7rct)
-
n=l r a a
The second initial condition requires that Dn = 0, while the first initial condition
requires that Cn be obtained as the Fourier coefficients in the expansion
C= fC Sinn;r/a n
n=l
From Example 1.1.1 this requires that Cn = (2aC/n7r)( _l)n+l, and therefore the
solution of the boundary-value problem is obtained as
. t) _ 2aC ~ (_l)n+l sin n7rr/a (n7rct)
(4.1.24) u (r, - - ~ cos - -
7r n=l n r a
We can also use these methods to solve boundary-value problems for the
wave equation with time-dependent boundary conditions, as illustrated in the
next example.
248 4. BOUNDARY-VALUE PROBLEMS IN SPHERICAL COORDINATES
EXAMPLE 4.1.7. Find the solution of the wave equation Utt = c2V 2u in the
sphere 0 ~ r < a satisfying the initial conditions that u(r; 0) = 0, ut(r; 0) = 0
and the boundary condition that u(a; t) = Ecos(wt), where E and ware positive
constants.
Solution. In order to satisfy the wave equation, we begin with a separated
solution (4.1.22). In order to satisfy the boundary condition, we must choose
kc = w, D = 0, (Csin ka)/a = E. This is possible provided that sin(wa/c) -:F OJ
in other words, waf c =F n7r, n = 1, 2, . . .. If this is satisfied, then we have a
particular solution
asinwr/c) -I- n7rC
U(rj t) = E ( . / coswt w ,-
r sIDwa c a
We look for the solution of the initial-value problem as the above particular
solution plus a sum of separated solutions with zero boundary conditions:
u (r,. t ) -_ E (aSinwr/c)
. /
r smwa c
cos w t + ~
L..-J sinn7rr/a
n=1 r
(c n cos n7rd
a
+ Dn sm
. -
n1rd)
-
a
The second initial condition is satisfied by taking Dn = O. To satisfy the first
initial condition, we must have
0= E ('!.. s~nwr/c) +
r slDwa/c
t
n=1
Cn sin n1fr/a
r
We must find the Fourier sine series expansion of the function sin (wr / c). This is
easily obtained from the integrals
wr . n1fr d (_I)n sinwa/c
= -n1f
l ..J.. n1TC
B
sm - sm - r ~~~---:----..;......,...". w ,-
o c a a (W/C)2 - (n1f/a)2 a
which are now substituted into the series for u(r; t) to obtain the result
a sinwr/c)
(4.1.25) u(r; t) = E ( . / cosw t
r SlDwa c
2E . wa ~ n1f (_l)n sin 1Tr/a (n1Tct) ..J.. n1rC
- -sm-L..-J- cos - - w ,-
a c n=1 a (w/c)2 - (n1r/a)2 r a a
If w = n1Tc/ a for some n = 1,2 ... , then we can find the solution as a limiting
case of (4.1.25). A particular solution satisfying the boundary conditions is found
as
n1fr n1fct ct. n1Tr . n1Tct)
U(r;t) = E(-l)n ( cos- cos-- - -sID-sm--
a a r a a
The solution u(r; t) of the initial-value problem is obtained by examining the
other terms in the above series solution .
4.1. SPHERICALLY SYMMETRIC SOLUTIONS 249
The final integral is the Fourier cosine coefficient of the function (r f), and thus
provides the general term of a convergent series. However, the first term will
yield a divergent series, unless f(a) = O. Indeed, the contribution of the first
term is 2( _l)n+l f(a), which is divergent unless f(a) = O.
250 4. BOUNDARY-VALUE PROBLEMS IN SPHERICAL COORDINATES
EXERCISES 4.1
In Exercises 1 to 7, use formula (4.1.5) to compute the indicated expressions.
1. V 2 (r3 )
2. V 2(r2 sin30)
3. V2 (r)
4. V2(0)
5. V 2(r2 sin2 0 cos 2~)
6. V2(e3r )
7. V2(rn), n = 1,2, ...
8. Show that V2[J(r)] = (l/r)(r f)" where f(r) is a smooth function of one
variable.
9. Show that the general solution of the equation V 2 [j(r)] = 0 is f(r) =
A + Blr for arbitrary constants A, B.
10. Show that the general solution of the equation V 2 [J(r)] = -1 is I(r) =
A + B Ir - r2/6 for arbitrary constants A, B.
11. Solve the equation V 2 [/(r)] = -1 with the boundary condition f(a) = 0
and 1(0) finite.
12. Solve the equation V 2 [J(r)] = -r2 with the boundary condition f(a) = 0
and 1(0) finite.
13. Solve the equation V 2 [j(r)J = _r 4 with the boundary condition I(a) = 0
and f(O) finite.
14. Find the solution u(r; t) of the heat equation Ut = KV 2u, -00 < t < 00, in
the sphere 0 ~ r < a satisfying the boundary condition u(a; t) = 3 cos 2t.
15. Find the solution u(r; t) of the heat equation Ut = KV 2 u, -00 < t <
00, in the sphere 0 ~ r < a satisfying the boundary condition u(a; t) =
Al cosw(t - to) where All W, and to are positive constants.
16. Find the solution u(r; t) of the heat equation Ut = KV 2 u, -00 < t < 00, in
the sphere 0 ~ r < a satisfying the boundary condition u(a; t) = 2 cos 3t +
5 COS7rt.
17. Find the solution u(r; t) of the heat equation Ut = KV 2u + a in the sphere
o ~ r < a satisfying the boundary condition u(a; t) = Tl and the initial
condition u(r; 0) = T2 Use the five-stage method, and find the relaxation
time.
18. Find the solution u(r; t) of the heat equation Ut = KV 2u in the sphere
o ~ r < 2a satisfying the boundary conditions u(2a; t) = Tl and the initial
conditions u(r; 0) = T2 for 0 ~ r < a and u(r; 0) = 0 for a ~ r < 2a.
4.2. LEGENDRE FUNCTIONS AND SPHERICAL BESSEL FUNCTIONS 251
19. Suppose a ball 0.5 m in diameter, initially at 100o e, is placed into a refrig-
erator that instantaneously cools the surface to OC. Find the approximate
temperature at the center at t = 5 minutes if the ball is made of (a) iron
(/< = 0.15 cgs unit) and (b) concrete (K = 0.005 cgs unit).
20. Consider the heat equation Ut = KV 2u in the sphere 0 ~ r < a with the
boundary condition au/ar = 0 at r = a. Find the separated solutions of
the form u(r; t) = f(r)g(t).
21. Find the solution of the heat equation Ut = KV 2 u in the sphere 0 ~ r < a
with the boundary condition au/ar = 0 at r = a and the initial condition
u(r;O) = Tl for 0 ~ r < ~a and u(r;O) = 0 for ~a ~ r < a.
22. Find the solution of the heat equation Ut = KV 2 u in the sphere 0 ~ r < a
with the boundary condition -k(8u/8r) = (k/a)(u - Tt} at r = a and the
initial condition u(r; 0) = T2 , 0 ~ r < a.
23. A green pea of radius a = 0.25 in, diffusivity K = 0.75 in2/h, and Biot
modulus ha/k = 1.0 is removed from a freezer and allowed to thaw. Find
the relaxation time.
24. This problem is designed to show that a~ = (n- ~}1r+O(I/n), n --t 00,
for the solutions of the equation a";>:;' cot a~ = b, b = 1 - ah/ k.
(a) From the graph in Fig. 4.1.2 show that (n - 1)7r < av'X:. < n7r,
n = 1,2,3, ....
(b) Defining new variables , y by a~ = (n- ~)7r+, y = 1/(n- ~)7r,
show that by = (1 + fY) tan f and -7r /2 < < 7r 12.
(c) Use the method of implicit differentiation to show that the solution
(y) with (O) = 0 has '(O) = b.
(d) Conclude that a';>:; = (n - ~)1r + bin + O(I/n2), n --t 00.
25. Let u = u(r; t) be a solution of the three-dimensional wave equation Uu =
2 2
C V U and let w(r; t) = ru(r; t). Show that w is a solution of the one-
dimensional wave equation Wtt = c'lwrr
26. Solve the following initial-value problem for the three-dimensional wave
equation Utt = C2 V 2u in a sphere of radius a: u(a; t) = 0, u(r; 0) = 0,
ut(r; 0) = (Air) sin n1rr/a, where A > 0 and n = 1,2, ....
27. Discuss the presence or absence of non localization for the expansion in
eigenfunctions of the Sturm-Liouville problem </>" + (2Ir)l/>'(r) + A</> = 0,
o ~ r < a, with the boundary condition that </J'(a) = o.
4.2. Legendre Functions and Spherical Bessel Functions
In the previous section we obtained separated solutions with radial symmetry
by reducing to a one-dimensional problem. In the present section we deal with
the general separated solutions, which involve new classes of special functions.
and
(4.2.6) 19"(0) + cot 0 8'(0) + (J-l- V csc2 0)8(0) = 0 I
Finally, the remaining part of (4.2.2) depends on r alone. Therefore we have the
equation
(4.2.7) IR"(r) + (2/r) R'(r) + (,,\ - (J-l/r2)) R(r) = 0 I
Thus we have reduced the heat equation to four ordinary differential equations:
(4.2.3), (4.2.5), (4.2.6), (4.2.7). These involve the three separation constants
(A, j.L, v), whose values will be determined below.
The solution of (4.2.3) is straightforward:
T(t) = e-~Kt
which is identical to the form obtained previously in rectangular and cylindrical
coordinates.
We are now ready to solve the angular equations (4.2.5) and (4.2.6). The
product 9(0)<I>(<p) is called a spherical harmonic. It is our goal in this section to
obtain a complete system of spherical harmonics.
4.2. LEGENDRE FUNCTIONS AND SPHERICAL BESSEL FUNCTIONS 253
(4.2.8) ~8
(1 - s 2 ) d8
- - 2s- + ( p. - m2)
-- 8 = 0
ds 2 ds 1 - S2
n(n + 1) - P,
(4.2.10) a -
n+2 -
a
(n + 2)(n + 1) n n = 0,1,2, ...
The constants ao, at may be chosen arbitrarily, and, for any value of p" we obtain
two linearly independent power series solutions of the Legendre equation. If J.t
is of the form k(k + 1) for some integer k, then the recurrence relation (4.2.10)
shows that an = 0 for n = k + 2, k + 4, .... Therefore we may obtain a polynomial
solution in the following way: if k is even, choose al = 0, ao :/: O. Then from
(4.2.10), an = 0 for n = 3,5, .... Combining this with the fact that k + 2 is even,
we see that an = 0 for all n ~ 1 + k; in other words, 9(s) is a polynomial of
degree k. In case k is odd, we choose ao = 0, al :/: 0 and conclude in the same
way that an = 0 for n ~ 1 +k. In either case we conclude that if p, = k(k+ 1) for
an integer k, then ao, at can be chosen so that 9(s) is a polynomial of degree k.
This polynomial, denoted Pk(S), is called the Legendre polynomial of degree k.
In order to uniquely define Pk(s), we require a standard choice of ao, at.
Although by no means canonical, we follow established conventions and choose
these so that ak, the coefficient of Sk, is (2k)!/2 k(k!)2. We will now show that
this implies the easily remembered fact that Pk (l) = 1.
k J.t Pk(s)
0 0 1
1 2 S
2 6 (3s 2 - 1)/2
3 12 (5s 3 - 3s)/2
4 20 (35s 4 - 30s2 + 3)/8
(4.2.11) I: Pk,(S)Pk,(s)ds = 0
4.2. LEGENDRE FUNCTIONS AND SPHERICAL BESSEL FUNCTIONS 255
Now we interchange the roles of (kb Pk1 ) and (k2' Pk:J to obtain
The graphs in Fig. 4.2.1 give the Legendre polynomials for k = 0,1,2,3,4.
We now use the orthogonality of Legendre polynomials to obtain an important
representation of Pk (s ), known as Rodrigues' formula. To do this, we note that
any polynomial Q of degree k can be written as a finite sum L~=o Cj~(s). Indeed,
Pk(s) is a polynomial of degree k and thus, by choosing the coefficient Ck suitably,
we can arrange that Q(S)-CkPk(S) is a polynomial of degree k-1. Continuing this
iteratively, we arrive at the desired representation. We now apply this observation
to Q(s) = (d/ds)k(s2 - l)k, a polynomial of degree k. Thus
d)k k
(4.2.14) ( ds (S2 - 1)' = ~CjPj(S)
By orthogonality,
(4.2.15) (I P,(s)
J-1
(:)k (S2 _ 1)k ds = C 11 Pj(s)2ds
S
J
-1
The left side can be integrated by parts k times. The endpoint terms vanish and,
if j < k, (d/ds)k~(s) = O. Therefore c, = 0 for j < k. To compute Ck, recall
256 4. BOUNDARY-VALUE PROBLEMS IN SPHERICAL COORDINATES
( 1. 1 )
I c r ' , z
(-1, - i)
FIGURE 4.2.1 Graphs of the Legendre polynomials y = Pk(S) for
k = 0, 1,2,3,4 and -1 $ S $ 1.
This will now be used to compute the integrals that appear on the right
side of (4.2.15). For this purpose we again integrate by parts k times and use
4.2. LEGENDRE FUNCTIONS AND SPHERICAL BESSEL FUNCTIONS 257
= (2k)! L (1 - 2
8 )' ds
Thus we have the recurrence relation dk/dk-l = 2k/(2k + 1) and the initial value
do = 2. Iterating these, we have
2k(2k - 2) .. 42 22k + 1 (k!)2
k 2
d = (2k + 1)(2k - 1) ... 5.3 = (2k + 1)(2k)!
Substituting this in the previous equation, we find that
(4.2.17)
s~ ()
j +1
S = - 2 .1P3+1{S) + ~cl+l
L...J k Pk(s) 0~j$n-2
J+ k=O
In particular, if we take j = n - 2, we have
2 n n-1 2
2( n - 2) + 1 cn-2 = 2n - 3 2n - 1
whereas the lower-order coefficients c; are zero if j < n - 2, by the orthogonality
of the Legendre polynomials. Hence we have proved the recurrence relation in
the form
(4.2.18) I(2n -l)SPn-l{S) = nPn{s) + (n - 1)Pn- {s) 2 n=2,3, ... j
4.2.3. Legendre polynomial expansions. The integrals (4.2.17) can be
used to compute the coefficients in the expansion of a function in a series of
Legendre polynomials. Suppose that
00
f(s) = E AkPk(S)
k=O
and that the series converges uniformly for -1 ::; s ::; 1. Multiply by P'{s),
integrate term by term, and use orthogonality to obtain
(4.2.19) 1
Ak = 2(2k + 1) 11
-1 f(s)Pk(s)ds k = 0,1,2, ...
Then
1
E AkPk(S) = 2[1(s + 0) + f{s - 0)]
00
(4.2.20) -1<s<1
k=O
At s = 1 (resp. s = -1), the series converges to f(1- 0) (resp. f(-1 + 0)).
The proof of this theorem will not be given. We now give an example of the
computation of the coefficients.
EXAMPLE 4.2.2. Let
A. = ~(2k + 1) I: f(s)P.(s)ds
= {o
(2k + 1) Jo f(s)Pk(s)ds
1
= 0,2,4, ...
k
= 1,3,5,...
k
EXAMPLE 4.2.3. Expand f(s) = 1 in a series of the fonn 2:/:=0 A2n+lP2n+I(S).
Solution. We have
1
1
1
o Pk(s)ds = k(k + 1) P~(O)
Therefore
00 4n + 3
1 = ~ (2n + 1)(2n + 2) ~n+l(O)P2n+l(S) O<s<1
3 7 11
= 2Pt (s) - gP3(S) + 16P5(s)...
4.2.4. Implementation with Mathematica. The Legendre polynmials
can be generated by applying the three-term recurrence formula (4.2.18). We
write this as
1
Pn(s) = - 2n - 1)sPn- 1 (s) - (n -1)Pn- 2 (s)) n = 2,3, ...
n
and recall that Po (s) = 1, PI (s) = s. This is translated into Mathematica as
follows.
LP[O,s_] :=1
LP[l,s_] :=s
LP[n_,s_]:=(1/n)((2n-l)s LP[n-l,s] -(n-l)LP[n-2,s])
260 4. BOUNDARY-VALUE PROBLEMS IN SPHERICAL COORDINATES
This defines a function LP of the two variables nand s. If we now type LP[5,s]
and simplify the resulting expression using Simplify, we obtain
s(15 - 70 s~2 + 63 s~4)
Out[5]= ----------------------
8
To graph LP[5,s]on the interval -1 < s < 1, we type
Plot [LP [5, s] , {s. -1, 1}] ;
The semicolon at the end of the line was typed in order to keep Mathematica
from printing the word "Graphics" after the plot.
The result is
Now we use Mathematica to compute the integrals that occur in the orthog-
onality relations of the Legendre polynomials, namely,
One can also use Mathematica to verify that the Legendre polynomials pro-
duced here are indeed solutions of the Legendre equation
(1- S2)y" - 2sy' + n(n + l)y = 0
Considering the case n = 20 as a test case, we define
4.2. LEGENDRE FUNCTIONS AND SPHERICAL BESSEL FUNCTIONS 261
y[s_] :=LP[20,s]
and apply the differentiation operator D. The first and second derivatives of y[s]
are denoted D[y[s},s] and D[y[s],{s,2}].These are combined into
(1-s-2)D[y[s],{s,2}]-2 s D[y[s],s]+20 21 yes]
Further application of the Simplify command shows that the resultant expression
is zero.
Finally, we note that Mathematica has a built-in routine for producing the
Legendre polynomials, namely, LegendreP[n,s]. For example, typing Legen-
dreP[lO,s] produces the output
256
k m Pk,m ~ COS (J) Pk,m~ COS (J) cos mt.p Pk,m (COS (J) sin mt.p
0 0 1 1 0
1 0 cos(J z 0
1 1 sinO x y
2 0 {3cos2 (J -1)/2 {2z2 - x 2 - y2)/2 0
2 1 3 cos (J sin (J 3yz 3xz
2 2 3sin2 (J 3{x2 _ y2) 6xy
3 0 (2 z S - 3x2z - 3y 2Z )/2 0
(5 coss (J - 3 cos (J)/2
3 1 (12xz2 - 3x s - 3xy2) /2 (I2 yz2 - 3x 2y - 3 y3)/2
(15 cos2 () - 3 sin 0) /2
3 2 15 cos () sin2 0 15(x2 - y2)Z 30xyz
3 3 15sin3 0 15(x3 - 3xy2) 15(3x2y _ y3)
TABLE 4.2.1 Associated Legendre functions
= [-k(k + 1) + 1 :282]9
Therefore 9 satisfies the associated Legendre equation (4.2.8) with J.l = k(k + 1),
which was to be proved.
Since Pk{s) is a polynomial of degree k, this procedure yields a nonzero func-
tion g(s), provided that m :::; k. This can be written in the form
(4.2.23)
The associated Legendre functions Pk,m for k = 0,1,2,3 are listed in Table 4.2.1,
together with the corresponding harmonic polynomials in (x, y, z).
The associated Legendre functions satisfy the following orthogonality relation:
The proof is exactly the same as for the orthogonality relation (4.2.11) for Le-
gendre polynomials, and is therefore omitted.
To obtain the normalization coefficients, we use the notation D = d/ ds and
write
[ : Pk,m(s)2ds = [:[(1- s2)m/2Dmpk(S)}2ds
= [ , (1':'" s2)mDmpk(S)Dmpk(S)ds
where we have used the definition of Pk,m and integrated by parts m times. The
next step is to write the coefficient of Pk(S) as a multiple of Pk(s) plus lower-order
terms. To do this, we recall that Pk(s) = aksk plus lower-order terms. There-
fore Dmpk(s) = [k!ak/(k-m)!Jsk-m plus lower-order terms, (1-s2)mDmpk(s) =
(-l)m[k!ak/(k-m)!]sk+m plus lower-order terms, Dm(1-s2)m Dm Pk(S) = (-l)mx
[(k + m)!/(k - m)!]aksk plus lower-order terms = (-l)m[(k + m)!f(k - m)!JPk(S)
plus lower-order terms. These lower-order terms can be written as linear com-
binations of the Legendre polynomials Pn(s) with n ~ k - 1. By orthogonality
all of the resulting integrals are zero. But the integral of Pk (S)2 was shown to be
2/(2k + 1). Therefore we have proved that
(k + m)! 2
(4.2.25)
1 1
-1
2
Pk,m(S) ds = (k - m)! 2k + 1
4.2.6. Spherical Bessel functions. We now turn to the analysis of the
radial equation (4.2.7). This is a form of the general Bessel equation (3.2.1) with
the parameters d = 3, J.L = k(k + 1). According to the theory from Sec. 3.2,
this equation has a power series solution of the form ~:,o anr'Y+n, where 'Y =
-~ + (k + ~) = k. If A > 0 this is the spherical Bessel function of order k.
o (l/r) sin r
1 (1/r2 ) sin r - (l/r) cosr
2 (3/r 3 - l/r) sin r - (3/r 2) cos r
All of the above solutions are valid throughout all of space. If we need so-
lutions defined only in the exterior of a sphere, then the analysis of the radial
equation allows us to choose the second solution of Bessel's equation, which be-
comes infinite when r ~ O. This function is written R(r) = nk(rv'X), A > O.
Similarly, when A = 0, we may choose R(r) = r-(k+l). Thus we have the sepa-
rated solutions of the heat and Laplace equations, valid for r -# 0:
Solutions of the wave equation in the exterior of the sphere are written
rkPk(cos9) = r2n+lP2n+l(z/r)
= r 2n +1 (al (z/r) + ... + a2n+l (z/r)2n+l)
= z (alr 2n + ... + a2n+1Z2n)
From the analysis in case m = 0, we see that the first factor is a homogeneous
polynomial of degree k - m in (x, y, z), whereas the second factors are homoge-
neous polynomials of degree m in (x, y). The product is clearly a homogeneous
polynomial of degree k in (x, y, z).
This completes the analysis of Laplace's equation, where we have shown that
the solid harmonics defined by (4.2.30) are homogeneous polynomials of degree k:
rk Pkm (cos 8) (A cos mcp + B sin mcp) = L AabcxaybZC
A similar analysis can be applied to the separated solution of the heat equation
in spherical coordinates. For example, we may write
u{r, 8, cpj t) = jk{rf) (rk Pkm{COS 8)(A cos mcp + B sin mcp)) e- AKt
r
The first factor is a power series in r2 = x 2 + y2 + Z2 while the second factor
is a polynomial-in particular, a smooth function of (x, y, z). This is mUltiplied
by the exponential, which is also a smooth function of t. Hence the resulting
separated solution is a smooth function of (x, y, z, t).
EXERCISES 4.2
1. Compute Pl (O), P2(O), P3 (0), P4 (0).
2. Compute P{(O), P~{O), PHO), PHO).
3. Write down the Legendre polynomials P5 (s), P6{S).
4. Show that Pk{S) is an even function if k = 0,2,4, ... .
5. Show that Pk(8) is an odd function if k = 1,3,5, .. ..
6. Show that Pk(s) is an odd function if k = 0, 2, 4, ... .
7. Show that PHs) is an even function if k = 1,3,5, ... .
8. Use Rodrigues' formula to show that Pk {l) = 1 for k = 0,1,2,3,4, ....
9. Use Exercises 4,5, and 8 to show that Pk{ -1) = (_I)k for k = 0,1,2,3,4.
10. It is known that Pk(s) has exactly k zeros on the interval -1 ~ s ~ 1.
Find these zeros for k = 0, 1,2,3,4.
11. Let /(8), -1 < 8 < 1, be a piecewise smooth function and define ak =
(2k + 1)/2 f~l f{S)Pk(8)ds.
(a) If / is odd, show that a2n = 0, n = 0,1,2, ....
(b) If / is even, show that a2n+ 1 = O.
12. Let 1(8) = 0 for -1 < 8 < 0 and f(8) = 1 for 0 < 8 < 1. Find the
expansion of f (8) in a series of Legendre polynomials.
13. Let /(8) = -1 for -1 < 8 < 0 and /(s) = 1 for 0 < s < 1. Find the
expansion of / (8) in a series of Legendre polynomials.
14. Let /(8) = 1 if -~ < S < ~ and 1(8) = 0 otherwise. Find the first four
terms in the expansion of / (8) in a series of Legendre polynomials.
15. Write down the associated Legendre functions P41 (S), P42 (S), P43 (8), P44{S).
4.3. LAPLACE'S EQUATION IN SPHERJCAL COORDINATES 267
16. Show that Pkk(COS 8) = ck(sin 8)k for k = 0,1,2,3, ... , 0 :5 0 :5 7r, where
Ck is a suitable constant.
17. Use Rodrigues' formula to show that
)n (2n + 2)!
I ()
P2n+ 1 0 = -1
(
n!(n + 1)!22n +1' P~n(O) =0
for n = 0, 1,2, ....
18. Let /(s), -1 < s < 1, be a function with n continuous derivatives. Use
Rodrigues' formula and integration by parts to show that the coefficients
in the Legendre expansion of /(s) can be written in the form
19. Use Exercise 18 to find the Legendre expansion of S2, S3, S4.
20. Derive the generating function of Legendre polynomials: If -1 < t < 1,
-1 :5 s :5 1, then
00
o = V 2 U = U rr + -r2 U r + 2'
r
1 ( 2
U(J + cot (} U(J + csc 0 u'P'P)
From the results in Sec. 4.2 we have the following separated solutions of Laplace's
equation in spherical coordinates:
1o u(a,O)Pk(cosO)sinOdO = Bka
~ k 1~ k 2
0 Pk(COsO)2 sinOdO = Bka 2k + 1
EXAMPLE 4.3.1. Find the solution u(r, 0) of Laplace's equation in the sphere
o ::; r ~ a satisfying u(a, 0) = 1 if 0 < 0 < 7r/2, u(a, 0) = 0 if 7r /2 < 0 < 1r. Show
that u(r, 7r/2) = ~ for 0 ~ r ~ a.
Solution. In this case we can apply the above method with
k + 11~/2
Bk = ~ Pk(cosO)sinOdO k = 0,1,2, ...
a 0
This integral was evaluated in Sec. 4.2, with the result
1
~/2 . PHO)
o Pk(cosO) slOOdO = k(k + 1) k = 1,2, ...
Therefore Bo = ~, Bk = [(k + ~)/k(k + l)]PHO). The solution to the problem is
EXAMPLE 4.3.3. Find the solution u( r, 0, cp) of Laplace's equation in the sphere
o ::; r ~ a, satisfying
u(a, 0, cp) = sin 0 cos cp + cos 0 sin 0 sin cp
Solution. From the table of associated Legendre functions in Sec. 4.2, we
have Pll = sinO, P21 = 3sinOcosO. Thus u(a,O,cp) = coscpPn + ~sincpP21'
Comparing this with the separated solutions in (4.3.1), we must have
r2
u(r, 0, cp) = rPll (cos 0) cos cp + 3" P21 (cosO) sin cp
If u( a, (), cp) is not already expressed as a sum of spherical harmonics, then we
must compute integrals in order to solve the problem. Using orthogonality of the
associated Legendre functions, we have for m ~ 0
12K1K u(a, 9, <p )Pkm (cos 9) cos m<p sin 9 d(J d<p = 11"Akmak lK Pkm (cos 9)2 sin 9 d(J
12"lK u(a, 9, <p)Pkm(cos 9) sin m<psin 9 d9 d<p = 1I"Bkmak lK Pkm(COS 9)2 sin9 d(J
we choose Al = 0 in the separated solutions (4.3.1) and get the general exterior
solution
00 k
u(r, 9, cp) =L L r-(k+l) Pkm(cos 9)(Akm cos mcp + Bkm sin mcp)
k=O m=O
EXAMPLE 4.3.4. Find the solution of Laplace's equation outside the sphere
r = a and satisfying u(a, 9) = 1 if 0 < 0 < 7r /2and u(a, 0) = 0 if 7r /2 < 8 < 7r.
Solution. Since the boundary condition is independent of cp, we may take
the separated solutions with m = 0; thus
00
u(r,8) = LAkr-(k+1)Pk(cos9)
k=O
u(r,9) = 2;:
1a
+?; (a)k+l
r k(kk ++ 1) P~(O)Pk(COS 8)
00 1
2
(4.3.2)
where
A. = (k + D/.' G(/I)p.(cos/l) sin /ld/! k = 0,1,2, ...
The Legendre polynomials satisfy IPkl ~ 1, IP~I ~ k2 , IPfl ~ k4. To show that
U r = L~o Akk (r / a)k-l Pk ( cos 9), we note that the terms of this series are no
larger than M{2k + 1)/{r/a)k-l, where M is the maximum of G(9), 0 ~ 9 ~ 1r.
If ro < a, these terms are no larger than M{2k + l)/[(a + ro)/2a]k-l for 0 ~ r ~
272 4. BOUNDARY-VALUE PROBLEMS IN SPHERICAL COORDINATES
4(a + ro). By the Weierstrass M-test, the series for U r is uniformly convergent
for 0 :5 r :5 ~(a + ro). In a similar fashion it may be shown that the series for
U rr , U9, U99 are also uniformly convergent. Thus u(r, 8) defined by (4.3.2) is in
fact a rigorous solution of Laplace's equation in the sphere 0 :5 r < a.
4.3.3. Applications to potential theory. Solutions of Laplace's equation
also arise in problems of electrostatic or gravitational attraction, where we are
given a distribution of mass or charge and are required to compute the resultant
potential energy function.
The potential energy corresponding to the density function F(x, y, z) is de-
fined by the integral
uX,y,z
( ) = 1-
41r
lhl F(x',y',z')
V(x - x')2 + (y - y')2 + (z - z')2
dx 'dy'd Z '
Aoo ~1~ .
(4.3.3) u(r, 8, cp) = --;:- + L..J r k+1 L..J Pkm(cos8) (Akm cos mcp + B km sm mcp)
k=l m=O
The next result shows that the coefficients A km , B km can be obtained as the
moments of the density function F(x, y, z). In order to simplify the notation, we
let Yko = rk Pk, YkC: = rk Pkm cos mcp, and Y:::: = rk Pkm sin mcp be the harmonic
polynomials introduced above.
THEOREM 4.2. Suppose that the junction u(r, 8, cp) satisfies V 2 u = -F and
is represented by (4.3.3) in the exterior of the sphere r = a. Then the coefficients
are obtained as
(4.3.4) Aoo = 4~fff FdV
(4.3.6) (k+m)'A
(k - m)~ km
= 2. fff
21r
Fy' C08 dV
km l:5m~k
(4.3.7) (k+m)'B
(k - m)! km
= 2. fff
21r
Fy"indV
km l:5m:5k
If we collect terms and use the orthogonality and normalization of the Legendre
functions, we obtain
j JrJo~r~a
r F Ykm r Pfm (cos 0) sin 0 cos mcp dO dcp
2
r dx dy dz = (2k + 1)Akm 111" 11"
2
0 Jo
(k + m)~
= 21T A km (k _ m)!
which completes the required identification of A km . The proof for Bkm is entirely
similar.
These techniques can be used to compute the gravitational potential of an
oblate spheroid, as an approximation to the earth's shape.
274 4. BOUNDARY-VALUE PROBLEMS IN SPHERICAL COORDINATES
Aoo = 4~ 1 l'la+hln
20 8
or2 sin () dr dO d'l'
=8 (3 3
3 2 37rb )
2
(3 + 2a 27ra b + 4ab + -8-
This is the total mass of the solid body. The next coefficient is
A 10 =~ [21f rlf [a+bcos (J 8 cos 0 r3 sin 0 dr dO d<p
47r io io io
= ~ l' (a + bsin IJ)4 cos IJ sin IJdIJ = 0
since the integrand is an odd function with respect to the transformation 0 --+
7r - O. Similarly, the integrals that define All, B ll , A21, A 22 , B211 B22 are also
21f 21f
zero, since they contain integrals of the form f0 cos m<p d<p, f0 sin m<p d<p, which
are zero if m = 1,2. It remains to compute
A20 = 4~ 1 l'1"H,,;n8
20
OP2(COS ()r4 sin ()drdIJ d'l'
we obtain
A __ i. [Sa 4 b7r 16a3 b2 lSa2 b3 7r 64ab4 2Sb5 7r]
20 - 20 8 + 3 + 8 + 21 + 128
If b < < a, this will be small compared with Ao, the principal term in the expan-
sion of (4.3.3).
4.3. LAPLACE'S EQUATION IN SPHERICAL COORDINATES 275
EXERCISES 4.3
1. Find the solution of Laplace's equation V 2 u = 0 in the sphere 0 ~ r < a
satisfying the boundary condition u( a, 8) = 3 + 4 cos 8 + 2 cos2 8.
2. Find the solution of Laplace's equation V 2u = 0 in the sphere 0 ~ r < a
satisfying the boundary condition u(a,O) = 1 + cos 20.
3. Find the solution of Laplace's equation V 2 u = 0 in the sphere 0 ~ r < a
satisfying the boundary condition u(a, 0) = (5 - 4 cos 0)-1/2. Hint: Use the
generating function for Legendre polynomials
00
16. Let u(r, 0, cp) be the solution of Laplace's equation yr 2 u = 0 outside the
sphere r ~ a, with the boundary condition u(a, 8, cp) = G(O, cp) for 0 < 0 <
7r, 0 < cp < 27r. Show that, when r -+ 00,
u(r, 8, "') = 4~r [ " /." G(8, "') sin 8d8 d", + 0 (:2 )
17. A solid hemisphere of uniform density 6 occupies the region defined by
the inequalities 0 ::; r ::; a, 0 ::; 0 ::; 7r /2, 0 ::; cp ::; 27r. Find all of the
coefficients in the representation (4.3.3) of the potential function.
18. A spherical slab of uniform density 6 occupies the region defined by the
inequalities 0 ~ r ::; a, 7r /6 ::; () ~ 57r /6, 0 ~ cp ::; 27r. Find all of the
coefficients in the representation (4.3.3) of the potential function.
CHAPTER 5
INTRODUCTION
In previous chapters we obtained the solution of initial- and boundary-value
problems in bounded regions, obtaining the solution in terms of Fourier series of
separated solutions. In this chapter we consider problems in unbounded regions,
which require a continuous superposition of separated solutions, leading to the
notion of a Fourier integral representation. In many cases this can be rewritten
to give an explicit representation as an integral transform of the initial/boundary
data with a standard function, the fundamental solution of the problem.
In Sec. 5.1 we develop the properties of the Fourier transform in its own right.
The following sections present the applications to the heat equation, Laplace's
equation, the wave equation, and the telegraph equation.
5.1. Basic Properties of the Fourier Transform
5.1.1. Passage from Fourier series to Fourier integrals. To motivate
the definition of the Fourier transform, we look for a suitable generalization of
the Fourier series to infinite intervals. We assume that f(x), -00 < x < 00, is
a real- or complex-valued piecewise smooth function and that all of the relevant
integrals can be suitably defined. By restricting f(x) to the interval -L < x < L,
we can form the complex Fourier series:
00
(5.1.2) ~
2L
lL -L
f(x)e-(in7rx/L)dx
(5.1.3) FdJ1.) = 21
7r
lL-L
f(x)e-tP.x dx
277
278 5. FOURIER TRANSFORMS AND APPLICATIONS
In this notation, formulas (5.1.1) and (5.1.2) can be written in the form
00
(5.1.5)
In this form we take the limit L -} 00; (5.1.4) is an approximating sum for
an (improper) Riemann integral. Taking the limit formally, (5.1.4) and (5.1.3)
become
(5.1.7)
This completes the heuristic derivation of the Fourier transform formulas. F(p,) ,
defined by (5.1.7), is the Fourier transform of f(x). Formula (5.1.6) is the Fourier
inversion formula.
In addition to these formulas, we derive the analogue of Parseval's equality.
To obtain this, we recall from (5.1.1) and (5.1.5)
Taking the limit L -} 00, we have Parseval's theorem for Fourier transforms:
A(p,) 11
=:;
00
This is analogous to the formula for the Fourier series of real-valued functions
from Chapter 1. The appropriate version of Parseval's theorem is
We emphasize that the limit (5.1.9) is a Cauchy principal value. The integral
over the infinite interval -00 < p, < 00 will not be absolutely convergent in
general, as we will see through simple examples. Furthermore, one cannot in
general take the double limit of the partial integrals f~~l when M I , M2 --7 00
in any order.
We now give some examples of computation of Fourier transforms.
f(x) = n
and illustmte the convergence theorem.
-00
f(x)e-'J.lXdx
= ~ J.~ e-;~dx
21r a
e- ipb _ e- iJlll
=
-21rip,
280 5. FOURIER TRANSFORMS AND APPLICATIONS
1 a<x<b
~ x = b
Ox> b
This integral is not absolutely convergent, and the separate integrals f: and
f~M do not have limits in general.
The next theorem gives some general properties of the Fourier transform.
The detailed proofs are given at the end of the section. We note that addi-
tional examples can be obtained by applying Theorem 5.2 to Example 5.1.1. For
example, the linearity property can be used to compute the Fourier transform
of any piecewise constant function, defined by f(x) = Ci if a, < x < b" which
is a sum of square wave functions. The convolution property can be used to
compute the Fourier transform of the tentlike function defined by f(x) = 2 -Ixl
if -2 < x < 2 and f(x) = 0 otherwise. Indeed, f = 9 * g, where g(x) = 1 for
S.l. BASIC PROPERTIES OF THE FOURlER TRANSFORM 281
-1 < x < 1 and g( x) = 0 otherwise. The Fourier transform of 9 is (sin p,) /21r p" so
that the Fourier transform of f is (sin2 p,}/21rJ-L2. The first differentiation property
cannot be applied to Example 5.1.1, since the square wave fails to have a deriva-
tive at the points x = a, x = b. The second differentiation property can be used
to compute the Fourier transform of the function defined by f(x) = x, a < x < b,
and f(x} = 0 otherwise.
= 00 _e-(e/2)
1_ v'2i1
_ _ e-'Jl(m+C1{)d~
-00
~ 00 e-(e /2) (-iJ-LO'~)n
=e 'jlm L...., --- de
n=O -00 V2i n!
This interchange of summation and integration will be fully justified at the end
of the calculation. To evaluate each of these integrals, we use mathematical
induction. Let
n = 0,1,2, ...
Thus
21rF(J-L) = e-'Jlm E(-i~O')n
n=O n.
In
I~ =(1 00
-00 ~
e-(e /2) de) 2
00100 e-({?!2)e-({V2)
=1 -00 -00
2
7f
d~ld~2
2
211" 100 e-(r /2)
=
1
= 1
o 0
--rdrd8
21r
282 5. FOURIER TRANSFORMS AND APPLICATIONS
V2i1n = - I: ~n-ld(e-(2/2)
= (n - 1)I: ~n-2e-(e/2)~
= (n - 1)J2;TIn-2
Thus we have the recurrence formula In = (n - 1)In- 2 Finally, we notice that
e
In = 0 whenever n is odd, since n e-(F,2/2 ) is an odd function in that case. Putting
these facts together, we have
I 2n = (2n - 1)I2n - 2
= (2n - 1)(2n - 3)12n-4
= (2n - 1)(2n - 3) .. 3 1
To obtain a more compact form, we write
(2n)(2n -1)(2n - 2)321
(2n - 1)(2n - 3) .. 3 1 = ~~~~~~~-------
(2n)(2n - 2)42
(2n)!
= 2nn!
Finally, we have
1 = l:f(x)dx
o= I : (x - m) f(x)dx
On the other hand, the graph of y = IF(IL) I is also a bell-shaped curve centered
about IL = 0, where the variance parameter appears in the numerator of the
exponent. This means that the spread of its graph about the midpoint is inversely
proportional to (72. This is a specific expression of the uncertainty principle, which
will be proved later in this section. The larger (72 is, the more closely concentrated
the values of F(J,L) will be about J,L = O.
We now justify the interchange of summation and integration in the solution
of Example 5.1.2. To do this, we consider the Taylor remainder formula for the
complex exponential function:
Integrating this finite sum with respect to the normal density, we have
1 00
-00
e-:r;2/2eitx dx = L ,.1
N
k=O k.
100
-00
e-:r;2/2 (itx)k dx + 1-00
00
e-:r;2/2 RN(tX) dx
We must show that the final integral tends to zero when N --? 00. To do this, we
estimate the Taylor remainder by noting that le,sl = 1; hence
IRN(U)I ~ N!
1 lJ. (u - S)N dsI= (Nlul++1)!
0
u N 1
Therefore
Il
ooooe-:r;2/2R2N-l (tx) dxl < 100
-00
e_:r;2/2I
tx 2N
(2N)!
I dx
= y'2; Itl 2N 2N
N!
which tends to zero when N -? 00, completing the proof.
Computation of certain Fourier transforms may be facilitated by the integral
formula
(5.1.11)
284 5. FOURIER TRANSFORMS AND APPLICATIONS
where c may be a complex number with positive real part and n > -1. (In case
n is not a positive integer, n! must be interpreted by the gamma function.)
EXAMPLE 5.1.3. Let f(x) = xne- ax for x > 0 and f(x) = 0 for x < 0 where
a > 0, n > -1. Find the Fourier transform F(J.L).
Solution. We apply (5.1.11) with c = a + iJ.L to obtain
= f x"e-z(o+.p) dx
n!
= ----:--
(a + iJ.L)n+l
The Fourier transform is given by
F( ) n.
,
J.L = 27T"(a + iJ.L)n+l
EXAMPLE 5.1.4. Let f(x) = xne- ax cos(bx) for x > and f(x)
where a > 0, b> 0, n> -1. Find the Fourier tronsform F(J.L).
= for x < 0,
Solution. We write cosbx = (e 1bx + e- ibx )/2 and apply (5.1.11) twice, with
c= a+iJ.Lib:
27rF(JJ) = 1 00
x"e-" cos(bx)e-ip%dx
= ~
2
1 0
00
xn(e-x(aHI'-ib) + e-x(a-il'+lb)dx
= 1
2
(n! n!)
(a + iJ.L - ib)n+l + (a + iJ.L + ib)n+l
The Fourier transform is
F( ) = n! ( 1 _ 1 )
J.L 47T" (a + iJ.l - ib)n+l (a + iJ.L + ib)n+l
This can be simplified by elementary algebra if necessary.
The next example illustrates the application of (5.1.11) to the computation
of a Fourier transform of a function that is nonzero everywhere.
EXAMPLE 5.1.5. Let f(x) = e- a1xl , where a > O. Find the Fourier trans-
form F(p,).
5.1. BASIC PROPERTIES OF THE FOURIER TRANSFORM 285
Solution. Explicitly, f is defined by the formula f(x) = ea:I: when x < 0 and
f(x) = e-a:I: when x > O. Therefore
2trF(/-L) = 1
-00
ea:I:e-iJJ$ dx + 1 0
00
e-axe-'JJ$ dx
From (5.1.11), the second integral has the value 1/(a+i/-L). The first integral can
be computed using the substitution y = -x to obtain
Hence
1 1 2a
21fF(/-L) = - - + - - =2- -2
a - i/-L a + i/-L a + /-L
(5.1.12)
Often new Fourier transforms can be found from old ones by interchanging
the roles of x and /-L.
5.1.3. Fourier sine and cosine transforms. The Fourier sine transform
and the Fourier cosine transform arise when we specialize the Fourier transform
to functions defined only for x > O.
286 5. FOURIER TRANSFORMS AND APPLICATIONS
27rF(/,) = 1:!(x)e-iPZ dx
= 1o
00
J(x)e-'J.lXdx + 1
-00
f( -x)e-iJ.lX dx
=2 f !(x)cos/LXdx
Therefore the Fourier transform is also an even function. Hence from (5.1.6),
!(x) = 1: F(/,)e
ipz
d/,
= 100
o
F(tt)e'P.X dtt + 10
-00
F( -tt)e'J.lX dtt
Fc(p,) is the Fourier cosine transform of f (x), -00 < x < 00. This can also be
described by the boundary condition 1'(0) = 0, which is satisfied whenever the
Fourier transform satisfies Jo
oo
ttIFs(p,)ldtt < 00.
To obtain the Fourier sine transform, we again begin with a function f, defined
for x > 0, and extend it as an odd function: f( -x) = - f(x). Following the same
steps as for the cosine formulas, we obtain the Fourier sine formulas
(5.1.15) Fs(p) =- 21
1r 0
00
f(x) sin px dx
Fs(p) is the Fourier sine transform of f(x), -00 < x < 00. This can also be
described by the boundary condition f(O) = O.
EXAMPLE 5.1.7. Let f(x) = e- ax , where a > O. Find the Fourier cosine
transform Fc(tt) and the Fourier sine transform Fs(p),
5.1. BASIC PROPERTIES OF THE FOURIER TRANSFORM 287
Solution. We have
1o
00 . X
e-axe'lIJ dx = 1 0
00
.
e-x(a-'lIJ} dx = -1- = -
a - iJi.
a+
-i/-L
-
a2 + JL2
Taking the real and imaginary parts, we have the integrals
Therefore
1 00
o
e-ax cos /-LX dx = 2
a +/-L
a
2' roo e-ax sin JLX dx =
10
Ji.
a2 + JL2
Solution. The Fourier sine and cosine transforms are given by the formulas
Fc(J-L) = (2/,rr)aJ(a 2 + p,2), Fs(J.L) = (2/,rr)p,J(a 2 + p,2). Substituting these above,
we have for x > 0
2
-
/.00
p, cos p,x + h sin p,x
(p,aJ(a 2 + J.L2) + hp,J(a2 + p,2)) dJ.L = e- az
7r 0 J.L2 + h2
5.1.5. Fourier transforms in several variables. The preceding formulas
and theorems for Fourier transforms in one variable can be extended to functions
of two or three variables. In the following paragraphs we sketch the extension to
three variables (x, y, z).
The Fourier transform of a complex-valued function f(x, y, z) is defined by
the improper integral
where the integration is performed over the entire three-dimensional space -00 <
x < 00, -00 < y < 00, -00 < z < 00. With this definition, one obtains the
properties of linearity, differentiation, convolution, and translation, which were
described in detail for the one-dimensional case in Theorem 5.2. If the Fourier
transform F(J-Lb J-L2, J.L3) is also absolutely integrable, then the original function f
can be recovered as the integral
which is understood as the limit, when M -+ 00, of the integral on the solid ball
defined by J.Li + J-L~ + J.L~ ~ U2. Examples of Fourier transforms in three variables
can be easily obtained from the one-dimensional case by separation of variables as
follows: if fi, i = 1,2,3, are functions with Fourier transforms Fj, then the Fourier
transform of the function fl(X)!2(y)!a(z) is the function F1(J-Ll)F2(J.L2)F3(J.L3). We
illustrate with the three-dimensional normal density function.
EXAMPLE 5.1.9. Find the three-dimensional Fourier transform of
f( x y z) = __I_e-(x2+y2+z2)/2
" (27r)3/2
Solution. From Example 5.1.2 we recall the Fourier transform of the one-
dimensional normal density function. Applying this three times, we obtain the
three-dimensional Fourier transform pair
f( x "(27r)3/2
y z) = __
I_e-<z2+y2+z2)/2 F(II. II. 11.) = _1_e-(p~+P~+P~)/2
,,....}, ,....2,,-3 (27r)3
The next example, which arises in the study of the wave equation in Sec. 5.4, is
not of the above separable type.
5.1. BASIC PROPERTIES OF THE FOURIER TRANSFORM 289
1l l Re-il~lroosOr2sin8drd8dcp ~ lR
JLl x + J1.2Y + JLaZ = IJLlr cos 0, dx dy dz = r2 sin 0 dr dO d<p, and the integral is
2w w
= r sin(rlILlJdr
The result of Example 5.1.10 can be used to find a simple formula for the
integral of e'(l-&lX+1-&2Y+1-'3 Z ) on the surface of the sphere Ixl = r. Indeed, the volume
integral and surface integrals are related by
Jrr1x2+y2+z2~R2
r r (Jr r
R
e'(1-'l X+1-'2Y+1-&3 Z ) dx dy dz = ei (1-'l X+1-&2Y+1-&3 Z ) dS) dr
1 10 1x2+y2+z 2=r 2
Therefore
Jr r
1x2+y2+z2=R2
ei (l-&l X+1-'2Y+1-&3 Z }dS = ~ J"
dR
rr
J1x2+y2+z2'5R2
ei (l-&lX+1-'2Y+1-&3 Z ) dxdydz
This is defined whenever the relevant integrals are finite. For example if f(x) =
e-x2/2u2, then Do(f) = (J2/2, Do(F) = 1/(2(J2) and the product is Do(f)Do(F) =
1/4. In the general case we have the following inequality.
PROPOSITION 5.1.1. (Uncertainty principle). Let f(x), -00 < x < 00, be
a complex-valued function with Fourier transform F(p,), for which the integrals
defining Do(f), Do(F) are finite. Then we have the inequality
1
Do{f)Do{F) ~ 4
Equality holds if and only if f is a normal density function centered at x = 0; in
detail, f(x) = Cle-x2/2u2, F(/-l) = C2e-u2p2/2 for suitable constants CIt C2, (J2.
-Re I pFF'dp ~ II pF(p)F'(p) dpl ~ U IpF(p) I' dp) 1/. U1F'(p)I' dp) 1/'
where we have applied the Schwarz inequality to the functions F'(p,) and p,F(p,).
Now we apply Parseval's theorem twice, recalling that the Fourier transform of
xf(x) is iF'(p,):
will yield a finite value of Do(F) if and only if Re A > O. To show that 1m A = 0,
we write A = Q + i[J and compute F'(p,) = _CAp,e- A I'2/2, F(p,) = Ce- AIJ2 / 2 :
I: (1:
we make the following transformations:
-00
sin M(x - {) f({)d{
(x - {)
OSinMTJ
=
12
-00
--f(x+TJ)dTJ
TJ
where we have interchanged the order of integration and made the substitution
1/ = { - x. Using the Riemann lemma of Chapter 1, Sec. 1.2, it follows that
the integral ~'112:6(sin MTJ/TJ)f(x + TJ)dTJ tends to zero when M tends to infinity,
for any positive number O. It remains to analyze the integral for -0 ~ TJ ~ O.
Another use of the Riemann lemma shows that each of the integrals
sinMTJ
and
2
1 o
6
- - [f(x + TJ) - f(x
TJ
+ O)]dTJ
sinMTJ
2
1 0
-6
- - [f(x
1/
tends to zero when M tends to infinity. Therefore
+ TJ) - f(x - O)]d1/
. 1
hm 2
M-+oo
6
-6
sinM1/
- - f(x
TJ
+ TJ)dTJ = [J(x + 0) + f(x - .
0)] hm
M-+oo
1
6
-6
sinMTJ
-
TJ
- dTJ
EXERCISES 5.1
25. Combine the previous two exercises with the uncertainty principle to show
that for any (a, m) and any f, we have the inequality Da{f)Dm{F) 2 1/4
with equality if and only if
A{p,) = - 11
~ -00
00
f(x) cos JLX dx, B(JL) = - 11
~
00
-00
f(x) sin JLX dx
lim
M-+oo
J.M (A(JL) cos JLX + B(JL) sin /-LX) dJL = -21 f(x + 0) + -21 f(x -
0
0)
28. (Generalized h-transform) Suppose that h > 0 and that f{x), x > 0, is
piecewise smooth and integrable. Define i(x), -00 < x < 00, by the
formula i(x) = f( -x) - 2he h:r fo-% ehy f(y) dy for x < 0, while i(x) = f{x)
for x > o.
(a) Show that i is integrable and the Fourier transform of j is given
by
F( ) = -ip,Fe(JL) - ihFs(JL)
p, 2(h - iJL)
where Fe, Fs denote the Fourier cosine and Fourier sine transforms of
f(x),O < x < 00.
(b) With reference to Exercise 27, show that
2
A( ) = J.L2 Fe(J.L) + hJ.LFs(J.L) B( ) = hJ.LFe{P,) + h Fs(p,)
J.L h2 + J.L2 ' J.L h 2 + JL2
(c) Conclude that we have the inversion formula
lim
M-+oo
J.M /LCOS~
0
+ ~2SinJ.tX (/LF,(/L) + hF,(/Llld/L
J.L +
1 1
= 2f (x + 0) + 2f (x - 0)
294 5. FOURIER TRANSFORMS AND APPLICATIONS
(d) Show that in the limiting case h -+ 0 we retrieve the Fourier cosine
inversion formula where i'(O) = 0, whereas in the limiting case h -+ 00 we
retrieve the Fourier sine inversion formula, where i(O) = O. The interme-
diate cases correspond to the boundary condition i'(0) - hi(O) = O.
29. Let f(x) = 1 for 0 ~ x ~ Land f(x) = 0 for x> L. Find the h-transform
representation of the function f(x), 0 < x < 00, described in the previous
exercise.
f(x) = L anetn1rx/L
n=-oo
an = ~ lL f(x)e-in1rx/Ldx
2L -L
To take the limit when L -+ 00, we follow the method of Sec. 5.1. We let
FdJ,L) = 21 jL f(x)e-tl1Xdx
1T -L
n7r
J,Ln = -
L
1T
D.J.Ln = J.Ln+l - J.Ln =L
5.2. SOLUTION OF THE HEAT EQUATION FOR AN INFINITE ROD 295
I:
u(x; t). Thus from (5.1.6) and (5.1.7) we have
(5.2.6) U(J.L; t) = - 1
21r -00
1 00
u{x; t)e-'JJXdx
.
Assuming for the moment that the derivatives can be taken under the integral,
we have
U,(X; t) = I: U,(/L; t)eiPXd/L
u,,%(x; t) = I: 2 i
U(/L; t)(i/L) e I'Xd/L
296 5. FOURIER TRANSFORMS AND APPLICATIONS
I:
Proof. To prove that u satisfies the heat equation, it suffices to prove that
p2K
(5.2.7) ".(x; t) = F(J.')iJ.'e'''''e- 'dp
To estimate this term, notice that from the Taylor remainder formula
The integral on the right is absolutely convergent. Taking the limit as h --+ 0, we
have proved (5.2.7). It is left as an exercise to prove (5.2.8) and (5.2.9) by the
same method. This completed, we have proved that the Fourier representation
(5.2.3) gives a rigorous solution of the heat equation. It is a remarkable fact
that u is differentiable to any order, in spite of the fact that f is assumed only
piecewise smooth.
I:
To prove that the initial condition is satisfied uniformly, we write
The right side tends to zero when t --+ 0, which completes the proof.
J
-00
dp, = 21r--==~
e'/S(z-~) e-/S
J47rKt
Kt
(5.2.10)
We will give an independent proof below that (5.2.10) defines a solution of the
initial-value problem (5.2.1). The function (t,x,e) --+ e-(z-~)2/4Kt/J47rKt is
called the Gauss- Weierstrass kernel or the fundamental solution of the heat equa-
e,
tion; for each this function of (x, t) is a solution, from which the general solution
is obtained by a continuous superposition over all possible values of This is to e.
be contrasted with the Fourier representation (5.2.3), which represents u(x; t) as
a continuous superposition of separated solutions.
298 5. FOURIER TRANSFORMS AND APPLICATIONS
Therefore it suffices to prove that we can differentiate under the integral sign:
u(h; t) - u(O; t)
h -
1 t v'2irt
00
-00
{ e-~2/2t
f(e) de
(e-({-h)2/2t - e-~2/2t e_ 2 2t) f(e)de
1
00
= - -e {/ --
-co h t ../27rt
For any fixed M, this integral may be written as f~oo = ~{15M + ~{I>M' The
integral over I{I ::; M tends to zero when h -+ O. To handle the integral over lei>
M, we examine the two terms (derivative and difference quotient) separately; in
5.2. SOLUTION OF THE HEAT EQUATION FOR AN INFINITE ROD 299
~I r
h J~>M
(e-ce-h)2/2t - e-e/ 2t ) f(f.)d(.I::; A 1~>M t
~e-e2/2tdf, = 2Ae- M2 / 2t
which can also be made less than /2 by choosing M sufficiently large, indepen-
dent of h; Taking the limit when h --+ 0, we see that for any e > 0
sup IU(h;t)-U(O;t) -
I1m -e
lOf,
-e/ 2tf (f,) cte l < f
h-+O h -00 t V27rt
This holds for any e > 0; hence the indicated limit superior is zero, and we have
proved the first differentiation formula. The proofs of the formulas for U xx and
Ut are carried out in a similar manner.
To prove the stated form of the initial conditions, we first make the change
of variable z = (x - f.)/.;i, which leads to
00 -z2/2
Given
u(x; t) =
= {l +1lJ
o
/../t
00
6/';;'
} [f(x - zv't) - f(x _ 0)] e-~2 dz
V 27r
In the first integral we use (5.2.11) and obtain the upper bound
6/0, e-z2/2
E
1 o
--<-
V2i - 2
In the second integral we note that If(x - zVi) - f(x + 0)/ $ 2A; therefore the
second integral is bounded by 2A flJj0, e- z2 / 2dz, which tends to zero when t --+ o.
Therefore
-~~d
1
00
lim sup [J(x - zVt) - f(x - O)]e ~ z ~ e
t-+O 0 27r
300 5. FOURIER TRANSFORMS AND APPLICATIONS
and discuss limt .... o u(x; t). Graph the solution at t = 0, t = 0.01, t = 1, t = 100
if K = 1/2, a = -1, b = 1, T = 1.
Solution. Formula (5.2.10) reduces to
u(x;t) = Tlb exp[-(x - ~)2/4Kt] d~
a J41rKt
(x-a)/.f2Ki, dz
- T
- l
(z-b)/..;2Kt e
-z2/2
~
I J
0 x<a
T/2 x=a
limu(x, t)
40
= T a<x<b
T/2 x=b
0 x>b
EXAMPLE 5.2.3. Two materials of the same conductivity are initially at dif-
ferent temperatures TI and T 2 Find the temperature at all later times when heat
is allowed to flow between the two materials. Discuss the approach to a steady
state.
Solution. Suppose that the first material occupies the negative axis x < 0
and the second occupies the positive axis x > O. Letting u{x; t) denote the
temperature at the point x at time t, we have the initial-value problem
= Tl [1- (_x
<P
.J2Kt
)] +T2<P (_x
J2Kt
)
The graphs in Fig. 5.2.2 depict u(x; t) for three values of t when K = 200, T} = 25,
T2 = 100.
To study the approach to steady state, we recall that lim:r:-+o <p{x) = <p(0) = ~.
Therefore limt-+oo u(x; t) = ~Tl + ~T2 for any x. To proceed further, we write
= Tl [~-<p
2
(_x
J2Kt
)] +T2 [<p (_x
.J2Kt
) _~]2
= (T2 - T1 ) [<p (_x ) - ~]
J2Kt 2
5.2. SOLUTION OF THE HEAT EQUATION FOR AN INFINITE ROD 303
u(x; t) = 1
V41fKt -00
1 00
e-(x-f.)2/4Kt e bF. ~
= 1 e-x2/4Kt1O exf./2Kte-.2/4Kteb. ~
V41fKt -00
= ebxeb2Kt
This example shows that the Gauss-Weierstrass integral can be applied to certain
unbounded functions. Additional examples of this type are contained in the
exercises.
u(x; t) = 1 00
exp[-(x -
v'41rKt
~)2 /4Kt] l(~)d~
(1 +1
-00
0
~)2 14Kt] j(.)d{
00
= ) exp[ -(x -
-00 0 J41rKt
In the first integral we change (. to -~ and use the oddness of j. Thus
(5.2.13) u(x; t) = 1 00
o
exp[-(x - e)2/4Kt] - exp[-(x + ~}2 14Kt] f(~) d(.
v'41rKt
EXAMPLE 5.2.5. Use the method of images to solve the inital-value problem
for the heat equation with u(x; 0) = 1, with the boundary condition u(O; t) = o.
Solution. From formula (5.2.13), we have
u(x; t) = 1o
00
exp[-(x - (.)2 /4Kt] - exp[-(x + e)2/4Kt] fee) d{
J41rKt
= 4J(x/J2Kt) - 4J( -xlv'2Kt)
EXAMPLE 5.2.6. Use the method of images to solve the inital-value problem
for the heat equation with u(x; 0) = eln , with the boundary condition u(O; t) = O.
Solution. Applying (5.2.13) directly, we have
u(x; t) = 1o
00
exp[-(x - e)2/4Kt] - exp[-(x + (.)2/4Kt] ebf. d{
v'41rKt
5.2. SOLUTION OF THE HEAT EQUATION FOR AN INFINITE ROD 305
This can be expressed in terms of the normal distribution function cJ? Making
the change of variable z = (e - x)/v'2Kt, the first integral is transformed as
follows:
1o
exp[-(x - e)2/4KtJ
00
-~~===~--=.e
v'4rr Kt
b{,/C
~ - eb:t
_ 1 00
-:t/..tfKt.
-
z2j2
e-- ebzv'2Kt dz
V2-i
00 e-(z-bv'2Kt)2/2
= eb:t e b2 Kt
1-:tj..!2Ki $
dz
= eb:teb Kt
2 1 00
-:t/v'2Kt-bv'2Kt
_
u2j2
e- _
..J2-rr
du
(5.2.14) u(x; t) = 1
00
o
exp[-(x - e)2/4Kt] + exp[-(x + e)2/4Kt] f(e) ~
v'41rKt
EXAMPLE 5.2.7. Use the method of images to solve the inital-value problem
for the heat equation with u(x; 0) = 1, with the boundary condition u:t(O; t) = O.
306 5. FOURIER TRANSFORMS AND APPLICATIONS
= ~(x/J2Kt) + ~(-x/J2Kt)
5.2.6.3. Mixed boundary condition at x = O. As a final "variation on the
theme," we consider the initial-value problem
Ut = KU!I:!I: t> O,x > 0
U!I:(O; t) - hu(O; t) = 0 t>O
u(x; 0) = f(x) x>O
where h is a positive constant; this is the general homogeneous boundary condi-
tion of the third kind at x = O. Since U z - hu is zero when x = 0, it is natural to
extend the initial data f(x) so that f'(X) - hf(x) is an odd function, continuous
at x = O. This may be done by solving an ordinary differential equation, and is
closely related to the generalized h-transform described in Sec. 5.1.
Assuming that we have extended f(x),O < x < 00, to j(x), -00 < x < 00,
so that
j'(x) - hj(x) = -I'( -x) + hl( -x)
we define
U(x; t) = 1
J47rKt -00
1 e-(!I:-()2/4Ktj(~J
00
de
Clearly, u(x; t) satisfies the heat equation with the initial condition u(x; 0) = I(x).
To verify the boundary condition, we write
= 1
J47rKt -00
1 00
i'(e)e-e / 4Kt de
2
Therefore
U!I:(O; t) - hu(O; t) 1=
../47rKt -00
1 00
The integrand is an odd function; hence the integral is zero, and we have proved
that the boundary condition U!I: - hu = 0 is satisfied.
To compute j(x) for x < 0, we must solve the first-order ordinary differential
equation
l'(x) - h j(x) = g(x) = - f'( -x) + h f( -x)
5.2. SOLUTION OF THE HEAT EQUATION FOR AN INFINITE ROD 307
EXAMPLE 5.2.8. Solve the heat equation Ut = Ku xx for x > 0, t > 0, with the
boundary condition ux(O; t) - hu(O; t) = 0 and the initial condition u(x; 0) = e- ax ,
where a > O.
Solution. In this case we have g(x) = - 1'( -x) + hf( -x) = aeax + he ax =
(h + a )eax. Therefore we have, for a i= h,
+ 1 1
J 47r K t
0
-00
[-~ehf.
e-(x-F.)2/4Kt + a eaf.] d{
a- h
h- a
_ h
If h = a, the integral gives j(x) = ehX [l + x(h + a)] = eax (1 + 2ax) and a
corresponding formula for u(x; t) .
Figure 5.2.3 displays the method of images in the limiting case a = 0, where
f(x) = 1,x > O.
f(x) =1,x>O
EXERCISES 5.2.6
1. Show that the solution formula (5.2.10) can be written in the form
00 e-z2/2
U(X; t) =
1-00
J(x - zV2Kt)
v2~
fie. dz
(J2 02
Icos 0 - 11 :5 "2' Isin 0 - 01 :5 "2
Hint:
(J1(JI cos <pd<pdO 19191 sin <pd<pd0
1 - cosO =
10 0 lt sinO - 0 = - 0 0 1
= {~
o ~ x ~ Ll
u(x;O)
x> L1
Show that U(Xi t) = O(t- 1/ 2) when t -? 00.
8. Consider the following initial-value problem for a heat equation with trans-
port term:
Ut = Ku xx + vU x t > 0, -00 < x < 00
u(x; 0) = f(x)
5.2. SOLUTION OF THE HEAT EQUATION FOR AN INFINITE ROD 309
u(x' t) =
,
1-00
00
exp[-{x - y + vt)2/4KtJ J( )d
V41rKt Y Y
(c) Show that u{x; t) = O{e-v2t/4K), t -+ 00. You may suppose for this
purpose that /(y) = 0 for Iyl ~ 5.3 x 106
9. Show that (5.2.13) can be written in the form
u(x; 0) = I(x)
where a is a positive constant that represents the strength of the source
term, per unit of temperature.
(a) Find a Fourier representation of the solution.
(b) Find an explicit representation of the solution, corresponding to the
Gauss-Weierstrass integral (5.2.10).
12. Consider the following initial-value problem for a heat equation with a
transport term and a linear source term:
Ut = K U xx + vU x + au t > 0, -00 < x < 00
u(x; 0) = I(x)
where a, v are nonzero constants
(a) Find a Fourier representation of the solution.
(b) Find an explicit representation of the solution, corresponding to the
Gauss-Weierstrass integral (5.2.10).
310 5. FOURIER TRANSFORMS AND APPLICATIONS
13. Consider the following initial-value problem for a heat equation with a
linear time-dependent source term:
Ut = Ku xx + atPu t > 0, -00 < x < 00
u(x; O} = f(x}
where a, p are positive constants.
(a) Find a Fourier representation of the solution.
(b) Find an explicit representation of the solution, corresponding to the
Gauss-Weierstrass integral (5.2.10).
14. Consider the Gauss-Weierstrass integral (5.2.10) when the function f(x),
-00 < x < 00, satisfies If(x)1 ~ Ae
bx2
where A, b are positive constants.
(a) Show that the Gauss-Weierstrass integral is convergent ift < 1/4Kb.
(b) Show that the initial condition is satisfied if f(x), -00 < x < 00,
is piecewise continuous.
15. Solve the heat equation Ut = Ku xx with the initial conditions u(x; 0) = TI
if x < 0 and u(x; 0) = 0 if x > O. Show that the level curves u(x; t) = C
are parabolas passing through (0,0) in the (x, t) plane. Plot these level
curves if K = ~, T} = 100 for the values C = 10, C = 30, C = 50.
16. Two materials of the same conductivity K and temperatures T!, T2 are
brought together at t = O. Find the time r* such that lu(x; r*) - (~Tl +
~T2)1 < 0.21Tl - T21, where u(x;t) is the solution of the heat equation.
17. Solve the heat equation Ut = K U xx with the initial conditions u(x; 0) = Tl
if -L < x < 0, u(x;O) = T2 if 0 < x < L, and u(x;O) = 0 if Ixl > L. What
is limt-+oo u(x; t)?
18. Verify directly that u(x; t), defined by (5.2.6), satisfies the boundary con-
dition u(O; t) = O.
19. Verify directly that u(x; t), defined by (5.2.7), satisfies the boundary con-
dition ux(Oj t) = O.
20. Consider the heat equation Ut = Ku xx with u(x; 0) = x n , where n =
1,2, ... Show that a solution can be found in the form u(x; t) = xn +
al (t)x n - 1 + ... + an-I (t)x + an(t) for suitable functions al (t), ... ,an(t).
5.2.7. The Black-Scholes model. In this subsection we indicate an appli-
cation of the heat equation to financial mathematics-specifically, to the problem
of pricing an option on an asset purchased at t = 0 and maturing at time t = T.
At that time it will have an exercise price E, which is to be compared to the
market value of the asset, denoted S. If S ~ E, then the option is worthless
and the final value is zero. Otherwise S> E and the asset can be sold, realizing
a profit of S - E. The time-dependent value of the option is denoted V (S, t),
defined for S 20, 0 ~ t ~ T.
In order to formulate the mathematical model, we assume the following fi-
nancial parameters to be given: a, the volatility of the asset, and r, the interest
rate. The volatility is associated with random fluctuations of the value of assets,
5.2. SOLUTION OF THE HEAT EQUATION FOR AN INFINITE ROD 311
whereas the interest rate is associated with deterministic changes in asset values.
Using a stochastic modeP leads to the following partial differential equation for
the value function:
av (72 8 2 ~V av
(5.2.15) at + -2- a82 + r8 a8 - rV = 0 8 > 0, 0 ~ t ~ T
with the boundary conditions
V{O;t) = V(8; t)
8
1 8
-+, -+00
The first of these indicates that if the stock is worthless, then so is the option.
The second indicates that if the price is very large, the value of the option should
be accordingly large. The final value of the option is defined by the statement
V(8;T) = max(S - E,O)
as explained above.
Note that the Black-Scholes equation (5.2.15) cannot be solved directly by
the previous methods because of two new features: (i) it contains the variable
coefficients 8 and 8 2 multiplying two of the terms and (ii) it is written in the
backward time direction, with a "final value" instead of an initial value. We will
now remedy these two difficulties.
5.2.7.1. Transformation to the heat equation. Equation (5.2.15) can be trans-
formed to the standard heat equation by the following series of transformations.
First we define new independent variables (x, T) by
x = log(S/ E), T = T - t
These satisfy -00 < x < 00, 0 ~ T ~ T, dx/d8 = 1/8, dT/dt = -1. A new
function is defined by setting
v(x, T) = V(~' t)
Computing directly, we have
av av
vt = at = - E aT = - EVT
av av 1 E
Vs = -a8 = E--
ax8
= -v
S x
a2 v E a2 v E av E
Vss = a82 = 8 2 8x2 - 82 ax = 8 2 (v xx - vx )
resulting in the equation
(72 (72
(5.2.16) V
T
= -v
2 XX + (r - -)v
2 x - rv
1 P. Wilmott, S. Howison, and J. Dewynne, The Mathematics of Financial Derivatives,
Cambridge University Press, New York, 1995.
312 5. FOURIER TRANSFORMS AND APPLICATIONS
In order to eliminate the terms with Ux and u, we are led to the equations
where we have used the symmetry of the normal distribution in the form <l>(u) +
<1>( -u) = 1. Similarly, 12 is obtained by replacing k + 1 by k - 1, hence
12 = e l{k-l):t
2 *
eo (uv'T(k-l2 ""
':It'
(x + aayr 2
r(k - 1)/2)
r,;
314 5. FOURIER TRANSFORMS AND APPLICATIONS
EXERCISES 5.2.7
1. Consider the second-order parabolic equation VT = (a 2 /2)v:r:x + aV:r: + bv,
where a, b, and a are constants. Show that this can be reduced to the
standard heat equation for the function u defined by v = u eQX+PT for
suitable values of O!, {3.
2. Consider the second-order parabolic equation U T = (a( 7)2 /2)u xx . Show
that this can be reduced to the standard heat equation by defining a new
time variable t = 1/1(7) for a suitable choice of 1/J.
Hk{x) = (!r 2
(etz-. / 2 )It=o k = 0, 1,2, ...
The equality of these two power series implies the equality of the corresponding
coefficients-hence the orthogonality relations as stated. In particular, the func-
tions (27r)-1/4H,,(x)/Vicl are orthonormal with respect to the weight function
e- x '/2.
In order to express the orthogonality without a weight function, we introduce
the Hermite functions
k = 0,1,2 ...
which satisfy
(5.2.20)
Apart from the constant factor -I2i, the operation of Fourier transformation re-
produces the kth Hermite function, multiplied by the factor (_i)k, k = 0, 1,2 ....
For example, the function (2X2 - 1)e- X2 /2 is proportional to the negative of its
Fourier transform.
To prove (5.2.20), we can use the technique of generating functions, by writing
tk
L
00
,Hk(xV2)e-x2/2e-ZP.X = etxv'2-t2/2-zp.x-x2/2
k=O k. = e-(x'-2x(tv'2-Zp.)/2e-t2/2
= e-[X-(tv'2-Sp.)]' /2et' /2-iJJ tv'2-p.2/2
316 5. FOURIER TRANSFORMS AND APPLICATIONS
Hermite polynomials can also be used to solve the heat equation in one dimen-
sion with polynomial initial conditions. To see this, first note that for any complex
number 0, the function (t, x) -7 eoxeo2Kt is a solution of the heat equation. On
the other hand, from the generating function, we have
Since the sum of this power series satisfies the heat equation identically in 0,
it follows that each term of the series satisfies the heat equation. Formally, we
define the heat polynomials by
In detail, we have the following for the first few heat polynomials;
5.2. SOLUTION OF THE HEAT EQUATION FOR AN INFINITE ROD 317
o 1
1 x
2 X2 + 2Kt
3 X3 + 6Ktx
4 X4 + 12x2 Kt + 12K2t2
EXAMPLE 5.2.9. Solve the heat equation Ut = K Uxx for t > 0, -00 < x < 00,
with the initial condition u(x; 0) = 2 + 6x + 3X4.
Solution. Any finite sum of the form ~:=o akHk(Xj t) is a solution of the
heat equation with initial conditions 2::=0 akxk. To satisfy the stated initial
conditions, we set ao = 2, al = 6, a4 = 3, and ak = 0 otherwise. The solution is
u(Xj t)=2Ho(xj t) + 6H.(xjt) + 3H4(xj t)=2 + 6x + 3(X4 + 12x2Kt + 12K2 t 2 )
EXERCISES 5.2.8
1. Use the generating function for Hermite polynomials to prove the equations
Hk(x) = kHk-1(X), k = 1,2 ....
2. Use the generating function for Hermite polynomials to prove the equations
H k+1 (X) = XHk(X) - kHk-1(X), k = 1,2 ....
3. Combine the results of the two previous exercises to prove the following
differential equation satisfied by the Hermite polynomials: HI: (x) -
xH~(x) = -kHk(x), k = 0,1,2 ....
4. Consider the partial differential equation Ut = Uxx - XU x.
(a) Show that separated solutions may be obtained in the form u(x; t) =
e- kt Hk(x), k = 0,1,2 ....
(b) Show directly, or by using the generating function, that for any
complex number a, the function (t, x) ~ exp(axe- t -la2 e- 2t } is a solution.
(c) Find a Fourier representation of the solution of the equation Ut =
Uxx - XU x for t > 0, -00 < x < 00 with u(x; 0) = f(x} = J~ooF(J.L)e'PX.
(Hint: Take a = iIJ. and form a continuous superposition with respect to a
suitable function of p..)
(d) Find an explicit representation of u(Xj t) by using the convolution
theorem and the Fourier transform of the normal density.
5. Use Exercise 3 to show that the functions k(X) = e-x2j4Hk(X) satisfy the
differential equation Z(x) - (x2/4)k(X) = -(k + l)k(X) for 0 = 1,2, ....
6. Carry through the computations of Exercise 4 for the partial differential
equation Ut = Uxx - (x2/4)u.
7. Solve the heat equation Ut = K U xx for t > 0, -00 < x < 00 with the initial
conditions u(Xj 0) = 2 + 3x + 2x 3 + 6x4.
318 5. FOURIER TRANSFORMS AND APPLICATIONS
9. Use part (b) of the previous exercise to give a new proof of the orthogonality
relations (5.2.19)
10. Show that the functions H,,(x)H,(y)e-(k+l)t satisfy the partial differential
equation Ut = Uxx + u yy - XU x - YU y Generalize to three variables.
11. Show that the Fourier transform of H k(x)e- x2 /2 is proportional to the func-
tion (ip,)k e-p.2J2 and find the constant of proportionality.
12. Show that the Hermite polynomials are given explicitly by the formulas
n (_1)k(2n)!x2n-2k
n (-1)k(2n + 1)!x2n-2k+l
H2n+I (X) = ~ 2kk!(2n - 2k + 1)!
13. Use the result of Exercise 12 to show that the Hermite polynomials are
bounded, in the form
(5.3.2) k = 1,2
(5.3.3) k = 1,2
The desired Fourier representation of the solution y is
0= l:[Y,,(,..;t) +"z,..2y(,..;t)]ei""d,..
Comparing this with (5.3.3) and the initial conditions of (5.3.1), we see that we
must have
Substituting these into (5.3.5) and returning to (5.3.4), we have the Fourier
representation
1
(5.3.6) y(x; t) =
1 00
-00
[ sin JLct e'fJ.XdJL
Fl (JL) cos JLct + F2 (JL)--
JLC
This is the desired representation by Fourier transforms. Using this, we can also
obtain an explicit representation in terms of the given functions It (x), f2(X). To
do this, recall that
320 5. FOURIER TRANSFORMS AND APPLICATIONS
Thus
Similarly,
100 J::1 (
-00
L'2
) sin J.Lct 'I-'Xd
J.L - - e
/l-C
J.L =
(5.3.7) 1 [It (x
y(x; t) = 2 + ct) + It (x - 1
ct)] + -2 l
c x-ct
x ct
+ h(()cLe
This was derived in Chapter 2 in the context of the vibrating string, where we
had the boundary conditions y(O; t) = 0 = y(L; t). We now see that the formula
is, in fact, more general. The first term corresponds to a superposition of two
traveling waves, with velocities c. The second term has a similar interpretation.
We can show that (5.3.7) solves the initial-value problem (5.3.1) without any
recourse to the Fourier transform. For this purpose we assume that 11 has two
continuous derivatives and h has one continuous derivative. (This is in marked
contrast with the heat equation, where piecewise smooth initial data are sufficient
to ensure that the solution is differentiable to all orders for t > 0.) The details
are left as an exercise.
In many applications of the wave equation we would like to apply d' Alembert 's
formula in the case where fl' h are only piecewise smooth. For this purpose we
enlarge the concept of solution in the following way. A function y(x; t) is said
to be a weak solution of the wave equation if there exists a sequence of ordinary
solutions Yn(Xj t) such that Y(Xj t) = limn -+ oo Yn(x; t). With this extended concept
of solution, we can say that (5.3.7) provides a weak solution of the wave equation
5.3. SOLUTIONS OF THE WAVE EQUATION AND LAPLACE'S EQUATION 321
for any piecewise smooth fI, f2. The solutions Yn(x; t) may be taken to be the
integrals (5.3.6), where the range of integration is restricted to -n ~ J.L ~ n.
The concept of weak solution can be considered at a more abstract, or intrin-
sic, level. To motivate this, note that if y(x; t) is an ordinary solution of the wave
equation, then for any smooth function 7f;(Xj t) that is zero outside a sphere, we
can integrate by parts twice to conclude ff(7f;tt(x; t) -r?7f;xx(x; ty(x; t) dx dt = O.
We now define a weak solution of the wave equation in the extended sense as any
function y(x; t) for which this integral is zero for all smooth functions 1/J with
compact support, i.e., zero outside a sphere. With this intrinsic definition, one
can show that any pointwise limit of a sequence of ordinary solutions is a weak
solution in the extended sense. It is less obvious, but nonetheless true, that any
weak solution in the extended sense is a pointwise limit of ordinary solutions.
The d'Alembert formula can be combined with the method of images to solve
initial-value problems for the wave equation in the half-line x > O. This corre-
sponds to an infinitely long vibrating string with boundary conditions imposed
at one end. For example, we consider the initial-value problem
2
Ytt = c yxx t> O,x > 0
y(Oj t) = 0 t>O
y(x; 0) = f(x) x>O
Yt(Xj 0) = 0 x>O
corresponding to an infinite string that is tied down at the end x = O. To solve
this problem, we extend f as an odd function to x < 0 by defining j( -x) = - j(x)
for all x and j(x) = f(x) for x > O. Substituting in d'Alembert's formula, we
have
1 - -
y(x; t) = 2[f(x + ct) + f(x - ct)]
This function satisfies the boundary conditions, since y(Oj t) = l[j(ct)+ j( -ct)] =
o and j is an odd function.
If instead of the boundary condition y(Oj t) = 0 we have the boundary condi-
tion Yx(O; t) = 0 (meaning that the end of the string at x = 0 is free to move),
then the solution of the wave equation with the same initial conditions is given
by the same formula y(x; t) = ll(x+ct)+ ~l(x-ct), where now! is the even ex-
tension of f, th~t is, the function f defined for all x and satisfying f( -x) = l(x)
for all x while f(x) = f(x) for x > O.
5.3.2. General solution of the wave equation. The Fourier method can
be used to find the general solution of the wave equation Ytt = c?Yxx. Writing the
solution in the Fourier representation y(x; t) = f~Y(t; t)etJJXdj.L, we substitute
I:
in the wave equation to obtain
The equation Yet + C2J-L2y = 0 has the general solution Y(J-Li t) = C(J.L)e1p.ct +
D(J-L)e- ,pct The solution y(x; t) can be computed as
= 1: [C(I')ei"" + D(I')e-''''']e'''''dl'
( t)
Y x; =
{Os (t - (x/c
x - ct >
x -
0
ct < 0
If we think of set) as a signal emitted from the source x = 0, the result of
the previous example states that an observer positioned at x > 0 does not sense
the signal until t = x / c time units have elapsed and, after that, the signal is
received verbatim, without distortion or damping. The graphs in Fig. 5.3.1 give
the solution for several values of t in the case set) = 3 sin 2t.
Example 5.3.1 can be combined with d' Alembert's formula to solve a general
initial-value problem for the wave equation in the half-space x > O. Consider, for
example, the problem
Ytt = c2 yxx t > 0, x > 0
yeO; t) = set) t>0
y(x;O) = f(x) x> 0
Yt (x; 0) =0 x >0
The solution is y(x; t) = !i(x + ct) + !i(x - ct) for x > ct, whereas y(x; t) =
4i(x + ct) + 4i(x - ct) + set - x/c) for x < ct.
5.3.3. Three-dimensional wave equation and Huygens' principle.
We now consider the three-dimensional wave equation
Utt = c2 V 2 u = c2 (u xx + U yy + U ZZ )
324 5. FOURlER TRANSFORMS AND APPLICATIONS
/------------------x
y(x; t)
t=O
(0,0) ...
(O.3)b,
t=!! x
~,O)
4
x
(O'O)A
(2"',0)
1=3",
4
(0, -3) b --~~-----(3C~:,O-)---------X
1 = '" (O'O)~'O) x
(O.3)~ ~ x
1=51t
4
r--~ (~".O)
1=3",
2 (O.O)~,
r-- ~~X(3~1<.O)
FIGURE 5.3.1 Solution of the wave equation.
U(x,y,z;O) == fl(X,y,Z)
Ut(X, y, z; 0) == f2(X, y, Z)
5.3. SOLUTIONS OF THE WAVE EQUATION AND LAPLACE'S EQUATION 325
(5.3.8)
EXAMPLE 5.3.2. Use the Fourier representation (5.9.8) to solve the three-
dimensional wave equation Utt = c2v 2u if u(x, y, Zj 0) == 0, while Ut(x, y, Zj 0) = 1
for x 2 + y2 + z2 < R2 and zero othenoise.
Solution. We must compute the three-dimensional Fourier transform F2
Repeating the computations of Example 5.1.10, we have
2
= exp[-ilplr cos IJJr sin IJ dr dO dIP
= (~) 2 r R
exp[ -~IJ-Llr cos 9] 1 =tr r 2 dr
8
11
I~I=R
e,(p'()dS = 41TR"Si~J~R IJLI ,,0
If IJ-LI = 0, the surface integral is 411' R2, the area of the surface of the sphere. We
use this with R = ct to write
e'{Il,X) sin ctlJ-L1 = _1_ ({ ei{l'.x+~)dS
clJ-L1 41rtc2 JJ
1~I=ct
We mUltiply this equation by Fk(J-L), integrate dJ-L, and formally interchange the
order of integration to obtain2
(5.3.9) = 41T~c2 11
1(I=ct
ik(x + t;)dS
= tMctlk k = 1,2
where we have defined the mean-value operator by
MRf(x) = 41T~ 11
I{I=R
f(x + t;)dS
Combining this with the first formula, we have the desired explicit representation:
d
(5.3.11) u(x, y, Z; t) = Cit (tMcth) + tMcth
This representation displays an important property of the three-dimensional
wave equation, Huygens' principle, stated as follows. If 11 and h are zero for
(x 2 + y2 + z2)l/2 ~ R, then u(x, y, z; t) = 0 for ct > R + (x 2 + y2 + z2)1/2. This
results from the fact that (5.3.11) contains only surface integrals over a sphere
2This can be made rigorous by inserting the factor e- E1 1'12 inside the integral and taking
the limit -+ 0 after the interchange.
5.3. SOLUTIONS OF THE WAVE EQUATION AND LAPLACE'S EQUATION 327
UI
FIGURE 5.3.2 Illustrating Huygens' principle: f, and h are zero outside the
sphere of rad ills R about (0, 0, 0). If ct > R + IX2 + y2 + Z2, then f, and hare
zero on the surface of integ ration (labeled III).
Clearly u(P; 0) = O. The first time derivative is given by the product rule:
1 ct
(5.3.12) Ut(P; t) = 4 fr'r f(P + ctw)dS + 4 fro r (\/ f)(P + ctw) . wdS
'Ir J Iwl=l 'Ir J Iwl=l
In particular Ut(P; 0) = f(P). To proceed further, we transform the second
integral by the divergence theorem as follows:
~ rr
ct
(\/ f)( P + ctw) . w dw = 4 r, (aaf) (P + ctw)d W
47r JJ /wl=1 7r JJ Iwl=l n
=
1
-4
'lrct
let (/ /
0 lel=r
(\/2 !)(P + e) dS) dr
ux.(P; t) = 4t
7r
frJf Iwl=1
fx.(P + ctw)dS i = 1,2,3
u x x ) (P; t) = 4t
7r
frJf Iwl=!
fx.x) (P + ctw)dS i,j = 1,2,3
5.3. SOLUTIONS OF THE WAVE EQUATION AND LAPLACE'S EQUATION 329
In particular,
(~
8t2
-
2 2
C V ) V = (!:...
8t
- V
2
C
2 2
) U
t
= (8 u _ V
2
C2 2 U)
(Jt2 t
=0
since U is a solution of the wave equation. To verify the initial conditions, we again
appeal to the result of the previous theorem to obtain v(P; 0) = Ut(P; 0) = f(P)
and Vt(P; 0) = Utt(P; 0) = c2V 2 u(P; 0) = 0, completing the proof.
Adding the results above, we can obtain the solution of the initial-value prob-
lem as follows.
THEOREM 5.7. Suppose that It (P) has three continuous partial derivatives
and that f2(P) has two continuous partial derivatives. Then Jormula (5.9.11)
defines a solution oj the wave equation satisfying the initial conditions
u(P; 0) = it (P), Ut(P; 0) = h(P)
5.3.5. Application to one- and two-dimensional wave equations. For-
mula (5.3.11) can be used to solve the two-dimensional wave equation Utt =
c2(u xx + u yy ) with initial conditions u(x, y; 0) = h(x, y), Ut(x, y; 0) = f2(X, y).
Considering these as functions of (x, y, z), we substitute in (5.3.11) and perform
the required integrations. If these are written as integrals in the xy plane, we ob-
tain integrals over the interior of the circle of radius d, described in detail below.
This has the consequence that Huygens' principle is not valid for wave motion in
two dimensions. For example, a pebble dropped in a pond of shallow water will
create a wave motion on the surface of the water; an observer positioned r units
330 5. FOURIER TRANSFORMS AND APPLICATIONS
away from the initial disturbance will sense the disturbance at t = r / e time units
later. After this time the solution will continue to be nonzero for all later times,
according to the wave equation. This is the phenomenon of a wake behind the
initial disturbance, present in two-dimensional wave motion. Huygens' principle
can be restated to say that, in three-dimensional wave motion, no wake is present.
We now present the details of the passage from the three-dimensional wave
equation to the two-dimensional wave equation, known as the method of descent.
We are given two functions It (x, y) and hex, y), and we are looking for the
solution of the wave equation with u(x, Yj 0) = h (x, y), Ut(x, Yi 0) = hex, y).
To do this, we substitute in the explicit representation formula (5.3.11), which
leads us to study the action of the mean-value operator Met on a function of
two variables. Note that this operator involves an integration over the sphere
of radius etj we can parametrize the upper half of the sphere by the formula
6 = V(ct)2 - e? -
e~, and the element of surface area is computed as
1 for x 2 + y2 :5 a2 and zero otherwise. Find u(O, 0; t) for all t > 0 and determine
the behavior of u(O, 0; t) when t -+ 00.
Solution. We take and h(x, y) = 1 for x 2 + y2
It == 0 < a2 and zero
otherwise. We substitute in (5.3.14) to obtain
u(x,Yjt) = _1 rr d{
27rcj j lel<ct,lel<a J(ct)2 - 1~12
The integral can be done by taking polar coordinates with T = I~I, obtaining
= ~ (ct -
b
l ---;:;=T::;::;d;::::T=;:=:;;:
o V(ct)2 - 1~12 2
J{ct)2 - b2)
t ct < a
u(O, 0; t) = { t _ Jt2 _ (a2/c2) ct > a
The final worked example in this subsection illustrates the versatility of for-
mula (5.3.11) by rederiving the solution of the one-dimensional wave equation for
the vibrating string.
EXAMPLE 5.3.4. Show that formula (5.3.11) reduces to d'Alembert's formula
in the case where ft = 0, h(x, y, z) = h(x).
Solution. If f(x, y, z) = f(x), then the surface integral defining Metf can be
written as a single integral as follows: for any R,
MRf(x, y, z) = ff
4"~
lel=R
f(x + eddSE
= 11r lff f
1
-4
7r -1T 0
(x + R cos 8) sin 8 d8 dcp
= 2~ 1>(X HI)del
Thus,
2 let + l x ct
tMct f2(X, y, z} = 1 f(x ~dd6 = -21 + f(7J)d7J
c -et c x-ct
which is the appropriate form of d' Alembert's formula in this case.
332 5. FOURIER TRANSFORMS AND APPLICATIONS
Thus F must satisfy the ordinary differential equation Fyy (p., y) = J.t2 F (J.t, y) and
the initial condition F(p.,O) = F(p.) for each p.. The general solution of the
ordinary differential equation is of the form AellY + Be- IlY . If we impose the
initial condition and the boundedness condition, the solution must be
F(p.)e- IlY if p. ~ 0
F(p.,y) = { F(p.)e IlY if J.t < 0
-00
f(x)e-' IlX dx
= -;11
00
This is closely related to the Poisson integral formula, obtained in Chapter 2 for
the solution of Laplace's equation in the disc.
Having obtained this explicit representation, it may be verified independently
that this solution is valid for any piecewise smooth function f(x), -00 < x < 00,
for which If(x) I ~ K for some constant K. It is not necessary to suppose that
f~oolf(x)ldx < 00.
THEOREM 5.9. Suppose that f(x), -00 < x < 00, is bounded and piecewise
continuous. Then the integral {5.3.19} defines a solution of Laplace's equation
U xx + U yy = 0 satisfying the boundary condition that limy-to u( x, y) = ~ f (x + 0) +
~f(x - 0).
EXAMPLE 5.3.5. Find the bounded solution of Laplace's equation uxx+u yy = 0
in the half-plane y > 0 satisfying the boundary conditions u(x, 0) = 1 if a < x < b
and u(x, 0) = 0 otherwise.
Solution. Referring to (5.3.19), we have
u(x, y) = -;
lib a
y
(x _ e)2 + y2 de
Making the substitution v = (~ - x)/y, we have d1; = y dv, and the denominator
of the integrand is y2(1 + v2 ). Changing the limits of integration accordingly, we
have
1 1(b-X)/1/ 1
u(x,y) =- --d v
7r (a-x}/1/ 1 + v2
= ~
7r
(arctan b -
Y
x_arctan a-Y x)
1
= -(/h - (Ja)
7r
where the angles Oa, Ob are depicted in Fig. 5.3.3 .
334 5. FOURIER TRANSFORMS AND APPLICATIONS
(X,y)
11\- .....
~ ..... ,
I \ Db .................
I J ...............
~\ .........
18a \ ..............
I \ ..........
-----4I---\+----------.-. . . .~>----
. __JX
~m ~m ~m
EXERCISES 5.3
1. Use d' Alembert's formula to solve the wave equation Ytt = e-yxx with the
initial conditions y(x; 0) = 3sin 2x, Yt(x; 0) = O.
2. Use d'Alembert's formula to solve the wave equation Ytt = e-yxx with the
initial conditions y(x;O) = 0, Yt(x;O) = 4cos5x.
3. Suppose that 11 has two continuous derivatives and h has one continuous
derivative. Show that (5.3.7) is a solution of the initial-value problem
(5.3.1).
4. Find the solution of the wave equation Ytt = ilyxx for t > 0, x > 0 satisfying
the boundary conditions y(Oj t) = 0 and the initial conditions y(x; 0) = 0,
Yt(Xj 0) = g(x).
5. Find the solution of the wave equation Ytt = e-yxx for t > 0, x > 0
satisfying the boundary conditions y(Oj t) = s(t) and the initial conditions
y(x; 0) = 0, Yt(x; 0) = g(x).
6. Show that formula (5.3.11) reduces to d'Alembert's formula in the case
where 11 (x" z) = 11 (x), h = O.
7. Use formula (5.3.11) to solve the initial-value problem for the wave equa-
tion in three dimensions when the initial data it, h depend only on
r = Jx 2 + y2 + Z2 and Il(X,y,Z) = h(r), h(x,y,z) = h(r).
8. The oscillations of a gas satisfy the three-dimensional wave equation Utt =
e-\1 2u with u(x, y, z; 0) = 0, Ut(x, y, z; 0) = T if a2 ~ x 2 + y2 + z2 and zero
otherwise. Find the solution of this initial-value problem.
9. Find the bounded solution of Laplace's equation U xx + u yy = 0 in the half-
plane Y > 0 satisfying the boundary conditions U(x, 0) = 2 if -4 < x < 4
and U(x, 0) = 0 otherwise.
10. Consider the problem of solving Laplace's equation U xx + U yy = 0 in the
quadrant x > 0, y > 0, with the boundary conditions u(x,O) = f(x),
u(O, y) = O. By combining the method of images with Theorem 5.9, find
an explicit representation of the solution.
11. Consider the problem of solving Laplace's equation U xx + yyy = 0 in the
quadrant x > 0, Y > 0, with the boundary conditions u(x,O) = I(x),
ux(O, y) = O. By combining the method of images with Theorem 5.9, find
an explicit representation of the solution.
5.4. SOLUTION OF THE TELEGRAPH EQUATION 335
p2_>= H~ ~y -
336 5. FOURIER TRANSFORMS AND APPLICATIONS
Therefore we need only solve equation (5.4.1) for values of a and {3 for which
/32 - a 2:: o. In order to illustrate the mathematical methods, we will solve (5.4.1)
for arbitrary values of a, (3. This will include, for example, the Klein-Gordon
equation, which occurs in quantum mechanics, as well as the wave equation,
which was treated in Sec. 5.3. In detail, we have three separate cases to consider:
Case I: f32 < a
Case II: /32 = a
Case III: /32 > a
Since the telegraph equation is second order in time, it is natural to specify two
initial conditions:
U(X; 0) = It (x),
Since the equation is linear and homogeneous, we can first solve with It = 0,
then solve with h = 0, and add the results.
(5.4.4)
We consider separately the three cases.
Case 1: a - f32 > O. In this case both roots of the quadratic equation (5.4.4)
are complex numbers, 'Y = -(3 iv'(a - fJ2) + (Cp,)2, and the solution of (5.4.2)
is
5.4. SOLUTION OF THE TELEGRAPH EQUATION 337
Case 2: {32 - a = O. In this case the roots of the quadratic equation (5.4.4)
are the complex numbers 'Y = -{3 icJ.t, and the solution of (5.4.2) is
(5.4.6)
Case 3: {32 - a > o. In this case the roots of the quadratic equation may be
either real or complex conjugate, depending on the value of p,. This leads to the
following two subcases:
J
Subcase i. If clp,1 :$ /32 - a, then the roots are real and given by 'Y =
- {3 J ({32 - a) - (Cp,)2, and the Fourier transform is given by
. ) _ D ( ) -pt sinh tJ({32 - a) - (Cp,)2
U( J.l, t -.1'2 P. e
J(f32 - a) - (cp.)2
Subcase ii. If clp.1 > ~, then the roots are conjugate complex and
given by 'Y = -{3 iJ(Cp,)2 - ({32 - a), and the Fourier transform is given by
(This will happen if, for example, f2 has three continuous derivatives that are
absolutely integrable.) With this hypothesis we can follow the arguments of Sec.
5.2 and take the derivatives under the integral sign. For example, in case 1,
/3t
(e u)x -
-1 00
-00 F 2(JL)
sin t[(a - {32) + (CJL)2]1/2. lp.%
[(a _ {32) + (CJL)2)1/2 1,JLe dJL
/3 t )
( e U xx -
-1 00
~ (
2 JL
) sin t[(a - {32) + (CJL)2]11/2 (. )2 lJ.l%d
[(a _ {32) + (CJ.L)2J1/2 1,JL e JL
-1
-00
u(x; t)
e-
= -2-
C
fJt
l
x-ct
x ct
+ f2(f.)df.
E(t) = 211 00
-00
2
(vi + c v; + v )dx
2
= 1: 2
(v,[c v= - (a - ,82)vl + c v"v", + vv,) dx
2
= (1 +,82 - a) 1: vv,dx
5.4. SOLUTION OF THE TELEGRAPH EQUATION 339
But
Therefore,
E'(t) ~ bE(t) b= l+/P-a
2
Thus,
This may be solved in terms of complex square roots through the formula
v'A + iB = u + iv
J2
where
EXERCISES 5.4
1. Let u(x; t) be a solution of the telegraph equation Utt + 2{3ut + au = e-uzz '
Show that vex; t) = eptu(x; t) is a solution of the equation Vtt + (a - {32)V =
e-v zx
=
2. Let vex; t) be a solution of the equation Vtt + (a - {32)V c2 vxx Show that
u(x; t) = e-Ptv(x; t) is a solution of the telegraph equation Utt+2,BUt+au =
c2 uxx
3. Solve the initial-value problem for the telegraph equation
Utt + 2{3ut + au = c2u xx t > 0, -00 < x < 00
u(x; 0) = II (x) -oo<x<oo
Ut(x; 0) = 0 -oo<x<oo
Consider separately the three cases a > {32, a = {32, a < {32.
4. Let I(x) be a smooth function whose derivatives 1(1) satisfy
l)J.IIF(p.)ldp. < 00
[Hint: Integrate by parts the formula (5.1.6) three times to obtain F(p,) =
O(IJLI-3 ), 1p,1 -7 00.]
5. Use the result of the previous exercise to show that under the stated con-
ditions, the Fourier representation (5.4.5) defines a rigorous solution of the
telegraph equation with 11 = O.
6. Find the bounded time-periodic solution of the telegraph equation Utt +
2{3ut = c2 uzx for x > 0, -00 < t < 00, with u(O; t) = A sin wt, where A, w,
{3 are real and positive.
7. Find the bounded time-periodic solution of the telegraph equation Uu +
2{3ut + au = c2 u zx for x > 0, -00 < t < 00, with u(O; t) = A cos wt, where
A, w, a, {3 are real and positive.
8. Consider the three-dimensional telegraph equation
2 2
Utt + 2{3ut + au = C V U
V(Xl; t) - V(X2i t) = R
x2
V(Xl; t) - V(X2j t) = -
x2
1Xl
[vx(x; t) + Ri(x, t) + Lit(x; t)]dx =
Since the functions in the integrand are assumed to be continuous, we conclude
0
that the integrand is identically zero, leading to the first equation of the system:
vx(Xj t) + Ri(x; t) + Lit{x; t) = 0
To deduce the second equation of the system, we consider the change in cur-
rent in a section of the cable. The current changes based on two factors: first,
there is a current loss that is proportional to the voltage level, where the propor-
tionality factor is (defined to be) the leakage constant; second, there is a current
loss that is proportional to the rate of change of the voltage, where the constant
of proportionality is (defined to be) the capacitance. Putting these together, we
have, for the current loss along this section, G f~2 v{x; t) dx + 0 f~2 Vt{x; t) dx.
But the basic relation between charge and current is that the above quantity is
the difference in the current. Thus
x2 x2
i(XI; t) - i(X2; t) =G1 v(x; t) dx +0 1 Vt{x; t) dx
Xl Xl
5.4. SOLUTION OF THE TELEGRAPH EQUATION 343
Since the functions are assumed to be continuous, we conclude that the integrand
is identically zero, leading to the second equation of the system:
it(x; t) + Gv(x; t) + CVt(x; t) = 0
This system of equations may be summarized in the form
(5.4.8) li,x + CVt + Gv = 01
(5.4.9) IV:z: + Lit + Ri = 0 I
Having established this system of equations, it is straightforward to derive the
second-order telegraph equation of the text, assuming that both v{x; t) and i{x; t)
have continuous second-order partial derivatives. In detail, take the t-derivative
of (5.4.8), multiply by L, and subtract this from the x-derivative of {5.4.9}; the
term Li:z:t cancels, and we are left with the equation LCvtt + GLvt = V,x,x + Ri:t.
But Ri:z: can be computed from (5.4.8) as Ri:z: = -RCvt - RGv, leading to the
telegraph equation
LCVtt + (G L + RC)vt + RGv = V,x:z:
To obtain the equation satisfied by the current i(x; t), we proceed similarly, taking
the x-derivative of (5.4.8) and subrating C times the t-derivative of the (5.4.9).
Using (5.4.9) again to solve for V,x and substituting, we obtain the same telegraph
equation:
LCitt + (G L + RC)it + RGi = i,x,x
CHAPTER 6
ASYMPTOTIC ANALYSIS
INTRODUCTION
[n rn+1 rn
log x dx = n log n - n + 1 and 11 logxdx ~ 11 logxdx + log(n + 1)
so that
which is called the geometric mean approximation and often written in the form
n! (n/e)n, n ~ 00.
"-J
To get a feel for the accuracy of the geometric mean approximation, we com-
pute a few typical values in the table below. The second and third columns are
comparable, within a factor of 10, for the tabulated values. By taking nth roots,
the accuracy is apparently much improved.
n n! (n/e)n (n!)17 n n/e
1 1 0.37 1.00 0.37
10 3.63 x 106 4.54 X 105 4.53 3.68
ioo 9.33 x 10157 3.72 X 10156 37.99 36.79
1000 4.02 x 102567 5.08 X 102565 369.49 367.88
6.1. ASYMPTOTIC ANALYSIS OF THE FACTORIAL FUNCTION 347
which defines a new function A(n). From the analysis of the previous subsection,
we suspect that A( n) increases like n, when n -+ 00. In order to quantify this,
we try to find a difference equation for the function A(n). Thus
= ( n1)
1--
I-n
= 1- -.!... +0 (2.) 2
n -+ 00
2n n
so that the function A(n) can be retrieved as the telescoping sum
n
But the series I:~ l/k 2 converges, and the sum E~ 11k is logn plus a constant
plus a term that tends to zero. Combining this, we obtain
A(n)=n-- logn
-+C+0 ;;:
2
(1)
n~oo
where e(x) is a function that satisfies limx~o(x) = 0 and where we have made
the substitution x = y/ fo,. When n -4 00, the final integral tends to the value
6.1. ASYMPTOTIC ANALYSIS OF THE FACTORIAL FUNCTION 349
n n! (n/e)n (n/e)n'J2n7r
1 1 0.37 0.992
10 3.63 x 106 4.54 X 105 3.599 X 106
100 9.33 X 10157 3.72 X 10156 9.325 X 10157
1000 4.02 X 102567 5.08 x 102565 4.027 X 102567
EXERCISES 6.1
1. Compute the values of n!, (n/e)n, and (n/e)n(27rn)1/2 for n = 5, n = 50,
n = 500.
2. Show that Stirling's formula can be derived directly from the integral rep-
resentation
n! = 1 00
xne-dx n = 1,2, ...
by the following steps.
(i) Make the change of variable x = ny to obtain
__n_!_ = tX> yne -n(y-I) dy n= 1,2, ...
nn+l e-n 10
(ii) Show that Jol - 6yn e -n(Y-l) dy ~ 0 and JI0:.6 yn e -n(y-l) dy ~ 0 for
any 8 > 0, when n ~ 00.
(iii) Show that ye 1- Y = e-{y-l)2/2(l+E(Y where lilIly-+l e(y) = O.
350 6. ASYMPTOTIC ANALYSIS
lim n.
,
=~
n-too nn+(l/2)e- n
t
of the form
when t -+ 00. Here a and b are fixed limits of integration (independent of t). For
technical reasons, we allow one of them to be infinite, but not both; 9(X) and
h(x) are smooth functions with h(x) real-valued, while 9{X) may be either real-
or complex-valued.
For background motivation, one should think of a finite sum of powers
9l eth1 + 92e th2 + ... + 9NethN
where hI < h2 < ... < hN . When t is very large, the sum is well approximated
by the largest term, which is the last term in the sum, so that we can write
(6.2.2)
where
H = max h(x)
a~x~b
= max[h(a) , h(b)]
C = {9(b}lhl(b) if h'(x) > 0
-g(a}lh'(a) if h'(x) < 0
In other words, the integral behaves like the largest exponential in the integrand,
softened by a factor of lIt. This has already been illustrated by the exact com-
putation above.
Proof. To prove (6.2.2), we mUltiply and divide the integrand by th'(x) and
obtain
f(t) = lb
a
g(x) d(eth(x) = g(x)eth(x)
th'(x) th'(x)
Ib _ ~
a t
lb
a
eth(x) (1...)
h'
I dx
The second integral is of the same form as the original integral (6.2.1) for f (t),
but with 9 replaced by (g I h')'. If we now apply the identical procedure to this
integral, we obtain
b
beth(x) (.!)' dx = ~ (!.)' eth(X)l - !J.b eth(x) [~(!.)']' dx
J.
a h' th' h' t a h' h' a
But eth(x) ~ etH for all a ~ x ~ b, and therefore the above expression is O(etH It)
when t ~ 00. Thus we have shown that
_ g(x)eth(x) Ib
tH
(e )
f (t) - th' (x) a +0 t2 t ~ 00
But h(x) is a continuous function that assumes its maximum at one of the end-
points x = a or x = b but not both. If h'(x) < 0, the maximum is assumed at
x = a; otherwise it is assumed at x = b. Thus we have the stated result .
y -
1- <p(y) = ...j2i e-t/- [ 1 +0
t 2
(1)]
t
The accuracy of this approximation can be inferred from the following table of
values: l
IThe values for 1 - ~(y) are from Milton Abramowitz and Irene A. Stegun, Handbook
0/ Mathematical Functions, Dover Publications, New York, 1972, p. 316, where 1 -~(y) =
! erfc (Y/V2).
6.2. INTEGRATION BY PARTS 353
~C;Kt) = (Kt)
2
1/2 e-x2j4Kt[1 + O(t)]
7rX
x < 0, t --7 0
+ Tl (Kt)
7rX 2
1/2 e-x2/4Kt[1 + O(t)]
EXERCISES 6.2
Obtain asymptotic expressions for the following integrals when t -+ 00.
1. f(t) = fol etx sin x dx
2. f(t) = fl e- tx2 x 4 dx
OO
3. f(t) = !too u- 1 e- u du
oo
4. f(t) = fo (l + x 2)-le- tx dx
5. By an appropriate use of integration by parts, find an asymptotic expres-
sion for
f(t) =
00
1.
sin x dx
o x+t
6. Two materials of the same conductivity K are initially at the temperatures
Tl = 0 and T2 = 100. At time t = 0 they are brought together. Find an
asymptotic formula for u(at; t) when t -+ 00, where a is a positive constant.
7. Let u(x, y) be the solution of Laplace's equation U xx + u yy = 0 defined in
the half-plane -00 < x < 00, y > 0 with u(x,O) = f(x). Show that when
y -+ 00 we have the asymptotic formula
u(x, y) = - 1
1ry
1
00
-00
J(z) dz + O(1/y2) Y -+ 00
but now we include the possibility that h'(x) = 0 at one or more points. As a first
approximation, we can expect that J(t) grows like etH when t -+ 00, where H is
the maximum of h(x), a ~ x ~ b. The new feature results from the possibility of
points x" where h(Xi) = H and h'(Xi) = O.
6.3.1. Statement and proof of the result. We assume that h(x), a ~
x ~ b, is a twice-differentiable function that assumes its maximum H at a finite
number of points (x,) and that h"(Xi) =I- 0 at each of these points. [Of course, it
follows that h"(Xi) < 0 since we are at a maximum of h.] These points fall into
two groups: (1) interior global maxima of hand (2) boundary maxima where
h'(Xi) = O. The exact contribution of the second type of point is one-half the
contribution of the first type of point. We now state the result of Laplace's
method.
6.3. LAPLACE'S METHOD 355
(6.3.2)
where
(6.3.3)
where it is understood that the first sum is over those interior points Xi where
h(Xi) = H, and the second sum contains X = a (resp. x = b) if and only if
h(a) = H, h'(a) = 0 [resp. h(b) = H, h'(b) = OJ.
The proof, which is divided into three steps, may be omitted at a first reading.
Proof. For simplicity, let us assume that the maximum is assumed at exactly
one interior point Xl. (The other cases, which are not essentially different, are
dealt with in the exercises.) Now we can write the integral (6.3.1) in the form
f(t) = I + II + III
where
I = /.%.-6 g(x)eth(x)dx
II = 1 X1
xl-6
6
+ g(x)eth(x)dx
III = 1b
x1+6
g(x)eth(x)dx
6 is a posi tive number that will be specified. The first and third integrals are
straightforward. Indeed, let
hl = a~x~xl-6
max h(x),
Then
1= O(eth1 ), III = O(e th2 ) t -t 00
In addition, we must have hi < H, ~ < H. Otherwise the maximum of the
continuous function h would be assumed on the interval [a, Xl - 6] or the interval
[Xl + 6, b], contrary to the hypothesis. Therefore it remains to analyze the middle
integral when t -+ 00.
To do this, we begin with the Taylor expansions of g(x), h(x) about X = x.,
written in the form
(6.3.4) Ig(x) - g(xdl ~ Mdx - xd
(6.3.5) Ih(X) - H - ~h"(Xt)(X - Xt)21 < M21x - xtl 3
356 6. ASYMPTOTIC ANALYSIS
Step 1
(6.3.7) t -+ 00
To prove this, we use (6.3.4) to write
%1+6 g(x)eth(x)dx - g(xd 1%1+6 eth(x)dx1~ MI 1%1+6 Ix - xlleth(x)dx
11xl-6 %1-6 %1-6
M 1- e1tH 6
.Jt lyle- M3Y 2 dy = 0 (e-t-
tH
)
t -6Vt
This completes the proof of (6.3.7).
Step 2
(6.3.8)
To prove this, we use the following inequality, valid for real numbers A, B:
leA - eBI ~ IA - BleC C = max(A, B)
We apply this with A = h(x) - H, B = ~h"(XI)(X - Xt}2. We have max(A, B) ~
-M3(X - Xl)2 for Ix - xd < d, Ma = !lh"(Xl)l. Thus
x1
+6 eth(x)dx - etH 1xl+6 exp [th"(xd(x - Xd
2
] dx 1
11xl-6 xl-6 2
6.3. LAPLACE'S METHOD 357
We again make the change of variable y = ..fi,(x - Xl) in this integral and see
that the integral is
tH
et
-2- 1
-6Vt
6Vt
M2 1y13 e- M 3Y2 dy =0
tH
(e- t )
Step 9
(6.3.9)
e
tH
. fi
vt
1
6v1
exp
-6Vt
[y2 hll(X 1)]
2 dy
g( a)eth(a) 15Vt
II rv e- u2j2 du
-thll(a) 0
When t -+ 00, the integral has the limiting value ~v'27r, which explains the factor
of ~ for the boundary terms in (6.3.3).
6.3.2. Three applications to integrals.
EXAMPLE 6.3.1. Find an asymptotic formula for f(t)= fol etx(l-x)dx, t -+ 00.
t-+-oo
358 6. ASYMPTOTIC ANALYSIS
EXAMPLE 6.3.2. Find an asymptotic formula for f(t~Jol etz (2-:}dx, t -+ 00.
Solution. This is the integral that defines the factorial function f(t) = t! for
t = 1,2,3, .... We will apply Laplace's method to obtain Stirling's formula. To
do this, we might try h(x) = lnx, g(x) = e- x ; but lnx has no maximum for 0 <
x < 00; therefore Laplace's method is not applicable in this form. Nevertheless
the function x -+ etlnx -: has a maximum at x = t, so we make the change of
variable y = x/to This gives
= t H1 1 00
elh{uldy
where
h(y) = In y - y
h'(y) = ~-1
Y
hll(y) = -~
y2
We can now apply Laplace's method. h has a global maximum at y = 1, where
h(l) = -1, h"(l) = -1. Therefore
(6.3.10) u(x; t) 1:
urally to solutions of the heat equation, written in the Fourier representation
= e'''''e-p'KtF(IJ) dlJ
6.3. LAPLACE'S METHOD 359
(6.3.11) F(Jl) = - 11
27r
00
-00
f(.)e-'Pedf,
.
EXAMPLE 6.3.4. Let u(x; t) be the solution of the heat equation Ut = K U%%
with initial condition u(x; 0) = f(x) for t > 0, -00 < x < 00. Use Laplace's
method to obtain asymptotic formulas for the temperature and heat flux when
t~oo.
u(x; t) = ~1O
47rKt
f(e)d{ + 0 (~)
-00
t~oo
uz(x; t) = 1:
To study the heat flux, we differentiate and get
ipeipz F(I')e-~2Ktdl'
Applying Laplace's method again with h(Jl) = -KJl2, g(J.L) = iJleiJJ$ F(p,), we
have a single maximum at J.L = 0, where h(O) = 0, g(O) = O. Applying (6.3.2), we
have C = 0, and thus
t~ 00
A = l:N.l~f-O
x 11
= A
00
-00 ef(e)~
= 11
00
7 2A -00 (e - x? f(e)de
Solution. In terms of the Fourier transform, we have
F(O) = 21 1 f(e)~
7r
00
= 2A
1r
11
-00
00
F'(O) = -
21r -00
(-ie)f(e)~ = -ix-
A
21r
F"(O) = ~1O (-e2)f(e)~ = -(27 + X2)~
27r -00 27r
so that we can write
u(x; t) = I: F(p)e'''''e-#'K. dp
for some ~ with Ie - xII :5 Ix - xII. If hilt is identically zero, there is nothing
to prove. Otherwise let M = max Ihllll, where the maximum is taken over any
interval (Xl - 8, Xl + 8). Write
EXERCISES 6.3
In Exercises 1 to 3, apply Laplace's method to obtain an asymptotic formula for
f(t), t -+ 00.
l
__ eth(Xl)
a e dx -- C [-th(4) (xdP/4
with C = (24)1/4f:Oe-u4du.
6. Apply the method of Exercise 5 to obtain an asymptotic formula for the
integral
t -+ 00
362 6. ASYMPTOTIC ANALYSIS
method to obtain asymptotic formulas for the temperature and heat flux
when t -400.
10. Let u(x; t) be the solution of the heat equation Ut = Ku xx for t > 0, x > 0
with initial condition u(x; 0) = xe- x2 for x > 0 and the boundary condition
ux(O; t) = 0 for t > O. Use Laplace's method to find asymptotic formulas
for the temperature and heat flux when t -4 00.
11. Let u(x : t) he the solution of the heat equation Ut = Ku xx for t > 0,
-00 < x < 00 with initial condition u(x; 0) = f(x). Modify the method of
Example 6.3.5 to obtain the asymptotic formula
u(x' t) - A
, - J47r(Kt +;)
e-(:J:-~)2/4(Kt+T) (1 m3 H ( x - Ii
(Kt + ;)3/2 3 vKt +;
)
+O(t- 3 )
where H3(X) = x 3 /8 - 3x/4.
where cp is a real-valued function called the phase function. The function g(x)
may he either real- or complex-valued. If cp'(x) =1= 0, then we may integrate by
parts, as in Sec. 6.2, and conclude that f(t) = O(l/t), t -4 00. However, if
cp'(x) = 0 for some x, then this conclusion is no longer valid. In order to find
the correct result, we focus attention upon those points xJ where cp'(x) = 0, the
so-called stationary points.
6.4. THE METHOD OF STATIONARY PHASE 363
THEOREM 6.2. (The method of stationary phase). Suppose that g(x), cp(x)
have two continuous derivatives for a ~ x ~ b, that cp( x) is real-valued, and that
cp'{x) : 0 except for a finite number of stationary points x" where cp"{Xj) : O.
Let these be labeled so that cp"(Xj) > 0 for 1 ~ j ~ K and cp"(x,) < 0 for
K + 1 ~ j ~ K + L. Then when t --+ 00,
(6.4.3)
(6.4.4)
l-1f/2
(2x + 3)e-itcosx dx
Solution. In this case we have g(x) = 2x+3, cp{x) = - cos x, cp'(x) = sin x,
cp"(x) = cosx. The only stationary point is x = 0, where cp"(O) = +1, g(O) = 3.
Applying (6.4.2), we have
t--+oo
364 6. ASYMPTOTIC ANALYSIS
(6.4.5) t -+ 00
t e,t<p(')g(x) dx = 0 G) t -+ 00
Both terms are O(I /t), t ---t 00 , and can t herefore be included in the remainder
term .
T herefore we can restrict attention to contributions from intervals contai ning
the stationary points. Assume that XI is a stationary point for which cp"(xrJ > 0,
and lct 0 > 0 be chosen so that cp(x ) -CP(XI) > 0 in the interval XI - 0 < X < XI +0.
"" e in troduce a new var iable of in tegrat ion v through the equation
cp(X) - cp(xrJ
'U = (x - XI ) XI - 0 < X < .~ - 1 + 0
(X-X I)'
The fun ction x ---t 'U(.~) vanishes at X = XI, with v'(xrJ = V CP"(xl)/2 > O.
Therefore t here exists an inverse function x = X lv) wit h X(O) = Xlo X'(O) =
V2 /cp"(x l )'
St ep Ii
Proof. We write G(v) = G(O ) + vh(v ), which defines the differentiable fu nc-
t ion h(v). The second term contributes to the integral
1" - ch
vh(v)eit"' dv = ~ ( " h(v)ei
2zt .1-5\
(e itV
' )
= ~
2'tt
(h(v)e't"' I~'th -1" -J \
h'(V)eit"' dv )
= oG)
as required.
Step 4
met hods will find this a one-liner. Apply Cauchy's theorem to t he function J(z) =
ei .:: on the crescent-shaped contour formed by the ray z = rei1r / 4 0 ~ T S; R, the
2
1
366 6. ASYMPTOTIC ANALYSIS
arc of the circle \z\ = R, and the real axis from (0,0) to (R,O), when R -+ 00.
We now outline a proof 2 that does not use complex-variable methods.
The qualitative fact of convergence of the improper integral is established by
the following partial integration:
N
[M e1.X2 dx = [N ~d(e'X2)
111 1M 2zx
e,N2 etM2
1 [N eix2
= 2iN - 2iM + 2i 1M x2 dx
The final integral is less than or equal to 1/N, so that the right side tends to
zero when M, N -+ 00. This proves that the improper integral fo el :r;2 dx is
oo
1M e i
dx = ['" eiz' dx + O(l/M)
It remains to compute the numerical value of the improper integral. To do this,
we let p > 0 and examine the double integral
J. = f 1"" e-,('+')e'(O'+.') dx dy
On the one hand, we can take polar coordinates x = r cos (), y = r sin () and
compute
J. = fl W 2
/ e-pr'e"'rdrd8
J. = (1"" e-'" e iz
' dx ) 2
2For further details, see Harley Flanders, "On the Fresnel Integrals," American Mathemat-
ical Monthly, vol. 89, 1982, pp. 264-266.
6.4. THE METHOD OF STATIONARY PHASE 367
oo
Letting / = fo eU2 dx, we conclude that
/2 r J 1ri
=p~ P="4
But the complex number / has both positive real and imaginary parts, so that
the appropriate square root is
The equality of the two limits follows from Abel's lemma (see Appendix A.2),
which completes the proof.
EXERCISES 6.4
Apply the method of stationary phase to find asymptotic formulas for the follow-
ing functions when t ~ 00:
1. f(t) = f~2 eitIJ2 dJ-L
2. f(t) = f~l e,tcos9 cos2 0 dO
3. f(t) = fo7r/2 e'ltcos(J cos fJ dfJ
4. f(t) = f:7r eitC05(Je-~m8 dfJ
5. Modify the method of stationary phase to find an asymptotic formula for
the integral
6. Suppose that g(O) = 0 and g'(0) i- O. Show how to modify the method of
stationary phase to obtain an asymptotic formula for the integral
1 Cl
g(x ) eth(x) dx = -e
tel t t
We will indicate separately the steps for each of the two methods.
-
t + N N 1
t -+ 00
b
= 9(x)eth(x) Ib 11b
1Cl
g(x)eth(x) dx I
th (x) Cl
- -
t a
eth(x) d(g/h')' dx
The second integral is of the same form as the first, with g replaced by (g / h')'.
By repeating this procedure N times, we can obtain N terms in the asymptotic
expansion of the integral. We illustrate the method with the classical exponential
integral.
EXAMPLE 6.5.1. Find an asymptotic expansion when t -+ 00 for the function
defined by the integral
e-Y
1
00
/(t) = -dy
Y t
Solution. We first put this in standard form by defining a new integration
variable y = tx. Thus
f(t)
3This section is optional. The results are not used in the following sections.
6.5. ASYMPTOTIC EXPANSIONS 369
Each partial integration produces a new power of lIt together with a new integral
of the same order. Continuing inductively, we obtain
J(t) = e-
t
t
[1- ~t +!t _ t~ + ... +
2 3
(_I)N
tN
N! + 0(_1_)]
tN +1
The next example is related to the Gauss-Weierstrass integral of Chapter 5.
EXAMPLE 6.5.2. Find an asymptotic expansion when t --> 00 for the junction
defined by the integral
1. e-""
00
dy = - 1. 00
~d(e-"")
1 t2/2 -
= -e-
t
1. t
00
e-- d
-
y2
y2
/ y
2
In order to effect the extension, we note that for any k = 1,2, ... ,
1.
t
00 ~e-y2 /2 dy
y2k
= _ 1. t
00
_I_d
y2k+l
(e- Y2 /2)
=
e-
t2 2
t 2k+1
/
- (2k + I)
1. t
00 y2
e- /2
y2k+2 dy
J(t)=e-
t2 2
t
/ [1_~+~_15
t2 t4 t6
+ ... +(_1)N 1 . 3 ... (2N-l)
t 2N
+0(_1_)]
t 2N+2
6.5.2. Extension of Laplace's method. We now turn to Laplace's method,
with the goal of an asymptotic expansion. To simplify the exposition, we assume
a single maximum at the point x = 0, where a < 0 < b, h(O) = H, h"(O) = h2 < O.
Given > 0, we choose fJ > 0 so that hex) < H - for Ixl > fJ. The contribution
to the integral from Ixl > fJ is O(et(H-E) and can therefore be ignored; in detail,
(6.5.2) lb
a
g(x)eth(:c) dx = 1 6
-6
g(x)eth(:c) dx + O(et(H-E)
In order to determine the asymptotic expansion, we introduce the Taylor
expansions of g(x) and hex):
g(x) x-+o
hex) x~O
370 6. ASYMPTOTIC ANALYSIS
We substitute these into (6.5.2) and make the change of variable y = xVi, with
the result
-6 1
6 g(x)e'h(z) dx =
6
e'~ 1
.;t eh2y2/2
V r; -6.;t k~O
exp (E ~~~:2) (2: k,:Z!:)/2)
k~3 .
dy
We expand the second exponential in a power series in l/t, multiply by the first
sum, and collect powers of l/t. The first three terms of the resulting expression
have the form
e
v't
1
tH 60
-60 e
h 2y2/2 (
go
+Y91 +y h s /6 +~ [y g2
Vi
3
t 2
2
+ y4glh3 + y4goh4 + y6g0h~])
6 24 72
d
Y
The higher terms are similar, invoving the known integrals
1 00
-00
yne-y2/2 dy _ { 0
- /2i 1 . 3 . 5 ... (2m -
n odd
1) n = 2m
Using these we may compute as many terms as are desired in an asymptotic
expansion. The fractional powers of l/t are multiplied by odd powers of y,
and hence do not appear in the final result. We illustrate the method with an
improved version of Stirling's formula.
e: 1 6
.;t e- y2j2
v t -60
(1 + y3v~3t + ~t [_ 6y424 + 4y6])
72
dy = y'"2;e- [1 + _1_]
Vi 12t
t
This result may be applied to Stirling's formula as follows. For n = 1, 2, ... ,
n! = 1"" ufte- U du
6.6. ASYMPTOTIC ANALYSIS OF THE TELEGRAPH EQUATION 371
= nn+1 f en1og%e-=dx
= nn+lf(n)
Thus we have the following improved version of Stirling's formula:
nn+(1/2) [ 1 ( 1 )]
n! =.j2; en 1 + 12n + 0 n2
This shows that n! is larger than the Stirling approximation, for large n.
EXERCISES 6.5
1. Show that the asymptotic expansion of Stirling's integral for n! contains
only integral powers of n -1.
2. Obtain the coefficient of 1/n2 in Stirling's formula.
3. Use integration by parts to show that, for t > 0,
( ~ _ ~)
t 2
<
t -
1 t
00
e- u2 / 2 du < ~e-u2/2
- t
4. Obtain an asymptotic expansion of the exponential integral
f(t) = 1 t
00
e- du
U
U
when t --7 00
tz
f(t) = roo e- dx when t --7 00
10 1 + x2
6.6. Asymptotic Analysis of the Telegraph Equation
In this section we will apply the asymptotic methods to the initial-value problem
for the telegraph equation. This example illustrates all of the methods discussed
in this chapter. The wave equation is included as a special case.
The general initial-value problem for the telegraph equation is written
Utt + 2{jUt + O:U = c u xx
2
(6.6.1)
(6.6.2) u(x; 0) = 11 (x)
(6.6.3) Ut(x; 0) = h(x)
The initial data h(x), h(x) are assumed to be integrable functions with inte-
grable Fourier transforms.
372 6. ASYMPTOTIC ANALYSIS
In Chapter 5 it was found that the form of the solution depends on whether
{32 <o!, {32 = a, or (32 > a. Furthermore, it was found that the new function
elJtu(x; t) satisfies a telegraph equation with {3 replaced by zero and O! replaced
by a - rJ2. Therefore it constitutes no loss of generality to suppose that {3 = 0
and to consider separately the cases O! > 0, a = 0, and a < O.
u(x; t) = 1:
representation of the solution of the initial-value problem was found to be
where
u( x + vt; t) = 1:
order to produce an asymptotic result. In detail, we write
F(p,) = Fl (p.) +
2 2ivaF2(P.)
+ (cp.)2'
6.6. ASYMPTOTIC ANALYSIS OF THE TELEGRAPH EQUATION 373
and
To examine the first integral, we must determine the stationary points of the
phase function <p+(J.L). Computing the first and second derivatives, we have
2
C JL
<p~(J.L) = v+ Ja + (CJ.L)2
e-a
<p~(p,) = [a + (CJ.L)2J3/2
If Ivl ~ c, then the first term of <p~(J.L) is larger in absolute value than the second
term, so there is no stationary point. In this case a simple integration by parts
shows that
Iu(x + vt; t) = 0 (lit) t -+ 00 Ivl ~ ci
If Ivl < c, we may solve the equation <p~(J.L) = 0 to obtain the stationary point
J.I+(v) = _'!.J "v
c c2 - 2
If Ivl ~ c, then the first term of <P'- (I') is larger in absolute value than the second
term, so there is no stationary point. If Iv I < c, we may solve the equation
<p'-(p,) = 0 to obtain the stationary point
374 6. ASYMPTOTIC ANALYSIS
W = 4>+(J.L+(v)) = ~Jo.(C2
C
- v2)
UIl(X; t) = r
lclJAI<vloI
Fl (JL) cosh tv/ad - (CJ.t)2e JJ% dJ.t l
We have
h'(J.L) =
so that h(J.t) has a global maximum at JL = 0, where h"(O) < o. Laplace's method
gives the asymptotic formula
where
C2 =
v'21rlap /
4 F(O)
---'--~-----'--
C
In case v :/; 0, the integral defining u(x + vt; t) comes in two parts. As above,
we need only consider the positive exponential terms corning from UrI; thus
u(x + vt; t) = 1
cljll<~
et[h(JA)+iVjl] F(p,)eiJA:r; dx + 0(1) t ---+ 00
376 6. ASYMPTOTIC ANALYSIS
(6.6.4)
EXERCISES 6.6
1. Use the asymptotic result for a = 0 to find an asymptotic formula for the
solution of the critically damped telegraph equation Utt + 2{3ut + (32u = c?u xx
with u(x; 0) = fr (x), Ut(x; 0) = hex).
2. Use the asymptotic result in case a > 0 to show that if u(Xj t) is the solution
of the equation Utt + m 2u = c2uxx with u(x; 0) = 0, Ut(Xj 0) = hex), then
u(x;t) = ~+ 0 (D t--700
7. Let u(x; t) be the solution of the equation Utt + 2(3ut = c2 uxx with (3 > 0
and u(x; 0) = 0, Ut(x; 0) = h(x). Combine the methods of this section
with the gaussian approximation from Sec. 6.3, Eq. (6.3.12), to show that
we have an asymptotic formula of the form
e-(x-b)2/4(8 1 +B2t) ( 1)
u(x t) = B +0 -2 t -+ 00
, 0 v'47r(Bl + B2t) t
for suitable constants Bo, BJ, B 2 [Hint: Write the integrand in the form
F(J-L)eillX = Ae#'(x-b)-(72~2/2+0(~3) and replace the integral by a suitable
gaussian integral.]
CHAPTER 7
NUMERICAL ANALYSIS
INTRODUCTION
In this chapter we present methods for obtaining approximate numerical so-
lutions of certain boundary-value problems for partial differential equations. In
practice, this may be necessary for a variety of reasons, for example, the geometry
of the boundary or the explicit form of the coefficients in the equation. Even if
the problem admits an explicit solution by a series or integral, it may be difficult
to compute the numerical value of the solution using the series or integral.
The most widely used numerical method is the method of finite differences,
which is discussed for both the heat equation and the Laplace equation in Sees.
7.2 and 7.3. Then we turn to methods that are suggested by the calculus of
variations, including the methods of Ritz and Kantorovich. These lead naturally
to the so-called orthogonality method of Galerkin, which in turn leads to the
finite element method.
In order to orient the chapter, we include an initial section on some elementary
finite difference methods for ordinary differential equations, including an error
analysis.
7.1. Numerical Analysis of Ordinary Differential Equations
Most differential equations do not have explicit solutions. Even if a differential
equation has an explicit solution, the solution may be so complicated that it is
useless for practical purposes.
On the other hand, we can try to find an approximation to the solution of a
differential equation with an initial condition. For example, suppose we are given
a first-order initial-value problem
(7.1.1) y' = f(t, y), y(a) = Yo
on an interval a ::; t ::; b. Although we may not be able to obtain a formula for
the solution of (7.1.1), we can subdivide the interval as
a = to < tt < ... < tN = b
and try to assign approximate values Yn to tn for n = 1, ... , N. Instead of a
formula we will have an approximation to the solution of (7.1.1) expressed as a
table of the Yn's in terms of the tn's. By graphing the table, we can visualize the
solution.
379
380 7. NUMERICAL ANALYSIS
To see how the Euler method works, we use it to approximate the solution to
a simple first-order linear equation.
EXAMPLE 7.1.1. Use the Euler method to find an approximate solution to the
initial-value problem
(7.1.7) y' = y + 1, y(O) = 0
for 0 :5 t :5 1. Use the step size h = 0.1 and compare the approximation with the
exact solution.
Solution. The Euler method formula (7.1.6) for the initial-value problem
(7.1.7) with step size h = 0.1 becomes
YnH = Yn + O.I(Yn + 1)
for 0 :5 n :5 N - 1. The interval 0 :5 t :5 1 is divided into 10 equal pieces, so
N = 10. We are given Yo = 0; then Y1 = Yo + O.I(Yo + 1) = 0.1 and
1'2 = YI + 0.1(Y1 + 1) = 0.1 + 0.1(1.1). = 0.21
Continuing in this way, we get the first three columns in the following table:
n tn Yn Yexact (t n )
o 0.0 0.0 0.0
1 0.1 0.1 0.10517
2 0.2 0.21 0.22140
3 0.3 0.331 0.34986
4 0.4 0.4641 0.49182
5 0.5 0.61050 0.64872
6 0.6 0.77156 0.82212
7 0.7 0.94871 1.01375
8 0.8 1.14359 1.22554
9 0.9 1.35795 1.45960
10 1.0 1.59370 1.71828
Since y' = Y + 1 is a first-order linear differential equation, the exact solution of
(7.1.7) is easily found to be
t
Ycxact(t) = e - 1
Then Yexact(O.I) = eO. - 1 ~ 0.10517, Yexact,(0.2) = eO.2 - 1 ~ 0.22140, and
l
so forth. Values for the exact solution are shown in the fourth column. The
difference IYlO - y(tlO)! is approximately 0.12, an error of less than 10 percent.
Next let us consider a differential equation for which it is impossible to find
the solution, at least by elementary techniques.
EXAMPLE 7.1.2. Use the Euler method to find an approximate solution to
(7.1.8) = 5 - t2 y3, y(O) = 0
Y'
for 0 :5 t :5 1. Use step sizes h = 0.1 and h = 0.01 and compare the results.
382 7. NUMERICAL ANALYSIS
Solution. The Euler method formula (7.1.6) for the initial-value problem
(7.1.8) with step size h is
(7.1.9) Yn +1 = Yn + h(5 - t~Y:)
Taking h = 0.01 and then h = 0.001 in (7.1.9) gives us the following table:
t Yn (h = 0.1) Yn (h = 0.01)
0.0 0.0 0.0
0.1 0.50000 0.49998
0.2 0.99987 0.99886
0.3 1.49588 1.48647
0.4 1.96575 1.92540
0.5 2.34422 2.24190
0.6 2.52216 2.36963
0.7 2.44457 2.32246
0.8 2.22875 2.18041
0.9 2.02021 2.01484
1.0 1.85237 1.86018
EXERCISES 7.1.1
In the following exercises, perform the indicated computations by hand, retaining
only four significant digits at each step of the calculations.
1. Use the Euler method to compute an approximate solution to the initial-
value problem y' = Vy + 1, y(O) = 0 with step size h = 0.1. Compare with
the exact solution y(t) = t(4 + t)/4.
2. Consider the following initial-value problem:
y' =y- ty2
{ y(O) = 2
(a) Use the Euler method to compute an approximate solution at t =
1.0. Use the values n = 2, 4, 8, which correspond to step sizes of h = 1/2,
1/4,1/8.
(b) Determine the actual solution and compare the value of y(l) with
the results from part (a).
Repeat Exercise 2 for the following initial-value problems:
y' + 2y = t
3. {
y(O) = 1
4. {
y' =t + 1
y(O) = 1
7.1. NUMERICAL ANALYSIS OF ORDINARY DIFFERENTIAL EQUATIONS 383
y' = t 3 e- 211
5. {
y(O) = 0
yy' = et
6. {
y(O) = 1
7. Consider the following initial value problem:
y'=y+t2, y(O) =1
(a) Find the solution y(t) and evaluate it for t = 0.2,0.4, ... , 1.0.
(b) Using the Euler method, with step size of h = 0.2, find approximate
values for the solution at the t values in part (a).
(c) Repeat part (b) by using h = 0.1.
(d) Compare the results of part (b) with those of part (c) and the exact
values.
The initial-value problems in the following exercises cannot be solved by symbolic
methods. Use the Euler method with step size h = 0.1 to approximate the
solution at t = 1 to three significant digits (see Exercise 7).
8. y' = sin(y) + et , y(O) = 0
9. y' = y3/2 + t,y(O) = 1
10. y' = sin(t) + cos(y), y(O) = 1
11. y' = et3 , y (0) = 1
12. Consider the initial-value problem
y' = t 2 y, y(O) =1
(a) Find the exact solution at t = 1.0. Express this value to four
decimal places.
(b) Use the Euler method with h = 1/8 to approximate the solution at
t = 1.0. Compute the absolute error.
(c) Repeat part (b) with h = 1/16, h = 1/32. Create a table and a
graph showing the absolute errors corresponding to the various step sizes.
A theoretical analysis for the Euler method suggests a linear relationship
between the absolute error and the step size. Do the numbers agree with
the theory?
(d) Observe in part (c) that the error is roughly proportional to the
step size. Use these data to estimate the constant of proportionality.
13. Apply the Euler method with successively smaller step sizes on the interval
o ~ t S 1 to verify empirically that the solution of the initial-value problem
y' = e + y2, y(O) =1
has a vertical asymptote near t.=. 0.97.
384 7. NUMERICAL ANALYSIS
(7.1.11)
(7.1.14)
7.1. NUMERICAL ANALYSIS OF ORDINARY DIFFERENTIAL EQUATIONS 385
(a) Find the exact solution at t = 1.0. Express this value to four
decimal places.
(b) Use the Heun method with h = 1/8 to approximate the solution at
t = 1.0. Compute the absolute error.
7.1. NUMERICAL ANALYSIS OF ORDINARY DIFFERENTIAL EQUATIONS 387
(c) Repeat part (b) with h = 1/16, h = 1/32. Create a table and a
graph showing the absolute errors corresponding to the various step sizes.
A theoretical analysis for the Heun method suggests a linear relationship
between the absolute error and the square of the step size. Do the numbers
agree with the theory?
(d) Observe in part (c) that the error is roughly proportional to the
square of the step size. Use the data to estimate the constant of propor-
tionality.
13. Apply the Heun method with successively smaller step sizes on the interval
o ~ t ~ 1 to verify empirically that the solution of the initial-value problem
y' = t2 + y2
{ y(O) = 1
has a vertical asymptote near t = 0.97.
7.1.3. Error analysis. A common way to classify methods is to give their
order of accuracy. This order is associated with truncation error as defined by the
particular method and the Taylor expansion of the solution y(t). Taylor'S theorem
states that ify(t) has k+l continuous derivatives on the interval to-8 < t < t o+8,
then
y"(t ) y(k}(t )
y(t) = y(to)+ y'(to)(t - to) + -T(t - to)2 + ... + k! 0 (t - to)k + TE
where to - 8 < t < to + 8. Here the Taylor remainder TE is called the local
truncation error; it is defined by
(k+l)( )
TE =Y 1] (t - t )k+l
(k + I)! 0
if there exist constants M > 0,8 > 0 so that If(h)l:5 Mg(h) for 0 < h < 8. For
example, sin (h) = O(h), h -7 0, but sin (h) =F O(h2), t -7 O. In many cases we
will omit the quantifier h -7 0 when it is obvious from the context.
This may be applied to the discussion of error analysis of the various finite
difference schemes. Typically a given scheme (Euler, e.g.) will satisfy a pair of
statements of the form
(7.1.15)
for some 1J E [tn' tn+l]' To analyze the error in the Euler method, we state the
method in terms of the approximate solution Y,
Yn+1 = Yn + hf(tn, Yn) n = 0, 1, ... ,N - 1
and subtract this equation from Eq. (7.1.15) to obtain
7.1.17
( )
'-n+l =
.& (1 2
+ h 8f (t8zn , e).&~n + h Y"(TJ)
2
These computations yield a general error analysis for the Euler method for the
initial-value problem as stated in the following theorem.
THEOREM 7.1. Assume
(7.1.18) 0<K = sup Iaf~; z} I< 00
where the supremum is taken over (t, z) of the form z = yet) with to ~ t ~ b.
Then the Euler method solution (Yn ) satisfies the error bound
7.1. NUMERICAL ANALYSIS OF ORDINARY DIFFERENTIAL EQUATIONS 389
(7.1.21 ) n = 0, 1, .. . ,N
Clearly, (7.1.21) holds for the value n = 0. Assuming its truth for the value
n = m, we have
lm+ll ~ AIml + B
< A (l<oIAm + A ~ 1 (Am - 1) ) + B
= lolAm+l + ~(Am+l -1)
A-I
which proves (7.1.21) for the value n = m+ 1, and hence for all n by mathematical
induction. To obtain the conclusion (7.1.19), we apply this with A = l+hK, B =
h 2 M /2 and take note of the inequality 1 + x ~ eX to write
2
Ifni < Ifol(l + hKt + h :J2 ((1 + hK)n - 1)
hM
< Ifole
hnK
+ 2K (e nhK - 1)
~ kole(b-to)K + hM (e(b-to)K - 1)
2K
Making the identification in = y(tn ) - Yn completes the proof.
When Yo = y(to) (as is commonly the case), (7.1.19) can be written
Iy (t n ) - Yn I ~ c h to ~ tn ~ b
where c is a constant. Therefore we say that the Euler method is an order 1
or first-order method. When h is halved, the error is halved. Also, the Euler
method is said to converge with order 1. In general, if we have
Iy(t n) - Ynl ~ ch to ~ tn ~ b
k
then we say that the method is an order k method or is convergent with order k.
To see what this means, let us consider an example.
390 7. NUMERICAL ANALYSIS
EXAMPLE 7.1.4. Illustrate the eTTOr bound (7.1.17) for the equation
y' = 4t, yeO) =0
2
whose exact solution is yet) = 2t
Since nh = tn,
En = 2tnh
In the above example we see that for each tn, the error of approximation
in the Euler method at tn is proportional to h. The local truncation error TE
is proportional to h 2 , but the cumulative effect of these errors is a total error
proportional to h.
EXERCISES 7.1.3
1. Apply the Euler method to the initial-value problem
y' = sin(106 y), yeO) =1
and show that the local truncation error TE is
h2
TE = 4106 sin(2 x 106 Y{1]))
2. Determine an upper bound on the global truncation error GTE in using
the Euler method with N = 10 steps to solve the initial-value problem
y' = tlY
{ yeO) = 2
(f) Assuming that we begin with Yo = Yo, conclude that the Heun
method satisfies the numerical error estimate Yn - y(tn } = O(h2), h --t 0,
where n = 1,2, ... ,N.
7. For an arbitrary smooth function u(x), define the jonoard replacement error
by
+( h) _ '() u(x + h) - u(x)
e x, - u x - h
392 7. NUMERICAL ANALYSIS
x - u(x) - u(x - h)
e _( x, h) = u '()
h
Compute e-(x, h) for each of the cases (a), (b), (c), (d) in Exercise 7.
9. Define the symmetric replacement error by
6
3
h ulll(x) +
+- l x
x h
+ (t -
6
X)3
U(iv> (t)dt
7.2. THE ONE-DIMENSIONAL HEAT EQUATION 393
Show that we have the bound IE+(x, h)1 ~ 2h maxx <t<x+2h lu"'(t) I.
14. Let u(x) be the arbitrary smooth function and define-the fourth-order sym-
metric replacement error by
FO(x, h) = U(iv)(X)
u(x + 2h) - 4u(x + h) + 6u(x) - 4u(x - h) + u(x - 2h)
h4
Show that we have the following bound:
h2
IpO(x, h)! ~ -4 max IU(iV)(t) I
5It-xJ~h
Thus the partial differential equation is replaced by the following system of linear
equations with boundary conditions:
In order to make this more natural, recall the original formulation of the one-
dimensional heat equation in Chapter 0, Eq. (0.1.2), where we postulated that
the time rate of change of temperature is proportional to the difference between
the local temparature and that of its neighbors. That formulation differs from
the above finite difference scheme only in the further replacement of the time
derivative by the time difference quotient.
We solve these linear equations for Ui(t + At) to obtain
Thus u,(t + At) is a weighted average of the numbers UZ+l (t), U,-l (t), and Ui(t)
provided that 2K Atj(Ax)2 ::; 1. This is a stability condition, meaning that the
numerical approximations will be close to the true solution in a suitable sense.
When this condition is satisfied, all of the coefficients in (7.2.2) are positive
and their sum is unity-thus the term "weighted average." For given values
of the diffusivity K and the mesh size Ax, this condition can be realized by a
suitable choice of the time step At. It is to our advantage to choose At as large
as possible, consistent with this restriction. In particular, we may we choose
2KAt/(Ax)2 = 1.
U,(I+&)
o ~~. 0
o 0
o 0
o 0
o 0
Solution. In this case the basic equations (7.2.2) take the form
K ~t K ~t [2K ~t]
u,(t + ~t) = (~X)2 Ui+l (t) + (~X)2 Ui-l (t) + 1 - (~x)2 u,(t)
111
= 3U '-1 (t) + 3U1+1 (t) + 3u,(t)
Since the initial conditions are symmetric about x = ~, we may restrict attention
to the values x = 0,0.1,0.2,0.3,0.4,0.5. The computational grid is depicted in
Table 7.2.1.
396 7. NUMERICAL ANALYSIS
The Fourier series solution of the heat equation with this initial condition is
Thus we see that the numerical solution and the Fourier solution agree to within
2 percent for the tabulated values.
This example suggests that we can expect close agreement between the numer-
ical solution and the exact solution of the heat equation. The following theorem}
affirms this result more generally.
THEOREM 7.2. Let u(x; t) be the solution of the heat equation Ut = Ku xx for
t > 0, 0 < x < L with the boundary conditions u(O; t) = a(t), u(L; t) = f3(t) and
the initial condition u(x; 0) = f(x). Let Ui(t) be the numerical solution obtained
with 2K(/)"t)/(/)"X)2 ~ 1. Then
EXAMPLE 7.2.2. Find the approximate numerical solution of the heat equa-
tion = U xx for t > 0, 0 < x < 1 with the boundary conditions u(O; t) = 0,
Ut
u(lj t) = 0 and the initial condition u(x; 0) = 4x. First use the mesh size
/)"x = 1/4, /)"t = 1/32; then use the mesh size /)"x = 1/4, /)"t = 1/8.
Solution. For the first choice, we have K(/)"t)/(/)"X)2 = 1/2 and the form
of the solution (7.2.2) is u,(t + /)"t) = lU'+l(t) + lUa-l(t). Applying this to the
initial data u(x; 0) = 4x, we have the following table of values:
From this example we see that the second choice of ~x = 1/4, ~t = 1/8 leads
to an absurd result, since we expect on physical grounds that the temperature
will remain positive and tend to zero as the time t becomes large; in fact, this
is known from the analysis of Chapter 2, where we solved this initial-boundary
value problem using a Fourier sine series. The absurd values in this example are
not surprising, in view of the fact that the ratio 2K(!:l.t)/(!:l.X)2 is larger than
unity.
The stability analysis below will hinge on the dichotomy between 181 ~ 1 and
181 > 1. In the first case one can expect all solutions of the difference scheme to
remain bounded when n ~ 00, whereas in the second case we can expect some
solutions to become unbounded when n ~ 00. We now present the details.
7.2. THE ONE-DIMENSIONAL HEAT EQUATION 399
(7.2.6) 2r cos ( ~) + (1 - 2r - 8) =0
which is solved explicitly for (J as
(7.2.7) 10 = (1- 2r) + 2rcos(k7r/N) I
We consider separately two cases:
Case 1: 0 < 2r ~ 1. Since the cosine function is strictly between -1 and +1,
it follows that (1- 2r) - 2r < (J < (1- 2r) + 2r. But the upper bound is +1 and
the lower bound is greater than or equal to -2r, which is greater than or equal
to -1. Combining these yields the result -1 < (J < 1 for k = 1,2, ... , N - 1.
Case 2: 2r > 1. In this case the upper bound of case 1 still applies, and we
have (J < 1 for all k. However, if we take k = N - 1 and note that the cosine
function lies below its quadratic Taylor approximation about 7r, it follows that
(J = (1 - 2r) + 2rcos(7f - 7r/N)
~ (1 - 2r) + 2r( -1 + 7f2/2N2)
= (1 - 4r) + r7r 2 /N 2
Since 2r > 1, it follows that 1 - 4r < -1. By taking N sufficiently large, we can
still achieve 8 < -1. We summarize the above work as follows.
PROPOSITION 7.2.1. Suppose that the mesh sizes !::it, !::ix satisfy the condition
that r := K !::it/(!::iX)2 ~ 1/2; then all solutions of the difference scheme {7.2.2}
remain bounded when n -7 00. If the mesh sizes !::it, !::ix are such that r :=
K !::it/(!::iX)2 > 1/2, then there exist solutions of the difference scheme {7.2.2}
that become unbounded when n -7 00.
7.2.5. Other boundary conditions. The method of finite differences can
also be applied to solve the heat equation with boundary conditions involving
the derivative U X Consider, for example, the problem
(7.2.8) Ut = Ku xx t > 0,0 < x < L
ux(O; t) = 0 = ux{L; t) t> 0
u(x; 0) = f(x) O<x<L
which represents heat flow in a slab whose faces are insulated. In this problem it
is natural to replace the boundary condition by the equations Uo = U1, Un = U n +1.
As before, the difference scheme is obtained from the equations (7.2.2).
400 7. NUMERICAL ANALYSIS
EXAMPLE 7.2.3. Find the approximate numerical solution of the heat equa-
tion Ut = U xx for t > 0, 0 < x < 1 with the boundary conditions ux(Oj t) = 0,
u x (1; t) = 0 and the initial condition u(x; 0) = 4x. Use the mesh size !:l.x = 1/4,
!:l.t = 1/32.
Solution. For this mesh size, we have K!:l.t/(!:l.x)2 = 1/2 and the form of
the solution (7.2.2) is u,(t + !:l.t) = !UH1(t) + !Ui-l(t) for i = 1,2,3. When we
impose the conditions Uo = U}, U3 = U4, we obtain the following table of values:
U(LI - OJ t) = U(LI + OJ t)
Klux(L l - OJ t) = K 2 u x (L l + OJ t)
To solve this problem by the methods of finite differences, we first select a mesh:
o = Xo < Xl < ... < Xn+1 = Ll < Xn+2 < ... < Xn+m +l = Ll + L2
7.2. THE ONE-DIMENSIONAL HEAT EQUATION 401
Substituting these in the previous equations and solving, we obtain the following
system of equations for the solution:
uo(t) = 0, Un+m+l (t) = 0
n+25i~n+m
(7.2.11)
Thus, to obtain the solution, we first obtain UI (t), ... ,un(t) from (7.2.9). Next
we obtain Un+2(t), ... , un+m(t) from (7.2.10). Finally, we obtain Un+l (t) from the
interface condition (7.2.11).
EXAMPLE 7.2.4. Find the approximate numerical solution of the heat equa-
tion Ut = U:z;x for 0 < x < ~ and Ut = ~uxx for ~ < x < 1 with the boundary
conditions u(O; t) = 0, u(l; t) = 0 and the initial condition u(x; 0) = 4x. Use the
mesh size ~x = ~, 6.t = i2.
Solution. We have KJ = 1, K2 = ~, KI~t/(~x)2 = ~, K2~t/(6.X)2 = ~,
and the previous equations become
uo(t) = 0, U4(t) = 0
1 1
Ul(t + ~t) = 2uo(t) + 2U2(t)
111
U3(t + ~t} = 4U2(t) + 4U4(t) + 2U3(t)
2 1
U2(t) = SUI (t) + SU3(t)
402 7. NUMERICAL ANALYSIS
Solving these equations yields the following table of values for t = 0, i2, is, 12, k
t x=O x= 1/4 x =
1/2 x = 374 x=1
0 0 1.0 2.0 3.0 4.0
1/32 0 1.00 1.67 3.00 0
1/16 0 0.83 1.19 1.92 0
3/32 0 0.60 0.82 1.26 0
1/8 0 0.41 0.55 0.83 0
One can also treat the wave equation Utt = c?uxx using the method of finite
differences. We choose a mesh and replace the derivatives by the appropriate
difference quotients, to obtain the system of equations
Ui(t + ~t) + Ui(t - ~t) - 2u,(t) 2 UHl (t) + Ui-l (t) - 2u.(t)
(~t)2 =c (LlX)2
If we choose Llt, Llx so that Llx/ Llt = c, these equations simplify to
Ui(t + ~t) + Ui(t - Llt) = Ui+l(t) + U,-l(t)
This system of difference equations has the general solution
Ui(t) = f(x, + ct) + g(x, - ct)
which is the same as the general solution of the wave equation obtained in Chap-
ter 5 in connection with the vibrating string (see Exercise 8 below)
EXERCISES 7.2
4. For each of the following equations, suppose that the mesh size Ilx is given.
In each case, derive an appropriate stability condition and find the largest
time step Ilt that satisfies the stability condition. (You are not required
to find the approximate numerical solution.)
(a) Ut = ~uxx
(b) Ut = U xxxx
(c) Ut = U xx + 3ux
(d) Ut = U xx - 4u
8. Show that any function of the form u,(t) = f(Xi + ct) + g(x, - ct) is a
solution of the system of difference equations Ui(t + t:1t) + Ui(t - t:1t) =
Ut+ 1 (t) + U,-l (t), provided that Ilx / Ilt = c.
U(x" Yj). Making the usual replacements for Uxx and UY1I , we obtain the following
replacement for V 2 u:
Us+IJ + Us-I,J - 2us,J US,J+I + Ui,J-l - 2u s,J
(~X)2 + (~y)2
If the mesh sizes have a common value ~x = ~y = h, then the formula simplifies
to
U,+l", + Ui-l,] + U,,,,+l + U,,]-l - 4Ui,J
h2
This can be paraphrased as follows. We take the average of U at the four neigh-
boring points (i + I,j), (i -I,j), (i,j + 1), (i,j - 1) and subtract the value of U
at the base point (i,j) (see Fig. 7.3.1).
I
(i,j+l)
(i,j)
(; -l,j) (i+ 1.})
(i,j-l)
X X
I 1- ] I I 1
Y 0 '4 2 '4. Y 0 '4 "2 '4
1 1]
~ 'i
! t
.1
4 t
0 0
The solution of this system of three equations is U12 = ~,Ul3 = h, U23 = 1~2'
For larger values of N, this numerical method for solving Laplace's equation
leads to large systems of linear equations that may be difficult to solve. To deal
with such cases, we regard the solution of Laplace's equation as the limit of the
solution of the heat equation when the time becomes large. In symbols,
u(x, y) = lim u(x, y; t)
t-+oo
y 2 Y
x ot 1
I I
2' 1
J..
6 X
I
o t 1 2' 1 J.. I 2
6
1 1 1 1 1 1
5
"6
S
"6 o 0.250 0.250 0.250 0.250 0
1
2 1.
)
o0 0 0 0
1.
2
I
2'
o0 0 0
1.
3 J
I o0 0
I I 0 iteration
"6 '6
0 0
y Y
x ot I
1
I
2'
2
1
J..
6 X ot 1
I
2'
I 2
l' il
1 1 1 1 1 1 1 1 1 1 1 1
J.. 0.313 0.375 0.375 0.375 0 J.. 0.359 0.438 0.453 0.343 0
6 6
2 0.063 0.063 0.063 0 2 0.094 O.ns 0.169 0
l' l'
t 0 0 0 I 0.016 0.016 0
2' 2'
I 0 0 1. 0 0
l' 3
I iteration I 0 iteration
"6 "6
0 0
y Y
x ot I
l'
I
2'
2
l'
5
"6 x ot l'
I I
2'
2
l'
J..
6
1 1 1 1 1 1 1 1 1 1 1 1
s 0.383 0.484 0.473 0.348 0 s 0 0.402 0.505 0.494 0.368 0
"6 "6
.1. 0.125 0.164 0.145 0 2 0 0.144 0.197 0.159 0
3 l'
.1. 1. 0 0.041 0.048 0
2 2
1.
)
.1. 0 0.007 0
J
I iteration I o 0 iteration
'6 "6
0 0
FIGURE 1.3.3 From the heat equation to Laplace's equation.
408 7. NUMERICAL ANALYSIS
EXERCISES 7.3
The first term can be transformed using the boundary condition v = 0 and the
divergence theorem as follows:
= IlL div(vVuo)dV
= IlL (vV
2
"" + Vv Vuo)dV
= IlL v( V2Uo+p)dV
for all differentiable functions t.p for which t.p = 0 on aD. Then w(x, y, z) =0
inDo
Proof. Suppose w(Po) > O. Then there is some 0 > 0 such that 0 <
dist(Po, aD) and w(P) ~ w(Po)/2 for IP - Pol < o. Let t.p(P) = (02 -IP - Po12)2
for IP - Pol < 0 and t.p(P) = 0 elsewhere. Then t.p is differentiable in D and we
can apply the hypothesis to obtain
o= IlL <p(P)w(P) dV
= rrr t.p(P)w(P)dV
JJJIP-Pold
~ rrr t.p(P)w(P)dV
JJJP- Pol<6/2
I
~ Iw(Po)1 r r r t.p(P) dV
2 JJJ IP - Pold/2
But t.p(P) > 0 when IP - Pol < 0/2, which implies that the final integral is
positive-a contradiction. If instead we assume that w(Po) < 0, the above ar-
gument can be applied to -w(P); in either case we obtain the conclusion that
w(Po) = 0, which was to be proved .
7.4. VARIATIONAL METHODS 411
Ii IV(uo + 2
w)1 dxdy ~ Al Il1uo + wl2dxdy
412 7. NUMERICAL ANALYSIS
o= 11 v(V'uo + A\ ",,)dx dy = 0
Since this holds for all smooth functions that satisfy the boundary condition
v = 0, we may apply the fundamental lemma of the calculus of variations to
conclude that the term in parentheses is identically zero. Thus V2uo + A~Uo = 0,
as required.
We observe in passing that Al must be the smallest eigenvalue of the region
D with the given boundary conditions. Indeed, suppose A2 is another eigenvalue,
associated with the equation V 2 w + A2W = O. Then by applying the divergence
theorem and the boundary conditions, we obtain A2 = I(w). But the minimum of
J is obtained as the value AI, from which we conclude that A2 ~ AI, as required.
EXERCISES 7.4
The following exercises provide examples in which the solution of the Euler-
Lagrange equation is not a maximum or minimum of the functional whose sta-
tionarity is sought. This clarifies the "principle of least action" in mechanics.
Exercises 10 and 11 treat the simple harmonic oscillator, and Exercise 12 treats
the wave equation.
10. Consider the functional IT(u) = IoT[u l (t)2 - u(t)2]dt with the boundary
conditions u(O) = A, u(T) = B.
(a) Show that any minimum Uo must satisy the equation 1." + u = O.
7.S. APPROXIMATE METHODS OF RITZ AND KANTOROVICH 415
= [[(u; - u~)dxdt
lr(u)
with the boundary conditions u(O; t) = 0, u(1I'j t) = 0, u(x; 0) = 0, u(x; T) =
Bsinx.
(a) Show that the Euler-Lagrange equation is the wave equation Utt =
U xx and solve it if T is not of the form 11', 211', 311', ...
(b) Compute the value of IT(u) for a function of the form u(x; t) =
(Bt/T)sinx + asinNxsin(k1l't/T) where N,k are integers and a is any
constant.
(c) By choosing k, N, a appropriately, show that we have inf I T ( u) =
-00, sup IT(U) = +00 over the indicated class of functions, for any T > 0,
no matter how small. Therefore there is no maximum or minimum in this
variation problem, for any T > O.
13. (Exercise 10 without Parseval's theorem) Let T < 11' and define the function
<pet) = cot[t + (11' - T)/2J for 0 < t < T, so that <P' + 1 = _<p2.
(a) Prove the identity
are functions that satisfy the boundary conditions and are determined by addi-
tional conditions that make them close to the desired minimum. These additional
conditions may be obtained by means such as
Solution of a minimum problem in a finite number of parameters
Orthogonality conditions in a finite number of parameters
Solution of a related ordinary differential equation
Combinations of the above three methods
In this section we discuss the methods of Ritz and Kantorovich, both of which
invol ve minimization in a finite number of parameters. In Sec. 7.6 we proceed to
the Galerkin method and the finite element method, which involve orthogonality
relations in a finite number of parameters.
7.5.1. The Ritz method: Rectangular regions. The general idea behind
the Ritz method is to look for a trial solution in the form
u(x, y, z) = U(x, y, Z; CIt C2, , en)
which satisfies the boundary condition identically, where Cl, . , Cn are parameters
that may be adjusted. If we substitute this function into the variational problem,
we obtain the problem of minimizing a function of a finite number of parameters,
namely,
Thus we are required to minimize the function <I>(c) = 1r2c2/4 - (pc) (4a/1r)2. The
required minimum is attained at c = 32pa2/1r\ which gives the required trial so-
lution with <I>(c) = -{256/1r6 )p2a4 '" -0.266ra\ which is 4 percent larger than
the minimum obtained in Example 7.5.1.
We note here that the Ritz method may be applied to problems in any number
of variables. In particular, it may be applied to variational problems for ordinary
differential equations (see the exercises).
7.5.2. The Kantorovich method: Rectangular regions. This method
begins with a trial solution that contains one or more arbitrary junctions and
that identically satisfies the boundary conditions. The functions are chosen to
solve the Euler-Lagrange equation that results from minimizing the composite
functional.
EXAMPLE 7.5.3. Find the approximate solution of Poisson's equation V 2 u =
-p in the square Ixl < a, Iyl < a with the boundary condition u = 0, where p is
a constant. Use a trial solution of the form u = (a2 - y2)c{X) where c(x) is an
arbitrary junction.
Solution. We have Uz = (a 2 - y2)c'(X), Uy = -2y c(x) and thus
Ii G(u~ + u~) - pu) dxdy=1: (~~ c'(X)2 + 4;3 C(X)2 - P
4 ;" c(X)) dx
so that
1 4
-a c(x) dx = 2"p ( 2a - 2sinhka)
k cosh ka = (0.42)pa
,=0 -a a + J 2 1r
(;)
The Euler-Lagrange equation is
EXERCISES 7.5
1. Use the Ritz method to find an approximate minimum of the functional
leu) = 101 [u'(t)2 - u(t)2 - 2tu(t)] dt with the boundary conditions u(O) =
u(l) = O. Use the following sets of trial functions:
(a) U(t) = eot(l - t)
(b) U(t) = t(l - t)(eo + clt)
(c) U(t) = t(l - t)(eo + CIt + C2t2)
(d) U(t) = E:=llln sin n1Tt, where N is fixed but unspecified.
2. Use the Ritz method to find an approximate minimum of the functional
leu) = Io2[U'(t)2 + U(t)2 - 2tu(t)] dt with the boundary conditions u(O) =
u(2) = O. Use the following sets of trial functions:
(a) U(t) = cot(2 - t)
(b) U(t) = t(2 - t)(co + CIt)
(c) U(t) = t(2 - t)(eo + CIt + C2t2)
(d) U(t) = E:=l an sin(n1rt/2), where N is fixed but unspecified.
3. Use the Ritz method to find an approximate minimum for the functional
leu) = I f[~(u~+u~) -xyu] dxdy, where the integration is over the square
-1 ~ x ~ 1, -1 ~ Y ~ 1 and the boundary condition is that u = 0 on the
four sides. Use the following sets of trial functions:
(a) U(x, y) = c(l - x 2 )(l - y2)
(b) U(x, y) = (1 - x 2)(1 - y2)(eo + CIX + C2Y)
(c) U(x, y) = (1 - x 2 )(l - y2)(eo + c}x2 + C2y2)
4. Use the Ritz method to find an a.pproximate minimum for the functional
leu) = I I[~(u; + -/ftup]pdpdcp, where the integration is over the disc 0 ~
p ~ 1, -1r ~ cp ~ 1r and the boundary condition is that u = 0 when p = 1.
Use the following sets of trial functions:
(a) U(p) = e(l _ p2)
(b) U(p) = (1 - p2)(eo + CIP)
(c) U(p) = (1 - p2)(eo + CIP + C2r)
5. Consider the Sturm-Liouville eigenvalue problem cp" + AJ = 0 on the inter-
val -1 < x < 1 with the boundary conditions that cp(-I) = 0, cp(l) = O.
(a) Find (exactly) the smallest eigenvalue.
(b) Use the Ritz method with the tria.l function U(x) = I - x2 to find
a first approximation to the smallest eigenvalue, and compare it with the
exact result obtained in part (a).
(c) Refine the approximation of part (b) by using the trial function
U(x) = (1 - x2 )(l + cx2 ) and show that the error obtained is less than 1
percent.
420 7. NUMERICAL ANALYSIS
where ~,(x, y, z) are given functions that satisfy the boundary conditions and c,
are parameters that are to be found from suitable orthogonality relations. In case
the functions ~i are twice-differentiable, we may apply the method of Galerkin,
as discussed in the following subsection.
7.6.1. The Galerkin method: Rectangular regions. In the Galerkin
method we look for a trial solution in the form
N
U(x,y,z) = LCa~,(x,y,z)
where {<I>,h~i$N are given twice-differentiable functions that satisfy the boundary
conditions and Ci are adjustable parameters.
Assume that we wish to solve the equation V 2u = -p with the boundary
condition u = O. If u were the true solution, we could multiply both sides of
the equation V 2 u = -p by the function tP, and apply the divergence theorem
(Green's second identity):
This is a finite system of linear equations that may be solved for the parame-
ters cI, ... , CN. The method is called an orthogonality method because (7.6.1) is
equivalent to the requirement that the trial solution U be such that V 2 U + P
is orthogonal to the linear span of {<Pih<t<N. Note that this method does not
require that we first formulate the differential equation as a variational problem.
EXAMPLE7.6.1. Find the approximate solution of Poisson's equation U:r:x +
U yy =
-p in the rectangle Ixl < a,lyl < b with the boundary condition that
U = 0 on all four sides. Use Galerkin's method with trial solutions of the form
u(x, y) = Aoo(a2 - x 2)(b2 _ y2).
Solution. We have
Lu = Uxx + u yy + p = Aoo[-2(a2 - x
2) - 2(b2 _ y2)] +P
Applying the orthogonality condition gives the equation
Solution. We have
u = -A
p
(.!!...)
2a
sin 1I'P,
2a
u
pp
= -A (.!!...)2
2a
cos 1I'P
2a
o= {{(AU + V 2u) cos 1I'2P pdpdljJ
JJo<p<a a
11'2
4
(! + ~) _ Aa2 (! _~) =
2 11'2 2 11'2
0
Making the necessary substitutions and defining <p(x) = <P2(X) - <Pl(X), w(x) =
<p~ (X)2 + <p~(X)2 - <p~ (x)<p~(x), we have
b
[12(u~ + u~) - pu1dydx = lb <p(x) dx
J(u) =
l
a
lV'2(X)
V'l(X) a
where
424 7. NUMERICAL ANALYSIS
7.6.3. The finite element method. In case the functions ~i(X, y, z) are
not twice-differentiable, we cannot form the functions V2~, to use Galerkin's
method as described above. However if the first derivatives of ~J are suitably
well behaved, we may apply the divergence theorem as follows. Assume that we
wish to solve the equation V 2 u = -p with the boundary condition u = 0 by an
approximate formula of the type u = E, cjiP,(x, y, z}. If u were the true solution,
we could multiply both sides of the equation V 2u = - p by the function ~, and
apply the divergence theorem (Green's first identity):
This is a finite system of linear equations that may be solved for the parameters
Cl, ... , CN. These equations make no reference to the second derivatives, so they
can be expected to be well defined for functions whose first partial derivatives
exist in a suitable sense. In particular, this is the case when the functions have
a polygonal profile, as described below.
In the following paragraph we illustrate the finite element method for the
two-dimensional Poisson equation
(7.6.3) V 2u = -p in D, u = 0 on aD
This will be reduced to a finite system of linear equations by the following steps:
Approximate the region D by a region DN that is the union of a finite
number of triangles. Let N be the number of interior vertices of this
system of triangles.
For each interior vertex \1;, let iP,(x, y) be the function that is equal to 1 at
the vertex \I; and equal to zero at all other vertices (interior and boundary),
and is linear inside each triangle.
Introduce the numerical approximate solution
UN(X,y) = Cl<Pl(X,y) + ... +CN~N(X,y)
where the coefficients Cl, ... ,CN will now be determined.
Require that the approximate solution UN(X, y) satisfy (7.6.2) for each
choice <PI, ... , <l> N; in other words,
i = 1, ... ,N
426 7. NUMERICAL ANALYSIS
which is abbreviated
N
GREEN'S FUNCTIONS
INTRODUCTION
o=-l If(Z)dZ~+AL+B
L
L
with the conclusions B = 0, A = (1/ L) fo foe J(z) dz df,. We can reduce the
iterated integrals to single integrals by interchanging the order of integration.
Thus f: foe J(z) dz df, =f: fzx J(z) df, dz = f:(x - z)J(z) dz, and the solution is
427
428 8. GREEN'S FUNCTIONS
written as
rx; x (L
y(X) = - 10 (x - z)f(z) dz + L 10 (L - z)f(z) dz
= 10(X L(L
Z
- x)f(z) dz +
1L X
X
L(L - z)/(z) dz
= 1. G(x,z)/(z)dz
where Green's function G(x, z) is defined by
z(L - x) 0 ~ z ~ x
G(x, z) = { X(LLL- z)
x~z~L
8.1.2. The generic case. We now turn to the case of a general self-adjoint
second-order ordinary differential equation. Consider the boundary-value prob-
lem
(8.1.1) Ly := [P(x)y'J' + q(x)y = -f(x) a<x<b
(8.1.2) cosay(a) - Lsina.y'(a) = 0
(8.1.3) cos {3 y(b) + L sin {3 y'(b) = 0
Here j, q, p are given continuous functions with p(x) > 0 for a :::; x :::; b, and a,
{3 are real constants. In addition, we assume that ..\ = 0 is not an eigenvalue of
the associated Sturm-Liouville eigenvalue problem.
We solve this problem by the method of variation of parameters, familiar for
ordinary differential equations. The solution is sought in the form
y(x) = Ul(X)Yl(X) + U2(X)Y2(X)
where Yl, Y2 are solutions of the homogeneous equation and the functions Ul, U2
are to be chosen. To be specific, we determine Yl, Y2 up to constant multiples by
requiring that Yl satisfy (8.1.2) and that Y2 satisfy (8.1.3). Since .A = 0 is not an
eigenvalue, we conclude that Yl, Y2 must be linearly independent. We have
Y' = UIY~ + U2Y~ + UiYl + U~Y2
The method of variation of parameters further requires that U~Yl + U~Y2 = o.
With this determination, we see that Y satisfies (8.1.2) if u2(a) = O. Similarly, Y
satisfies (8.1.3) if Ul (b) = O. To satisfy (8.1.1), we write
(py')' + qy = [P(UIY~ + U2Y~)J' + q(UIYl + U2Y2)
= Ul[(PY~)' + qYI] + U2[(PY~)' + qY2] + p(uiY~ + u~y;)
The first two terms are zero since Yl, Y2 are both solutions to the homogeneous
equation. Therefore (8.1.1) can be solved by the method of variation of parame-
ters if we have satisfied the simultaneous system
p(x)(u~y~ + u~y;) = - f(x)
U~Yl + U~Y2 = 0
These are easily solved to yield
, ( ) _ f(X)Y2(X) U' (x) = _ f(X)Yl(X)
Ul X - p(x)W(X) , 2 p(x)W(x)
where W(x) = Yl (x)y~(x) - y~ (X)Y2(X) is the wronskian of the two solutions. We
determine Ut, U2 uniquely by Ul (b) = 0, u2(a) = 0 to obtain
p(~)W(~)
430 8. GREEN'S FUNCTIONS
The solution of the nonhomogeneous equation is y(x) = fox (f()de+x fxL f(f.)df.
A direct verification shows that y' = fxL f(f.)de, y" = -I, y(O) = 0, y'(L) = O.
To obtain a Fourier representation of Green's function in the generic case, let
{An}n~l be the eigenvalues and {<Pn}n~l a set of normalized eigenfunctions for
the equation (py')' + qy + Ay = O. Then Green's function is written as the series
G(x, f.) =L <Pn(Xl<pn(f.)
n~l n
_ { (- x + ~X3~ + (1 - 9S(+ ~) x x
G(x, e) - x3e
2+
(
1-
ge ~3)
+"2 x e~x
5
The modified Green's function can be represented as a series of eigenfunctions
in the form
G(x, e) = E CPn(Xlcpn(e)
n~1 n
where the sum is over all nonzero eigenvalues {An} of the equation (py')' + qy +
AY = 0 with the given boundary conditions. For example, with the bound-
ary conditions y'(O) = 0, y'(L) = 0 for the equation y" = -I, we have An =
(n1l'" / L)2, CPn(x) = .)2/L cos (n1l'"x/ L), and Green's function is written as G(x, e) =
(2L/1I'"2) 2:n~1[cos(n1l'"x/ L) cos (n7re/ L)]/n2.
8.1.4. The Fredholm alternative. The above discussion leads us to the
following dichotomy regarding the nonhomogeneous equation (8.1.1) with the
boundary conditions (8.1.2) and (8.1.3), known as the Fredholm alternative and
stated as follows:
Either A = 0 is not an eigenvalue of the homogeneous equation; then the
nonhomogeneous equation (8.1.1) has a unique solution that satisfies the
boundary conditions (8.1.2) and (8.1.3) .
Or A = 0 is an eigenvalue of the homogeneous equation with eigenfunction
cp(x); then the nonhomogeneous equation (8.1.1) has a solution if and only
f:
if the right side I(x) satisfies the orthogonality condition I(x}cp(x)dx =
f:
O. The solution is unique provided that we require that y(x}cp(x)dx = O.
The reader familiar with the theory of linear equations will recognize the
principle at work. Let a system of linear equations be written in the form Ay =
- I, where A is a square matrix. Either det A is nonzero, and we have a unique
solution y for every vector I; or det A is zero, and we can solve the equation
8.2. THE THREE-DIMENSIONAL POISSON EQUATION 433
only if the right side is orthogonal to the set of solutions of {cp: AT cp = a}. In
the case of a square matrix, det A is zero if and only if A = 0 is an eigenvalue
of A. In the case of differential equations, we cannot use the determinant to
distinguish between the two cases. Nevertheless, the existence or nonexistence of
eigenfunctions for A = 0 still makes sense and is a valid criterion to distinguish
the two cases.
EXERCISES 8.1
8.2.1. Newtonian potential kernel. We begin with the case of the entire
three-dimensional space D = JR3 = {P = (x, y, z) : x E 1i, y E 1R, z E Ii}. We
proceed heuristically by Fourier transforms and then verify that we have obtained
a rigorous solution. The Fourier representation of the solution and right member
are written
= III e;(kz+ly+mz}U(k, I, m) dk dl dm
where the integrals are over all JR3. Differentiating formally, we have V 2u =
III -IKI 2 e,(P,K)U(K)dK. The equation V 2u = -h requires that IKI 2 U(K} =
H(K}. If H is zero in a small neighborhood of K = 0, this can be solved by
U(K) = H(K}/IKI2. We substitute in the integral for u and interchange orders
of integration:
rr{
= JJJ h(Q)dQ
(27T1 ) JrJ{Jr e 1~12P-Q) dK
3 ,(K
JJrJ{_e'.....,.{K_.P~-~Q_}
r
IKI2
dK = /.211' /.11' /.00 eilP-Qlpcos8 sin fJ dpdfJ dcp
0 0 0
1 fr'ff h(Q)
(8.2.1) u(P) = 47r JJ IP _ Ql dQ
It remains to verify that this is a (rigorous) solution of V 2 u = -h. The function
P -+ G(P, Q) := 1/(47rIP - QI) is the newtonian potential kernel. It has the
following basic properties:
1. V pG = -VQG = (1/47r)(P _ Q)/IP - QI 3 P#Q
2. V~G = V~G = 0 P#Q
3. G(P, Q) -+ 0 P -+ 00 or Q -+ 00
where De,R = {Q E IR3 : < IQ - PI < R} and Gp(Q) = G{P,Q). The right
member consists of two surface integrals, over the spheres of radius and radius R
centered at P; the outward normal derivative is defined by 8G p /8n = (VQG p , n).
To analyze the integral on the left, we note that V 2 GP = 0 in DE,R and V 2 u = -h,
by hypothesis. The integrals on the right are as follows:
(8.2.2) ff a:,;
IQ-PI=E
u d8Q
4~ 1'1.
2
= u(x + , sin /I cos cp, y + , sin /I sin cp, Z + leOS /I) sin /I dO dcp
436 8. GREEN'S FUNCTIONS
(8.2.3) 11 u~
IQ-PI=R
dSQ
= 4~ 1""1~ u(x + Rsin Oeos rp, y + R sin 0 sin rp, z + R cos 0) sin 0 dO drp
(8.2.4) 11
IQ-PI=E
G p : : dSQ
1
= 4 /.211"/.11" aau (x + f sin 0 cos cp, y+ e sin 0 sin cp, z + e cos O)e 2sin 0 dO dcp
1f"e 0 0 n
(8.2.5)
IQ-PI=R
11
Gp : : dSQ
fr'{J 47rIPh(Q)_ QI d8
s
Q
8.2. THE THREE-DIMENSIONAL POISSON EQUATION 437
where the integration is over the parametrized curve G, for example, a straight-
line segment.
It may be shown that each of the above integrals is a solution of Laplace's
equation V 2u = 0 on the set of P for which h{P) = 0. 1
The simplest charge distribution is that of a finite aggregate of point charges
that gives rise to a potential of the form
N C
~41l"IP~Q,1
for a finite set of points Q, with corresponding charges G" which may be positive
or negative. In particular, we may take two nearby points Qo = (xo, Yo, Zo) and
QE = Qo + fn, where n is a unit vector and the charges are of strength Ilf and
-l/f. The total charge is zero, but in the limit we obtain a nonzero potential,
since
!!!(UV
~
2
V
Gp - G p
2
u)dQ = ff
8~
(u
a
;: - G p!:) dSq
In D~ we have \7 G p = 0 and \7 u = -hi thus the left member is
2 2
D~ GphdQ. III
The right member consists of two integrals, one on the outer boundary aD and
one on the inner boundary {Q : IQ - PI = E}. On the outer boundary both
G p and u are zero; hence this integral is zero. On the inner boundary we can
replace G p by 1/(47rIP - QI), since the difference is a smooth function, that will
contribute zero to the integral in the limit .J, O. But the proof of Theorem 8.2
shows that for this choice of G, the integral IIIQ-PI=
u(aG/an)dS tends to Q
Q
u(P) and the integral IIIQ-PI=~ Gp(au/an)dS tends to zero, for any smooth
function u. Therefore we may let E .J, 0 to obtain the required representation.
One may note that the integral (8.2.9) is absolutely convergent, for any con-
tinuous function h(Q). This may be seen by writing the relevant part of the
integral in a polar coordinate system about P, where ro is chosen small enough:
Proof. We apply Green's identity with u(Q) = Gp1 (Q) = G(P}, Q), v(Q) =
G~(Q) = G(P2 ,Q) in the region D! = {Q ED: IQ - PII > f, IQ - P2 > f} 1
where f < ~IPI - P21. Since both functions satisfy Laplace's equation in DE, we
have 0 = III D.(u\l2 v - v\l2 U )dQ = IIoDt(uov/on-vou/an)dSQ The surface
integral on the outer boundary aD is zero. It remains to analyze the following
four integrals on the inner boundaries:
ro, G OG p2dS
I:
fJ
IQ-Pd=E
PI On Q
III: II
IQ- P21=E
GI\ ~P,dSQ
IV: ff G8:,
p, dSQ
IQ-P2I=E
The first and fourth integrals tend to zero when f .J.. 0, since each integrand
is O(l/f) and the surface area is O(2) when f .J.. O. For the second and third
integrals, we repeat the analysis used in the proof of Theorem 8.3 to conclude
that II -t G p2 (Pt} and III -t G p1 (P2 ) when J. O. The proof is complete .
We now turn to some applications of these ideas.
EXAMPLE 8.2.1. Find Green's function of the ball D = {Q E JR3 : IQI < R}.
Solution. This can be obtained from the case D = JR3 by the method of
images. We look for Green's function in the form
1 C
G(P,Q) = 47rIP _ QI IP-Q'J
where the image point Q' is suitably chosen with Q' D and C is a constant.
The above combination satisfies (8.2.6) and (8.2.8). It remains to satisfy the
boundary condition (8.2.7). To do this requires that IP - QI = IP - Q'I/C for
all P E aD. Specifically, we choose the image point as Q' = Q(R2/JQI2); this is
the point along ray OQ whose distance from 0 satisfies IQIIQ'I = R2. To choose
440 S. GREEN'S FUNCTIONS
G(P, Q) = 47r
1(1 R 1)
IP - QI - IQIIP - Q'I
We now return to the theory.
The left side is identically zero. The right member contributes - JJ f (aG Ian) on
the outer boundary aD; on the inner boundary we have II u(aG Ian) --7 -u(P).
We have proved the following result.
THEOREM 8.5. The solution oj the Dirichlet problem yr 2 u =0 in D with
u =J on aD has the representation
u(P) = Jf
(JD
o;/(Q)dSQ
u(P) =
D
fff
G(P,Q)h(Q)dQ+ ffo;J(Q)dSQ
aD
We can use Green's function for the ball to find a suitable form of Poisson's
integral formula in three dimensions (cr. Sec. 3.2 for the two-dimensional case).
We have G(P, Q) = [1/(47r)][1/IP - QI- (R/IQI)(l/IP - Q'I)]. We take a system
of polar coordinates for which
p = (pcos !psin 0, psin !psin 0, peosO)
Q = (r cos 1/1 sin a, r sin 1/1 sin a, 'T cos a)
Q' = R(Rcos1/1sina, Rsin1/1sina,Rcosa)
'T
u(P) __1_
- 41f'R
JrJ{ (R2+p2_2RpcoS'Y)3/2
R2 - p2 f(Q)dS
Q
IQI=R
EXERCISES 8.2
4. Modify the proof of Theorem 8.2 to prove the following result: Any solution
of Laplace's equation V 2u = 0 in a three-dimensional region D can be
written as
u(P)= If
IQ-PI=R
8
(u ,;; -Gp;;:)dSQ
where Gp(Q) is the newtonian potential kernel and the integration is over
the surface of the sphere.
5. Use Exercise 4 to prove the mean value theorem for harmonic functions:
For every solution of V 2 u = 0 in a three-dimensional region, we have
11. Suppose that h is a differentiable function with h(Q) = 0 for IQI > r.
(a) Prove that the first derivatives of u can be computed by the formula
u(P) = 2~ f/ Cp ~ QI)
log h(Q) dQ
One can show2 that this formula provides a solution of Poisson's equation. How-
ever, it is difficult to obtain a simple uniqueness criterion for the Poisson equation
in the entire plane. For this reason we turn to some problems with unique solu-
tions.
u(P) = f/
D
G(P,Q)h(Q)dQ
ff (uV G- GV
DL
2 2
u)dQ = L, (u: -G:::) dS Q
The integral on the left is over the interior of the plane region Dr., and the integral
on the right is over the boundary curves that define oDr.. In Do G satisfies
Laplace's equation and V 2 u = -h, so that the left side becomes II Df Gh dQ. The
right side is analyzed as before: the outer boundary oD contributes zero, while
the inner boundary {Q : IQ - PI = f} contributes [1/(21r)] fo21r u(x + f cos 8, y +
f sin 8)d8. In the limit f -l- 0, this gives u(x, y) = u(P), which was to be proved .
2
ff(uV G - GV u)dQ =
2 faD (u~ - G:::) dSQ
D~ ~
where D( = {Q ED: IQ - PI > f}. The left side is zero. The right side gives
I 1 aG/an on the outer boundary aD, while on the inner boundary we have
J u8G/8n -+ u(P}. Thus we have proved the following result.
THEOREM 8.7. The solution 01 the Dirichlet problem V 2 u = 0 in the smoothly
bounded plane region with u = 1 on an is given by the double-layer potential
aG
u(P) = - fa8D -an IdSQ
446 8. GREEN'S FUNCTIONS
EXAMPLE 8.3.3. Solve the Dirichlet problem in the ball IPI < a.
Solution. In this case we have Green's function
1(
G(P, Q) = 21r log IP _ QI
1) - 1 27r log IQIIP _
a
Q'I
with
8G a 2 - r2
=~~--~------~--~
ar 27r[a2 + r2 - 2ar cos(8 - ip)]
",
and we retrieve the Poisson integral formula
2 2
u(P) - -
1
1
- 21r _", a2 +
a - r
r2 - 2ar cos(8 - ip)
1(8) dfJ
This formula was first derived in Sec. 3.1 from the Fourier series of separated
solutions of Laplace's equation. Now we see that it can be done directly, without
any appeal to Fourier series or separated solutions.
8.3.4. Green's functions and separation of variables. If we compare
the Fourier representation of the solution with the explicit representation by
Green's function, we can obtain a representation of the Green function in terms
of the eigenfunctions of the associated homogeneous problem.
Suppose that we want to solve Poisson's equation V 2 u = -h with the condi-
tion that u = 0 on the boundary of the smoothly bounded region D. Let {ipn}
be a complete system of eigenfunctions satisfying V 2ipn + An<fJn = 0 in D with
CPn = 0 on the boundary and normalized so that (CPn, CPn) = fD <fJn(P)2dP = 1.
Here n is a "multi-index," depending on the dimension of the space. The Fourier
representation of the solution is
1
u(P) = L ~(<fJn' h)CPn(P)
n n
However, Green's function satisfies the boundary conditions and can be expanded
in a series of eigenfunctions as G(P, Q) = En Cn(Q)<fJn(P), where the Fourier
coefficients are obtained as Cn(Q) = JD
G(P, Q)ipn(P)dP. Substituting in the
explicit representation of u by Green's function and proceeding formally, we have
Comparing the two formulas for u leads to the identification (en, h) = (<fJnJ h) / An
for every h, or Cn(Q) = CPn(Q)/An, and we are led to the formula
G(P, Q) =L <fJn(P)<fJn(Q)
n
An
This statement is known as Mercer's theorem. Although easily remembered, it
may not be an efficient method for computation of Green's function. In particular,
8.3. TWO-DIMENSIONAL PROBLEMS 447
we do not expect that the series converges for P = Q. Rather than explore this
in general, we consider the rigorous validity in each case.
EXAMPLE 8.3.4. Find the Fourier representation oj Green's Junction oj \72
in the rectangle 0 < x < a, 0 < y < b with the boundary condition that u = 0 on
all Jour sides.
Solution. The normalized eigenfunctions of this problem are
f(x, y) = L
00
= -21
m=l
00
Um(y) m7r
u(~, y) sm-tIe
m=l
a 0 a
448 8. GREEN'S FUNCTIONS
EXERCISES 8.3
1. Use the method of images to find Green's function and to solve Poisson's
equation V 2u = -h in the quarter-plane D = {(x, y) : x > 0, Y > O} with
the boundary condition that u = 0 on both axes. Use three image points.
2. Use the method of images to find Green's function and to solve Poisson's
equation V 2 u = h in the quarter-plane D = {(x, y) : x > 0, y > O} with
the boundary conditions u(x,O) = 0, (8u/8x)(0, y) = O.
8.3. TWO-DIMENSIONAL PROBLEMS 449
3. Show that the logarithmic potential can be obtained directly from the
newtonian potential kernel by the following "renormalization procedure":
let UM(X, y) = f~ dz/{47rVX2 + y2 + Z2) be the newtonian potential of a
uniform line charge on the segment [-M, M] of the z-axis.
(a) Show that this integral can be evaluated directly as [1/(21r)1 sinh- 1 x
(M/r) where r = VX2 + y2.
(b) Use the behavior of sinh- l x when x -+ 00 to find a constant eM
such that limMtoo[uM{X, y} - eM] = [1/{21r)] log{l/ Jx 2 + y2).
(c) Show that the "potential difference" can be expressed directly as
2
4. Find a Fourier representation for Green's function of \7 in the rectangle
o < x < a, 0 < Y < b with the boundary conditions that U = 0 on the
bottom and two vertical sides while u y = 0 on the top side y = b, 0 < x < a.
5. Find a Fourier representation of Green's function ofV 2 of the disc X 2 +y2 <
a2 in the form G(r, 8; p, cp) = L: Gm{r, p)e,m(O-V'), where Gm is a suit-
able one-dimensional Green's function for the ordinary differential operator
Urr + (l/r)u r - (m 2/r2)u.
6. Show that Green's function of V 2 for the infinite strip -00 < x < 00,0 <
y < a can be written in the form
G(x, y; e, 1]) =
-.!..
21r LJ
" [log (x - 1
e)2 + (y - 1] - 2na)2
_ log 1
(x - e)2 + (y + 1J - 2na)2
]
n
-00
u(x; t)e-i(x
. dx, H(~j t) = -1
27r
100
-00
h(x; t)e- sex
. dx
The final integral is recognized from Sec. 5.2 as the heat kernel
G(x, y; r) = (47rKr)-1/2 e-(x- y)2/(4KT)
8.4. GREEN'S FUNCTION FOR THE HEAT EQUATION 451
(8.4.2) u(x; t) = i t
o
1 00
-00
G(x, y; t - s)h(y; s) dyds
-00
G(x, y; t + tlt - s)h(y; s) dyds
-l lO
o
t
-00
G(x, y; t - s)h(y; s) dyds
= it
o
1-00
00
When we divide by tlt and take the limit, the first integral tends to the limit
J: J~oo Gt(x, y; t - s)h(y; s)dyds and the second integral tends to hex, t). Simi-
larly, when we compute U zx , the derivatives can be put directly onto G to obtain
the corresponding integral with G replaced by Gxx But G satisfies the heat
equation G t = KG zz , from which we conclude Ut - Ku xx = h, as required .
To solve the nonhomogeneous heat equation with general initial data, we
apply the superposition principle. The function
u(x;t) =l lO
o -00
t
G(x,Yit-s)h(YiS)dyds
u(P; t) = 1
[41rK(t-s)]3/2
lt 111
0
{{( e- IP - QI2 /[4K(t-s)]h(Qj s) dQ ds
u(x; t) = 1
";41rKt
1
00
-00
e-(x-y) 2 !(4Kt) f(y) dy
(2m+l)L
e-(x-y)2/(4Kt) fOdd(Y) dy = 1L e-(x-y-2mL)2/(4Kt) f(y) dy
J.~L 0
{2m+2)L
= - 1L e- 1z+y -(2m+2)L]2/{4Kt} f(y) dy
1(2m+l)L
2
e-{z-yf /(4Kt) fOdd(Y) dy
0
Thus
We have represented the function u(x; t) in two different ways. Since this holds
for all piecewise smooth functions f(x),O < x < L, we infer that the integrands
454 8. GREEN'S FUNCTIONS
-2 ' " (.
L-, n1rx)
sm- (. n7rY ) -(mr/L)2Kt
SIn- e
L n~l L L
= 1 2:: (e-(X- Y-2mL)2/(4Kt) _ e-[X+ y-(2m+2)L]2/(4Kt)
J 47r K t -oo<m<oo
EXERCISES 8.4
This will generalize the newtonian potential kernel of Sec. 8.2, which is the case
in which u = u(P), h = h(P), independent of time.
where
Inserting this into the Fourier representation of u(P; t) and interchanging the
order of integration, we have
This is the retarded potential representation of the solution u(P; t). It can be
written as a solid integral purely in terms of the spatial variables by writing
456 8. GREEN'S FUNCTIONS
Q=P+{and
U,
(p .t) = _I_ltd
47rc2 0 s
rr h(Q, t -
JJ
(l/c)IP - QI) dQ
IP - QI
IP-QI=cs
= _1_ rrr h(Q,t- (l/c)IP-Ql)dQ
47rc2 JJJ IP - QI
IP-QI<ct
This formula reduces to the newtonian potential in the special case of time-
independent problems. To see this, let h(Pj t) = Clh(P) and let c ~ 00 in the
above representation. We obtain
. I rrr
~~h(Pj t) = 47r JJJ IP _ Ql dQ
h(Q)
Mnf(P) = 4~ JJ f(P+&J)dw
Iwl=l
This form has the advantage that the dependence on radius R appears inside the
integral and not in the region of integration. (The first form is preferable when
we apply the divergence theorem.) To use this above, we write h(t}(P) = h(P; t),
and the inner integral in (8.5.1) is written as Mcs(sk<t-s})(P) so that the solution
takes the form
From Sec. 5.3, the integrand is the solution of the Cauchy problem Uu - c2 yr 2 u =
o with u(Pj 0) = 0, Ut(Pj 0) = h(s)(P). This connection makes it possible to
first study the homogeneous problem and then apply the results obtained to the
nonhomogeneous problem.
First we turn to the proof of the representation formula (5.3.11) for the ho-
mogeneous equation, which was left open in Chapter 5.
THEOREM 8.9. Suppose that f(P), P E IRs, is a real-valued continuous func-
tion with two continuous partial derivatives. Then the formula u(P; t) = tMctf(P)
defines a twice-differentiable function that satisfies the conditions Utt = 2
u, e-V
u(P; 0) = 0, Ut(Pj 0) = f(P).
8.S. GREEN'S FUNCTION FOR THE WAVE EQUATION 457
Proof. We have
lel<ct
+ 4~JI(V2f){p+O~
lel=ct
I
+ 4~J (V2 f){P H) ~
lel=ct
2
= ; : II V f(P+ctw)dw
Iwl=l
458 8. GREEN'S FUNCTIONS
U Xt (P; t) = 4~ II
Iwl:1
f:r;, (P + ctw) dI.u
(
82
at 2 -
2
c \1
2) Ut = 8t8 (Utt - c2\12U) = 0
so that v also satisfies the wave equation. From the proof of Theorem 8.9 we
have v(P; 0) = Ut(P; 0) = f(P), Vt(P; 0) = Utt(Pj 0) = O.
Combining the results of the above two theorems by the superposition prin-
ciple, we have obtained the rigorous proof of the Poisson formula
8
u(P; t) = 8t (tMctit){P) + tMcth(P)
for the solution of the wave equation Utt = ~\12u with the initial conditions
u(P; 0) = fl (P), Ut(P; 0) = h(P) .
We can now return to the nonhomogeneous equation and prove that formula
(8.5.1) gives the rigorous solution of the Cauchy problem for the nonhomogeneous
wave equation. To do this, we write
u(P; t) = l v(')(P; t - s) ds
8.5. GREEN'S FUNCTION FOR THE WAVE EQUATION 459
where v(s) is the solution of the homogeneous wave equation Vtt =c2V 2 v, v(a)(p; 0)
= 0, v!s) (P; 0) = h($). By Theorem 8.9 the solution is v(s){P; t) = tMcth(s).
Clearly u{Pj 0) = O. Now we can differentiate under the integral to obtain
= _1_
41Tc2
JJJ
r
'[ { h{Q, t - (l/e)IP - QI) dQ
IP - QI
IP-QI<ct
8.5.2. Green's function for the Helmholtz equation. In case the right
side has a harmonic time dependence, we can give a direct treatment of the wave
equation in terms of the Helmholtz equation. Specifically, we assume that the
right side of the wave equation is written in the complex form h{P; t) = h(P)e1Wt
We look for a solution in the form u(P; t) = u(P)elWt This leads us to the
nonhomogeneous Helmholtz equation
V2 u + k 2u = -h k= ~
e
We may look for solutions in the entire three-dimensional space or in a region
with a smooth boundary.
To formulate Green's function for the entire three-dimensional space, we begin
by looking for radial solutions with the characteristic singularity at r = O. In polar
coordinates we have 0 = V 2 u+k 2 u = urr + (2/r)u r +k2 u = {l/r)[(ru)rr + k 2 {ru)]
with the general solution u = (l/r)(A cos kr + Bsinkr). To achieve the proper
singularity at r = 0, we choose A = 1/(41T); the value of B is undetermined,
since that part of the solution is smooth at r = 0 and is not determined by the
singularity of Green's function or by requiring that u -+ 0 at infinity since U -+ 0
for any choice of B.
460 8. GREEN'S FUNCTIONS
It is satisfied, in particular, for the function u = eskr /r. Similarly, the incoming
radiation condition is the statement that U r - iku = O{1/r 2 ), r --+ 00. It is
satisfied, in particular, for the function u = e- 1kr /r. Either may be used to
determine a unique Green's function for the Helmholtz equation. We formulate
the following theorem.
THEOREM 8.12. Let u be a solution of the Helmholtz equation V 2 u+k2 u = -h
in the entire three-dimensional space satisfying the outgoing radiation condition
and the condition that u --+ 0 when r --+ 00. Then we have the representation
rrr e-IkIP-QI
u{P) = 111 47rIP_Ql h{Q)d Q
Proof. We begin with Green's identity, written in the form
!!![u(V2+k2)G-G(V2+k2)ul=
D~.R
ff (u:~ -G:) d8
8Dc .R
Q
where we have added and subtracted the term k2 uG on the left side. This integral
is analyzed exactly as for the case of Poisson's equation in Sec. 8.2. For the right
side, the integral on IQ - PI = is analyzed as before. For the integral on
/Q - PI = R, we note that both u and G satisfy the outgoing radiation condition,
and hence we can replace au/an and aG/an by -iku+O{1/r2 ) and (respectively)
-ikG + O{1/r2 ). Two of the terms cancel, and the resulting integrals tend to
zero when R --+ 00, giving the required result .
8.S. GREEN'S FUNCTION FOR THE WAVE EQUATION 461
The final integral was seen in Sec. 3.2 as the integral representation of the Bessel
function with imaginary argument, that is, 10 k/c) J(ct)2 - ~n. Therefore we
have
Canceling the factor e(ky/c), we have found the solution of the telegraph equation
with !1 = O. To find the solution in general, we need to differentiate this integral
with respect to t:
d 1
dt (tMct !,) = 2c[Ji(X + ct) + f,(x - ct)]
But the derivative of the Bessel function 10 is the Bessel function II : I~ = II.
Therefore we conclude that
EXERCISES 8.5
1
00
u(x) = - - .-h(y) dy
-00 2~k
(c) Suppose that h is continuous and satisfies h(x) = O(1/lxI2) when
Ixl -4 00. Prove that u'(x), u"(x) [defined in (b)J exist and that u satisfies
the one-dimensional Helmholtz equation.
4. Find the explicit representation of the solution of the telegraph equation
Vtt - c?vxx = -k2 v with u(x; 0) = h(x), Vt(x; 0) = h(x). [Hint: The func-
tion w(x, y; t) := ei(ky/c)v(x; t) satisfies the two-dimensional wave equation
Wtt = c?(wxx + wyy ).]
5. Find the explicit representation of the solution of the two-dim. telegraph
equation Vtt - Cl(vxx + vyy ) = k 2v with v(x, y; 0) = 11 (x, y), Vt(x, y; 0) =
f2(X, y). [Hint: The function w(x, y, z; t) := e(kz/c)v(x, y; t) satisfies the
three-dimensional wave equation Wtt = c2(w xx + Wyy + W ZZ ).]
APPENDIXES
Having obtained J.L(t), the solution y(t) may be obtained by multiplying (A.I.!)
by J.L(t) to obtain [J.L(t)y(t)]' = J.L(t)q(t), which can be integrated to obtain the
465
466 APPENDIXES
solution formula
(A.1.2) y(t) =
c + Itt J.L(s)q(s) ds
0
J.L( t)
where we have incorporated the arbitrary constant C before the definite integral.
One may summarize this method in the statement that a first-order linear
equation is solved by means of two integmtions: the first to find the integrating
factor, and the second to integrate the right-hand side and find the solution. We
illustrate using the equation with constant coefficients.
EXAMPLE A.I.l. Find the general solution of the equation y' + cu = d where
c, d are constants with c f. O.
Solution. An integrating factor is obtained by solving J.L'(t) = CJ.L(t) with the
base point to = OJ thus J.L(t) = ect. Referring to (A.I.2), we have
y(t) = C + f/ect
0
decsds
= Ce- ct + (dlc)(l _ e- ct )
This may also be written in the equivalent form y(t) = dlc+C1e- ct by a different
choice of the arbitrary constant C1 = C - dlc .
From elementary algebra it is clear that this exhausts all possible cases. Indeed,
the quadratic formula yields r = (-b Jb 2 - 4ac)/2a, so that case 1 corresponds
to ~ - 4ac > 0, case 2 to b2 - 4ac = 0, and case 3 to b2 - 4ac < O. We now give
the general solution of the differential equation in each of the three cases.
Case 1: The general solution is y(t) = G1eTlt + G2eT2t , where Ct, C2 are arbitrary
constants and rl, r2 are the roots of the characteristic equation ar2 + br + c = O.
Case 2: The general solution is y(t) = Glert +G2 te rt , where Ot, O2 are arbitrary
constants and r is the root of the characteristic equation ar2 + br + c = O.
Case 9: The general solution is y(t) = e"\t(Gl COSJ.Lt+C2 sinJ.Lt), where G), G2 are
arbitrary constants and A + iJ.L, A - iJ.L are the complex roots of the characteristic
equation ar2 + br + c = O.
EXAMPLE A.1.3. Find the general solution of the differential equation y" +
3y' + 2y = O.
Solution. The characteristic equation is r2 + 3r + 2 = 0, with roots rl = -1,
T2 = -2. Therefore this represents case 1 and the general solution is y(t) =
C1e- t + C2e- 2t
Often, when working with case 1, we may find it convenient to express the
solution in terms of hyperbolic functions. Recall that the defining equations for
A.I. REVIEW OF ORDINARY DIFFERENTIAL EQUATIONS 469
these functions are sinh x = 4(eX -e- X ), coshx = 4(e x +e-X ). From this it follows
that eX = cosh x + sinh x and e- x = cosh x - sinh x. Thus any linear combination
of exponential functions may be written in terms of hyperbolic functions. The so-
lution of case 1 is written as y(t) = C 1 (cosh rlt+sinh r1t)+C2(cosh r2t-sinh r2t).
To verify the solution, we may use the differentiation formulas (d/dx)(sinhx) =
cosh x, (d/dx)(cosh x) = sinhx.
EXAMPLE A.1.6. Find the general solution of the equation ay" + by' +cy = d,
where a, b, c, d, are constants with a =F 0, c =F O.
EXAMPLE A.1.7. Find the general solution of the equation ay" + by' = d,
where a, b, d are constants with a =F 0, b =F O.
(b) The quadratic equation ar(r - 1) + /3r + '1 = 0 has a repeated real root
rl = r2.In this case the general solution is given by
EXAMPLE A.1.9. Find the power series solution of the equation Y" + ty = 0
with the initial conditions y(O) = I, y'(O) = O.
Solution. We assume a power series of the form
00
y(t) = I + I: Yn tn
n=2
Differentiating, we have
00
(A.1.6)
(Xl
Y" = r(r -
l)(t - toy- 2 + L(n + r)(n + r - l)Yn(t - to)n+r-2
n=l
Equating the coefficient of (t - toY to zero gives the indicial equation
r( r - 1) + ,Bor + 10 = 0
This equation has two roots, rl, r2. If they are real, we take the larger root
r = ~[1- Po + J(l - f30)2 - 4'Yo], With this value of r we equate the coefficients
of (t - toy+l, (t - toy+2, ... to zero to obtain the coefficients Yb Y2,'" and to
obtain the Frobenius solution (A.1.6).
The solution is
The relaxation time is closely related to the half-life T, defined by the equation
ly(T) - Yool/ly(O) - Yool = 4. In the previous example we found the result that
Iy(t) - Yool/ly(O) - Yool = e- 3t ; therefore the half-life is obtained by solving
e- 3T = 4 or T = i In 2 = 0.23, to two decimals. This is typical for first-order
equations, where the relaxation time and half-life differ by the factor In 2. We
choose to work with the relaxation time because of the absence of the factor In 2
in the formulas.
It should be noted that the relaxation time depends on the solution, as well
as the equation. Consider, for example, the differential equation y" - 5y' +6y = 0
with the two solutions Yl (t) = e- 3t and Y2(t) = e- 2t Both solutions have the
same steady state Yoo = O. For Yl(t) we have the relaxation time Tl = i, whereas
for the solution Y2(t) we have the relaxation time T2 = ~.
In general, the relaxation time furnishes a practical estimate of the time nec-
essary to come "close" to the steady state. To see this, we may solve the equation
[y(t) - Yoo]/[y(O} - Yoo] = q, a fixed fraction. For q = 0.01, we get e-(t/T) = 0.01,
tiT = In 100 = 4.6. Thus after five units of relaxation time the system comes to
within 1 percent of the steady state.
A.1. REVIEW OF ORDINARY DIFFERENTIAL EQUATIONS 475
EXERCISES A.l
n=l
where an is a sequence of numbers. This is a shorthand for the infinite sum
al + a2 + ... + an + ...
For example, E:=11/n 2 , E:=1 ( _1)n /n, and 2::=11/3n are familiar examples of
infinite series. The summation index n is a dummy variable, so that we make no
distinction between L:=llln, L:=1 am, and 2:;1 ap
The convergence of the infinite series E~llln is formulated in terms of the
partial sums Sn, defined by Sn = al + ... + lln. If Iimn~oo Sn = a, then we say
A.2. REVIEW OF INFINITE SERIES 477
a=Lan
n=l
If liIIln-too Sn does not exist, then we say that the series diverges.
Examples of infinite series that converge are
f=(-l)n,
n=l n
If the terms an decrease too slowly or oscillate too erratically, the infinite series
will diverge. Examples are
00 1 00 1
L-, L -log(1 + n)
n=ln n=l n=l n
Convergent series obey the normal laws of arithmetic: if two series E:=l Cln
and E~l bn both converge, then the series E~l (an+bn ) converges and E~l (Cln+
bn ) = E:'=lCln + E:'=lbn. If the series E:'=lan converges and c is any constant,
then the series E:=lcan converges and E:=l can = CE:=Ian'
Tests for convergence are especially simple for series of positive terms: an > O.
In this case the series E:=l an converges if and only if the partial sums remain
bounded, Sn ~ M for some constant M, and all n = 1,2, .... A useful criterion
for the convergence of series of positive terms is the integral test.
EXAMPLE A.2.1. Determine for which values of p >0 the series E~11/nP
converges.
When dealing with series whose terms change in sign, we may often conclude
convergence from the ratio test or the root test, stated as follows.
478 APPENDIXES
This is not an infinite series, but simply an equation that holds for all functions
f(x) for which the derivatives of orders N + 1 exist and are continuous functions.
In particular, for N = 0 we obtain the fundamental theorem of calculus in the
form
f(x) - f(xo) = l x
Xo
j'(t) dt
We can produce convergent infinite series from Taylor's theorem with remain-
der if we can prove that the integral that defines the "remainder term" tends to
zero when N ~ 00. This will happen if, for example, all of the derivatives fen)
exist and satisfy the condition that If(n)(x)1 ~ n!c", where Ix - xol < l/e for
A.2. REVIEW OF INFINITE SERIES 479
1
Ix-xol <-
c
EXAMPLE A.2.3. Apply Taylor'S theorem with remainder to f(x) = logx with
Xo = 1 and find the related Taylor series expansion.
Solution. The successive derivatives are computed as
log x = n O<x<2
n=l
Another useful series with a finite interval of convergence is the geometric
series E:=txn. This arises as the Taylor series of the function f(x) = 1/(1 - x)
as documented in the next example, which we treat by elementary algebra.
EXAMPLE A.2.4. Discuss the Taylor expansion of f(x) = 1/(1 - x) with re-
spect to the point Xo = O.
Solution. By long division, we have for any x =1= 1 and any N = 1,2, ... ,
I X N +1
- - = 1+x+x2+ .. +xN +--
1-x I-x
If Ixl < 1, the last term tends to zero, which proves that the series E~lxn
converges with the explicit sum
-1- = 1 + x + x 2
I-x
+ ... + xN + ... = 1 + Ex
00
n -1<x<l
n=l
The above series for log x and 1/(1 - x) converge in a finite interval. On the
other hand, the Taylor series for the exponential and trigonometric functions are
convergent for all x.
480 APPENDIXES
For any c > 0, the ratio f(N+l)(t)IN! is less than el/cIN! ift is restricted to the
interval It I $ lie, so that the integral remainder term tends to zero and the series
converges provided that Ixl < lie. The sum of the series is eX - 1, and thus we
have the convergent Taylor series
00 n
eX -1 = '""~
L.J n !
-oo<x<oo
n=l
n=l
All of the Taylor series considered above are examples of these. The functions
un(x) are assumed to be defined on a common interval a ~ x ~ b. Let fn(x) be
the partial sum fn(x) = Ul(X) + ... + un(x).
If the series E;:'=1 Un (x) converges uniformly, then it also converges pointwise,
but the converse statement is not true. It may happen that, for a judicious choice
of x = x n, depending upon n, we have fn(xn) - f(xn) tending to a nonzero limit,
for example. To see this in detail, consider the sequence of functions un(x) =
nxe- nx - (n + l)xe-(n+1)x. For any fixed n, we have fn-I(X) = xe- x - nxe- nx
for all x, 0 ~ x ~ 1. The last term tends to zero, so that the series E::O=lUn(X)
converges pointwise to f(x) = xe- X for 0 ~ x ~ 1. But the convergence is
not uniform. Indeed, by taking x = lin, we have fn-l (lin) = (l/n)e-(l/n) -
e- 1 Thus I/n-l(x n) - f(xn)1 has the value e- 1 = 0.368 ... for Xn = lin. This
contradicts the possibility of a sequence of constants En with liIDn-+oo En = 0 such
that I/n(x) - l(x)1 ~ En for all x, 0 ~ x ~ 1.
A.2. REVIEW OF INFINITE SERIES 481
EXAMPLE A.2.6. Show that the Taylor series E~=lxn In! converges uniformly
for -1 ~ x $ 1.
Solution. We have un(x) = xnln! and lun(x)1 $ lIn! for -1 $ x $ 1. But
the series E lIn! converges. Therefore the Taylor series E~=lxn In! is uniformly
convergent for -1 $ x $ 1.
The Weierstrass M-test only gives sufficient conditions for the uniform con-
vergence of a series of functions. For example, the series E~l (-1 )nxn In does
not satisfy these conditions, but it is uniformly convergent for 0 $ x $ 1. (See
Exercise 22.)
Uniform convergence can be used to justify many operations with infinite
series. We restrict attention to series of continuous functions E~=lun(x). We
have the following propositions, which give conditions for continuity, integration,
and differentiation of a uniformly convergent series of continuous functions. These
results are used in Chapters 2, 3, and 4 when we prove that the sum of a series
of separated solutions satisfies a PDE.
EXAMPLE A.2.7. Show that the function f(x} = E:'=1 (cos nx)/2n is contin-
uous for -1r $ X $ 7r and that J'(x) and J"(x) are continuous for -7r $ X $ 7r.
Solution. We apply the Weierstrass M-test with Mn = 1/2n, to see that the
given series is uniformly convergent, -7r $ X $ 7r. Each function (cos nx) /2 n is
continuous; hence J(x) is continuous by Proposition A.2.6. The differentiated se-
ries is E:'=1 (-n sin nx)/2n, which is also uniformly convergent by the Weierstrass
M-test with Mn = n/2n , the general term of a convergent series of constants.
Therefore, by Proposition A.2.8, J(x) has a continuous derivative f'(x), which is
given by J' (x) = E~=1 (-n sin nx) /2n. To study J" (x), we note that the differ-
entiated series for J' is E~= 1 ( -n2 cos nx) /2 n , which is uniformly convergent by
the Weierstrass M-test with MN = n2 /2 n , the general term of a convergent series
of constants. Therefore, by Proposition A.2.8, J'(x) has a continuous derivative
J" (x), which is given by the differentiated series J" (x) = E~= 1 ( -n2cos nx) /2n .
EXAMPLE A.2.8. Beginning with the geometric series x/(I - x) = E~=lxn,
-1 < x < 1, show that
00
x
Enx
n=l
n=
(1 - x)2
-l<x<1
00
x(l + x)
En xn = 2
(1 - X)3
-1<x<1
n=1
Solution. Let un(x) = xn and let r be any number with 0 < r < 1. By
the Weierstrass M-test, the series E~lun(x) is uniformly convergent for -r $
x ~ r with Mn = r n , the general term of a convergent series of constants.
The differentiated series is E:'=lnxn-1, which is also uniformly convergent for
-r $ x $ r by the Weierstrass M-test with Mn = nr n-\ the general term
of a convergent series. On the other hand, from calculus, (d/dx)[x/(l - x)] =
1/(1 - x)2. Therefore from Proposition, A.2.8 we have 1/(1 - X)2 = E~lnxn-l
for -r $ x $ r. But r was any number with 0 < r < 1, and hence this equation
is true for all x with -1 < x < 1. Multiplying by x gives the required result
x/(1 - x)2 = E~=lnXn for -1 < x < 1.
We now apply Proposition A.2.8 to this series, noting that the differentiated
series E~=ln2xn-l is again uniformly convergent by the Weierstrass M-test for
-r $ x $ r with Mn = n 2 r n- 1 , the general term of a convergent series of
constants. On the other hand, the derivative can be computed by calculus as
(d/dx)[x/(1 - X)2] = (1 + x)/(I - X)3. Multiplication by x gives the required
result, E~=ln2xn = x(l + x)/(l - x)3 .
Often we need to consider functions that are defined by integrals. The fol-
lowing statement is used in Chapter 5.
A.2. REVIEW OF INFINITE SERIES 483
PROPOSITION A.2.9. Suppose that f(x) = fed g(x, y) dy, where the function
g(x, y) is continuous for a ~ x ~ b, c ~ y ~ d. Then f(x), a ~ x ~ b, is a
continuous function. If in addition, the partial derivative og / ox exists and is a
continuous function for a ~ x ~ b, c ~ y ~ d, then f' (x) exists and is given by
the integral formula f'(X) =
fcd(og/ox) (x, y) dy.
A.2.4. Abel's lemma. Abel's lemma states that if f(t), t > 0, is a bounded
oo
function and limt-too f(t) = L, then limp.J,o fo f(t)pe- Pt dt = L.
The proof consists of writing
Applying Abel's lemma gives the result that if limt-too f~ g(s) ds = L, then
oo
liIIlp.l.o fo g(s)e- PS ds = L. This is used in Chapter 5 to treat the initial-value
problem for the heat equation.
There is also a version of Abel's lemma that applies to infinite series and is
useful for discussion of the initial-value problem for the heat equation in bounded
regions in Chapter 2. We give the combined statement and proof as follows.
THEOREM A.2. Let {lln} and {bn } be sequences of real numbers.
(a) Suppose that limn-too bn = L. Then limrtl (1- x) ~::'=o bnxn = L.
(b) Suppose the infinite series ~::'=1 lln converges to the sum S. Then the
power series E~=lllnXn has a limit when x t 1, and liIllxtl E::'=l anxn = S.
Proof
(a) As above, we write for <
00
x < 1,
00
Given f > 0, choose N so that Ibn - LI < f/2 for n > N. Assuming that all of
the terms of the sequence are bounded by M,
k=l n=k
00
= Eak xk
k=l
By hypothesis, limn~oo bn = S, so the desired conclusion follows from part (a) .
A.2.5. Double series. We now consider double series. These are of the
form
00
E
m,n::: 1
amn
where amn are real numbers defined for m = 1,2, ... and n = 1,2, .... The
convergence of a double series is defined in terms of the partial sums
If
lim Smn = a
m-+oo,n~oo
a= E amn
m,n=l
A.2.6. Big-O notation. In several places throughout the text we have used
the big-O notation to indicate the order of magnitude of a function, in the limiting
case when a parameter becomes large. In this subsection we systematically collect
the various definitions and properties of this notation.
Definition Let f(t), g(t) be two functions defined for t > O. We write
f(t) = O(g(t)) t -+ 00
if there exist constants M > 0 and T > 0 such that If(t)1 ~ M g(t) for t > T.
Similarly, if {an} and {b n } are sequences defined for n = 1, 2, ... , we say that
an = O(bn) if there exist constants M > 0 and N > 0 such that lanl ~ Mbn for
n>N.
For example, we have
~
1+t3
= o(~)
t
sin t
1 + t2
=0 (2-)
t2
t -+ 00
t2
e-' = 0 (~) t -+ 00, - -2 = 0(1)
1 +t
t -+ 00
Each of these can be proved using facts about the specific functions. In case 1 we
have l+t3 ~ t 3 for t > 0, so that 2t2 /(1+t3) ~ 2t2 /t3 = 2/t; hence the definition
is satisfied with M = 2, T = 1. Likewise in case 2, Isin tl ::; 1, (1 + t 2) ~ t2,
so that the definition is satisfied with M = 1, T = 1. In case 3 we may use the
power series et = 1 + E'; tn/nL All of the terms are positive when t > 0; hence
et > t 5 /5! or e-t < 5!ft5 Therefore we may take M = 5!, T = 1. Finally, we note
486 APPENDIXES
that J(t) = 0(1), as in case 4, is equivalent to the statement that IJ(t)1 s M for
t> T. In this case we say that J(t) remains bounded when t -)- O.
If J(t) = O(g(t)), t -)- 00, it does not follow that get) = O(J(t, t -)- 00. For
example, e- t = O(I/tS), t -)- 00, but l/ts i= O(e-t), t -)- 00. Similarly, we write
J(t) = O(g(t)) t -)- to
if there exist constants M > 0 and d > 0 such that IJ(t)/ s Mg(t) for 0 <
It - tol < O. For example, sin t = OCt), t -)- 0, whereas sec t = O(l/It - 1["/21),
t -)- 1["/2.
Often we encounter series that depend on a parameter t, for example, the
series E~=l e- nt . This series converges for each t > 0 by the ratio test. If t > 1,
e- t < e- 1 < 0.38, and thus E~le-nt < (1/(1 - O.38)]e- t < 1.62e- t . We have
proved that
t -)- 00
n=l
At first this may seem somewhat surprising, since we have estimated the sum of
a series by the first term. This result can be applied to the series E~=l ane- nt ,
where {an} is any sequence of constants with an = 0(1), n -)- 00. Thus we have
E~=lane-nt = O(e-t), t -)- 00. This may also be true for certain sequences {an}
with an tending to infinity. For example, if an = n 2 , we use the result of Example
A.2.8:
x(1 +x) _ ~ 2 n
-I<x<l
( 1 _ X)3 - L...Jn x
n=l
t -)- 00
EXERCISES A.2
n=1
I
4
1 1
-1r = tan-II = 1- -+- - ... +(_l)n
3 5
- - + (_l)n+l
2n + 1
11
0
t 2n+2
--d
1 + t2
t
9. Which of the following double series are convergent, according to the inte-
gral test?
(a) E:.n=11/(m2 + n 2 ) (b) E:.n=l e-(m2+n2)
(c) E:,n=l (m 2 + n 2 )e-(m+n) (d) E:,n=l 1/(m2 n 2 )
10. Find constants M > 0, T> 0 such that IJ(t)1 ~ Mg(t) for t > T if
(a) J(t) = t 2, g(t) = et
(b) J(t) = t lO , get) = et / 2
(c) J(t) = (sin t)(log t), g(t) = t 1/ 2
(d) get) = 100/t, J(t) = e- t / 50
11. For each of the following functions, is it true that J(t) = O(g(t, t -+ oo?
Find suitable constants M > 0 and T> 0 in each case.
(a) J(t) = 3t3 + 3t2 + 5, g(t) = t 3
(b) J(t) = t 2 + 4t - 2, get) = t 4
(c) J(t) = (tl + 4t)/(t 2 + 2), get) = 1
(d) J(t) = t lOO , get) = e 1/ 4
(e) J(t) = sin2 t, g(t) = Isin tl
(f) J(t) = e- o.Olt , g(t) = t- 25
12. (a) Show that limn-too n 2 xe- nx = 0 for 0 ~ x ~ 1.
(b) Show that liIDn-too fol n 2 xe- nx dx = 1.
(c) Find a series of functions un(x) for which
13. If ft(t) = O(g(t, J2(t) = O(g(t, t -+ 00, show that ft(t) + h(t) =
O(g(t, t -+ 00.
14. If Jl (t) = O(g(t, h(t) = O(g(t, t -+ 00, show that ft (t)h(t) =
0(g(t)2), t ~ 00.
15. If ft(t) = O(g(t, h(t) = O(g(t, t -+ 00, is it true that ft(t)/ J2(t) =
0(1), t -+ oo?
16. Show that log(l + t) = logt + O(I/t), t ~ 00.
17. Show that (1 + t)5 = t5 + 0(t4), t -+ 00.
18. Show that E::lne-nt = O(e- t ), t -+ 00.
19. Use mathematical induction to prove that for any p = 1,2, ... , -1 < x < 1,
~nPxn = xQp(x)
~ (1- x)p+l
n=l
where Qp is a polynomial of degree p - 1. For example, Ql = 1, Q2 =
1 + X, Q3 = x 2 + 4x + 1.
20. Let x = e- t in Exercise 19 and show that, for any p = 1,2, ... , E~=l nPe- nt
= O(e-t), t -+ 00.
A.3. REVIEW OF VECTOR INTEGRAL CALCULUS 489
21. Let {an} be a sequence with an = O(nP) for some p = 1,2, .... Show that
L~=lane-nt = O(e- t ), t -+ 00.
22. (a) Prove the finite identity l/(l+t) = I-t+t 2 _ .. +( _t)n-l+( -t)n /(l+t).
(b) Integrate this to obtain the identity
x2
log(l+x) =x- - + ... +
x
(_x)n-l
n
1x
+ (_l)n --dt
0 l+t
tn
for any x 2 o.
(c) Show that IoX[t n /(1 + t)Jdt ~ l/(n + 1) for 0 $ x $ 1.
(d) Conclude that E:'=l(-X)n/n converges uniformly for 0::; x::; 1.
23. (Cesaro implies Abel summability) Suppose that g(t), t > 0 satisfies the
relation limT~oo T- 1 f: g(s) ds = L. Show that limp.J,.O fo pe-ptg(t)dt =
oo
EXAMPLE A.3.1. Verify the divergence theorem in the case where D is the
cube 0 :5 x ~ a, 0 :5 y :5 b, 0:5 z :5 c and F(x, y, z) = (Fl(X), 0, 0).
Solution. In this case divF = F{(x), so that the left side of the divergence
theorem is
To compute the right side of the divergence theorem, we must calculate sep-
arately the integrand on each of the six faces:
On the face x = 0, F n = -Fl(O)
On the face x = a, Fn= +Fl(a)
On the face y = 0, Fn=O
On the face y = b, Fn=O
On the face z = 0, Fn=O
On the face z = c, Fn=O
Therefore the total surface integral reduces to two nonzero terms, each of which is
the area of the bounding surface multiplied by the constant value of the integrand;
in detail,
fL divFdxdy= LD FndS.
where div F = 8Ft/8x + 8F2 /8y. The integral of the normal component of F
can also be written in terms of the tangential component of a vector field, if we
write N = F I , M = - F2 so that we obtain the statement of Green's theorem
where the sign is determined by the convention that the boundary curve 8n is
oriented so that when we traverse the boundary, the region is on the left side of
the curve.
In order to make effective use of the three-dimensional divergence theorem,
we first note that if u is a differentiable function, then the usual product rule for
A.3. REVIEW OF VECTOR INTEGRAL CALCULUS 491
IlL 2
(uV v+VuVv) dxdydz= lfaD uVvndS
When we interchange the roles of u and v and subtract the two equations, we
obtain Green's second identity:
IlL 2 2
(uV v - vV u) dxdydz = IfaD (uVv n - vVu n) dS
In[2]:=F={O,x-2(2y+1)z,O}
2
Out[2]={O,x (2 y + 1) z , O}
In[3]:=divF = Div[F]
2
Out[3] = 2 x z
492 APPENDIXES
Out [4]=8/9
Factor[x"'4 - 1]
The result is
(-I + x)(1 + x)(l + x2 )
Notebooks are divided into cells. Each formula is entered into a "cell," rec-
ognizable as a bracket on the right side of the window. After typing a formula
into a cell, the formula can be evaluated by hitting the key ENTER. (Notice that
ENTER is different from RETURN; the latter is used to go to the next line of a
cell. However, SHIFT/RETURN has the same effect as ENTER.) Cells can be used
to display either text or graphics and can be printed individually.
A.4.2.1. Help. To obtain help on any command, type? in front of the com-
mand and hit ENTER. For example, ?Plot gives a short description of how to
plot a function. Wild cards can also be used. Thus to see all commands that
start with D, type ?D*. To get more extensive help use ??
A.4.2.2. The function browser. The function browser in the Help menu ex-
plains Mathematica functions and commands; it allows functions and commands
to be pasted into cells, usually as templates. Although the function browser has
been a feature on the NeXT and Macintosh notebook versions of Mathematica for
some time, it is a standard feature on all notebook versions of Mathematica be-
ginning with version 3.0. On a NeXT or Macintosh it is also possible to access the
function browser with the key combination COMMAND-SHIFT-F. Furthermore, if
the name of a function or command in a cell is selected with the mouse, the key
combination COMMAND-SHIFT-F will open the function browser and give a short
explanation.
A.4.2.3. Key equivalences between platforms. On notebook versions of Math-
ematica, many frequently used menu options can also be performed with specific
key combinations. For example, on the NeXT computer, all cells in a notebook
can be selected with the key combination COMMAND-SHIFT-A. On the Macintosh
it is APPLE-SHIFT-A, and on the PC it is CONTROL-SHIFT-A. In general, when-
ever a reference is made to a key sequence on the NeXT using the COMMAND
key, you may substitute the APPLE key for the Macintosh or the CONTROL key
for the Microsoft Windows version on a PC.
A.4.2.4. Copying input and output from above. A series of calculations fre-
quently requires evaluating similar expressions, one after the other. Two key
combinations greatly facilitate this process. The precise keystrokes can be ob-
tained from the Mathematica Help menu. In the case of NeXT workstations,
the key combination COMMAND-L copies the input from the cell above. This new
494 APPENDIXES
input can be edited and reevaluated. Sometimes the key combination COMMAND-
SHIFT-L, which copies the output from the cell above, is also useful.
yields
6 + 3 S + 8-2
A.4.4.3. Multiplication and division. Most of the mathematical operations,
for example, addition (+), subtraction (-), division (/), and exponentiation C),
use the symbols that have become standard in modern programming languages,
but multiplication in Mathematica is represented by either an asterisk or a space.
For aesthetic reasons we usually prefer to denote multiplication by a space. How-
ever, it is sometimes necessary to use an asterisk for multiplication at the end of
an intermediate line in the middle of a multiline expression.
Notice that xy represents a single expression in Mathematica; it is never the
same as x y, when both x and yare symbols. But the following expressions are
all the same in Mathematica:
2y 2Y
They all indicate multiplication of a symbol by a number. Note also that x2
denotes a single expression, whereas x x denotes x times x.
A.4.4.4. Universal constants and numerical values. The numbers e ~ 2.71828,
7r ~ 3.14159, and i = v'-T are represented in Mathematica by E, Pi, and I.
Mathematica distinguishes between symbolic values and numerical values. A
numerical approximation to 7r can be found with the command N[Pi]:
3.14159
Mathematica gives exact results, whenever possible. Although Mathemat-
ica responds to Sin[l] by repeating the expression, Mathematica's answer to
N[Sin[l]] is the six-digit decimal approximation
0.841471
Nevertheless, some expressions, such as Sin[O] and Sin[Pi/4], are automatically
simplified, since their values are well known. Anytime a numerical value is re-
quired, apply the operator N.
A.4.4.5. Lists. A list consisting of three elements (aI, a2, a3) is denoted in
Mathematica by {aI, a2, a3}. Note that braces are used instead of parentheses.
Thus a list of n numbers can be thought of as a point or vector in euclidean
space r.
AA. USING MATHEMATICA 497
results in
3 + 2 t
because the use of D[ ,t] tells Mathematica to treat t as the only variable for
the purposes of differentiation.
A.4.4.8. The prime notation. In the case of a function f of a single variable
t, Mathematica has another notation for the derivative of f with respect to t,
namely, f'[t]. This notation is useful since it imitates ordinary mathematical
notation closely. For example, if we define
f[t_]:= a t-2 + b t + c
then Mathematica's response to f'[t] is
b + 2 a t
A.4.4.9. Integration. Just as in ordinary mathematics, there are two kinds of
integration in Mathematica: indefinite integration and definite integration. To
compute
we use
Integrate[t E-t Sin[t]Jt]
The answer is
t t t
E Cos[t] - E t Cos[t] + E t Sin[t]
2
Mathematica suppresses the constant of integration. For definite integration
Mathematica also uses the command Integrate but with a different syntax. To
find
we use
Integrate[t Sqrt[l-t]J{t JO,l}]
to obtain
4
15
A.4. USING MATHEMATICA 499
Nlntegrate[Sin[t]A(1/3),{t,O,l}]
The approximate value of the integral is
0.733269
The command NIntegrate can be quite slow.
A.4.4.10. Simplifying expressions. Mathematica's command Simplify attempts
to simplify expressions. For example
4 4 2
-1 + t (-1 + t )
3
-8 t
4 2
(-1 + t )
3 1
{{x -> - y -> -(-)}}
2 2
Solve[x-2 - 5 x + 6 == O,x]
EXERCISES A.4
Work the following exercises with Mathematica, using Simplify when it is ap-
propriate.
CHAPTER 0
Section 0.1.1
1. The most general first-order linear PDE in two variables is written in the
form a(x, y)ux + b(x, y)uy + c(x, y)u = d(x, y) and contains four functions.
2. The most general first-order linear PDE in three variables is written in the
form a(x, y, z)ux + b(x, y, z)Uy + c(x, y, z)u z + d(x, y, z)u = e(x, y, z) and
contains five functions.
3. The most general first-order linear homogeneous PDE in two variables is
written a(x, y)ux + b(x, y)uy + c(x, y)u = 0 and contains three functions.
4. The most general first-order linear homogeneous PDE in three variables is
written a(x, y, z)ux+b(x, y, z)uy+c(x, y, z)uz+d(x, y, z)u = 0 and contains
four functions.
Section 0.1.4
1. u(x; t) = Tl
2. u(x; t) = To + ~(x - I/h)
3. u(x; t) = 2J~L[1 + h(L - x)] + 2Jhd1 + hx]
Section 0.1.5
1. Hyperbolic.
2. Elliptic.
3. Parabolic.
4. Elliptic if x > 0, hyperbolic if x < O.
Section 0.2.3
1. (a)X" - 2AX = 0, Y" - AY = 0
(b) X" + 2 X' + AX = 0, Y" - AY = 0
(c) x 2 X" - AX = 0, 2y Y' - AY = 0
(d) X" + X' - AX = 0, Y' + (A - l)Y = 0
2. (b) is a solution of Laplace's equation.
503
504 ANSWERS TO SELECTED EXERCISES
Section 0.2.4
1. un(x, y) = An cos (n1Tx/ L) sinh(n1TY/ L), n = 1,2, ... , uo(x, y) = Cy
2. un(x, y) = An sin(n1Tx/ L)e-(n7r y /L) , n = 1,2, .. .
3. un(x, y) = An sin(n1Tx/ L)e-(n7r/L)2 t , n = 1,2, .. .
4. Un(x, t) = An cos (n1Tx/ L)e-(n7r/L)2 t , n = 0, 1,2, .. .
5. Un(x, t) = An sinn - 1/2)1Tx/ L)e-n-I/2)7r/L}2 t , n = 1,2, ...
Section 0.3
1. (a) (CPt,CP2) = ~ (b) (CP}'CP3) =i
i
(c) IlcpI - !;?2112 = (d) lI!;?l + 3!;?2112 = 7
2. (!;?l! !;?3) = 0, (cpl! !;?4) = 0, (!;?2, CP3) = 0, (!;?3, !;?4) = O. Therefore (!;?t, !;?3)
are orthogonal, (CPI, CP4) are orthogonal, (CP2, CP3) are orthogonal, and (!;?3, CP4)
are orthogonal. All others are nonzero.
4. 2/1T; ~in = 4- 4/1T2 = 0.0947, dmin = 0.3078
5. 4+ 4cos2x
6. (b) x/2Ixl; ~in = ~,dmin = 0.4082
9. (d) cos () = 0,/2, () = 1T /6
ANSWERS TO SELECTED EXERCISES 505
CHAPTER 1
Section 1.1
1
+ ,",00
L2 4L2 (-l)n cos ~
L.m=1 n 211'2
3 L
Section 1.2
1. (b), (d) are piecewise smooth.
9. (a) 1 (b) ~ (c) 1 (d) 0
10. (l/1r)(N + ~)
11. u = n1r/(N +!) for n = 1, 2, ...
12. For N = 1, D~(u) = 0 at u = O,1r
For N = 2, D~(u) = 0 at u = 0, cos- 1 ( -V, 1r
16. (b) 1r2 /12 (c) 1r2 /6 (d) 1r2 /8
17. Zero.
18. cosh 1r = ~(e1l' + e-1I')
22. n> 4
23. An =-n~ E-1r<x.<1I' sin (nx,) [J(Xi + 0) - f(x, - O)} + 0 (~), n ~ 00
Bn = :11' E_1r<x.~1I'-cos(nxi)[J(xi + 0) - J(Xi - 0)] + 0 (~), n ~ 00
Section 1.3
2. k = 2, 1.42; k = 3, 1.67; k = 4, 1.49
11 x 2 = 74L2~OO (-1~+1 [1 _
L.m=l n
!!!!:!] _ L2 _ 74L2~(X)
cos L - 3
(_1);+1
L.Jn=1 n
!!!!:!
cos L
x3 L2x _ 4L3 ~(X) (-V n n1l'x 0 L
12 3" - ""3 - 7 L.Jn=1 n sm L' <x <
13. The series for x 2 and x 3 - L 2 x are uniformly convergent. The series for x
is not uniformly convergent, since the sum of the series is discontinuous at
x=L.
Section 1.4
2 _ 2 ~oo {(_1)n_l]2
1 UN - 1rf L.Jn=N+l n2
2 UN2 - 8~(X) 1
- L.Jn=N+l n-r
3. uh = 0 for N ~ 10
4. 1r2 /8 = 1 + ~ + ~ + .. .
5 1r4 /90 = 1 + l16 + .1.
81 + .. .
8 (a) !~(X) 1-(-1)" sinnx (b) 11'2 _2~(X) 1+(-1)" cosnx
11' L.Jn=l n3 6 L.Jn=l n 2
8 ~(X)
(c) U2N (sine series) = ill' [1-(-1)"]2 = O(N-5)
L.Jn=N+l n6 ,
2 (cosine series) = 2 ~(X)
uN [1+{_1)n]2 = O(N-3)
L.Jn=N+1 n 4
10. (a) a~ + ~E:=l!;~h; cosnx (b) u~ O(N-3)
=
16. E~=N+l e- n = ~=.'; whereas f:
e-xdx = e- N , so that the series is asymp-
totic to the integral multiplied by the constant factor 1/(e-1), in contrast
ANSWERS TO SELECTED EXERCISES 507
to the case of a power f(x) = x- s , s > 1, when the integral and the series
are asymptotic to one another, with the constant = 1.
17. ~ = 12V3
p2
18. ~ = 16
19. ~ = 4n tan;
Section 1.5
3. eX = r::=-oo (-1)n Lt:~'!;2 (sinh L)e i~7r x,
1< <1 _ <
-L<x<L
4. 1 -
l-re'~ -
,",00
~...m=O
n inx
r e, - r ,00 x < 00
Section 1.6
1. ct'n(x) = Asinn- ~)7Tx/L)), An = n-
~)'n"/L)2,n = 1,2, ... and A is
an arbitrary constant.
2. ct'n(x) = A( ~ cos(xA) + h sin(xv'A,;)) where An is a root of the tran-
scendental equation 2h-IX cos (Lv'X) + (h 2 - A) sin(Lv'X) = 0, n = 1,2, ...
and A is an arbitrary constant.
3. ct'n(x) = A cosn - ~)1fx/ L), An = n -
~)1f / L)2, n = 1,2, ... and A is an
arbitrary constant.
4. CPn(x) = Acos(2n1fx/L) + Bsin(2n1fx/L), An = (2n1f/L)2,n = 1,2, ... ,
where A, B are arbitrary constants.
5. ct'n(x) = A sin (x v'Xn ), where An is a root of the transcendental equation
tan(LVX) = v'X, n = 1,2, ... and A is an arbitrary constant.
6. ct'n(x) = A (sin(xv'A) + -IX cos (x v'X) ), where An is a root of the transcen-
dental equation cos(LJX) - JX sin(Lv'A) = 0 n =
1,2, ... and A is an
arbitrary constant.
9. (a) The point (1f / 4, 1f/2) is in the region Al > 0 of Fig. 1.6.2; therefore
there are no negative eigenvalues in this case.
(b) The point (1f /4, 31f / 4) is in the region Al < 0 < A2 of Fig. 1.6.2;
therefore there is one negative eigenvalue in this case.
(c) The point (71f/8,71f/8) is in the region Al < A2 < 0 of Fig. 1.6.2;
therefore there are two negative eigenvalues in this case.
CHAPTER 2
Section 2.1
1. U(z) = Tl + (z/ L)(T2 - Td
2. ~ = -(k/ L)(T2 - Tt}
3. U(z) = <I>(z - L) + To
4. U(z) = {T1(k + hz) + To[k + h(L - z)]}/(2k + hL)
508 ANSWERS TO SELECTED EXERCISES
R_ 21f
p- T'
c= fI
V2i<
15. V7r K 1" = 23.3 cm
16 u(z, t) = a,",00 exp [-z Imf1
1fL..n=l V KTJ
[1-<-1)"] sin (2n1ft -
n T
Z I!JK)
V KT
Section 2.2
1 u(z, t) = 2L,",00
1r L..n=l (_1)n+1
n
sin!m!
L
exp [_ (~)2
L
Kt]
2. u(z; t) = 2;L::1 ~ (1 - cos n21f) sin nrz exp [- (n;)2 Kt]
3. u(z; t) = 3 sin ;t exp [- (2~)2 Kt] + 5 sin ;7 exp [- (~1)2 Kt]
4. un(z; t) = cos nrz exp [- (n;)2 Kt] , n = 0,1,2, ...
5 u(z t) - b. _ 4L,",00 cos(2n-l)1Tz/L] e p [_ (2n-l)2 1T 2 Kt ]
,- 2 7 L..n=l (2n-l)2 X L'i
6. u(z; t) = 3 + 4 cos 7 exp [- (f)2 Kt] + 7 cos 3~Z exp [- (3{)2 Kt]
9. u(z;t) = L:=lBnsinz~e->'nKt, ~ = -htanL~,
B n -- ~cosLvr*
2L Tn -sin(2L~}
ANSWERS TO SELECTED EXERCISES 509
Section 2.3
Section 2.4
1. y(s;L/2c) = 0 for 0 < s < L
2. B 2n+ 1 = 0 for n = 0, 1,2, ...
3. B 3n+1 = 0, B3n+2 = 0 for n = 0,1,2, ...
510 ANSWERS TO SELECTED EXERCISES
Section 2.5
1 U (x,
. t) -
y, -::J
4 2: 00
-I
sin[(m-j)(1I'x/Ll)] sin[(n-!)(7fy/L2)]
e
->"mnKt
7f m,n- m-li n-li
Amn = (m - ~)2(1f/LI)2 + (n - ~)2(1f/Ld2,
T + L~)]
= (4/1f2K)[L~L~/(L~
"
~oo l-(-l)m
2. u(x yt) = 1 L.,.,m=l m
sin~exp
Ll
11'
[- (m!.)2 Kt] T = ~
Ll ' 1i'IK
3. uo(x, y) = Ay+B, un(x, y) = cos(n1fx/ Lr)[A cosh (n1fY/ L1)+B sinh (n1rY/ L.)J,
n = 1,2, ...
4 u(x y) - 1If.l _ lli ~oo 1-(-l)n cos n7fxjLl sinh n1l'1I Ll
, - 2L2 1f2 L.,.,n=l n sinh(n7fL2/Ll
5. u(x, y) = y/ L2
6. u(x,y) = yT2/L 2 + (L2 - y)Tt/L2
7. Umn(X, y, z) = sin[(m - ~)(1fx/ L)] sin[(n - !)(1fY/ L)]
X{Acosh(1rz/Lhj(m - !)2 + (n - !)2+Bsinh(1f'z/Lh/(m - !)2 + (n _ !)2}
8. uoo(X,y, z) = Az + B, Umn(X, y) = cos mfx cos ~[Acosh (7v'm2 + n2)
+Bsinh (7f{v'm2 + n2)], m, n = 0,1,2, ... with m2 + n2 =F 0
r.---r:-:=---:-----r:-=,.
- 4 ~oo sin[(m-j)(1Tx/L)]sin[(n-!)(7fy/L)]sinh[(1Tz/L) (m-l)2+(n-j)2]
9 U (X, Y) - ~ L.,., -1 1 1
11' m,n- (m-:i)(n-:i)sinh(1I' (m- 2 )2+(n-2")2)
10. u(x, y, z) = 1
11. u(X y' t) = !all
"
+ (L2-1I)Tl
L2
~oo 1 An si n !!!1l
+ L.,.,n=
L2 L2
exp [_ (&)2Kt]
L2
A = 2(Ts-Td(1-(-1)n] + 2(TI-T2)(-1)n+l
n n1T n1l'
y) - m ~oo
12. u(x y' t) = U(x ,~ l-C-l)m n(_l)n+l sin ~ sin!!!!1 e->"mn Kt
1 , L.,.,m,n=l m m 2 +n 2 L L '
_ (m2 +n 2 )7f2 _ L2
Amn - L2 1 T - 2K7f2
13. u(x, y; t) = 3 sin (1f'x/ L) sin (21f'Y/ L) cos[1f'ctv'5/ L]
+ 4 sin(31fx / L) sin (51rY / L) cos(1fct...!34/L)
14. umn(x, y; t) = cos (m1fx/ L) cos (n1fY/ L) sin [(1f'ct/ L)v'm2 + n 2], (m, n) i- (0,0)
Uoo(x, y; t) = t
15 !!:fL' 1r 1. '2!!:f '41. '4 1f ;g! '5! '8 !!:f. rg ! . rg
L ' L v~, L V'*, L V'*, L V iJ, L V iJ, L V 0, L v~, L V ~
17 !!:f
L V'5!!:f.!ffi
v, L V ~U, 1TC . 'I3
L V ru: . 'I7!!:f '2i5 ru: v'25' !r
~.J, L V ~" L V ~U, L L V. '26 1r . '29 ! . 134 !r . '4I
~U, L V ~~, L V.J,*, L V '*~
ANSWERS TO SELECTED EXERCISES 511
CHAPTER 3
Section 3.1
1. 12p2 cos 2cp
2.0
3. n 2 pn-2
4. {n 2 - m 2 )pn- 2 cosmcp
5. eP cos cp + {1/ p)eP cos cp - (1/;)eP cos cp
6. 1, 2, 3 if n is even; 4 if n > m and n - m is even.
9. f(p) = Alnp+B,p;i: 0
10. f(p) = -ip2 + Alnp+ B,p # 0
11. f(p) = ';2
Inp+3
12. f{p) = -i p2 + ~~~~ + ~
13. u(p, cp) = 1 + c~n2 cos 2cp + 3 (i)3 sin 3cp
14. u{p, cp) = ffii - fi.
cos 2cp + 161C;;l'P
15. u(p, cp) = 21~ne2 + ~ 2::=1 [~:=~=:] [1-(~1)71] sin n!p
Section 3.3
1. U(p) = (g/4c 2)(p2 - a2 )
4. u(p,cp;t) = 2::=lAnJo (~)cos~, JO(xn) = 0,
An = Q2Jt(xn)2 f;
Fl(P)JO(~) pdp
5. u(p, cp; t) = 2:~IAnJo (~}sin~, An = aexnJ;(xn)2 foG F2(P)JO(~) pdp
512 ANSWERS TO SELECTED EXERCISES
6. u(p, (n
.,..,
t) = ~c ,",00 Jo pZn a sin ~
L ..m=l xnJt xn) a '
JO(xn) = 0
7 U(p
. ''1'' t)
In = 8a3 L.Jn=l
C
,",00 JO(pZn{a)
X!Jl(Xn)
sin ~
a ,On
J (x ) = 0
8. u(p, CI'; t) = (afcx~3J3(px~3) fa) sin(ctx~3) fa) cos3C1'
Section 3.5
1. u(p (n z) = 2 ~oo JO(pZn{Pmax)s~nh(xn(L-z)/Pmax)
,.,.., L.Jn=l Xn J l(Xn)SlOh{x n L/Pmax)
ANSWERS TO SELECTED EXERCISES 513
CHAPTER 4
Section 4.1
1. 12r
2. 3sin3 8 + 9sin8cos2 8
3.2/r
4. (cot 8)/r2
5.0
6. (9 + 6/r)e3r
7. n(n + 1)rn - 2
11. f(r) = (a 2 - r 2 )/6
12. f(r) = (a 4 - r 4 )/20
13. f(r) = (a 6 - r 6 )/42
= ~ Re {exp[c1 (r - a)(l + i)]e2it l-exp[-
14. u(r''t)T 2c t r (l+I)] }
l-exp[- 2c la(1+t) ,
where c} = J'f
17 u (r;t ) = a(a2-r2}
6K + T1 + rL.Jn=l
1",,00 A . n7l'T
nSlDQ exp -
[(n7T)2 Kt]
a ,
where A = 2a(T2- T l) (_l)n+l _ 2(703~_l)n+l. T = a2
n n7r 7T Kn 3 ' 1i'iK
18. u(r; t) = ~ ~:=lAn sin ~:: exp [- (~:}2 Kt] + Tb
where An = T2 [...JL. sin ~ -
(n1l')2 2
2a
n7T
cos~]
2
+ T1 [40(-1)"]
n1l'
20. un(rit) = ~ sin(r~)e->'nKt, where a~cot(aA) = 1
514 ANSWERS TO SELECTED EXERCISES
Section 4.2
1. 0, -~,O, ~
2. 1,0,-~,0
3. Ps(s) = 638ts-7~S315S, P6(S) = 23Is6_3I5;~10582-5
p. ( 15it") = 0
12. ~ + 2::1 2i~"tIl) PHO)Pk(s) = ~[J(S - 0) + f(s + 0)], -1 < s < I
13. 2::1k~t~) Pt(O)Pk(S) = Mf(s - 0) + f(s + 0)], -1 < s < 1
14. ~ - ~~P2(S) + ~~~P4(S) - 2~438P6(S)
15. P4 ,l (s) = VI - s2(35s3 - 15s)/2 = 5V1 - s2(7s3 - 38)/2,
P4,2(S) = (1 - s2)(105s 2 - 15) = 15(1 - s2)(7s2 - 1)/2,
P4 ,3(S) = (1 - s2)3/2(1058), P4.4(S) = 105(1 - S2)2
19. S2 = iPo(s) + iP2(S), S3 = ~Pl (s) + ~P3(8),
8 = ts-PO(S) + ~~P2(S) + I5P4 (s)
4
Section 4.3
1. u(r,8) = lj Po (cos 8) + 4(r/a)P1 (cos8) + t(r/a)2P2(cos8)
2. u(r,8) = ipo(cos 8) + t(r /a)2 P2(cos 8)
3. u(r,8) = 2:~=o 2n~i (~)n Pn(cos8)
4. u{r,8) = ~ + E:l (2~;(~:f~O) (~)k Pk(cos 8)
5. u(r,8) = 2::1 (2k~!>:l5)(O)
(;)k Pk{cos8), u (r,~) = 0
7. u(r,8) = (r/a)P1 (cos8) + Hr/a)3P3{cos8)
8. See Exercise 5.
9. u{r,8) = !(a/r)Po{cos 8) + 2(a/r)2 PI (cos 8) + ~(a/r)3 P2 {cos 8)
+ ~(a/r)5P4(cos8)
10. u(r,8) = E:I (2kk~!>':N)
(~)kl Pk (cos8)
11. u(r,8) = -t{a3/r2) PI (cos 8) - fo(a 5 /r 4)p3(cos 8)
12. u(r,8) = !~~ ~ (a =F 2)
13. u(r,8) = (r/a) sin8coscp+ (r/a)2sin2 8sin2cp
14. u(r,8) = (a/r)2 sin 8 cos cp + (a/r)3 sin2 8 sin 2cp
ANSWERS TO SELECTED EXERCISES 515
CHAPTERS
Section 5.1
1. F(J.I.) = Si::
e
2. F(p,) = ':Jl (1 - cos p,)
3. F(p,) = 2~ (2~'Jl + a':iJl)
4. F(JL) = ur(1~Jl2)!l
5. F(p,) = 2~ [1+(1~Jl)2 + 1+(11_1')2 ]
6. F(p.) = 4~ [1';Jl2 + 1+(:-2)2 + 1+(:+2)2 ]
7. F(p.) = T e- 1Jl1
8. F(JL) = vk exp [-! (JL _ ~)2]
9. F(JL) = 2:/2;; {exp [-!(1 + JL)2] + exp [-~(1 - J.I.)2]}
10. F(p.) = _ iJJe;;;/2
13. Fc(J.I.) = ~ (1t;$2)!l Fs(J.L) = 1f(1!tll)2
17. F(J.L) = ~e-3iJle-lpl
18. F(J.L) = .Ane-2iJle-p2/2
19. F(p.} = 3e- 2ip /1f(9 + p.2)
20. F{JL} = 1/[1f(4JLi + 8 - J.L2)]
21. F{JL) = (2 - iJL}/21f(4 + J.l.2)
Section 5.2
6. u(x; t} = fo {exp [- (~1t]
v'4!Kt
LI
- exp [- (~1t]} df.
lu(xt)1
,
< ~t-3/2
- 4KV1fK
lu(xt)1
,
< ~
- v41fKt
Section 5.3
1. y(x; t) = 3 sin 2x cos 2ct
516 ANSWERS TO SELECTED EXERCISES
Lm=l B n sin ~
13 u(x , y) -_",,00 L
e-(nll'y/L) B -.!
,n rL J(x) sin ~ d:c
- L Jo L
14. u(:c, y) = I~ooB('x) sinh'x:ce''\Yd,X, B('x) sinh,XL = 2~f~oogodde-i.\Ydy
CHAPTER 6
Section 6.1
1. 5! = 120, (5/e)5 21.0561, {5/e)5y'101T 118.02;
r-..J r-..J
Section 6.2
1. J(t) = (et /t)[(sin 1) + O(l/t)], t ~ 00
2. J(t) = (e- t /t)[l + O(l/t)], t ~ 00
3. J(t) = (e- t /t)[l + O(l/t)], t ~ 00
4. J(t) = (l/t)[l + O(l/t)], t ~ 00
5. J(t) = (l/t)[l + O(l/t)], t ~ 00
6. u(at; t) = 100 + O(e-(a2 t/4K t ~ 00, a> 0
Section 6.3
1. J(t) = 2J1ift[1 + O(I/v't)], t ~ 00
ANSWERS TO SELECTED EXERCISES 517
8. u(Xj t) =
9. u{Xj t)
*'
7. u(x; t) = O{l/t), u:z:(Xj t) = O{l/t), t -+ 00
lfo J(x)dx + 0 (~)], U:z:(X; t)
OO
Section 6.4
1. J(t) = y'1i7tei1r /4[1+ 0(1/ vi)], t -+ 00
2. J(t) = J21r/te't e-(i1r/4)[1 + O(l/vi)}, t -+ 00
3. J(t) = J7r/2te it e-(ur/4)[1 + 0(1/0)], t -+ 00
4. J(t) = 2J21r/tcos(t - 7r/4) + O(l/t), t -+ 00 m even
J(t) = 2iJ27r/tsin(t - 7r/4) + O(l/t), t -+ 00 m odd
Section 6.5
4. J(t) = e- t [t - b+ ~ - ~ + ... + (_l)n #h + 0 (tnk)], t -+ 00
CHAPTER 7
Section 7.1.3
7. (a) 0.04996 (b) -0.1000 (c) -0.4986 (d) -0.9975
8. (a) -0.04996 (b) 0.1000 (c) 0.4082 (d) 0.9975
9. (a) Zero (b) Zero (c) -0.01126 (d) Zero
11. (a) Zero (b) -0.0677 (c) -0.0008 (d) Zero
CHAPTERS
Section S.1
l+h(L-z)x if 0 < x < z
2 GX,z
() = I+hL --
l+h(L:z:)
{ l+h~ z
if z :5 x :5 L
_ { l:~+~~Z (1 + hx) if 0:5 x :5 z
3. G(x, z ) - l+hz [ ( )}'
h(2+hL 1 + h L - x If z :5 x :5 L
Sinh[(L-Z)v'k]Sinh(Zv'k) if 0 :5 x :5 z
4 G(x z) - sinh(L~)
,- { sinh %k sinh L-:z: v'k if z :5 x :5 L
sinh(L k)
sin[(L-z)v'-k}sin(:z:H) if 0 <_ X <_ z
5 G( )- sin(LR)
X, Z - { sin[zv'-k} sinj{L-:z:)A) f
sln(Lv.:k) i z:5 X :5 L
518 ANSWERS TO SELECTED EXERCISES
-(z - L)2/2L if 0 :5 x :5 z
6. G(x,z) ={(x _ z) - (z - L)2/2L if z ~ x ~ L
7 G _ { (L - z)(z - 2x)/2L if 0 ~ x ~ z
. (x, z) - (x _ z) + (L - z)(z - 2x)/2L if z ~ x ~ L
Section 8.4
1. u(x;t) = J: JoOO [47rK(t-s)]-1/2 [e-(2:-()2/ 4K(t-S) +e-(2:+()2/4K (t-S)] h({,s)deds
L
2. u(x; t) = E~-oo J: Jo [41r K(t - S)J-l/2
[e-(2:-(-2mL)2/ 4K(t-S) - e-(2:-(-(2m+2)L)2/4K (t-S)] h({, s) de ds
3. u(x, y; t) = f: fooo JoOO[41rK(t-s)J-l/2e-[(2:-()2+(Y-'1)2114K(t-s) h({, 'Tl, s) de d'Tl ds
4. u(x; t) = [41rKt]-1/2 E:=-oo
JoL [e-(2:-(-2mL)2/4Kt - e-(2:-{-(2m+2)L)2/4Kt ] f({) de
5. u(x; t) = [47rKt]-1/2 E::-oo JoL e-(2:-(-mL)2/4Kt f ({) d{
Appendix A.I
1. y(t) = e- t2 (t + c)
2. y(t) = 1 + cIt
3. y(t) = e2t /5 + Ce- 3t
4. y(t) = t2 /6 + C/t 4
5. y(t) = 1 + C/sint
6. y(t) = Cl cos 2t + C2 sin 2t
7. y(t) = cle- 2t + C2te-2t
8. y(t) = cle3t + C2e-5t
9. y(t) = C} + C2e-3t
10. y(t) = cle-(t/3) + ~e2t
11. y(t) = sin 2t
12. y(t) = e-2t + 2te- 2t
13. y(t) = ye 3t
+ ~ e- 5t
14. y(t) = i - ~ e3- 3t
15. y(t) = ~ e-(t/3) + ~ e2t
ANSWERS TO SELECTED EXERCISES 519
31. yoo = 3, T = ~
32. yoo = 5, T = 1
33. yoo = 4,
T = 4
34. yoo = 1, T = 1
35. yoo = 4, T = 1
Appendix A.2
1. (a) Diverges. (b) Converges. (c) Diverges. (d) Converges.
2. (a)E:=l (_I)n+\~::-11)! (b) 2E~1 ~:n-=-;
(c) 1 + E:: 1 (~:)! (d)E:=l r;::~;! (O! = 1)
3. (a) f'(x) = ~ e-(l/~) and J"(x) = (:!r - ~) e-(l/~) for x > O.
(d) The Taylor series converges for all x and its sum is zero.
This equals J(x) - 1(0) only when x ~ O.
5. (a), (c), (d) can be differentiated term by term according to Proposition
A.2.8.
6. ,",00 n 3 x n = ~(l+4~+~2) ,",00 n4xn = ~(1+llx+llx2+xS) -1 < x < 1
L.m=l (l-x)4 'Lm=l (l-x)6'
9. (a) Diverges (b) Converges (c) Converges (d) Converges
10. (a) Can choose any T > 0, M = 2. (b)Can choose any T > 0, M = 210(10)!
(c) Can choose T = 1, M = 2 (d) Can choose any T > 0, M = 2
12. (a) Use L'Hospital's rule.
(b) fol n 2 xe- nx dx = fon ye-Ydy = -(1 + y)e- Y m-+ 1 when n -+ 00.
(c) Choose un(x) = n 2 Xe- n2x - (n - I)2 xe -(n-l)2 x for n = 1,2, ....
15. Not necessarily; for example, let It (t) = sin t, f2(t) = cos t, g(t) = 1.
Appendix A.4
1. y" [t] + t y' [t] + (1 + t"'2)y[t] == t/(l + t)
2. D[y[t],t,t] + t D[y[t],t] + (1 + t"'2)y[t] == t/(l + t)
520 ANSWERS TO SELECTED EXERCISES
521
522 INDEX