Analysis

A table that never reaches π

Fill a square table with 1/1, 1/2, 1/3 along the rows, each row starting one place further on. Every row is a piece of the harmonic series, and yet the table stretches no vector by as much as π. At a thousand rows the stretch is 2.42, at a trillion it is near 2.94, and one integral explains both the number and the failure to arrive.
19 min read 6 figures Pi turns up uninvitedSmall cases lie

Worth reading first: A sum whose terms vanish and whose total does not · Which powers of x are enough.

The harmonic series has no sum, and it fails to have one in the most delicate possible way. Its terms shrink to nothing, its partial sums grow like a logarithm, and any faster decay, even by an extra power of a logarithm, would make it converge. A sequence that diverges this slowly is exactly the kind of object that can sit on the boundary of an inequality, and this essay is about one such boundary, where it produces two constants, π\pi and 2, and prevents any vector from ever reaching them.

The table is simple to describe. Its first row is 1,12,13,14,…1, \tfrac12, \tfrac13, \tfrac14, \ldots, its second row is the same with the first entry removed, and so on. So the entry in row ii and column jj is 1/(i+j−1)1/(i + j - 1). Every row and every column is a tail of the harmonic series. None of them can be summed, so an infinite table of this kind might be expected to multiply vectors into infinity. It does not. David Hilbert noticed around 1906 that the table acts as a bounded map on sequences of finite squared length, and Issai Schur found its exact constant in 1911. That constant is π\pi, and no circle appears anywhere in the table.

A table with harmonic rows. The Hilbert table of size 8 and its largest stretch 1.6959390, against pi.
Fig. 1 The table at size eight, shaded by the size of its entries: each row is a tail of the harmonic series, and the table’s largest stretch at this size is 1.6959.

Measuring the stretch

The right measure of a table acting on vectors is its largest stretch: the most that ∣Ax∣|Ax| can exceed ∣x∣|x|, over all non-zero xx. For a symmetric table this equals its largest eigenvalue, the top of the sphere’s height function, and it can be found by repeatedly multiplying a vector by the table and rescaling. Doing that, at sizes from one up to 2,000, gives the first exact data.

At size one, the table is the single entry 1. At size two the eigenvalue is 2/3+4/9−1/122/3 + \sqrt{4/9 - 1/12}, which is 1.26759, and the calculation can be done by hand. By size 8 it is 1.6959, by 20 it is 1.9071, by 200 it is 2.2743, and at 2,000 it is 2.5013.

Reaching π by a logarithm. Largest stretch of the Hilbert table: 1: 1.00000, 2: 1.26759, 3: 1.40832, 5: 1.56705, 8: 1.69594, 12: 1.79537, 20: 1.90713, 30: 1.98649, 50: 2.07630, 80: 2.15020, 120: 2.20810, 200: 2.27427, 300: 2.32202, 500: 2.37690, 800: 2.42277, 1200: 2.45918, 2000: 2.50133; the de Bruijn–Wilf estimate at 10^12 is 2.9412.
Fig. 2 The largest stretch of the table against its size on a logarithmic scale: computed up to 2,000, with the asymptotic formula of de Bruijn and Wilf dashed beyond, still short of the upper line at π\pi at 101210^{12}.

The numbers grow, and they grow astonishingly slowly. A hundred times more rows, from 20 to 2,000, adds about 0.6. That is the signature of a logarithm, and Nicolaas de Bruijn and Herbert Wilf found the exact form in 1962:

λn≈π−π52(ln⁡n)2.\lambda_n \approx \pi - \frac{\pi^5}{2 (\ln n)^2}.

The gap to π\pi falls only as the square of the logarithm of the size. Their estimate at a trillion rows gives about 2.94, which still leaves a gap of 0.2. At 2,000 the estimate is much too low, since it gives only about 0.49 against the real 2.50, so these small tables are nowhere near its range of validity; the further terms decay slowly as well. A table can be arbitrarily large and arbitrarily far from what a simple extrapolation predicts. This is the first point at which a picture would mislead. If the curve were shown only up to a thousand rows, it would look as if it might level off near 2.5, and the true limit would come as a shock.

The vector being chased

The computation also gives the best vector, and that is more informative than the number. Its entries for a table of 2,000 rows fall off along a straight line on logarithmic axes, with slope −12-\tfrac12, until near the end of the table, where they are cut down more steeply.

The vector the constant is chasing. The top singular vector of the Hilbert table of size 2000 against one over root k: largest stretch 2.50133; the plain vector gives a quotient of 2.44698.
Fig. 3 The best vector for a table of 2,000 rows on logarithmic axes, running along the dashed slope of 1/k1/\sqrt k until the table’s end forces it down.

