Analysis

Only one curve through the factorials bends the right way

Infinitely many smooth curves pass through 1, 1, 2, 6, 24, 120, and some of them even obey the factorial's own rule, f(x + 1) = (x + 1)·f(x), at every x. Ask that the logarithm of the curve bend upwards everywhere and exactly one survives — Euler's integral. A wiggle of any size breaks the condition somewhere, the smaller the wiggle the further out, and the proof that nothing else survives is a squeeze that computes √π along the way.

Worth reading first: A rectangle cut by a curve · A series that waits on π.

A rectangle cut by a curve integrated by parts over and over and found the factorials among the areas: the area under xne−xx^n e^{-x} over the whole half-line is n!n!. Because the area makes sense when nn is not a whole number, it extends the factorial to every positive real number — Euler’s gamma function, Γ(s)=∫0∞xs−1e−x dx\Gamma(s) = \int_0^\infty x^{s-1} e^{-x}\,dx, with Γ(n+1)=n!\Gamma(n+1) = n!. The extension gives (12)!=π/2(\tfrac12)! = \sqrt\pi/2, puts the factorial into the volumes of balls in every dimension, and is so useful that it is easy to forget to ask whether it is the only possible one.

It is not. Infinitely many smooth curves pass through every factorial. So the question is what makes Euler’s choice the factorial of a fraction rather than a factorial. The answer, found by Harald Bohr and Johannes Mollerup in 1922, is a single condition on the shape of the curve: its logarithm must bend upwards everywhere. This essay draws the impostors that condition rules out, measures how each one fails it, and runs the squeeze that proves nothing else survives.

The factorials, and three smooth curves through all of them. Γ(x+1), Γ(x+1)(1 + 0.5 sin² πx) and the degree-six interpolating polynomial through 0!…6!, on a log scale over 0 ≤ x ≤ 5.4; at x = 1/2: 0.88623, 1.32934, -3.58301.
Fig. 1 The factorials 0!0! to 5!5! (dots) on a logarithmic scale and three smooth curves through every one of them: Euler’s integral Γ(x+1)\Gamma(x+1), the same times 1+12sin⁡2πx1 + \tfrac12\sin^2 \pi x, and the polynomial of degree six through 0!0! to 6!6!.

Values do not decide a curve

The first impostor is the easiest to build. Any finite list of points is passed through by a polynomial, and the polynomial of degree six through 0!,1!,…,6!0!, 1!, \dots, 6! matches the factorial at those seven points exactly. Between them it does what it likes: at x=12x = \tfrac12 it gives −3.58-3.58, a negative factorial, while Euler’s integral gives 0.88620.8862. A polynomial through the first hundred factorials would do something different again, and nothing about the values alone prefers any of them.

The second impostor is more insidious. Multiply Γ(x+1)\Gamma(x+1) by 1+12sin⁡2πx1 + \tfrac12 \sin^2 \pi x. The extra factor is exactly 1 at every whole number, since sin⁡πn=0\sin \pi n = 0, so the product passes through every factorial. And because sin⁡2πx\sin^2 \pi x repeats with period 1, the product also obeys the factorial’s own rule, f(x+1)=(x+1) f(x)f(x+1) = (x+1)\,f(x), at every real xx — not just at whole numbers. At x=12x = \tfrac12 it gives 1.32931.3293. It is as good a factorial as Euler’s by every test the factorial itself can supply.

Values and the rule together therefore leave infinitely many candidates. The figure that divides each candidate by Γ(x+1)\Gamma(x+1) shows exactly how much freedom is left.

Each candidate for the factorial divided by the gamma function. Ratios to Γ(x+1) on 0…6: the wiggled curve periodic (1 + 0.5 sin² πx), the polynomial -4.0430, 2.0738, 0.7132, 1.1021, 0.9465, 1.0502 at half-integers.
Fig. 2 Each candidate divided by Γ(x+1)\Gamma(x+1): the wiggled curve (orange) and the polynomial through 0!0! to 6!6! (green), for 0≤x≤60 \le x \le 6. Both ratios are 1 at every whole number.

