Chapter 8: Expansion in Orthogonal Functions
NOTE: Math will not display properly in Safari - please use another browser
The material covered in this chapter is partially presented in Boas Chapter 12, Sections 6 and 9.
8.1 Generalized Fourier Series
The Fourier series of Chapter 7 is the most familiar instance of a powerful technique of mathematical physics that consists of expanding a function f(x) in an infinite set of basis functions. In this case the function is required to be periodic, f(x+2π)=f(x), and the basis functions are the complex exponentials einx. These are orthogonal functions, in the sense that
∫2π0(einx)∗ein′xdx=2πδnn′,
and this property allows us to go from the Fourier series
f(x)=∞∑n=−∞cneinx
to the Fourier coefficients
cn=12π∫2π0f(x)e−inxdx.
The Fourier series allows us to encode the information contained in f(x) in an infinite number of (complex) constants cn. That we need an infinite number of coefficients is expected, because the information content of a function is also infinite --- we need values for f at an infinite number of points. It is interesting to note, however, that while the number of values of f is uncountably infinite, the number of Fourier coefficients is countably infinite; we seem to be gaining in efficiency by expressing f(x) as a Fourier series. The gain is even more substantial when we remember that a truncated Fourier series often offers a perfectly adequate approximation to the function.
The Fourier series is based on a specific set of orthogonal functions, the complex exponentials, but the idea can easily be generalized to any set of orthogonal functions. Suppose that the set en(x), whatever it might be, is orthogonal on the interval (a,b), so that
where Nn:=∫ba|en(x)|2dx is the norm of the function en(x). We assume that the set includes an infinite number of basis functions, which in general we allow to be complex. A function f(x) on (a,b) can always be expressed as
with coefficients
Equation (8.5) is a generalized Fourier series, and the coefficients of Eq.(8.6) are generalized Fourier coefficients. The generalized Fourier series gives an encoding of the information contained in f(x) in the form of the coefficients cn. An exact representation of the function would in general require an infinite number of terms in Eq.(8.5), but here also we can expect that a truncated sum will often produce a very good approximation.
To establish Eq.(8.6) we rewrite Eq.(8.5) as f=∑n′cn′en′, using n′ instead of n as the summation index. We multiply by e∗n and integrate over the interval (a,b), giving
∫baf(x)e∗n(x)dx=∑n′cn′∫baen(x)∗en′(x)dx=∑n′cn′Nnδnn′=cnNn,
which is the same as Eq.(8.6). In the second step we made use of Eq.(8.4), and in the last step we noted that by virtue of the Kronecker delta, the only nonvanishing term in the sum over n′ is the one with n′=n.
A generalized Fourier series can be defined for any set of orthogonal functions. We have encountered a few such sets in Chapters 3, 4, and 5. In the next sections we will involve them all in generalized Fourier series. These developments might seem exotic at first sight, and with a less generous attitude, might even appear as a futile exercise at expressing simple functions in horribly complicated ways. Bear with it! The power of these techniques will be unleashed in Chapters 10 and 11.
8.2 Legendre Series
We saw back in Chapter 3 --- refer to Sec.3.7 --- that the Legendre polynomials Pℓ(x) form a set of orthogonal functions on the interval (−1,1). The statement of orthogonality is Eq.(3.44),
∫1−1Pℓ(x)Pℓ′(x)dx=22ℓ+1δℓℓ′.
Comparing with Eq.(8.4), we have that ℓ=0,1,2,⋯ can be identified with n, Pℓ(x) can be identified with en(x), and 2/(2ℓ+1) can be identified with Nn. The Legendre polynomials are real functions, so there is no need to complex conjugate anything. Equations (8.5) and (8.6) become
and
in the context of Legendre polynomials. Equation (8.9) is known as a Legendre series (or sometimes Fourier-Legendre series). It is understood that the function f(x) is defined on the interval (−1,1).
As an example, let us construct the Legendre series for the step function
According to Eq.(8.10), the first two coefficients are given by
c0=12∫1−1f(x)P0(x)dx=12∫10P0(x)dx=12∫10dx=12
and
c1=32∫1−1f(x)P1(x)dx=12∫10P1(x)dx=32∫10xdx=34.
A general expression for cℓ when ℓ≥1 can be obtained if we rely on the recursion relation --- refer back to Eq.(3.21b) --- (2ℓ+1)Pℓ=P′ℓ+1−P′ℓ−1, in which a prime indicates differentiation with respect to x. We have
cℓ=12∫10(P′ℓ+1−P′ℓ−1)dx=12[Pℓ+1(1)−Pℓ+1(0)−Pℓ−1(1)+Pℓ−1(0)],
and since Pℓ+1(1)=Pℓ−1(1)=1 --- refer back to Eq.(3.4) --- this simplifies to
Because Pℓ(x) is an odd function when ℓ is odd, we have that Pℓ(0)=0 when ℓ is odd, or that Pℓ±1(0)=0 when ℓ is even. The coefficients of Eq.(8.15), therefore, vanish when ℓ is even. In Sec.3.11 (Problem 1) you were asked to work out an expression for Pℓ(0) when ℓ is even; your answer should have been
Pℓ(0)=(−1)ℓ/2(ℓ−1)!!ℓ!!,ℓ even, greater than 0.
This can be substituted into Eq.(8.15), with ℓ replaced by ℓ±1, for a more concrete expression for the coefficients.
Exercise 8.1: Make the substitution, and show that Eq.(8.15) becomes
cℓ=12(2ℓ+1)(−1)(ℓ−1)/2(ℓ−2)!!(ℓ+1)!!
when ℓ is odd and greater than 1.