So the extremal vector is trying to be xk=1/kx_k = 1/\sqrt k. Using that vector in the table of 2,000 rows gives a quotient of 2.4470, close to the top. The reason it cannot actually be used in an infinite table is the point. Its squared length is

∑k(1k)2=∑k1k,\sum_k \left(\frac{1}{\sqrt k}\right)^2 = \sum_k \frac 1k,

the harmonic series itself. It diverges. The vector that would reach π\pi has infinite length, so it is not a vector in the space, and every genuine vector falls short. It diverges so slowly that truncating it costs almost nothing, and the truncation can be done at any size, so the supremum is exactly π\pi and never attained. That explains the strangely slow convergence as well. To get close to π\pi, the cut-off vector has to have a long stretch on which it really does look like 1/k1/\sqrt k, and the length of that stretch is measured on the logarithmic scale on which its squared length grows. So the gap is a function of ln⁡n\ln n rather than of nn. The theorem about the table and the divergence of the harmonic series are one fact seen from two sides.

There is no eigenvector, either, which is an unfamiliar situation for a symmetric table. Wilhelm Magnus proved in 1950 that the infinite table has no eigenvalues at all, with a purely continuous spectrum filling the interval from 0 to π\pi. The finite tables have the opposite problem. Their smallest eigenvalues fall exponentially fast, by a factor of about e3.5e^{3.5} per row. That makes them the classic example of a badly conditioned matrix, whose inverses are exact and enormous and which defeat ordinary numerical linear algebra at a few dozen rows. That is because this table has another meaning, which leads back to polynomial approximation.

Another reading of the same table

The entry 1/(i+j−1)1/(i + j - 1) is an integral:

1i+j−1=∫01xi−1 xj−1 dx.\frac{1}{i + j - 1} = \int_0^1 x^{i - 1}\, x^{j - 1}\, dx.

So this table is a Gram matrix, the table of inner products of the functions 1,x,x2,…1, x, x^2, \ldots on the unit interval. That is the table met in which powers of xx are enough, where least squares with powers had to solve it. It is also what explains the tiny eigenvalues. The powers of xx on an interval are nearly dependent, since x20x^{20} and x21x^{21} are almost the same curve, so the table of their inner products is almost singular. And it gives a completely different way to see that the table is positive. Whatever the vector, ∑aiaj/(i+j−1)\sum a_i a_j/(i + j - 1) is the integral of the square of a polynomial, which cannot be negative.

The same reading gives the upper limit by way of an integral on a circle, which is how Hilbert’s constant was first attacked. The double sum can be written as an integral of f(t)g(t)f(t)g(t) against a function whose size is bounded by a constant on the circle, which yields π\pi again, a calculation with a Fourier series as its starting point. Tables whose entries depend only on i+ji + j are called Hankel matrices, and Zeev Nehari’s theorem of 1957 says that such a table is bounded exactly when its entries are the Fourier coefficients of some bounded function. Here that function is an explicit sawtooth with size π\pi. So the constant has a meaning. It is the largest value of a function whose Fourier coefficients are the harmonic series. That is the connection that makes the result stop looking accidental, and it is also why the circle shows up. The series ∑sin⁡(kt)/k\sum \sin(kt)/k sums to a sawtooth with values up to π/2\pi/2, one of the first Fourier series ever written down.

One integral

There is a shorter proof that shows where the number comes from without any of this. Issai Schur’s test bounds a table with non-negative entries by choosing weights. Apply the Cauchy–Schwarz inequality to ∑ajak/(j+k)\sum a_j a_k/(j + k), after writing each term as a product of two square roots and pulling a factor of (j/k)1/4(j/k)^{1/4} across. What is left to bound is, for each fixed jj,

∑k≥11j+kjk=∑k≥11j⋅1(1+k/j)k/j.\sum_{k \ge 1} \frac{1}{j + k} \sqrt{\frac jk} = \sum_{k \ge 1} \frac 1j \cdot \frac{1}{(1 + k/j)\sqrt{k/j}}.

That is a rectangle sum for the function f(x)=1/(x(1+x))f(x) = 1/(\sqrt x(1 + x)), with rectangles of width 1/j1/j.

π comes from one integral. The integral of 1/(sqrt(x)(1+x)) from 0 to infinity computed as 3.1415927; the rectangle sum lies under the falling curve.
Fig. 4 The curve 1/(x(1+x))1/(\sqrt x(1 + x)) with rectangles of width one under it, each taking its height from the right-hand end: because the curve only falls, the sum stays below the area, and the area is π\pi.