Any function that obeys f(x+1)=(x+1)f(x)f(x+1) = (x+1) f(x) and is never nought is Γ(x+1)\Gamma(x+1) times a function of period one: divide the rule for ff by the rule for Γ\Gamma and the ratio p(x)p(x) satisfies p(x+1)=p(x)p(x+1) = p(x). The orange ratio repeats exactly, 1+12sin⁡2πx1 + \tfrac12\sin^2\pi x, over and over. The polynomial only matches values, and its ratio drifts: −4.04-4.04, 2.072.07, 0.710.71, 1.101.10, 0.950.95, 1.051.05 at the half-integers from 12\tfrac12 to 5125\tfrac12. The rule turns the question “which curve?” into the question “which periodic factor?”, and the answer has to come from somewhere else.

This is the same situation as a function that adds and is nowhere a line, where the rule f(x+y)=f(x)+f(y)f(x + y) = f(x) + f(y) has the obvious solutions f(x)=cxf(x) = cx and also, with the axiom of choice, wild solutions that are nowhere continuous. A rule about how a function behaves under a shift or a sum pins it down only on a skeleton — the whole numbers, or the rationals — and between the bones anything consistent with the rule is allowed. What rescues the obvious solution in both cases is a condition of regularity. For the additive rule, continuity at a single point is enough. For the factorial’s rule, continuity is not enough — the wiggled curve is perfectly smooth — and something stronger about shape is needed.

The logarithm that bends upwards

The condition Bohr and Mollerup found concerns the logarithm of the curve.

The logarithm of the gamma function, and of an impostor. log Γ(x+1) and log of Γ(x+1)(1 + 0.5 sin² πx) on 0 ≤ x ≤ 4.5; the impostor's logarithm is concave on 5 stretches covering 54% of the range.
Fig. 3 The logarithms of Γ(x+1)\Gamma(x+1) (blue) and of Γ(x+1)(1+12sin⁡2πx)\Gamma(x+1)(1 + \tfrac12\sin^2\pi x) (orange) for 0≤x≤4.50 \le x \le 4.5, shaded where the orange curve bends downwards.

The logarithm of Γ\Gamma bends upwards everywhere. Its second derivative is the sum ∑k≥01/(x+k)2\sum_{k \ge 0} 1/(x+k)^2, which is positive at every point, and so every chord of the curve lies above it: log⁡Γ\log \Gamma is a convex function, and Γ\Gamma is called log-convex. The wiggled curve’s logarithm is log⁡Γ(x+1)\log\Gamma(x+1) plus log⁡(1+12sin⁡2πx)\log(1 + \tfrac12 \sin^2 \pi x), and the second term bends down hard just beyond each whole number; over 54% of the range drawn, the sum bends downwards. It is not log-convex.

Log-convexity is a natural condition, not an arbitrary one. It says that the ratio f(x+h)/f(x)f(x+h)/f(x), for a fixed step hh, never decreases as xx grows: the factorial multiplies by n+1n + 1 to get from n!n! to (n+1)!(n+1)!, and those multipliers grow, so a curve whose growth rate ever falls back has done something the factorials never do. It is also the property that makes the average of a curve and the curve of an average compare the right way for the logarithm, which is where many of the gamma function’s inequalities come from. Bohr and Mollerup’s theorem is that it is enough:

The gamma function is the only function on the positive reals that is positive, log-convex, takes the value 1 at 1, and satisfies f(x+1)=xf(x)f(x+1) = x f(x).

Emil Artin made the theorem the definition, in a short book of 1931 that develops every property of Γ\Gamma from those three conditions rather than from the integral. The integral then becomes a formula for the unique function the conditions describe, rather than its definition.

Why the logarithm, and not the curve

