Open-access A concise way to generate expressions for spherical harmonics

Abstract

This paper presents a concise way to approach spherical harmonics. Deriving expressions for spherical harmonics from basic angular-momentum algebra is natural but cumbersome in detail. The proposed short method stimulates students to “discover” needed functions instead of checking the prescribed answers. Moreover, it does not use any facts of the quantum theory of angular momentum. Many standard properties, such as orthogonality, normalization, recurrence relations, etc., follow naturally from the eigenfunction framework. The described way makes some use of spinor invariants originally proposed by H.A. Kramers. Modern trends in university education result in the shortening of basic mathematical courses. The approach presented seems preferable when students learn mathematical physics without a separate course on special functions.

Keywords:
Laplace equation; associated Legendre functions; spherical harmonics; orthonormality

1. Introduction

Students typically deal with spherical harmonics within learning quantum theory. And this approach is justifiable in general. In quantum theory, these functions appear as eigenfunctions of the orbital angular momentum. In detail, the mentioned approach is realized in section III.4 of the classic text by Condon and Shortley [1]. At the same time, this technique turned out to be heavier than one can expect initially. Many questions rather need real spherical harmonics introduced by Laplace. Indeed, these functions are a necessary tool to solve the equation today referred to as Laplace’s one. In this sense, they allow students to learn basic classical physics before the course of quantum mechanics. The Laplace and Poisson equations are used in acoustics, electrostatics and elastostatics. Stationary Fourier’s and diffusion equations reduce to similar questions. Thus, there is a pedagogical task to provide a concise way to generate spherical harmonics. This task becomes more important due to modern trends in university education.

The desired approach can be reached within the method of spinor invariants proposed by H.A. Kramers. In fact, there is no need to learn Kramers’ method in detail. Its complete version enables the analysis of atomic spectra without the use of the irreducible representations of the rotation group [2]. It seems that Kramers’ method obtained less attention in the teachers’ community than it deserves. In particular, this method will allow us to generate expressions for spherical harmonics in a simple manner. In fact, we come across a tool to study the main properties of associated Legendre functions. Since this paper has pedagogical purposes, references to the original literature are not given. Several important works can be found in the bibliography of Brinkman’s monograph [2]. We rather aim to draw attention to Kramers’s method, even though many physical students today learn a course of group theory. Sometimes, such courses could be left out in favor of applied special courses.

2. Preliminaries

We will use the spherical coordinates: the radial distance r, the polar angle θ, and the azimuthal angle φ. The radius vector r has components rsinθcosφ, rsinθsinφ, and rcosθ. A plain base point to ask for spherical harmonics is a general expression for axially symmetric harmonic functions, i.e.,

(1) f ( r , θ ) = = 0 c r P ( cos θ ) .

It holds, when the domain of interest includes the origin. P(ξ) is the th Legendre polynomial. The properties of these polynomials can be derived via the generating function (see, e.g., item (11.4) in reference [3]),

(2) g ( ξ , t ) = = 0 P ( ξ ) t = 1 1 2 ξ t + t 2 .

The latter follows from the well-known integrand that typically occurs in electrostatics. In effect, the Rodrigues formula holds,

(3) P ( ξ ) = 1 2 ! ( d d ξ ) ( ξ 2 1 ) .

The function (1) obeys the equation 2f=0 without any dependence on φ. We wish to extend (1) by including a dependence on the azimuthal angle.

3. Method to Build Harmonic Functions

The right-hand side of (1) is the sum of terms proportional to r. Let a be a constant vector with components ax, ay, and az. It turned out that powers of the form

(4) ( a r ) = r ( a x sin θ cos φ + a y sin θ sin φ + a z cos θ )

are a hint for the desired extension. This substitution was dealt with in §1 of first chapter of Brinkman’s monograph [2]. Further, we write

(5) 2 ( a r ) = ( 1 ) ( a x 2 + a y 2 + a z 2 ) ( a r ) 2 .