Because ff falls steadily, the rectangle sum lies below the area under the curve, and the substitution x=tan⁡2tx = \tan^2 t turns the area into

∫0∞dxx(1+x)=∫0π/22 dt=π.\int_0^\infty \frac{dx}{\sqrt x (1 + x)} = \int_0^{\pi/2} 2\, dt = \pi.

That is where the circle comes from. An arctangent lurks in the integral of 1/(1+x)1/(1 + x) against 1/x1/\sqrt x. It is the same as the circle in Leibniz’s series, and it comes from one substitution. And now both features of the theorem can be read from one picture. The bound is π\pi because the area is π\pi. Nothing reaches π\pi because the rectangle sum is strictly below the area. The table in the figure is the case 1/(j+k)1/(j + k); the table starting at 1/(i+j−1)1/(i + j - 1) needs a half-step shift in the rectangles, and the bound becomes a midpoint rule on a convex curve, which also falls below the area, as the convexity of a curve requires.

Hardy and the running average

The same construction works for a different operation. Given a sequence a1,a2,…a_1, a_2, \ldots, form the running averages An=(a1+⋯+an)/nA_n = (a_1 + \cdots + a_n)/n. Averaging seems as if it should make things smaller. A single spike is indeed flattened: (1,0,0,…)(1, 0, 0, \ldots) has squared length 1, and its running averages have squared length ∑1/n2=π2/6\sum 1/n^2 = \pi^2/6. That is already larger, which is the kind of number Basel’s problem gives, and it shows that averaging is not a contraction. So how much can it stretch?

G. H. Hardy proved in 1920 that the stretch is bounded, and Edmund Landau established the exact constant: the largest stretch of the averaging table is exactly 2. The computation at sizes up to 800 gives 1.1441 at 2, 1.4924 at 20, 1.6729 at 200, and 1.7393 at 800, with the same logarithmic slowness as before.

Averaging stretches by less than two. Largest stretch of the running-average table: 1: 1.00000, 2: 1.14412, 3: 1.22151, 5: 1.30917, 8: 1.37978, 12: 1.43340, 20: 1.49237, 30: 1.53323, 50: 1.57830, 80: 1.61441, 120: 1.64204, 200: 1.67290, 300: 1.69469, 500: 1.71922, 800: 1.73930; Hardy's constant 2 is not attained.
Fig. 5 The largest stretch of the running-average table against its size: below the dashed line at 2 at every size, and approaching it just as slowly as the first table approached π\pi.

The explanation is the same as for π\pi, but it is simpler. The nearly extremal vector is again ak=1/ka_k = 1/\sqrt k. Its running sum is ∑j≤n1/j≈2n\sum_{j \le n} 1/\sqrt j \approx 2\sqrt n, by comparing with an integral, so its running average is about 2/n2/\sqrt n. The average is the term multiplied by exactly 2, at every nn. That is the whole of the constant. The vector would reach it, and the squared length of that vector is the harmonic series again, so it is not a vector. Hardy’s inequality has become a standard tool in the theory of differential equations, in its continuous form, for bounding a function by its derivative, and it is one of the first results that students of analysis meet where the extremal case does not exist.

A whole family, ending at ee

Hardy’s inequality comes with a power. For every p>1p > 1,

∑nAnp≤(pp−1)p∑nanp,\sum_n A_n^p \le \left(\frac{p}{p - 1}\right)^p \sum_n a_n^p,

and the constant is the best possible. The extremal shape is now ak=k−1/pa_k = k^{-1/p}, whose pp-th powers are, once again, the harmonic series.

Every power has its own constant, and e is the last. Hardy's constant (p/(p−1))^p: 1.25: 7.4767, 1.5: 5.1962, 2: 4.0000, 3: 3.3750, 4: 3.1605, 6: 2.9860, 10: 2.8680, 20: 2.7895, 40: 2.7531; it falls to e as p grows.
Fig. 6 The constant in Hardy’s inequality against the power pp: it blows up as pp falls to one and falls towards the dashed line at ee as pp grows.

The curve has two informative ends. As pp falls to one, the constant goes to infinity. It must: at p=1p = 1, a single spike (1,0,0,…)(1, 0, 0, \ldots) gives running averages 1,12,13,…1, \tfrac12, \tfrac13, \ldots, whose sum is the harmonic series, so nothing can bound it. At p=2p = 2, the constant is 4, the square of the stretch 2. At p=3p = 3 it is 3.375.

