Legendre had the bad luck to work among giants. In number theory he was overtaken by Gauss; in elliptic integrals, by Abel and Jacobi; in celestial mechanics he stood in Laplace’s shadow. Many times he asked the right question and organised the ground, and someone else came later with the decisive idea. But the number of things that bear his name shows that questions and organisation count too. What bears his name The Legendre polynomials, from the attraction of spheroids, and the associated Legendre functions, which make up the spherical harmonics. The Legendre symbol $\left(\frac{a}{p}\right)$, from quadratic reciprocity. Legendre’s theorem on spherical triangles and the Saccheri–Legendre theorem on the angle sum of a triangle. Legendre’s three-square theorem and Legendre’s formula for the exponent of a prime in $n!$. Legendre’s conjecture, on primes between consecutive squares, still open. Legendre’s relation between the complete elliptic integrals and the Legendre normal form of those integrals. The Legendre transform and Gauss–Legendre quadrature, discussed below. Legendre’s duplication formula for the gamma function. The Legendre transform In 1787, in a paper on minimal surfaces, Legendre used a change of variables that exchanges a function for its derivative. For a convex function $f(x)$, the transform is