Legendre Polynomials
The previous article did something slightly underhanded. Separating Laplace's equation in spherical coordinates, it solved the radial equation honestly — , in full — but on reaching the polar-angle equation it simply announced that the acceptable solutions are "the Legendre polynomials," listed a few, and hurried on. That IOU comes due now: an electromagnetism student minding their own business suddenly needs an entire polynomial family. Here is the claim to be earned: on a sphere, the functions are not one basis among many — they are the angular DNA of every azimuthally symmetric electrostatics problem. Every potential you will compute on or around a sphere is a superposition of these shapes and no others: a uniform skin, a north–south split, a quadrupolar banding, and so on up. They do for the polar angle what sines do for a line: decompose any boundary data, mode by mode, one integral per coefficient. Mastering them buys three things. Immediate power: the hemisphere and sphere-in-a-field problems of this chapter reduce to reading off coefficients. A transferable skill: the termination argument quantizing here later quantizes angular momentum in quantum mechanics. And a secret weapon: the generating function proved at the end is the multipole expansion, three articles early.
- Legendre polynomials , , are the solutions of Legendre's equation finite at the poles ; non-terminating series diverge there, so finiteness forces the separation constant to , integer — a physical boundary condition, not a convention.
- Rodrigues' formula generates them all, with parity and normalization .
- Orthogonality, , makes coefficients a one-integral job: .
- The generating function is the Coulomb kernel in disguise — the engine the Multipole Expansion article runs on.
- Key idea: on a sphere with azimuthal symmetry, the polar-angle modes that stay finite at the poles are exactly the Legendre polynomials, and the full potential is with coefficients fixed by orthogonality against the boundary data.
Where this lives today
Every finite-element and spectral code in production — the solvers behind aircraft electromagnetics, MRI coils, weather models — evaluates its integrals by Gauss–Legendre quadrature: sample the integrand at the roots of , weight appropriately, and the result is exact for polynomials up to degree . Three points buy exactness through degree five (nodes and , weights and , integrating to on the nose) — this article's orthogonality theorem in industrial dress: the roots of are the sampling points against which lower polynomials cannot hide. Billions of them run every second in large simulations. The original gravitational application never went away. Earth's gravity is a Legendre ladder whose coefficient — multiplying , the equatorial bulge — dominates every satellite orbit's perturbations; sun-synchronous missions deliberately surf its precession. Modern geopotential models push the series to degree 2190 — Legendre's 1782 idea, executed to the two-thousandth rung.
The physical picture
Meet the family first, formalities later — the first five members against , south pole () to north pole ():
Read the gallery like the modes of a guitar string: never crosses zero, crosses once (at the equator), twice, three times — the degree counts sign changes as the harmonic number counts nodes. And every curve arrives at the north pole with value : the convention , which lets every mode report its coefficient undisguised on the axis. Now wrap each curve around a sphere. Since depends only on latitude, each paints the sphere in latitude bands of alternating sign — the charge-pattern vocabulary of spherical electrostatics. A surface charge is the north-positive, south-negative skin a uniform field induces on a conductor; a skin has charged polar caps and an opposite tropical belt. Any axisymmetric pattern is a mix of these bands.
Two questions should be nagging you: why polynomials, and why the strange eigenvalues ? Both have one answer, and it is physical: the poles of the sphere are ordinary points of space, and the potential there must be finite. Everything else here is machinery built on that single quantization.
The equation and the toolkit
The angular equation is inherited, not derived: as we found in Separation of Variables in Spherical Coordinates, separating with azimuthal symmetry hands the polar angle its own ODE, its separation constant written suggestively as but not yet restricted. The substitution (so , ) converts it to standard form:
where: runs over pole to pole; — the angular profile we seek; — the separation constant, at this stage any number. This is Legendre's differential equation, and it carries a structural warning: the coefficient of the highest derivative vanishes at — singular points sitting exactly at the poles, where solutions go to die. The first derivation prices survival there at quantization. One compact machine generates every member — Rodrigues' formula:
where: — a degree- polynomial; -fold differentiation leaves degree ; the prefactor enforces . Verify on low orders: gives ✓; gives ✓. Parity comes free: is even and each derivative flips parity once, so , whence . Running the machine — or the recurrence , seeded by , — produces the working table:
| parity | |||
|---|---|---|---|
| 0 | even | ||
| 1 | odd | ||
| 2 | even | ||
| 3 | odd | ||
| 4 | even | ||
| 5 | odd |
Orthogonality turns the table into a solving method: distinct members are perpendicular on , with known "length squared":
where: — the Kronecker delta; — the normalization, shrinking as faster-wiggling polynomials cancel more of themselves. In language the same integral reads — the is , not decoration, and forgetting it corrupts every coefficient. The second derivation proves (3) in full from Rodrigues' formula. Orthogonality plus completeness — the span everything square-integrable on — yields the Legendre series. Any reasonable expands as , and Fourier's trick (multiply by , integrate; orthogonality annihilates all terms but one) extracts each coefficient:
where: — the inverse of the normalization in (3); — your boundary data, typically a potential read as a function of . It is the exact analogue of a Fourier coefficient — in the role of the Cartesian article's . Parity gives instant shortcuts: even data excite only even ; odd data only odd. And once the series matches the boundary, the uniqueness theorems certify it as the answer. The last tool is the deepest. The whole family is packaged inside one closed form, the generating function:
where: — a bookkeeping parameter whose powers sort the family by degree; — the usual cosine. Expand in powers of and the coefficient of is, every time, exactly — a party trick, until you recognize the left-hand side as the Coulomb potential of a point charge expanded in a distance ratio. The third derivation proves it — mark the result well: this identity is the engine on which the Multipole Expansion of the Potential article, three articles ahead, will run.
The goal is the article's central claim: Legendre's equation has solutions finite at both poles only when the separation constant equals for a non-negative integer , and those solutions are polynomials. The strategy is the power-series (Frobenius) method — assume a series, convert the equation into a recursion among coefficients, then interrogate it about the endpoints. The step to watch is the honest part: showing a non-terminating series actually diverges at .
Step 1. Expand the equation to , unrestricted, and substitute . Collecting the coefficient of (the term contributes at two offsets) and using :
The recursion links to : even coefficients descend from , odd from — two independent solutions, as a second-order equation must have.
Step 2. Suppose the series never terminates. For large , — the coefficient pattern of logarithm-type series: , so at the tail is the harmonic series . The solution diverges logarithmically at both endpoints. Why this is fatal: is the polar axis — ordinary empty space, nothing singular about the physics there. A potential that blows up on the axis is an artifact to discard. (The divergent partners survive as the second-kind functions — legitimate in problems that exclude the axis, such as fields between cones.)
Step 3. The only escape is termination. If for a non-negative integer , the numerator vanishes at , so : one series becomes a polynomial of degree . Kill the other ( for even , for odd) and the survivor is finite on all of . No other terminates either series: the separation constant is quantized by the geometry of the sphere.
Step 4. Normalize by . Check : gives , , so ; the value at fixes , i.e. , matching the table. Verified: the recursion, run symbolically for , matches Rodrigues' formula at every order; the non-terminating even series grows without bound as numerically.
Go deeper · Derivation B · 1 minOrthogonality and normalization from Rodrigues' formula
The goal is equation (3) in both halves: distinct- integrals vanish, and the diagonal equals . Of the two classic routes, Sturm–Liouville self-adjointness gets the zeros elegantly but must borrow the normalization; Rodrigues proves both in one sustained calculation, so we take it. The strategy: repeated integration by parts — Rodrigues writes as an -fold derivative, and each round peels one derivative off. Watch why every boundary term dies: each still contains undifferentiated factors of , which vanish at both endpoints.
Step 1. Take and insert Rodrigues once:
Step 2. Integrate by parts times, each round moving one derivative onto . Every boundary term contains a derivative of of order below ; since has zeros of order at both endpoints, all boundary terms vanish. After rounds:
Step 3. Read off the off-diagonal case: if , the -th derivative of the degree- polynomial is identically zero, so . Orthogonality proved — a low-degree polynomial cannot survive that many differentiations. Why this had to happen structurally: Legendre's equation is self-adjoint with the boundary factor vanishing at the ends, so eigenfunctions with distinct eigenvalues are automatically orthogonal — the Rodrigues computation is Sturm–Liouville theory caught in the act.
Step 4. The diagonal, : only the leading term of survives differentiations. Rodrigues gives leading coefficient , so , a constant. With absorbing the sign:
Step 5. The remaining integral is a Wallis reduction (): — check : direct integration gives , the formula ✓. Multiplying, the factorial towers collapse:
Verified: diagonal integrals computed symbolically for give — exactly — and the cross integrals all return zero; matches Jackson Eq. 3.21.
The generating function — the multipole engine
Go deeper · Derivation C · 2 minThe generating function from the potential of a point charge
The goal is identity (5): the expansion coefficients of in powers of are exactly the Legendre polynomials. Binomial expansion can verify finitely many orders but proves nothing about all of them; instead we let electrostatics do the work. The strategy: recognize as the potential of a point charge, guaranteed harmonic away from the source; expand in powers of ; show harmonicity forces each coefficient function to satisfy Legendre's equation, while pole-finiteness and one check at pin the coefficients exactly. Watch the family's three defining properties — the ODE, finiteness, — each get consumed once.
Step 1. Let with the source on the -axis at radius . Away from the charge is a point-charge potential, so there — the physics input. By the law of cosines, for :
Step 2. Expand via the binomial series of in (convergent for ); collecting powers of yields some coefficient functions , each a polynomial of degree :
Step 3. Impose harmonicity term by term. Since for every admissible and the terms carry independent powers , each term must be harmonic on its own. But is harmonic precisely when satisfies Legendre's equation (1) with eigenvalue — the radial-angular bookkeeping of the spherical separation article run in reverse. Why this pins the family: by the first derivation, pole-finite solutions at eigenvalue form a one-dimensional set — multiples of . Our is a polynomial, certainly finite at the poles, so for some constant.
Step 4. Fix the constants at (field point on the axis beyond the charge), where the closed form collapses to a geometric series:
so every coefficient equals there: , and the convention forces for all . Identity (5) is proved, all orders at once.
Step 5. Cross-examine by direct expansion: the binomial series to fourth order gives — the table's on the nose. Numerically, at , : the closed form gives ; partial sums through give , , — converging geometrically onto the exact value. Verified: symbolic expansion to order matches the table; a sixty-term numeric sum at agrees with the closed form to machine precision; the check is exact. Proved in full deliberately: the Multipole Expansion of the Potential article will recall this identity by name, substitute , and never re-derive it.
Limiting cases
| case | result | meaning |
|---|---|---|
| the poles | , | normalization + parity; on-axis every mode reports its coefficient |
| equator | ; , | odd modes have an equatorial node; even values alternate and shrink |
| large | high modes oscillate like cosines (, : exact , asymptotic ) | |
| smooth data | faster than any power | degree- data needs only : see below |
| discontinuous data | slow, oscillatory convergence on the sphere — see the hemispheres |
Worked examples
1 · Expanding a plain polynomial (confidence builder)
Expand in Legendre polynomials and confirm the coefficients by formula (4).
Step 1. Degree logic first: degree 2 means only appear; parity (even) kills . Write and match powers: gives ; the constant term gives :
Step 2. Verify by (4): ✓ and
while — orthogonality refuses to let a degree-4 mode see degree-2 data. Numerical quadrature returns , , .
Step 3. Spot-check at : ✓. The lesson generalizes: a sphere held at excites only and — two terms and the problem is over.
2 · Hemispheres at plus and minus V0 (exam level)
A spherical shell of radius has its northern hemisphere at , its southern at . Find the Legendre coefficients of the boundary data and track convergence at .
Step 1. The data is a step in : for , for . It is odd, so only odd survive, and (4) with the parity fold gives .
Step 2. Compute: gives ; gives ; gives . The pattern continues , : slow, sign-alternating decay (like ) — the signature of a jump in the data.
Step 3. Evaluate partial sums at , i.e. , where the exact surface value is , using , , — surface series in column two; inside at (terms damped by ) in column three:
| through | sum at (units of ) | sum at |
|---|---|---|
| 1 | ||
| 3 | ||
| 5 | ||
| 7 | ||
| 9 |
Step 4. Read the table like a physicist. On the surface the sums oscillate stubbornly around the exact value (through the sum is still ) — the Legendre cousin of the Gibbs phenomenon. But inside, crushes the high modes: by the interior value has converged to to four decimals. Laplace's equation is a smoothing machine; geometric damping of high- terms is that smoothing made visible.
Origins · 1 minAdrien-Marie Legendre and how this was discovered
Legendre spent a career being indispensable and under-thanked. Wealthy until the Revolution wiped out his fortune in 1793, he produced first-rank work across an improbable range: the polynomials (born in a 1782 memoir on the attraction of spheroids — precisely this article's problem), quadratic reciprocity, forty years of elliptic integrals, and least squares — published in 1805, then claimed by Gauss as earlier unpublished work, a wound that never closed. Principled to a fault, he refused in 1824 to endorse the government's candidate for the Institut, lost his pension, and died in poverty in 1833. A final indignity: for nearly two centuries, textbooks honoring him printed the face of an unrelated politician. The polynomials, at least, have always carried the right name.
Going further
References. Griffiths, Introduction to Electrodynamics, 4th ed., §3.3.2 · Jackson, Classical Electrodynamics, 3rd ed., §3.1–3.3 · Zangwill, Modern Electrodynamics, §7.6–7.7 · Arfken, Weber & Harris, Mathematical Methods for Physicists, 7th ed., Ch. 15
Provenance. Equations standard from Griffiths §3.3.2 and Jackson §3.1–3.3. A verifier should: (1) confirm Rodrigues' formula reproduces as listed; (2) check Bonnet recurrence generates the same polynomials; (3) verify orthogonality integral (Jackson Eq. 3.21); (4) confirm , , , ; (5) verify the generating function expansion yields the multipole kernel; (6) check the worked boundary-value result against Griffiths examples. No non-standard numbers used.
Builds on: Laplace's Equation · Separation of Variables in Spherical Coordinates · Boundary Conditions for the Potential Leads to: Associated Legendre Functions · Uniqueness Theorems for the Potential · Image Charges for a Conducting Sphere
Why substitute x equals cos theta at all — why not solve the equation in theta?
You can, but you pay twice. In the equation carries factors in awkward places, the solutions hide their polynomial structure, and the integration weight must be remembered by hand. The substitution maps latitude onto the clean interval , absorbs the weight into , and reveals honest polynomials. When a result is quoted "on ", translate the endpoints back to the poles and to the equator.
What happened to the second solution of the differential equation? Second-order equations have two.
We discarded it deliberately. For each there is a second, non-polynomial solution — the Legendre function of the second kind, — diverging logarithmically at ( is the prototype). On a full sphere the poles are ordinary points of space, so any admixture is inadmissible. In geometries that exclude the polar axis — between coaxial cones, say — the are legal and genuinely needed. Discarding them is a statement about your domain, not the mathematics.
Is a Legendre series just a Fourier series in disguise?
Siblings with the same job — orthogonal decomposition, coefficient-by-integral, completeness — but different habitats. Fourier's sines live on a periodic interval; Legendre polynomials live on an interval whose endpoints are physically special (the poles), where finiteness replaces periodicity as the boundary condition. Consequences: one family suffices, oscillations bunch near the endpoints, the natural quadrature samples non-uniformly. At large , though, oscillates essentially like a cosine.
How many terms of a Legendre series do I actually need in practice?
A question of smoothness. Polynomial data of degree needs exactly the modes up to — took two terms — and smooth data has coefficients decaying faster than any power of . Discontinuous data is the worst case: the hemisphere coefficients decay like , and on the sphere the partial sums oscillate for dozens of terms. Off the boundary each term carries or , so convergence turns geometric — four decimals at by .
Could a non-integer separation constant sneak through if the series diverges only at the poles?
No. For non-integer effective degree, both independent series solutions diverge logarithmically at , and no combination cancels the blow-up at both endpoints simultaneously. Nor are the poles negotiable: tilt your coordinates and the "bad points" would move, so a legitimate solution must be finite at every candidate pole. The recursion's only escape is exact termination, which happens if and only if the constant is with integer — the logic that later quantizes orbital angular momentum.
Where does the square root in the generating function come from? It looks arbitrary.
It is the law of cosines. The distance from a field point at radius to a source at , with angle between them, is ; factor out and you have with , . The generating function is the Coulomb kernel made dimensionless — which is why a family defined by an ODE on a sphere also organizes far fields.
Do these polynomials matter outside of electrostatics?
Pervasively. Quantum mechanics: the same equation and finiteness argument appear in every central-potential Schrödinger problem — Legendre quantization is angular momentum quantization. Geophysics: planetary gravity fields are Legendre ladders, Earth's steering every satellite orbit. Numerical analysis: Gauss–Legendre quadrature is the default integrator in finite-element codes. Scattering theory: partial-wave angular distributions are Legendre series in the scattering angle. Learn the family once; four fields greet you by name.