As pp grows, the constant falls towards lim⁡(1+1/(p−1))p=e\lim (1 + 1/(p - 1))^p = e, and it has a meaning there too. Replace each ana_n by an1/pa_n^{1/p}, apply the inequality, and let pp go to infinity. The mean of the pp-th roots, raised to the pp-th power, tends to the geometric mean, and that gives Carleman’s inequality of 1923:

∑n(a1a2⋯an)1/n≤e∑nan.\sum_n (a_1 a_2 \cdots a_n)^{1/n} \le e \sum_n a_n.

So ee arrives at the end of a family that began with the harmonic series, and it too is the best possible and never attained. Carleman needed this for a problem about when a function is determined by its moments. An inequality is usually a tool, but here the sequence of best constants is itself an interesting sequence, and it runs from infinity through 4 down to ee. The same structure, a slowly diverging vector just out of reach, gives them all.

What the numbers do not settle

Power iteration at size 2,000 is accurate to about the digits shown, but it does not by itself establish that the sequence is heading for π\pi, and the figures would not suggest so. Nothing computed here distinguishes a limit of π\pi from a limit of 3 or 4. The theorem does that, from the proof using one integral. The asymptotic dashed curve is an analytic estimate, and it is not close to the computed points at small sizes, so no direct comparison between the two was possible in this range. In the calculations that were possible, these slow rates mean that the computed data can never test the leading constant: it would take a table of astronomically many rows to reach the formula’s own range.

So what the pictures supply is a sense of how slow this is and what the extremal shape looks like. The limits are proved, by the argument given and by those quoted. The picture of a smoothly rising curve hides one more fact too. The continuous spectrum means that the finite tables’ eigenvalues fill out a whole interval as the size grows, so these curves are only the top of a growing, dense family.

What was computed and what was quoted

The stretches of both tables were computed by power iteration on the exact entries, at sizes shown, with several hundred or more iterations, and the small cases agree with the exact formula. The sizes are not large enough to test the asymptotic formula. The integral was computed numerically to seven places and evaluated exactly above. The best vector and the quotient at 1/k1/\sqrt k were computed at size 2,000.

The theorems of Hilbert, Schur, Hardy, Landau, Carleman, Magnus, Nehari and de Bruijn and Wilf are quoted, with the proofs given where they fit, and their attributions and dates are from standard accounts. The claim about the smallest eigenvalues falling like e3.5ne^{3.5n} is quoted and was not measured here, though the near-dependence of the powers of xx is direct.

Still open: the right constants away from two

For p=2p = 2 the story is as complete as anything in analysis. For matrices of this shape acting from one ℓp\ell^p space to another, it is less so. Hilbert’s inequality for general pp has the constant π/sin⁡(π/p)\pi/\sin(\pi/p), also known exactly. But what is the exact stretch of the finite table for any fixed size, and what are the lower-order terms? de Bruijn and Wilf give the leading gap, and Hans Widom and others have studied the rest. The next terms are known in forms involving ln⁡ln⁡n\ln \ln n, but there is no closed form for λn\lambda_n at any large nn, and no one expects one.

A sharper and more active question concerns the same table restricted to subsets of the rows. Take only rows and columns indexed by some sparse set of numbers: what is the largest stretch of the table on the primes, or on the squares? The answer depends on how quickly the set thins out and on what kind of cancellation is available. Multiplicative versions, with 1/lcm(i,j)1/\mathrm{lcm}(i, j) or with (i,j)/[i,j]\sqrt{(i,j)/[i,j]} in the entries, have been studied by Gál, Aistleitner, Seip and others, and those give large values of the zeta function on a line, so the question has real arithmetic behind it. The limit for one kind of subset depends on how the harmonic series of the primes grows, and the exact constants remain unknown.

A vector of infinite length

The table with entries 1/(i+j−1)1/(i + j - 1) stretches every vector by less than π\pi, the running-average table by less than 2, and neither constant is ever reached. The bound comes from one falling curve whose area is π\pi, or from one calculation showing that a slowly decaying tail doubles under averaging.

The reason that nothing reaches them is a shared one. Each inequality would be an equality on a sequence of the shape k−1/pk^{-1/p}, whose pp-th powers are the harmonic series. It diverges, so that sequence has no norm, and it diverges so slowly that truncating it is nearly free. Every finite version therefore comes close, and the gap closes only on the scale of a logarithm. It is a strange way for a constant to be sharp, and it is the harmonic series’ own doing. Its divergence decides where the constant is, and how slowly it can be approached.

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.

Cauchy schwarzConvergence rateEigenvalueHarmonic seriesInequalityLimitMatrixPi