{
  "id": "basel-problem",
  "title": "Basel Problem",
  "lang": "en",
  "source_lang": "en",
  "summary": "The Basel problem asks for the exact sum of the reciprocals of the positive integer squares, which Euler showed equals π²/6.",
  "category": "mathematics",
  "subcategory": "analysis",
  "type": "concept",
  "aliases": [
    "Basel sum",
    "Reciprocal-square summation problem"
  ],
  "generated_at": "2026-11-05",
  "model": "pro/gpt-6.1-sol",
  "url": "https://aiwiki.page/en/basel-problem/",
  "translations": {
    "zh-Hans": {
      "url": "https://aiwiki.page/zh/basel-problem/",
      "json": "https://aiwiki.page/zh/basel-problem.json"
    }
  },
  "sections": [
    {
      "heading": "",
      "text": "The Basel problem is the problem of finding the exact value of the infinite series\n\n\\[\\sum_{n=1}^{\\infty}\\frac{1}{n^2} =1+\\frac14+\\frac19+\\frac1{16}+\\cdots.\\]\n\nIts solution is\n\n\\[\\boxed{\\displaystyle \\sum_{n=1}^{\\infty}\\frac{1}{n^2}=\\frac{\\pi^2}{6}},\\]\n\nwhere \\pi is the circle constant. First posed by Pietro Mengoli in 1650 and solved by Leonhard Euler in 1735, the problem became a landmark in the study of infinite processes. It connects elementary summation with analysis, number theory, and the Riemann zeta function."
    },
    {
      "heading": "Statement and convergence",
      "text": "The problem asks for an exact evaluation, not merely a proof that the sum exists or a decimal approximation. Its value is approximately\n\n\\[1.644934066848226.\\]\n\nConvergence follows from a simple comparison with an integral. Since \\(x^{-2}\\) is positive and decreasing for \\(x>0\\), the remainder after \\(N\\) terms satisfies\n\n\\[\\int_{N+1}^{\\infty}\\frac{dx}{x^2} \\leq \\sum_{n=N+1}^{\\infty}\\frac{1}{n^2} \\leq \\int_N^{\\infty}\\frac{dx}{x^2}.\\]\n\nConsequently,\n\n\\[\\frac{1}{N+1} \\leq \\sum_{n=N+1}^{\\infty}\\frac{1}{n^2} \\leq \\frac{1}{N}.\\]\n\nThese bounds prove convergence and give an explicit estimate of the truncation error. They do not, however, identify the sum as \\(\\pi^2/6\\). That exact identification was the central difficulty.\n\nThe series is a special case of\n\n\\[\\sum_{n=1}^{\\infty}\\frac{1}{n^p},\\]\n\nwhich converges for real \\(p>1\\) and diverges for \\(p\\leq 1\\). In particular, the corresponding series with \\(p=1\\), the harmonic series, diverges."
    },
    {
      "heading": "Historical development",
      "text": "Mengoli posed the reciprocal-square summation problem in 1650. It subsequently attracted several leading mathematicians, including members of the Bernoulli family. The conventional name refers to Basel, the Swiss city associated with the Bernoullis and with Euler, who was born there.\n\nEuler obtained the exact value in 1735. His decisive idea was to treat the sine function in a way analogous to a polynomial: express it through its zeros, then compare coefficients with its known power series.\n\nThis approach was remarkably productive, but it required care. An infinite product cannot automatically be manipulated as though it were a finite polynomial, and the zeros of a function alone do not determine the function. Modern treatments justify Euler’s product identity and the coefficient comparison using convergence results from analysis.\n\nEuler’s work also extended beyond the original problem to sums of reciprocal even powers, revealing a systematic relationship between these series and powers of \\(\\pi\\)."
    },
    {
      "heading": "Euler’s sine-product method",
      "text": "The nonzero zeros of \\(\\sin x\\) occur at\n\n\\[x=\\pm n\\pi,\\qquad n=1,2,3,\\ldots.\\]\n\nPairing the positive and negative zeros suggests the product\n\n\\[\\frac{\\sin x}{x} = \\prod_{n=1}^{\\infty} \\left(1-\\frac{x^2}{n^2\\pi^2}\\right),\\]\n\nwith the left-hand side interpreted as \\(1\\) at \\(x=0\\).\n\nThe Taylor series gives\n\n\\[\\frac{\\sin x}{x} = 1-\\frac{x^2}{6}+\\frac{x^4}{120}-\\cdots.\\]\n\nFor a finite product,\n\n\\[\\prod_{n=1}^{N} \\left(1-\\frac{x^2}{n^2\\pi^2}\\right),\\]\n\nthe coefficient of \\(x^2\\) is\n\n\\[-\\frac{1}{\\pi^2}\\sum_{n=1}^{N}\\frac{1}{n^2}.\\]\n\nPassing to the infinite product and comparing with the coefficient \\(-1/6\\) therefore yields\n\n\\[-\\frac{1}{\\pi^2}\\sum_{n=1}^{\\infty}\\frac{1}{n^2} =-\\frac16,\\]\n\nwhich proves the result.\n\nWhy the infinite-product step needs justification\n\nKnowing a function’s zeros is not sufficient to establish its product representation: multiplying by a nonvanishing analytic function preserves the zeros. Thus the displayed sine product requires an independent proof.\n\nOnce that identity is established, its locally uniform convergence in the complex plane permits coefficient comparison. Here, “locally uniform” means uniform convergence on each compact subset. This distinction illustrates an important principle of complex analysis: intuitive algebra with infinite expressions becomes rigorous only after appropriate convergence and normalization conditions are supplied."
    },
    {
      "heading": "A Fourier-series proof",
      "text": "A different proof uses the Fourier series of \\(f(x)=x^2\\) on \\([-\\pi,\\pi]\\), extended periodically.\n\nBecause \\(x^2\\) is even, all sine coefficients vanish. Its constant coefficient is\n\n\\[a_0=\\frac{1}{\\pi}\\int_{-\\pi}^{\\pi}x^2\\,dx =\\frac{2\\pi^2}{3}.\\]\n\nFor \\(n\\geq1\\), two applications of integration by parts give\n\n\\[a_n=\\frac{2}{\\pi}\\int_0^\\pi x^2\\cos(nx)\\,dx =\\frac{4(-1)^n}{n^2}.\\]\n\nHence\n\n\\[x^2=\\frac{\\pi^2}{3} +4\\sum_{n=1}^{\\infty}\\frac{(-1)^n\\cos(nx)}{n^2}.\\]\n\nThe periodic extension is continuous and piecewise smooth, so the Fourier series converges to the function, including at \\(x=\\pi\\). Substituting that value gives\n\n\\[\\pi^2=\\frac{\\pi^2}{3} +4\\sum_{n=1}^{\\infty}\\frac{1}{n^2},\\]\n\nand therefore\n\n\\[\\sum_{n=1}^{\\infty}\\frac{1}{n^2}=\\frac{\\pi^2}{6}.\\]\n\nThis proof connects the original summation problem to harmonic analysis rather than to an infinite product."
    },
    {
      "heading": "Connection with the zeta function",
      "text": "For a complex number \\(s\\) with \\(\\operatorname{Re}(s)>1\\), the Riemann zeta function is defined by\n\n\\[\\zeta(s)=\\sum_{n=1}^{\\infty}\\frac{1}{n^s}.\\]\n\nThe Basel problem is precisely the evaluation\n\n\\[\\zeta(2)=\\frac{\\pi^2}{6}.\\]\n\nMore generally, Euler’s formula for positive integers \\(k\\) is\n\n\\[\\zeta(2k) = (-1)^{k+1} \\frac{B_{2k}(2\\pi)^{2k}}{2(2k)!},\\]\n\nwhere \\(B_{2k}\\) are Bernoulli numbers. For example,\n\n\\[\\zeta(4)=\\frac{\\pi^4}{90}, \\qquad \\zeta(6)=\\frac{\\pi^6}{945}.\\]\n\nThus every positive even zeta value is a rational multiple of the corresponding even power of \\(\\pi\\). No comparable general evaluation is known for the positive odd values \\(\\zeta(3),\\zeta(5),\\ldots\\). The irrationality of \\(\\zeta(3)\\) is known, but an analogous formula in powers of \\(\\pi\\) is not."
    },
    {
      "heading": "Consequences and applications",
      "text": "Coprime integer pairs\n\nThe unique factorization of integers gives the Euler product\n\n\\[\\zeta(2)=\\prod_{p\\ \\mathrm{prime}}\\frac{1}{1-p^{-2}}.\\]\n\nTaking reciprocals yields\n\n\\[\\prod_{p\\ \\mathrm{prime}}\\left(1-\\frac{1}{p^2}\\right) =\\frac{6}{\\pi^2}.\\]\n\nThis constant is the limiting proportion of pairs of positive integers that are coprime:\n\n\\[\\lim_{N\\to\\infty} \\frac{ \\#\\{(a,b):1\\leq a,b\\leq N,\\ \\gcd(a,b)=1\\} }{N^2} =\\frac{6}{\\pi^2}.\\]\n\nHere \\(\\gcd(a,b)\\) denotes the greatest common divisor. The finite sampling and limiting formulation matters: there is no uniform probability distribution on all positive integers.\n\nRelated reciprocal-square sums\n\nSeparating the even and odd terms immediately gives\n\n\\[\\sum_{n=1}^{\\infty}\\frac{1}{(2n)^2} =\\frac{\\pi^2}{24},\\]\n\nand\n\n\\[\\sum_{n=0}^{\\infty}\\frac{1}{(2n+1)^2} =\\frac{\\pi^2}{8}.\\]\n\nSubtracting the even terms from the odd terms also gives\n\n\\[\\sum_{n=1}^{\\infty}\\frac{(-1)^{n-1}}{n^2} =\\frac{\\pi^2}{12}.\\]\n\nNumerical computation\n\nDirect summation is simple but relatively slow: its error is of order \\(1/N\\). More precisely, the asymptotic expansion of the remainder begins\n\n\\[\\frac{\\pi^2}{6}-\\sum_{n=1}^{N}\\frac{1}{n^2} = \\frac{1}{N} -\\frac{1}{2N^2} +\\frac{1}{6N^3} -\\frac{1}{30N^5} +O(N^{-7}).\\]\n\nAdding these correction terms to a finite sum greatly improves accuracy. The example distinguishes two questions in numerical analysis: whether an approximation converges, and how quickly it approaches its limit."
    }
  ],
  "links": [
    "infinite-series",
    "pi",
    "leonhard-euler",
    "mathematical-analysis",
    "number-theory",
    "riemann-zeta-function",
    "integral",
    "polynomial",
    "power-series",
    "taylor-series",
    "analytic-function",
    "uniform-convergence",
    "complex-analysis",
    "fourier-series",
    "integration-by-parts",
    "harmonic-analysis",
    "complex-number",
    "fundamental-theorem-of-arithmetic",
    "greatest-common-divisor",
    "asymptotic-expansion",
    "numerical-analysis"
  ],
  "sources": [],
  "license": "https://creativecommons.org/licenses/by/4.0/"
}