It is tempting to ask for something simpler: that the curve itself bend upwards, with no logarithm. Γ(x+1)\Gamma(x+1) does bend upwards for every positive xx, and a wiggled curve of size one half visibly does not. But a small wiggle passes this weaker test everywhere. For a=0.03a = 0.03 the curve Γ(x+1)(1+asin⁡2πx)\Gamma(x+1)(1 + a\sin^2\pi x) has a positive second derivative at every point checked from x=0x = 0 to x=60x = 60, the closest call being near x=12x = \tfrac12, and beyond that its growth makes failure impossible: the curvature of the factorial, relative to its size, grows like the square of log⁡x\log x, while the wiggle’s relative curvature stays below 2π2a2\pi^2 a. For a=0.01a = 0.01 and a=0.001a = 0.001 the margin is wider still. So there are infinitely many convex curves through the factorials that obey the factorial’s rule, and plain convexity cannot choose among them.

The logarithm makes the difference because it removes the growth. A curve that grows like n!n! bends upwards so strongly that a small periodic factor is invisible to the curve’s own curvature; the logarithm of the curve grows only like nlog⁡nn \log n, and the curvature of that straightens out as xx grows, so the periodic factor is eventually exposed. Asking for convexity of the logarithm is asking for convexity at the right scale — the scale at which the factorial’s growth has been divided out and only its rate of growth is being examined. That rate is what the multipliers 1,2,3,…1, 2, 3, \dots describe, and the condition says the rate never falls back.

The straightening of log⁡n!\log n! is the same fact that Stirling’s approximation expresses in numbers: log⁡n!\log n! is nlog⁡n−nn \log n - n plus terms that grow ever more slowly, so over any stretch of fixed length it is almost a straight line. And the chords and slopes that the squeeze compares are the supporting lines of a convex function, the objects a line under every point builds every convex curve from: a log-convex function is one whose logarithm lies above each of its tangent lines, and the squeeze is just two of those tangent lines and a chord, read off at the factorials.

Every wiggle fails somewhere

The wiggle in the figures was large, and failed log-convexity everywhere. A small enough wiggle seems as though it ought to survive: the logarithm of Γ\Gamma bends upwards with a definite curvature, and a tiny periodic disturbance should not be able to overturn it.

How long a small wiggle keeps the factorial log-convex. a 0.3: fails at x ≈ 0.27; a 0.1: fails at x ≈ 0.34; a 0.03: fails at x ≈ 1.42; a 0.01: fails at x ≈ 5.42; a 0.003: fails at x ≈ 16.49; a 0.001: fails at x ≈ 50.48; a 0.0003: fails at x ≈ 171.48; a 0.0001: fails at x ≈ 512.47; slope -0.994.
Fig. 4 For wiggles Γ(x+1)(1+asin⁡2πx)\Gamma(x+1)(1 + a\sin^2\pi x) of size aa from 0.3 down to 0.0001, the first xx at which the logarithm stops bending upwards (dots, both scales logarithmic), and the estimate 1/(2π2a)−11/(2\pi^2 a) - 1 (line).

For small xx it does survive. A wiggle of size a=0.0001a = 0.0001 keeps the logarithm convex all the way to x≈512x \approx 512. But it fails there, and every wiggle fails somewhere. The reason is a race between two curvatures. The curvature of log⁡Γ(x+1)\log\Gamma(x+1) is about 1/x1/x for large xx, so the logarithm straightens out as xx grows — over any stretch of fixed length, log⁡n!\log n! becomes nearly a straight line. The wiggle’s curvature does not shrink: log⁡(1+asin⁡2πx)\log(1 + a\sin^2\pi x) bends down by up to about 2π2a2\pi^2 a just beyond each whole number, at every xx. The two cross where 1/x≈2π2a1/x \approx 2\pi^2 a, which is the estimate drawn as the line, and halving the wiggle doubles how far out it survives — the measured slope is −0.99-0.99.

So log-convexity on a bounded interval would not single out Γ\Gamma; small wiggles pass it. Log-convexity on the whole half-line does, because the condition grows stricter as the logarithm straightens, and eventually no periodic factor other than the constant 1 is allowed. Any proof of the theorem must use the condition far out along the half-line, and the one that does is a squeeze.

The squeeze that proves it

