Analysis

The sine, rebuilt from its zeros

A polynomial is a product of factors, one for each root. Euler treated the sine the same way — one factor for each place the wave crosses the axis — and the product he wrote down is correct, though the zeros alone do not justify it. Multiplied out, it hands over the sum of the reciprocal squares, π²/6, and every even power after it.

Worth reading first: A sine wave is a circle seen from the side · The sine of a figure eight.

A polynomial is determined, up to a constant in front, by where it is zero. If p(x)p(x) has degree three and vanishes at −1-1, 00 and 22, then p(x)=c x(x+1)(x−2)p(x) = c\,x(x + 1)(x - 2) for some number cc, and fixing the value at one more point fixes cc. The roots are not merely a property of the polynomial; they are a recipe for it.

The sine is not a polynomial, but it is a wave, and a wave crosses the axis at known places. Written in the form sin⁡πx\sin \pi x, so that the period is two, it vanishes at every whole number x=0,±1,±2,…x = 0, \pm1, \pm2, \ldots and nowhere else. In 1734 Leonhard Euler did with those zeros what anybody would do with the roots of a polynomial: he wrote down one factor for each of them. Pairing the factors for nn and −n-n, and choosing the constant so that the slope at nought comes out right, he wrote

sin⁡πx=πx(1−x21)(1−x24)(1−x29)(1−x216)⋯\sin \pi x = \pi x \left(1 - \frac{x^2}{1}\right)\left(1 - \frac{x^2}{4}\right)\left(1 - \frac{x^2}{9}\right)\left(1 - \frac{x^2}{16}\right)\cdots

— an infinite polynomial, assembled from its infinitely many roots. The formula is correct. Euler’s reason for believing it was not a proof, and the gap between the reason and the proof is where most of the interest lies.

The sine rebuilt from its zeros. The curve sin πx and three partial products of Euler's formula, with 1, 3 and 10 pairs of factors; each matches the sine between its zeros and diverges outside them.
Fig. 1 The wave sin⁡πx\sin\pi x, drawn thick, and the products of the first one, three and ten pairs of factors. Each partial product is a polynomial vanishing at 0,±1,…,±N0, \pm1, \ldots, \pm N, and between those zeros it follows the wave closely; beyond its last zero it runs off to infinity, as every polynomial must.

What the partial products do

The figure tests the formula the only way a finite picture can: by stopping it. The product of the first NN pairs of factors is an honest polynomial of degree 2N+12N + 1, with exactly the zeros 0,±1,…,±N0, \pm1, \ldots, \pm N. With one pair, it is πx(1−x2)\pi x(1 - x^2), a cubic that rises too high between 00 and 11 — its peak is at 1.181.18 — and plunges past 11 as cubics do. With three pairs the peak between 00 and 11 is 1.071.07, and the curve stays close to the wave across the middle three humps. With ten it is 1.0241.024, and the agreement extends across the whole picture except at its edges.

Each partial product behaves well exactly where its zeros are and badly beyond them, and that is the right failure. A polynomial must eventually grow without bound; the sine never does. The products are not converging to the sine by getting better at the edges. They are converging by pushing the edges outward: every new pair of factors adds two more zeros and lets the polynomial follow the wave for one more hump on each side before it escapes.

At x=12x = \tfrac12, where the sine is exactly one, the three products in the figure give 1.17811.1781, 1.07381.0738 and 1.02411.0241. Twenty thousand pairs give 1.000011.00001. The convergence is real and slow, and its slowness is itself worth noticing: the error after NN factors is roughly proportional to 1/N1/N, so each further correct digit costs ten times as many factors. That is a sign that the product, though correct, is not the way to compute sines. It is the way to know things about them.

Two functions with the same zeros

Euler’s reasoning has a hole, and it can be drawn.

Two functions with the same zeros. The curves sin πx and e^(0.4x)·sin πx, crossing the axis at the same whole numbers; the second grows to the right and shrinks to the left.
Fig. 2 sin⁡πx\sin \pi x and e0.4xsin⁡πxe^{0.4x}\sin\pi x vanish at exactly the same points — every whole number and nowhere else. The second grows to the right and shrinks to the left; it is not the sine and it is not odd. A factor that is never zero can multiply any function without moving its zeros.

