
36 CHAPTER 1. LINEAR ODES OF PHYSICS
1.2 Linear ODEs with Variable Coefficients
In this section, linear ODEs with variable coefficients are considered. Our at-
tention will be focused on the second-order Sturm–Liouville (S-L) equation,
d
dx
p(x)
dy
dx
− q(x) y + λw(x) y =0, (1.6)
where λ is a real parameter while p(x), q(x), w(x) are real functions and w(x)
is taken to be non-negative over the range x = a to b of interest. The S-L
equation, and its nonhomogeneous counterpart, plays a very important role in
the mathematical analysis of many physical problems, particularly for boundary
valueproblemswherey or its first derivative vanish at a and b. Inthiscasethe
y ’sarereferredtoastheeigenfunctions and the λ ’s as the eigenvalues.For
certain choices of p, q, w,andλ, the general S-L equation reduces to specific
“well-known” LODEs such as Bessel’s equation, Legendre’s equation, Hermite’s
equation, etc. The standard approach to solving these equations is to seek an
infinite power series solution. In some cases (e.g., for Bessel’s equation) the
solution remains as an infinite series, while in other cases the infinite series
have to be truncated (e.g., for Legendre’s and Hermite’s equations) to finite
polynomials to avoid divergence problems for large x. In either case, these
solutions to special forms of the S-L equation are referred to as special functions
(e.g., Bessel functions, Legendre functions (polynomials), etc.). The detailed
series derivation of these special functions will be postponed until Chapter 2. In
this section, we shall be content to see what Maple reveals about some of these
special functions and how physical problems involving these functions can be
easily dealt with. You will encounter many more members of the S-L “family”
of special functions as you progress through the book. For example, in the
Entrees you will see that special functions play an extremely important role in
the solutions of linear PDEs such as the wave and diffusion equations because
these equations can be “separated” into systems of S-L ODEs.
1.2.1 Introducing the Sturm–Liouville Family
My books are water; those of the great geniuses is wine.
Everybody drinks water.
Mark Twain, Mark Twains Notebooks and Journals, Notebook 26, (1887)
Jennifer, a young mathematician at the Metropolis Institute of Technology
(MIT) and a firm believer in using computer algebra to teach applied math-
ematics to engineers and physicists, has kindly consented to provide us with
some of the computer algebra recipes that she has developed. In the following
recipe, she introduces two of the more “famous” members of the S-L family,
namely the Bessel and Legendre ODEs.
Jennifer creates two functional operators, SL for generating a specific ODE
from the S-L equation (1.6) on subsequently specifying the forms of p, q, w