Suppose ff is positive, log-convex, has f(1)=1f(1) = 1 and satisfies f(x+1)=xf(x)f(x+1) = x f(x). Then f(n)=(n−1)!f(n) = (n-1)! at every whole number. Fix 0<x≤10 < x \le 1 and a whole number n≥2n \ge 2, and compare three slopes of the convex function log⁡f\log f: over [n−1,n][n-1, n], over [n,n+x][n, n+x], and over [n,n+1][n, n+1]. Convexity puts them in increasing order, and the first and last are log⁡(n−1)\log(n-1) and log⁡n\log n. That gives

(n−1)x (n−1)!  ≤  f(n+x)  ≤  nx (n−1)!,(n-1)^x\,(n-1)! \;\le\; f(n+x) \;\le\; n^x\,(n-1)!,

and the rule carries f(n+x)f(n+x) back to f(x)f(x) by dividing by x(x+1)⋯(x+n−1)x(x+1)\cdots(x+n-1).

Log-convexity squeezes the gamma function between two products. Γ(x) on (0.2, 1] between the bounds (n−1)ˣ(n−1)!/(x…(x+n−1)) and nˣ(n−1)!/(x…(x+n−1)) for n = 2, 4, 16; at x = 1/2, n = 16 the bounds are 1.72963 and 1.78635 around √π = 1.77245.
Fig. 5 On 0.2≤x≤10.2 \le x \le 1, the gamma function (thick) and, for n=2n = 2, 4 and 16, the lower (dashed) and upper bounds that log-convexity forces on any function satisfying the three conditions.

The two bounds differ by the factor (n/(n−1))x(n/(n-1))^x, which tends to 1 as nn grows. So for every nn the function ff is trapped in a band around a specific value, the band shrinks to nothing, and f(x)f(x) is determined: it is the common limit,

f(x)=lim⁡n→∞nx (n−1)!x(x+1)⋯(x+n−1),f(x) = \lim_{n\to\infty} \frac{n^x\,(n-1)!}{x(x+1)\cdots(x+n-1)},

which is Gauss’s product formula for the gamma function. It is also, in another form, how the function first appeared: Euler’s letters to Christian Goldbach in 1729 introduced the extended factorial as an infinite product of exactly this kind, and the integral came afterwards. The squeeze explains why the product and the integral had to agree — both are log-convex, both obey the rule, and there is room for only one such function. Since Γ\Gamma satisfies all three conditions, f=Γf = \Gamma on (0,1](0, 1], and the rule extends the agreement to every positive xx. The whole proof is one comparison of slopes and one limit, and it uses the condition at nn, as far out as needed — exactly where the wiggles fail.

A squeeze is also a computation

The bounds are explicit, so the proof is also an algorithm. At x=12x = \tfrac12 the function’s value is Γ(12)=π\Gamma(\tfrac12) = \sqrt\pi, and the squeeze traps it.

Bounds on the square root of π from log-convexity alone. n 2: [1.333333, 1.885618]; n 3: [1.508494, 1.847521]; n 4: [1.583589, 1.828571]; n 6: [1.652044, 1.809724]; n 8: [1.684071, 1.800348]; n 12: [1.714760, 1.791008]; n 16: [1.729629, 1.786353]; n 24: [1.744195, 1.781709]; n 32: [1.751367, 1.779391]; n 64: [1.761990, 1.775919]; n 128: [1.767242, 1.774186]; n 256: [1.769853, 1.773320]; n 1024: [1.771804, 1.772670].
Fig. 6 The two products that log-convexity forces around Γ(12)=π\Gamma(\tfrac12) = \sqrt\pi, for nn from 2 to 1,024: the width of the interval between them, both scales logarithmic.

With n=2n = 2 the interval is 1.333 to 1.886; with n=16n = 16, 1.7296 to 1.7864; with n=1,024n = 1{,}024, 1.771804 to 1.772670, around π=1.772454\sqrt\pi = 1.772454. The width shrinks like π/(2n)\sqrt\pi/(2n), so the squeeze is a slow way to compute π\sqrt\pi — each extra digit costs ten times as many factors — but it is a proof and a computation at once, with nothing used beyond the three conditions. A squeeze of the same shape — each area trapped between its two neighbours — is what produced Wallis’s product for π\pi from the powers of a sine in the essay that found the factorials among areas, and the agreement is not a coincidence: Wallis’s product is Gauss’s product formula evaluated at x=12x = \tfrac12.