For a polynomial, the zeros determine the function up to a constant because a polynomial with no zeros at all is a constant. For functions in general that is false. The exponential exe^{x} is never zero, and neither is eanythinge^{\text{anything}}; multiply the sine by any of them and the zeros stay where they were. So “a function vanishing exactly at the whole numbers” describes not one function but a vast family — sin⁡πx\sin\pi x times eg(x)e^{g(x)} for any gg at all — and nothing in the list of zeros picks the sine out of it.

What rescues the formula was found more than a century after Euler. Karl Weierstrass showed in 1876 how to build a function with any prescribed zeros, and Jacques Hadamard showed in 1893 how much freedom remains: for a function that grows no faster than an exponential in every complex direction, the leftover factor eg(x)e^{g(x)} can only be eax+be^{ax + b}, a single exponential with two constants. The sine grows at exactly that rate — ∣sin⁡(πiy)∣=sinh⁡πy|\sin(\pi iy)| = \sinh \pi y — so it equals eax+be^{ax + b} times Euler’s product. Then two facts about the sine fix the constants. It is odd, sin⁡(−πx)=−sin⁡πx\sin(-\pi x) = -\sin \pi x, and the product is odd too, so eaxe^{ax} must be even, which forces a=0a = 0. And its slope at nought is π\pi, which forces eb=1e^b = 1 once the factor πx\pi x is written in front.

So the formula is a theorem with three ingredients — the zeros, the growth rate and the symmetry — and the figure shows why the second and third cannot be dropped. The function e0.4xsin⁡πxe^{0.4x}\sin\pi x has the same zeros and the same growth rate. Only the symmetry tells it apart.

A polygon whose chords multiply to its number of sides

There is a second road to the product, older and more elementary than Hadamard’s, and it runs through a fact about regular polygons that is surprising on its own.

The chords of a regular 7-gon multiply to 7. A regular 7-gon with the 6 chords from one corner drawn and their lengths listed; the lengths multiply to 7.
Fig. 3 A regular seven-sided polygon on a circle of radius one, with the six chords from one corner to the others. Their lengths are 2sin⁡(kπ/7)2\sin(k\pi/7), and their product is exactly seven. Measured for polygons of 3, 5, 7, 12, 30 and 100 sides, the product of the chords from one corner is the number of sides every time.

Put a regular nn-gon on the circle of radius one with a corner at the point 11 of the complex plane, so its corners are the nn-th roots of unity 1,ω,ω2,…,ωn−11, \omega, \omega^2, \ldots, \omega^{n-1}, where multiplying by ω\omega is turning by a fraction 1/n1/n of a revolution. The polynomial zn−1z^n - 1 vanishes at every corner, so it factors into one bracket per corner:

zn−1=(z−1)(z−ω)(z−ω2)⋯(z−ωn−1).z^n - 1 = (z - 1)(z - \omega)(z - \omega^2)\cdots(z - \omega^{n-1}).

Divide both sides by z−1z - 1. The left becomes 1+z+z2+⋯+zn−11 + z + z^2 + \cdots + z^{n-1}, and at z=1z = 1 it is nn. The right becomes the product of the distances from the corner at 11 to each of the other corners. So the chords from one corner of a regular polygon multiply to the number of its sides — seven for the heptagon in the figure, a hundred for the hundred-gon, whatever the polygon. Every chord is shorter than two and many are much shorter, and the product lands on a whole number every time.

That identity is the finite form of Euler’s product. Run the same factorisation with zz on the circle at a general angle rather than at a corner, and it becomes a formula for sin⁡nθ\sin n\theta as a product of nn sines spaced π/n\pi/n apart. Now let nn grow while the angle shrinks in proportion, θ=πx/n\theta = \pi x/n. Each factor sin⁡(πx/n+kπ/n)\sin(\pi x/n + k\pi/n), divided by its value at x=0x = 0, tends to 1−x/k1 - x/k for each fixed kk, and the pairs combine into 1−x2/k21 - x^2/k^2. In the limit the polygon formula becomes Euler’s. This is the proof found in textbooks of the nineteenth century, and it needs care only at the step where infinitely many factors are allowed to tend to their limits at once — a care Euler did not take and his answer did not need.