Assuming nontrivial solutions to Laplace’s equation for >1, the only possibility is

(6) a x 2 + a y 2 + a z 2 = ( a x + i a y ) ( a x i a y ) + a z 2 = 0 ,

with complex ax, ay, and az. It follows from (6) that there are two complex numbers, u and v, such that

(7) a x + i a y = v 2 ,
(8) a x i a y = u 2 ,
(9) a z = u v ,
(10) a x = v 2 u 2 2 ,
(11) a y = u 2 + v 2 2 i .

With slight modifications, these expressions follow Cartan’s definition of a spinor (see, e.g., section 2.4 of reference [4]). Substituting (9)–(11) in (4) finally leads to

( a r ) = r 2 ( v 2 e i φ sin θ u 2 e i φ sin θ + 2 u v cos θ ) .

This is a 2-degree homogeneous function of u and v,

(12) ( a r ) = r m = + Q m u + m v m .

It obeys the Laplace equation. Since u and v are arbitrary, each term rQm is a solution of Laplace’s equation. Up to a factor, functions of the form Qm(θ,φ) will represent spherical harmonics. They allow us to express harmonic functions similarly to (1).

4. Two Expressions for Legendre Functions

Extracting the powers of u or v directly is a natural way to construct the right-hand side of (12). When the factor v2eiφ is taken out of (ar), the remainder depends on u, v and φ via a variable X=uv1eiφ,

( a r ) = r v 2 e i φ 2 ( X 2 sin θ 2 X cos θ sin θ ) .

Writing the Maclaurin series, we verify that

(13) ( a r ) = ( 1 ) r 2 v 2 e i φ ( sin θ ) [ ( X sin θ cos θ ) 2 1 ] = ( 1 ) r 2 v 2 e i φ ( sin θ ) m = + X + m ( + m ) ! × { . ( d d X ) + m [ ( X sin θ cos θ ) 2 1 ] | X = 0 } .

Since sin θdX=d(X sin θ cos θ) at differentiating with respect to X, the right-hand side of (13) finally reduces to the form

(14) ( a r ) = r 2 m = + u + m v m ( 1 ) m ( sin θ ) m e i m φ ( + m ) ! × ( d d ξ ) + m ( ξ 2 1 ) ,

where ξ= cos θ. The first expression for Qm reads as

(15) Q m = ( 1 ) m e i m φ 2 ( + m ) ! ( 1 ξ 2 ) m / 2 ( d d ξ ) + m ( ξ 2 1 ) .

To generate the second expression for Qm[2], we replace X with Y=X1=u1veiφ. By a parallel argument, one gets

(16) ( a r ) = r 2 u 2 e i φ ( sin θ ) [ ( Y sin θ + cos θ ) 2 1 ] = r 2 n = + u n v + n ( sin θ ) n e i n φ ( + n ) ! × ( d d ξ ) + n ( ξ 2 1 ) .

Taking n=±m and comparing the results with (12), we have

(17) Q , m = e i m φ 2 ( + m ) ! ( 1 ξ 2 ) m / 2 ( d d ξ ) + m ( ξ 2 1 ) ,
(18) Q m = e i m φ 2 ( m ) ! ( 1 ξ 2 ) m / 2 ( d d ξ ) m ( ξ 2 1 ) .

The latter gives the second expression for Qm. Up to a factor, the dependence of both (15) and (17) on ξ= cos θ is represented by the same associated Legendre function. Diverse ways to write associated Legendre functions are related to (15) and (18). For m=0,1,,, we have

(19) P ( m ) ( ξ ) = ( 1 ξ 2 ) m / 2 ( d d ξ ) + m ( ξ 2 1 ) 2 ! ,
(20) = ( + m ) ! ( m ) ! ( 1 ) m ( 1 ξ 2 ) m / 2 ( d d ξ ) m ( ξ 2 1 ) 2 ! .

