On this page
In 1734 Leonhard Euler showed that 1 + 1/4 + 1/9 + 1/16 + ⋯ adds up to π²/6, solving a problem Pietro Mengoli had posed in 1650 (Basel problem, Wikipedia). His key tool was a bold guess: that sine is a product over its zeros, like a polynomial. Here we build that guess, test it on a calculator, use it to get π²/6, and see what made it a proof.
What is Euler's infinite product for sine?
Euler's sine product is the formula sin(πx) = πx(1 − x²/1²)(1 − x²/2²)(1 − x²/3²)⋯, with one factor for every positive whole number n (Weierstrass factorization theorem, Wikipedia).
Euler wrote it up in "De summis serierum reciprocarum" (On the sums of series of reciprocals), written in 1735 and published in 1740 in the St Petersburg Academy's Commentarii (Euler Archive, E41).
Where does the product come from?
Start from school algebra. A polynomial with nonzero roots r₁, r₂, …, rₖ and value 1 at x = 0 can be written as (1 − x/r₁)(1 − x/r₂)⋯(1 − x/rₖ).
Now look at sin(πx). It is zero at x = 0, ±1, ±2, ±3, … and nowhere else. Pair each root n with −n: (1 − x/n)(1 + x/n) = 1 − x²/n². The root at 0 gives a factor of x, and because sin(πx) ≈ πx for small x, the front factor must be πx. Treat sine as a polynomial of infinite degree and the formula falls out. That is a heuristic, not yet a proof.
Does it actually work? A check at x = 1/2
Put x = 1/2. The left side is sin(π/2) = 1, and each factor becomes 1 − 1/(4n²). So 1 = (π/2)(3/4)(15/16)(35/36)⋯, which rearranges to π/2 = (2/1)(2/3)(4/3)(4/5)(6/5)(6/7)⋯
That is the Wallis product, published by John Wallis in 1656; in retrospect it is an easy corollary of Euler's product (Wallis product, Wikipedia).
You can watch the right side close in on 1. Multiply π/2 by the first N factors 1 − 1/(4n²) (our arithmetic):
N = 1: 1.1781
N = 2: 1.1045
N = 3: 1.0738
N = 10: about 1.024
N = 100: about 1.0025
The approach is slow: the leftover error is roughly 1/(4N), so each extra correct digit costs about ten times as many factors. The diagram at the top shows the three-factor version: it hugs sin(πx) near zero and drifts away further out.
How does the sine product solve the Basel problem?
Compare the x³ coefficient on both sides.
Left side. The Taylor series sin y = y − y³/6 + ⋯ with y = πx gives sin(πx) = πx − (π³/6)x³ + ⋯, so the x³ coefficient is −π³/6.
Right side. In (1 − x²/1)(1 − x²/4)(1 − x²/9)⋯ the only way to get x² is to take −x²/n² from one factor and 1 from all the others. So the x² term is −(1 + 1/4 + 1/9 + ⋯)x², and multiplying by πx gives an x³ coefficient of −π(1 + 1/4 + 1/9 + ⋯).
Set them equal: 1 + 1/4 + 1/9 + ⋯ = π²/6 ≈ 1.6449.
This is Euler's argument, announced in 1735. As the Basel problem article notes, his manipulations "were not justified at the time, although he was later proven correct". For other routes to the same sum, see our explainer on why the sum of 1/n² is π²/6.
Why is the root argument not a proof?
Because zeros do not pin down a function. The function eˣ·sin(πx) has exactly the same zeros as sin(πx) and also behaves like πx near 0, yet it is a different function. The heuristic cannot tell them apart.
The Weierstrass factorization theorem closes the gap. It says every entire function can be written as zᵐ·e^g(z) times a product built from its zeros (Weierstrass factorization theorem, Wikipedia). The factor e^g(z) is never zero: exactly the freedom the heuristic missed. For sine it turns out to be constant, leaving Euler's formula, which the article lists as an example. The Basel problem article credits Karl Weierstrass with proving the product valid about 100 years after Euler.
There is a second subtlety: convergence. The product (1 − x/1)(1 − x/2)(1 − x/3)⋯ on its own goes wrong, because 1 + 1/2 + 1/3 + ⋯ diverges. Pairing n with −n is what saves it: each factor 1 − x²/n² differs from 1 by x²/n², and those add up to a finite total. Our post on the radius of convergence of a power series covers the series side of this.
How can you practise the method?
Redo the whole argument for cosine.
Find the zeros of cos(πx): x = ±1/2, ±3/2, ±5/2, …
Guess the product: cos(πx) = (1 − 4x²/1²)(1 − 4x²/3²)(1 − 4x²/5²)⋯, then compare it with the cosine factorization on the Weierstrass theorem page.
Match x² coefficients with cos y = 1 − y²/2 + ⋯ to get 1 + 1/9 + 1/25 + ⋯ = π²/8.
Check it against Basel: the even terms 1/4 + 1/16 + ⋯ are a quarter of the full sum, so the odd terms are (3/4)(π²/6) = π²/8.
For a nested-root relative of Wallis, try Viète's formula for π.
If the Taylor series in step 3 feels shaky, the Fermi Concept Library gives each mathematics concept its own lesson, so you can patch the gap first. If you get stuck in the algebra, the Fermi Problem Library has worked problems with a step-by-step solver that explains the reasoning rather than printing an answer.