The connection is the surprising thing on this page. A question about one curve — what is the sine? — is answered by a family of finite figures, the regular polygons, each contributing an exact identity about chords. Euler’s infinite polynomial is what the polygons say in the limit, and the reason its zeros are the whole numbers is that the corners of a polygon with ever more sides crowd, near any one corner, into an evenly spaced row.

Multiplying out: the sum of the reciprocal squares

The product earns its keep when it is multiplied out. Expand (1−x2)(1−x2/4)(1−x2/9)⋯(1 - x^2)(1 - x^2/4)(1 - x^2/9)\cdots and collect powers of xx. The constant term is one. The coefficient of x2x^2 collects one term from each bracket — the −x2/n2-x^2/n^2 from bracket nn times the ones from all the others — so it is

−(1+14+19+116+⋯ ).-\left(1 + \frac14 + \frac19 + \frac1{16} + \cdots\right).

But sin⁡πx/πx\sin\pi x / \pi x also has a Taylor series, read off from its slopes at nought: 1−π2x2/6+π4x4/120−⋯1 - \pi^2x^2/6 + \pi^4x^4/120 - \cdots. Two expansions of one function must agree term by term. So

1+14+19+116+⋯=π26.1 + \frac14 + \frac19 + \frac1{16} + \cdots = \frac{\pi^2}{6}.

That was the Basel problem, posed by Pietro Mengoli in 1650 and attacked without success by the Bernoullis, and this was Euler’s solution of 1734, the one that made his reputation. The answer contains π\pi, and it should be startling that it does: the question is about the squares of whole numbers, and there is no circle anywhere in it. The circle comes in through the zeros of the sine, which sit at the whole numbers because the sine is the shadow of a point walking round a circle.

Reading sums off the product's coefficients. A table matching the coefficients of x², x⁴, x⁶ in Euler's product with the Taylor coefficients of sin πx/(πx), and the sums of reciprocal squares, fourth and sixth powers they yield: π²/6, π⁴/90, π⁶/945.
Fig. 4 Left: the coefficients of x2x^2, x4x^4 and x6x^6 in the product, computed from a million factors, beside the same coefficients from the Taylor series of sin⁡πx/πx\sin\pi x/\pi x. They agree to eleven places. Right: what the agreement yields — the sums of reciprocal squares, fourth powers and sixth powers, π2/6\pi^2/6, π4/90\pi^4/90 and π6/945\pi^6/945.

The next coefficients give more. The coefficient of x4x^4 in the product is the sum of 1/(m2n2)1/(m^2n^2) over all pairs m<nm < n, and the Taylor series says it is π4/120\pi^4/120. That is not yet the sum of the reciprocal fourth powers, but the two are linked by an identity that holds for any list of numbers: the square of their sum is the sum of their squares plus twice the sum of their pairwise products. So the reciprocal fourth powers add to (π2/6)2−2π4/120=π4/90(\pi^2/6)^2 - 2\pi^4/120 = \pi^4/90. One more coefficient and one more such identity — these are Newton’s identities, which convert the coefficients of a polynomial into the power sums of its roots — and the sixth powers come out as π6/945\pi^6/945. Every even power follows the same way, each a rational number times a power of π\pi, with the rational numbers given by the Bernoulli numbers.

The figure’s table checks the middle step numerically rather than by algebra: it multiplies out a million factors, corrects for the tails, and finds the product’s coefficients matching the Taylor coefficients to eleven decimal places. That is how a reader in 1734 could have checked Euler, and it is roughly how Euler checked himself.

Taking logarithms: a row of charges

A product becomes a sum when its logarithm is taken, and the sum that comes out of Euler’s product has a physical reading that the product hides.