The formula (19) actually repeats the standard definition P(m)(ξ)=(1ξ2)m/2(dmP/dξm) (see item (11.68) in reference [3]). The result (20) follows by the comparison of (15) with (18).

To sum up, we have arrived at the following two conclusions. First, the desired expressions for associated Legendre functions were generated in a plain and machinery way. In fact, some knowledge of power series was utilized. Moreover, the two different representations (19) and (20) simultaneously appeared. These expressions will be convenient to evaluate a normalization factor. As some experience show, more calculation efforts are required to build associated Legendre functions with the use of operators of the orbital angular momentum. Being concise in an abstract form, this technique becomes relatively cumbersome with realizing via differential operators.

5. Orthogonality and Norms

The question that should be resolved concerns orthogonality and normalization. In the spherical coordinates, the Laplace operator reads as

(21) 2 = 1 r 2 r r 2 r L 2 r 2 ,

where the angular part

(22) L 2 = 1 sin θ θ sin θ θ + 1 sin 2 θ 2 φ 2 .

If the reader is familiar with quantum theory, he can recognize in L2 the square of the orbital angular momentum in dimensionless units (see, e.g., equation (27) in section III.4 of reference [1]). However, this fact does not affect the subsequent conclusions. Combining (15) with

2 ( r Q m ) = 0

finally leads to the associated Legendre differential equation,

(23) d d ξ ( 1 ξ 2 ) d P ( m ) d ξ + ( ( + 1 ) m 2 1 ξ 2 ) P ( m ) = 0 .

Thus, the associated Legendre functions are eigenfunctions of the self-adjoint differential operator of second order. One of the well-known properties is their orthogonality,

(24) 1 + 1 P k ( m ) ( ξ ) P ( m ) ( ξ ) d ξ δ k ,

where δk is the Kronecker symbol. Evaluating a normalization factor reduces to the integral

(25) 1 + 1 P ( m ) ( ξ ) P ( m ) ( ξ ) d ξ = ( + m ) ! ( 1 ) m ( m ) ! ( 2 ! ) 2 × 1 + 1 d + m ( ξ 2 1 ) d ξ + m d m ( ξ 2 1 ) d ξ m d ξ
(26) = ( + m ) ! ( 2 ) ! ( m ) ! ( 2 ! ) 2 1 + 1 ( 1 ξ 2 ) d ξ .

Due to the formulas (19) and (20), the integrand in the right-hand side of (25) becomes a product of two derivatives of the same function. To get (26), we have integrated by parts as many times as required. There are various ways to evaluate the integral occurring in (26). For example, it can be reduced to Euler’s beta- and gamma-functions. However, the desired integral is the same for all m=0,1,,. It will be enough to get it for a particular value of m, say, for m=0. In this sense, the question reduces to the squared norm of th Legendre polynomial. Integrating the square of the generating function (2), one writes

k , = 0 t k + 1 + 1 P k ( ξ ) P ( ξ ) d ξ = 1 + 1 d ξ 1 2 ξ t + t 2 = 1 t ln ( 1 + t 1 t ) = = 0 2 t 2 2 + 1 ,

whence

(27) 1 + 1 P k ( ξ ) P ( ξ ) d ξ = 2 δ k 2 + 1 .

Combining this with (24) and (26) finally leads to

(28) 1 + 1 P k ( m ) ( ξ ) P ( m ) ( ξ ) d ξ = ( + m ) ! ( m ) ! 2 δ k 2 + 1 ,

where m=0,1,,.

6. Spherical Harmonics

Let us finalize the expressions for complex spherical harmonics that obey the orthonormality condition

(29) d Ω Y k n ( θ , φ ) Y m ( θ , φ ) = δ k δ n m .

To get Ym(θ,φ) from Qm(θ,φ), we merely multiply the latter by the normalization factor. Comparing (15) with (17), one has

(30) Q , m ( θ , φ ) = ( 1 ) m Q m ( θ , φ ) .