A faster route to π\sqrt\pi exists — it is the area under the bell curve, squared and computed in polar coordinates — and the fact that the slow squeeze gives the same number is a check that the three conditions really do describe Euler’s integral rather than some other function that happens to match the factorials.

Other ways to pick the factorial

Log-convexity is not the only condition that singles out Γ\Gamma. Helmut Wielandt proved in 1939 that among functions of a complex variable, Γ\Gamma is the only one that is analytic for positive real part, satisfies the rule and f(1)=1f(1) = 1, and stays bounded on the strip 1≤Re⁡z≤21 \le \operatorname{Re} z \le 2. The wiggled curve fails that condition too: sin⁡2πz\sin^2 \pi z grows exponentially away from the real axis, so its periodic factor is unbounded on the strip. Again a regularity condition — this time growth in the complex plane rather than bending on the real line — rules out every periodic factor but the constant.

There are also extensions that deliberately give up the rule. Jacques Hadamard wrote down in 1894 a function that agrees with (n−1)!(n-1)! at every positive whole number and is analytic in the entire complex plane, with no poles at the negative integers — something Γ\Gamma cannot do, since Γ\Gamma has a pole at every non-positive integer. Hadamard’s function does not satisfy f(x+1)=xf(x)f(x+1) = x f(x) away from the whole numbers. The choice between it and Γ\Gamma is a choice between keeping the rule and keeping analyticity everywhere, and mathematics has overwhelmingly kept the rule, because the rule is what the factorial is for: the integrals of areas undoing slopes, the counting formulas and the volumes all use the step from nn to n+1n+1.

The gamma function also has a property that marks it as transcendental in a strong sense. Otto Hölder proved in 1887 that it satisfies no algebraic differential equation — no polynomial relation among Γ\Gamma and finitely many of its derivatives. Log-convexity picks it out among extensions of the factorial; Hölder’s theorem says that, once picked, it is not reachable from the familiar functions by any equation of that kind.

What the figures cannot show

The figures show finitely many impostors and finitely many values of nn. The ratio figure shows that two particular candidates differ from Γ\Gamma by a periodic factor or by something worse; it does not show that every candidate obeying the rule is Γ\Gamma times a periodic factor, which is a two-line argument rather than a picture. The failure figure measures where eight particular wiggles stop being log-convex; the claim that every non-constant periodic factor fails somewhere is the content of the theorem and is proved by the squeeze, not by the measurements. And the squeeze figure shows the bounds for three values of nn on part of an interval; the limit, which is the proof, is not something a figure can contain.

There is also something the figures quietly assume. Every curve here is computed from the gamma function itself — the impostors are built by multiplying it by something — so the pictures cannot show what a log-convex extension of the factorial would look like if one were found by some other route. The theorem says there is nothing to find, and the pictures are consistent with that, which is all a picture can be.

Still open: conditions that work for other sequences

For the factorial, the question is closed: three conditions, one function, a two-line proof by squeezing. The same question can be asked of any sequence defined by a rule, and for many of them it is not settled which regularity condition picks out the natural interpolation, or whether one exists. For products of the form f(x+1)=g(x)f(x)f(x+1) = g(x) f(x) with gg log-concave, theorems of the Bohr–Mollerup type have been proved by Wolfgang Krull and others, and they single out a unique log-convex solution; for faster-growing sequences such as the superfactorials 1! 2!⋯n!1!\,2!\cdots n!, the corresponding extension — the Barnes G-function — is singled out by a stronger condition, convexity of a higher derivative of its logarithm, and a general account of which condition fits which rule is still being worked out.

A sharper question is quantitative. Log-convexity is a strong condition, and Wielandt’s boundedness is a different strong condition; how weak a condition can be and still force the gamma function — somewhere between continuity, which is too weak, and log-convexity — has been asked in several forms, with partial answers that depend on what kind of condition is allowed.

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.

ConvexityFactorialFunctional equationGamma functionIntegralInterpolationUniqueness