Take the logarithm of both sides and differentiate. The left side, log⁡sin⁡πx\log \sin \pi x, differentiates to πcot⁡πx\pi \cot \pi x. On the right, each factor contributes its own logarithmic derivative, and the factor 1−x2/n21 - x^2/n^2, written as (1−x/n)(1+x/n)(1 - x/n)(1 + x/n), contributes 1/(x−n)+1/(x+n)1/(x - n) + 1/(x + n). So

πcot⁡πx=1x+∑n=1∞(1x−n+1x+n),\pi \cot \pi x = \frac1x + \sum_{n=1}^{\infty}\left(\frac{1}{x - n} + \frac{1}{x + n}\right),

a sum of one simple term for each zero of the sine. That is the formula for the electric field, along a line, of equal point charges placed at every whole number on it — in a one-dimensional world where a charge’s field falls off as one over the distance. Each charge pushes outward with a strength inversely proportional to how far away it is, the pushes from left and right nearly cancel, and what survives is the cotangent: zero exactly halfway between two charges, where the forces balance, and infinite at each charge.

The reading explains something the product does not make obvious. The field near any one charge is dominated by that charge, 1/(x−n)1/(x - n), and the rest of the row contributes a smooth correction; the correction at the charge’s own position is zero by symmetry, because the charges on either side are equally many and equally far. That symmetry is the oddness that pinned down the product’s constants, now appearing as the balance of a row of forces.

And it gives the even sums again, in one more way. Expand both sides in powers of xx near nought: the left side’s coefficients are known from the cotangent’s Taylor series, and on the right the coefficient of x2k−1x^{2k-1} is −2-2 times the sum of 1/n2k1/n^{2k}. Matching them hands over π2/6\pi^2/6, π4/90\pi^4/90 and every other even sum at once, with the Bernoulli numbers appearing as the cotangent’s coefficients. It is the same information as the multiplied-out product, rearranged so that each power stands alone instead of having to be untangled by Newton’s identities.

How slowly the squares get there

The sum itself is a poor way to find π2/6\pi^2/6, and the reason is the same slowness the partial products showed.

The reciprocal squares, adding up to π²/6. Partial sums of 1/n² for N up to 60, approaching π²/6 ≈ 1.6449 slowly, and the same sums with the tail estimate 1/N added, which sit almost on the line.
Fig. 5 The sums 1+1/4+⋯+1/N21 + 1/4 + \cdots + 1/N^2 for NN up to sixty, creeping towards π2/6=1.644934\pi^2/6 = 1.644934; after sixty terms the gap is still 0.01650.0165, because the tail beyond NN adds up to about 1/N1/N. With that tail added, the open circles sit within about 1.4×10−41.4 \times 10^{-4} of the line.

After sixty terms the dots are still visibly below the line, and the gap shrinks like 1/N1/N: the tail ∑n>N1/n2\sum_{n > N} 1/n^2 is squeezed between 1/(N+1)1/(N + 1) and 1/N1/N, which the figure checks at three points. Adding the estimate 1/N1/N back in — the open circles — lands within a ten-thousandth of the target after sixty terms, and a million terms with the same correction agree with π2/6\pi^2/6 to eleven places.

Euler knew all this before he knew the answer. In 1731, three years before the product, he had computed the sum to six decimal places, 1.6449341.644934, by a refinement of exactly that tail correction — the method now called Euler–Maclaurin summation — and it was presumably the six digits that let him recognise π2/6\pi^2/6 when the product produced it. The numerical evidence came first; the product explained it. That order is common in this subject, and the even values were later found a second way, through the square wave’s Fourier series, which explains them again without any product at all.

Wallis, a generation earlier

Euler’s product contains a formula that predates it by eighty years. Set x=12x = \tfrac12. The left side is sin⁡(π/2)=1\sin(\pi/2) = 1, and the right is π2\tfrac{\pi}{2} times ∏(1−1/4n2)\prod (1 - 1/4n^2). Rearranged,

π2=2⋅21⋅3⋅4⋅43⋅5⋅6⋅65⋅7⋯\frac{\pi}{2} = \frac{2\cdot2}{1\cdot3}\cdot\frac{4\cdot4}{3\cdot5}\cdot\frac{6\cdot6}{5\cdot7}\cdots