For m=0,1,,, the spherical harmonics appear as

(31) Y m ( θ , φ ) = ( 1 ) m 2 + 1 4 π ( m ) ! ( + m ) ! × e i m φ P ( m ) ( cos θ ) ,
(32) Y , m ( θ , φ ) = ( 1 ) m Y m ( θ , φ ) .

Up to a factor, the first expression follows from (15), whereas (32) resembles (30). The additional factor 2π in the denominator of the normalization constant is necessary due to integrating with respect to φ. Of course, there is freedom in choosing phase factors. The formulas (31) and (32) use the Condon–Shortley phase convention (see, e.g., equation (17) in section III.4 of reference [1]). Beyond the context of quantum theory, a real basis of spherical harmonics is more suitable. Such a basis follows from the above expressions by replacing exp(±imφ) with cos mφ and sin mφ. Then the functions Y0(θ) remain unchanged; in other functions, we also replace 4π with 2π in the denominator of radicals that occur in (31). The factor (1)m is typically left out. Students can themselves follow these very elementary changes.

7. Conclusions

This paper describes a concise way to generate expressions for spherical harmonics. It allows students to “discover” needed harmonics instead of checking the prescribed answers. Stimulating with suitable lines of argument is very important, with the emphasis on the independent work of students. The proposed approach can be useful within modern educational trends. These trends may result in some reduction of time devoted to basic mathematics in favor of applied special courses. Despite the existence of many textbooks, there is also a need for an independent and concise presentation of selected topics. The paper [5] gives an example of such guides for students. It gathered in one place basic facts on rotations and their matrix representations in quantum theory. Numerical techniques for Poisson’s equation in spherical coordinates are of separate interest [6]. The present author had some experience to refresh the teaching of mathematical courses for physicists. The papers [7, 8] offered simple and physically reasoned ways to derive Green’s functions for equations of mathematical physics. Continuing this trend in application to spherical harmonics, the above derivation presents facts together with a survey of how they could be obtained. It gives the reader a discovery-oriented, self-contained route to approach basic properties of spherical harmonics within limited lecture time. The proposed formulation also aims to stimulate students by performing all the necessary calculations.

Data Availability

The entire dataset supporting the results of this study is published in the article.

References

  • [1] E.U. Condon and G.H. Shortley, The Theory of Atomic Spectra (Cambridge University Press, Cambridge, 1959).
  • [2] H.C. Brinkman, Applications of Spinor Invariants in Atomic Physics (North Holland, Amsterdam, 1956).
  • [3] H.J. Weber and G.B. Arfken, Essential Mathematical Methods for Physicists (Academic Press, Amsterdam, 2003).
  • [4] L.C. Biedenharn and J.D. Louck, Angular Momentum in Quantum Physics (Addison-Wesley, London, 1981).
  • [5] M.A. Morrison and G.A. Parker, Aust. J. Phys. 40, 465 (1987).
  • [6] A.C. Silva, J.A.H. Neto and V.S. Costa, Rev. Bras. Ensino Fís. 43, e20210019 (2021).
  • [7] A.E. Rastegin, Rom. Rep. Phys. 69, 903 (2017).
  • [8] A.E. Rastegin, Rom. Rep. Phys. 77, 909 (2025).

Edited by

Publication Dates

  • Publication in this collection
    25 May 2026
  • Date of issue
    2026

History

  • Received
    31 Oct 2025
  • Reviewed
    23 Apr 2026
  • Accepted
    24 Apr 2026
location_on
Sociedade Brasileira de Física - SBF Rua do Matão, travessa R, 187 - Edifício Sede - Cidade Universitária, São Paulo, SP, Brasil, CEP 05508-090, Tel: +55 (11) 3034-0429 - São Paulo - SP - Brazil
E-mail: rbef@sbfisica.org.br, marcellof@unb.br
rss_feed Acompanhe os números deste periódico no seu leitor de RSS
Ir para o topo Reportar erro