Spherical Harmonics
Step through six spherical harmonics in 3D, from ℓ = 1 to ℓ = 3, starting with the four lobes of a d orbital, r = 2|sin²(u)cos(2v)|.
The lobes that a chemistry book draws for p and d orbitals are the shapes of spherical harmonics. Pierre-Simon Laplace studied these functions in 1782, in his work on the gravitational potential of Newton's law, and in 1867 William Thomson (Lord Kelvin) and Peter Guthrie Tait gave them their name. They are to the sphere what sines and cosines are to the circle, the spherical analogue of a Fourier series: the angular eigenfunctions of the Laplace operator, a complete orthonormal basis for the square-integrable functions on the sphere. They describe the hydrogen-atom wavefunctions, planetary gravity, the Earth's magnetic field, the cosmic microwave background and ambient lighting in computer graphics.
The start draws the radial surface r = 2|\sin^2(u)\cos(2v)| , over the polar angle u \in [0, \pi] and the angle around the vertical axis v \in [0, 2\pi] : the distance from the center in each direction is the size of the harmonic there. Its four lobes are the pattern of a real harmonic with \ell = 2 and m = \pm 2 . The absolute value turns the negative lobes outward too, so no lobe hides inside a unit sphere. The chrome material and hidden axes leave only the shape.
The slider n selects one of six real harmonics, each the associated Legendre function P_\ell^m(\cos u) times \cos(mv) , up to a constant factor: n = 1 is (\ell, m) = (1, 0) , \cos u , two lobes along the vertical axis; n = 2 is (2, 0) , 3\cos^2 u - 1 , two lobes and a ring around the middle; n = 3 , the start, is (2, 2) , the four lobes above; n = 4 is (3, 0) , 5\cos^3 u - 3\cos u , two lobes and two cones; n = 5 is (3, 2) , \sin^2 u \cos u \cos(2v) , eight lobes; and n = 6 is (3, 3) , \sin^3 u \cos(3v) , six lobes around the middle. Each mode is divided by its largest absolute value, so every shape reaches the same radius 2 . Step through n and count: a harmonic of degree \ell and order m is zero on \ell - m circles of latitude and on 2m half-planes through the vertical axis, and the lobes fill the spaces between them. The document stops at \ell = 3 ; each degree \ell has 2\ell + 1 independent real harmonics, so the next degree, \ell = 4 , has nine.
JavaScript is required to view the interactive plot.