Wallis's product is the sine's at one half. Partial products of Wallis's formula for up to 40 factors, rising towards π/2 ≈ 1.5708 from below.
Fig. 6 Wallis’s product, which is Euler’s at one half: the partial products for up to forty factors, rising towards π/2=1.570796\pi/2 = 1.570796 from below. After forty factors the gap is 0.00980.0098, within five per cent of π/8N\pi/8N.

John Wallis published that product in 1656, found by an ingenious and quite unrigorous interpolation between integrals he could compute, and it was one of the first infinite products in mathematics, after François Viète’s product of nested square roots of 1593. In Euler’s product it is one point of a curve: the value of the sine at the top of its first hump. The partial products climb towards π/2\pi/2 from below, each factor (2n)2/((2n−1)(2n+1))(2n)^2/((2n - 1)(2n + 1)) slightly bigger than one, and the gap after NN factors is close to π/8N\pi/8N, which the figure measures at forty. Other values of xx give other products, and x=14x = \tfrac14, 16\tfrac16, 13\tfrac13 each turn into a product for some combination of π\pi and square roots, every one of them a single point on the curve the product draws.

The product also connects to the factorials. The gamma function, the curve through the factorials, has a product of the same kind with factors 1+x/n1 + x/n rather than 1−x2/n21 - x^2/n^2, and pairing the gamma function at xx with the gamma function at 1−x1 - x collapses the two products into Euler’s: Γ(x)Γ(1−x)=π/sin⁡πx\Gamma(x)\Gamma(1 - x) = \pi/\sin \pi x. At x=12x = \tfrac12 that is Γ(12)2=π\Gamma(\tfrac12)^2 = \pi, the fact behind the area under a bell curve.

Finitely many factors standing in for infinitely many

Every figure multiplies finitely many factors. The product is an infinite one, and whether an infinite product converges, and to what, is a question about all of its factors at once. Here it converges because the sum of x2/n2x^2/n^2 converges, which makes the factors approach one fast enough; the figures show partial products approaching the sine and cannot show that they do so everywhere, or uniformly on any interval. That is a theorem about the tails, and the pictures stop where the tails begin.

The proof needs complex numbers, and the figures are drawn on the real line. Hadamard’s argument, which closes the hole the two-functions figure exhibits, rests on how fast the sine grows in the imaginary direction, where it behaves like an exponential. On the real line the sine stays between −1-1 and 11, and nothing drawn here shows the growth that the theorem depends on. The figure eight’s sine, whose zeros fill a square grid rather than a line, needs a product of a more elaborate kind for exactly that reason.

The polygon limit is sketched, not carried out. The passage from the finite chord identity to Euler’s product requires showing that the factors with large kk, which the sketch treats one at a time, do not together contribute anything in the limit. That step is where Euler’s own version was incomplete and where the textbook version spends most of its effort.

Still open: the odd powers

The product gives the even powers and is silent about the odd ones. The reciprocal cubes, 1+1/8+1/27+⋯=1.2020569…1 + 1/8 + 1/27 + \cdots = 1.2020569\ldots, appear nowhere in the coefficients of sin⁡πx\sin \pi x, because the product’s brackets contain only x2/n2x^2/n^2 and every coefficient is built from even powers of 1/n1/n. Euler tried for decades to find a closed form for the reciprocal cubes and failed.

No closed form is known, and none is expected. Roger Apéry proved in 1978 that the sum of the reciprocal cubes is at least irrational, by a race between two sequences of fractions that has never been made to work for any other odd power. For the fifth powers, irrationality is unknown. Wadim Zudilin proved in 2001 that at least one of the sums of reciprocal fifth, seventh, ninth and eleventh powers is irrational, without saying which; Tanguy Rivoal had shown the year before that infinitely many of the odd sums are irrational. That the even sums are rational multiples of powers of π\pi is a consequence of one wave’s zeros, and nothing comparable is known to organise the odd ones.

Shares its objects with

Essays that name at least two of the same things, and that neither author linked.

Named objects

A dashed tag is an object no other essay names yet.

ConvergenceInfinite productPiPolynomialRegular polygonRootsRoots of unitySineSymmetric functionTaylor series