The attraction of spheroids and the Legendre polynomials
Newton had shown that a homogeneous sphere attracts bodies outside it as if all its mass were at the centre. But the Earth is not a sphere: it is flattened at the poles, as Newton himself had predicted and as the expeditions to Lapland and Peru had confirmed in the 1730s. What, then, is the force with which a flattened body attracts a point outside it? Maclaurin had solved the case of points on the surface; the general case was still open when, in 1783, Legendre read to the Academy of Sciences his Researches on the attraction of homogeneous spheroids.
The inverse of the distance
The gravitational pull of a small mass $m$ on a point depends on $m/\rho$, where $\rho$ is the distance between the two. Adding this up over all the parts of the body gives what would later be called the potential. The trouble is that $\rho$ is an awkward square root. If the point is at distance $r$ from the centre, the mass at distance $s$, and the angle between the two directions is $\theta$, the law of cosines gives
$$\rho = \sqrt{r^2 - 2rs\cos\theta + s^2} = r\sqrt{1 - 2xt + t^2},$$with $x = \cos\theta$ and $t = s/r$, which is less than $1$ when the point is outside the body. Legendre’s idea was to expand $1/\rho$ in powers of $t$:
$$\frac{1}{\sqrt{1 - 2xt + t^2}} = P_0(x) + P_1(x)\,t + P_2(x)\,t^2 + P_3(x)\,t^3 + \cdots$$Each coefficient $P_n(x)$ is a polynomial of degree $n$ in $x = \cos\theta$. These are the Legendre polynomials.
The expansion term by term
Let us do the calculation up to $t^2$. Setting $u = 2xt - t^2$, Newton’s binomial series with exponent $-\frac{1}{2}$ gives
$$(1 - u)^{-1/2} = 1 + \tfrac{1}{2}u + \tfrac{3}{8}u^2 + \cdots$$The term $\frac{1}{2}u$ contributes $xt - \frac{1}{2}t^2$. The term $\frac{3}{8}u^2 = \frac{3}{8}(4x^2t^2 - 4xt^3 + t^4)$ contributes, up to $t^2$, $\frac{3}{2}x^2t^2$. Collecting equal powers:
$$\frac{1}{\sqrt{1 - 2xt + t^2}} = 1 + x\,t + \left(\tfrac{3}{2}x^2 - \tfrac{1}{2}\right)t^2 + \cdots$$So $P_0 = 1$, $P_1 = x$ and $P_2 = \frac{1}{2}(3x^2 - 1)$. Carrying on in the same way,
$$P_3(x) = \tfrac{1}{2}(5x^3 - 3x), \qquad P_4(x) = \tfrac{1}{8}(35x^4 - 30x^2 + 3).$$There is no need to redo the expansion for each degree: the polynomials obey the recurrence
$$(n + 1)\,P_{n+1}(x) = (2n + 1)\,x\,P_n(x) - n\,P_{n-1}(x),$$which gives each one from the two before it. In the figure, choose the degree and look at the polynomial:
Three properties
Putting $x = 1$ in the expansion, the left-hand side becomes $1/(1 - t) = 1 + t + t^2 + \cdots$, and so $P_n(1) = 1$ for every $n$. All the graphs pass through the same point.
Between $-1$ and $1$, the polynomial $P_n$ has exactly $n$ roots, all simple, and its values never leave the interval from $-1$ to $1$.
The most important property is the one Legendre used to compute the attraction: the polynomials are orthogonal,
$$\int_{-1}^{1} P_m(x)\,P_n(x)\,dx = 0 \quad (m \ne n), \qquad \int_{-1}^{1} P_n(x)^2\,dx = \frac{2}{2n + 1}.$$Because of this, any reasonable function of $\cos\theta$ can be written as a sum of Legendre polynomials, and each coefficient comes out of a single integral, without solving any system. It is the same trick Fourier would use twenty years later with sines and cosines.
The flattened planet
For a body with rotational symmetry, like the Earth, the potential at a distant point is
$$V = \frac{GM}{r}\left[1 - J_2\left(\frac{R}{r}\right)^2 P_2(\cos\theta) - J_3\left(\frac{R}{r}\right)^3 P_3(\cos\theta) - \cdots\right],$$where $R$ is the equatorial radius and $\theta$ is measured from the axis. The first term is Newton’s, that of a sphere. The second, with $P_2$, measures the flattening: for the Earth, $J_2 \approx 0.00108$. Artificial satellites have measured these coefficients to very high degree, and it is with sums of Legendre polynomials that the Earth’s gravitational field is described today.
Exercise: orthogonality for n = 2
Check that $\int_{-1}^{1} P_2(x)^2\,dx = \frac{2}{5}$ and that $\int_{-1}^{1} P_1(x)\,P_2(x)\,dx = 0$.
We have $P_2^2 = \frac{1}{4}(9x^4 - 6x^2 + 1)$. Since $\int_{-1}^1 x^4\,dx = \frac{2}{5}$, $\int_{-1}^1 x^2\,dx = \frac{2}{3}$ and $\int_{-1}^1 dx = 2$,
$$\int_{-1}^{1} P_2^2\,dx = \frac{1}{4}\left(\frac{18}{5} - 4 + 2\right) = \frac{1}{4}\cdot\frac{8}{5} = \frac{2}{5},$$which is $\frac{2}{2n + 1}$ with $n = 2$. As for $P_1 P_2 = \frac{1}{2}(3x^3 - x)$, it has only odd powers, and the integral of an odd function from $-1$ to $1$ is zero.
Exercise: P₄ from the recurrence
Use the recurrence with $n = 3$ to obtain $P_4$ from $P_3$ and $P_2$, and check that $P_4(1) = 1$.
With $n = 3$: $4P_4 = 7x P_3 - 3P_2 = \frac{7x(5x^3 - 3x)}{2} - \frac{3(3x^2 - 1)}{2} = \frac{35x^4 - 21x^2 - 9x^2 + 3}{2}$. Hence
$$P_4(x) = \frac{35x^4 - 30x^2 + 3}{8}, \qquad P_4(1) = \frac{35 - 30 + 3}{8} = 1.$$Sources: Adrien-Marie Legendre, “Recherches sur l’attraction des sphéroïdes homogènes”, Mémoires de mathématique et de physique présentés à l’Académie royale des sciences par divers savants 10 (1785) · Jean Itard, “Legendre, Adrien-Marie”, Dictionary of Scientific Biography · Isaac Todhunter, A History of the Mathematical Theories of Attraction and the Figure of the Earth (1873).
All topics on Adrien-Marie Legendre · ← The life of Adrien-Marie Legendre · Spherical triangles →