The step function is plotted in Fig.8.1, along with three truncations of the Legendre series. We see that the series has difficulties coping with the discontinuity of the function at x=0. This behaviour is similar to what was observed in the case of Fourier series applied to the square and sawtooth waves. The reason is the same: it is difficult to produce a discontinuity by adding a bunch of continuous functions.
8.3 Expansion in Spherical Harmonics
The spherical harmonics Ymℓ(θ,ϕ) were introduced in Chapter 4, and in Sec.4.7 we learned that they form an orthonormal set of functions on the surface of a sphere. The meaning of this phrase is provided by Eq.(4.40),
∫2π0∫π0[Ymℓ(θ,ϕ)]∗[Ym′ℓ′(θ,ϕ)]sinθdθdϕ=δℓℓ′δmm′.
The labels ℓ and m are integers, with ℓ=0,1,2,⋯ and m=−ℓ,−ℓ+1,⋯ℓ−1,ℓ.
Because they form a set of orthogonal functions, the spherical harmonics can be implicated in a generalized Fourier series. Because the spherical harmonics depend on θ and ϕ, the functions to be expanded will also depend on these variables, and will also be interpreted as functions on the surface of a sphere. And because the spherical harmonics carry two labels, ℓ and m, the series will be expressed as a double sum. We have
f(θ,ϕ)=∞∑ℓ=0ℓ∑m=−ℓcmℓYmℓ(θ,ϕ).
The coefficients cmℓ can be related to the function f by adapting the general method described near the end of Sec.8.1 to this new situation. The steps are equally straightforward, and we get
cmℓ=∫2π0∫π0f(θ,ϕ)[Ymℓ(θ,ϕ)]∗sinθdθdϕ
for the expansion coefficients.
Exercise 8.2: Verify Eq.(8.19).
As an example, let us work out the expansion of
f(θ,ϕ)=sin2θcos2ϕ
in spherical harmonics. A generic function of θ and ϕ would normally have an expansion involving an infinite number of terms, but this function is very simple, and we can easily identify the few spherical harmonics that will be implicated in its expansion. The first clue comes from the factor cos2ϕ, which can be expressed as 12(1+cos2ϕ)=12+14e2iϕ+14e−2iϕ; this indicates that only spherical harmonics with m=0 and m=±2 will be implicated in the expansion. Incorporating the factor sin2θ, we see that some pieces of f are given by 14sin2θe±2iϕ, which is precisely proportional to Y±22, as can be seen from the listing of Eq.(4.36). The missing piece of f is 12sin2θ, which can be expressed as 12−12cos2θ=13−16(3cos2θ−1). The first term is proportional to Y00, the second is proportional to Y02, and we have all the required pieces. Putting this all together, and incorporating the strange numerical coefficients that come with the spherical harmonics, we arrive at
f(θ,ϕ)=2√π3Y00−23√π5Y02+√2π15(Y22+Y−22).
In this example, the function f was sufficiently simple that we could break it up directly into pieces that were recognized as spherical harmonics. In this case we didn't have to resort to Eq.(8.19) to calculate the nonvanishing expansion coefficients, c00, c20, and c±22. In more complicated situations, however, this direct decomposition may not be possible, and Eq.(8.19) would have to be invoked to get all the relevant coefficients.
Exercise 8.3: Fill in the missing steps in the derivation of Eq.(8.21). Also, calculate c00, c20, and c±22 directly from Eq.(8.19), and verify that they agree with Eq.(8.21).
8.4 Bessel Series
Another set of orthogonal functions are the Bessel functions introduced in Chapter 5. In this case the meaning of orthogonality is far more subtle, and provided by Eqs.(5.39) and (5.40), which we combine as
∫10Jn(αnpx)Jn(αnqx)xdx=12[Jn+1(αnp)]2δpq,
where αnp is the pth zero of the nth Bessel function. Adapting once again the general method of Sec.8.1 to this new situation, we have that a generalized Fourier series based on Jn is given by
with coefficients
cp=2[Jn+1(αnp)]2∫10f(x)Jn(αnpx)xdx.
Equation (8.23) is known as a Bessel series, or sometimes as a Fourier-Bessel series. It is understood that the function f(x) is defined on the interval (0,1). Notice that Eq.(8.23) actually defines an infinite number of Bessel series, one for each value of n.
Exercise 8.4: Verify Eq.(8.24).
As an example we shall expand
in a Bessel series based on J0,
f(x)=∞∑p=1cpJ0(α0px).
The coefficients are given by Eq.(8.24) with n=0, which we write as
Npcp=∫10(1−x2)J0(α0px)xdx,
where Np:=12[J1(α0px)]2. To evaluate the integral we let y:=α0px, α:=α0p, so that
Npcp=1α4∫α0(α2−y2)J0(y)ydy.
For the remaining steps we require the recursion relations of Eqs.(5.20), especially
ddy(ynJn)=ynJn−1,ddy(y−nJn)=−y−nJn+1.
We set n=1 in the first equation, get yJ0=(yJ1)′ with the prime indicating differentiation with respect to y, and rewrite the integrand as
(α2−y2)J0y=(α2−y2)(yJ1)′=[(α2−y2)yJ1]′+2y2J1.
Integration yields
α4Npcp=[(α2−y2)yJ1]|α0+2∫α0y2J1(y)dy=2∫α0y2J1(y)dy,
because the boundary terms at y=α and y=0 both vanish. At this stage we set n=0 in the second recursion relation, get J1=−J′0, and rewrite the integrand as
y2J1=−y2J′0=−(y2J0)′+2yJ0.
Integration gives
α4Npcp=−2y2J0|α0+4∫α0yJ0dy=4∫α0yJ0dy,
because the boundary terms vanish once again --- recall that α≡α0p is a zero of J0. To deal with the remaining integral we once again exploit the identity yJ0=(yJ1)′, and get
α4Npcp=4yJ1|α0=4αJ1(α).
We have finally obtained
for the expansion coefficients. If we evaluate them numerically, we find that the first few are given by c1≃1.108, c2≃0.1398, c3≃0.04548, c4≃−0.02099, and c5≃0.01164. As we have seen in the case of Fourier series, the coefficients decrease in magnitude with increasing p, indicating that a truncated expansion will do an excellent job at reproducing the function.

The function of Eq.(8.25) is plotted in Fig.8.2, along with three truncations of the Bessel series. We see that because f is nice and smooth, the truncated series provide very accurate representations of the function.
8.5 Practice Problems
-
(Boas Chapter 12, Section 9, Problem 2) Expand in a Legendre series the function defined by f(x)=0 when −1≤x<0 and f(x)=x when 0≤x<1.
-
(Boas Chapter 12, Section 9, Problem 3) Expand P′3(x) in a Legendre series.
-
(Boas Chapter 12, Section 9, Problem 10) Expand 3x2+x−1 in a Legendre series.
-
(Boas Chapter 12, Section 9, Problem 11) Expand 7x4−3x+1 in a Legendre series.
-
Express cosθ−cos3θ as an expansion in spherical harmonics.
-
Express sinθcosθsinϕ as an expansion in spherical harmonics.
-
Express (4cos2θ−3)sin3θcosϕ as an expansion in spherical harmonics.
-
Expand f(x)=1 (0<x<1) in a Bessel series.
-
Expand f(x)=x (0<x<1) in a Bessel series.