Every uniform sphere looks identical from every direction — but nothing real is a perfectly uniform sphere. A planet bulges very slightly at the equator. An atom's electron cloud is almost never a perfect ball; most of the interesting ones are lopsided in a specific, repeatable way. The moment a source of gravity, charge, or a quantum wave function departs even slightly from perfect spherical symmetry, its potential or its wave function outside picks up genuine angle dependence: it becomes a function of the polar angle and azimuthal angle , not of the radius alone. How do you organize that angular dependence into calculable pieces?
This is precisely the question the previous topic leaves as unfinished business. Separation of variables was used there on a string, in one spatial dimension with two endpoints. The natural next PDE, not yet solved anywhere on this site, is the three-dimensional version of Laplace's equation — the same equation quietly used inside Coulomb's law and behind the Schrödinger equation for any atom — written not on a line, but in the spherical geometry that atoms and planets actually have.
Laplace's equation in spherical coordinates
The Laplacian is built from exactly the divergence and gradient operators constructed in vector calculus: apply the gradient to get a vector field, then take its divergence to get back a scalar. In spherical coordinates , working through that same chain rule (a lengthier but entirely mechanical calculation, not repeated here) gives the Laplacian of a scalar function as
Laplace's equation, , describes a potential in any region with no charge or mass — exactly the situation outside a lopsided planet or a nonspherical charge distribution. Now separate variables, exactly as in the previous topic, by assuming
Separating radius from angle
Substituting the product form into and multiplying through by gives
The first term depends only on ; the bracketed term, divided by , depends only on the angles. By the same reasoning used for the vibrating string, both must equal a constant, with opposite signs so their sum is zero. Write that constant as — a strange-looking choice for now, justified only once the angular equation is actually solved and single-valued, non-blowing-up solutions are demanded:
The radial equation is solved by a power law. Try : then , and , so the radial equation demands , whose two roots are and . The general radial solution is therefore
The piece is the part of the potential that must vanish at the origin if there is no source there; the piece is the part that falls off with distance, generalizing the familiar potential of a point charge (which is exactly the case).
Separating the angular equation, and where the integer is born
The angular equation still mixes and . Separate again: . Substituting and multiplying through by gives
The left side depends only on , the right only on , so both equal a new constant, called :
This is, once again, the same equation solved on the ordinary differential equations page and used throughout Fourier analysis: purely imaginary characteristic roots , giving . But here a new physical requirement enters that a string or an infinite line never had: is an angle, and going around once, , must return you to the same point in space, so must satisfy
That forces to be an integer. This is exactly the integer already met on the page about angular momentum and spin, where it appeared as the eigenvalue label of , produced there by a completely different argument — an algebraic ladder built from raising and lowering operators, with no reference to any differential equation at all. Here the same integer falls out of a geometric requirement: single-valuedness on a circle. Two derivations, built from entirely different tools, landing on the identical quantization. That is not a coincidence to shrug off; it is a sign that both derivations are describing the same underlying structure from different angles.
Legendre's equation and Legendre polynomials
What remains is the -equation, with now fixed:
Substitute , so runs over as runs over , and . Carrying this substitution through converts the equation into the associated Legendre equation,
The case — no dependence on the azimuthal angle at all, the axially symmetric case relevant to a charge distribution or planet that bulges only along one axis — reduces this to plain Legendre's equation:
For , the solutions that stay finite at (that is, at the poles , where a physically sensible potential cannot blow up) are polynomials of degree , the Legendre polynomials , generated compactly by Rodrigues' formula:
For , the solutions are the associated Legendre functions , and reuniting the angular pieces gives the full angular solution, the spherical harmonics:
with a normalization constant. Just as before, regularity of at the poles restricts to the integers — precisely the range already stated, but never derived, on the angular-momentum-and-spin page. The spherical harmonics are simultaneous eigenfunctions of and ,
with exactly the eigenvalues that page assigned to the abstract states . This is where those integer labels actually come from: not an assumption about how nature likes to count, but the requirement that an angular solution to Laplace's equation (or to the angular part of the Schrödinger equation, which separates the same way for any spherically symmetric potential ) be single-valued and finite everywhere on the sphere, including its two awkward poles.
Worked example
Use Rodrigues' formula to derive , , and , verify that satisfies Legendre's equation for , and check that and are orthogonal on . (click to reveal the solution)
Deriving : with ,
since and the "zeroth derivative" of a function is just the function itself. So , a constant — consistent with the fact that the angular solution has no angular dependence at all, matching a plain, spherically symmetric potential.
Deriving : with ,
Deriving : with ,
The first derivative of is , and the second derivative is . Therefore
Verifying solves Legendre's equation for : the equation to check is
(using ). Compute each piece. First,
Then
and differentiating again,
Adding the second term, :
The equation is satisfied identically, for every , confirming is genuinely a solution of Legendre's equation with .
Checking orthogonality of and : Legendre polynomials of different degree are orthogonal on under the plain integral inner product, the same structure used for sines and cosines in Fourier analysis. Directly:
The integrand is an odd function of (built entirely from odd powers), and the integral of any odd function over a symmetric interval vanishes:
So and are indeed orthogonal — the same phenomenon seen for the trigonometric basis, now appearing for an entirely different family of functions, born from a completely different differential equation.
Where this leads
Legendre polynomials and spherical harmonics are the angular vocabulary for every problem in physics with a natural center: the electric potential of any real, imperfectly spherical charge distribution, the gravitational field of any real, imperfectly spherical planet, and above all the actual angular wave functions of the hydrogen atom, whose radial equation this page's is the source-free special case of. The integer and found here by demanding regularity are precisely the orbital quantum numbers already used, but not derived, on the page about angular momentum and spin — two roads, algebraic and differential, arriving at the same integers. Rodrigues' formula itself has a further life ahead: it can be rewritten as a contour integral in the complex plane, a connection that becomes available once complex analysis and contour integration enters this track.