The fraction Lambert built for the tangent
Worth reading first: An integral that cannot be a whole number · A fraction that never closes.
An integral that cannot be a whole number proved that π is not a fraction by Niven’s argument of 1947: a polynomial supplies a whole number, its smallness squeezes that number below one, and there is no whole number there. It noted in passing that the historical proof was quite different, and left it undrawn.
The historical proof is Johann Heinrich Lambert’s, presented to the Berlin Academy in 1761 and published in 1768. It never mentions π until its last line. What it proves is a statement about the tangent function — if is a rational number other than zero, then is irrational — and the conclusion about π follows at once, because , which is rational, so cannot be.
The whole weight falls on the tangent, and Lambert’s tool for it was a continued fraction.
The tangent as a continued fraction
Lambert showed that
with the odd numbers marching down the left and in every numerator after the first. The figure draws what stopping the fraction at a given depth produces. Stopped after one level it is just , the tangent’s first approximation near zero. Stopped after two it is , which already has poles near and follows the tangent’s upward sweep. Each further level is a ratio of polynomials that agrees with the tangent to higher order, and five levels are indistinguishable from it until the pole at .
Where the fraction comes from is a piece of calculus about ratios of series. Sine and cosine are power series, their ratio is the tangent, and dividing one series by another and inverting the remainder, over and over, generates exactly this pattern — each step produces the next odd number and another . Lambert found it that way, by hand, and it is a special case of what Gauss later developed into a general theory of continued fractions for ratios of hypergeometric series. For the proof what matters is the shape of the result, not its derivation: whole numbers down the left, across the top.
Where the odd numbers come from
The derivation is short enough to follow in outline, and it shows why the pattern is so regular.
Write the sine and cosine as power series and pull out their common structure. Both are special cases of one family of series,
indexed by , in which each term carries one more odd number in its denominator than the last. The member with is and the member with is — both can be checked by writing out the first few terms — so the tangent is times the ratio of those two members. The whole family is what Gauss would later call a hypergeometric series, one of the most thoroughly studied objects in analysis, and the family has one crucial property: any three consecutive members are linked by a three-term relation in which the coefficient is an odd number and appears once. Dividing that relation by the middle member expresses each ratio as an odd number minus times the next ratio.
Applied over and over, starting from the tangent, the relation peels off one odd number and one at each step. That is exactly the fraction: , then , then , each separated from the next by . The regularity is not a lucky pattern noticed in the first few terms; it is the three-term relation working identically at every level, and that uniformity is what makes the tails behave the same way all the way down.
There is a further dividend. The convergents of the fraction are the best rational-function approximations to the tangent of their degree — they are what are now called Padé approximants — and they behave far better than the tangent’s Taylor series. The Taylor series converges only for , stopped by the poles, exactly as a denominator reaches past the radius of any series whose function has a singularity. The continued fraction has no such limit: it converges for every at which the tangent is finite, on both sides of every pole, because a ratio of polynomials can have poles of its own and place them where the tangent’s are.
Tails trapped between nothing and one
Now put , a fraction. Multiplying through by suitable powers of turns every numerator into and every left-hand entry into a whole multiple of . Define the tail after level as
the part of the fraction from level downwards. The whole fraction is built from the tails, and the tails are built from each other.
The key fact is that from some level on, every tail lies strictly between and . Once is larger than , a tail below at level forces the denominator at level to exceed , so the tail at level is below too — and positive, because the denominator is positive. The tails far down are tiny, so the property holds deep in the fraction and propagates upwards to the threshold level. At the threshold is the very first level, and the figure shows all fourteen tails inside the band.
For larger the early tails can be large, and the argument simply starts further down.
Why trapped tails mean irrational
Suppose were a fraction. Then the tail at the threshold level would be a fraction too — each tail is a rational function of the one above it with whole-number coefficients, so rationality passes down the fraction — and so would every tail below it. Write each tail in lowest terms, . The recursion rearranges to
so the denominator divides . And , because . So : the denominators of the tails form a strictly decreasing sequence of positive whole numbers, one for every level of an infinite fraction. That is impossible. There is no infinite descending staircase of positive integers, and the assumption that was rational has produced one.
Notice what the argument never needed: any knowledge of the value itself. It uses only the shape of the fraction — whole numbers, a fixed numerator, denominators that eventually outgrow it — and the descent does the rest. That is why the same page of reasoning covers every non-zero rational at once, rather than one number at a time. This is the same move as the square that cannot shrink, where a supposed fraction for was folded into a smaller one without end. Here each tail hands a smaller denominator to the next. The engine is the trap between and : a tail in that band cannot be a whole number, so its numerator must be smaller than its denominator, and that inequality is what makes the denominators fall. Legendre tidied the argument in 1794 into a general lemma — a continued fraction with whole numbers whose denominators eventually outweigh their numerators by more than one converges to an irrational — and used it to prove that is irrational too, which Lambert’s statement does not give directly.
The same fact, seen as approximation
The descent can be recast as a statement about how fast the fraction’s convergents close in, and in that form it connects to the rest of this subject.
If were a fraction , then every other fraction would be at least away from it, because and the numerator is a non-zero whole number. So times the error could never fall below . The convergents of Lambert’s fraction make that product fall without limit — past every candidate denominator — so no can work.
This is the criterion the fraction that never closes used for ordinary continued fractions, and it is worth seeing why it is not the stronger criterion that a number approached too fast used for transcendence. The convergents of beat by a growing factor, but only by a growing factor — the error behaves like with shrinking towards nothing — so they prove irrationality and say nothing about whether is algebraic. It is not, as it happens, but that took Lindemann’s theorem of 1882.
Not every endless fraction is irrational
It is worth seeing that the trap in the band is doing real work, because continued fractions of this generalised kind — with numerators other than — can be infinite and still converge to a fraction.
Take the fraction with in every numerator and down the left:
It repeats, so its value satisfies , whose solutions are and ; the convergents , , , … approach . An infinite fraction, and a rational value. What fails is the trap: the numerators never fall behind the denominators by more than one, so the tails do not shrink into the band, and nothing forces the descent.
For ordinary continued fractions, with every numerator equal to one, the question never arises — such a fraction is infinite exactly when its value is irrational, and the value of every finite one is a fraction. The generalised fractions that Lambert used are more flexible, which is why they can express the tangent at all, and the price of the flexibility is that irrationality has to be earned by a condition like the trapped tails. Lambert’s fraction earns it because its odd numbers grow and its numerator stays fixed at : eventually the denominators leave the numerators far behind.
The twin with plus signs, and e
Change every minus sign in Lambert’s fraction to a plus and it becomes the hyperbolic tangent:
The trapped-tails argument works as well with plus signs — the tails are now positive automatically and the threshold is where the odd numbers outgrow — so is irrational for every non-zero rational . And the exponential is a rational function of the hyperbolic tangent: . If were rational for some non-zero rational , then so would be , which it is not. Every non-zero rational power of is irrational — itself, , , .
That is considerably more than the tail argument for gives. Fourier’s proof shows is irrational by squeezing a tail of its series; it does not reach without extra work, and it does not reach at all in any direct way. Lambert’s fraction does all of them at once, and it does π with the same stroke.
Why the continued fraction and not the series
It is worth asking why Lambert needed a continued fraction when Fourier managed with a series.
The series for has terms that shrink so fast that multiplying by clears every denominator up to and leaves a tail below — the squeeze fits. The series for have no such property: every classical series for it converges slowly and its partial sums have denominators that no factorial clears. The continued fraction for the tangent is a different kind of expansion, whose convergents are fractions with small denominators that nonetheless approach the target very fast. It is exactly the property a squeeze needs, delivered in a form the series cannot give.
Niven’s proof two centuries later found a way to get the same effect from an integral, by building a polynomial whose integral against the sine is a whole number and very small. The two proofs are the same idea — a whole number trapped between nothing and one — carried by different vehicles, and Lambert’s vehicle has the advantage of proving a whole family of statements at once.
What Lambert believed and could not prove
Lambert did not stop at irrationality. In the same memoir he conjectured that π is not the root of any polynomial with rational coefficients — that it is transcendental — and he saw exactly why it mattered: squaring the circle with straightedge and compass would require constructing , and only certain algebraic numbers can be constructed, so a transcendental π would settle the ancient problem in the negative.
He could not prove it, and nobody could for more than a century. The obstacle is the one the approximation figure makes visible: Lambert’s convergents approach only a little faster than , which is enough to rule out a rational value and nowhere near enough to rule out an algebraic one. Transcendence needed a different idea — not how fast a single number can be approached, but how the values of the exponential function at several algebraic points can be related — and Lindemann supplied it in 1882, building on Hermite’s proof of 1873 that is transcendental.
So Lambert’s memoir stands at the start of both stories. It settled irrationality with a method that is still taught, and it posed transcendence as the question that the method could not reach, correctly identifying what its answer would mean for geometry.
What the pictures cannot show
Convergence of the fraction. The figures stop the fraction at finite depth and show the stopped versions approaching the tangent; that the infinite fraction equals exactly, for every where the tangent is finite, is a theorem about the ratio of two power series, and no finite drawing establishes it.
The tails of the infinite fraction. Each tail was computed from forty levels further down, which fixes it to far more digits than the drawing shows but is still a finite computation. The claim that the tails of the infinite fraction lie in the band follows from the inductive argument above, run downwards from arbitrarily deep; the figure is a picture of what that argument guarantees, not a substitute for it.
π itself. Nothing drawn involves . The proof reaches it only through , a fact about the circle that sits entirely outside the figures, and that is the point: the irrationality of π is a consequence of a statement about all non-zero rational points, of which is not one.
Still open: sums and products of the famous constants
Lambert’s method, Niven’s and their descendants settle the irrationality of , of every non-zero rational power of , of , and, through Lindemann and later Baker, the transcendence of many related numbers. For the simplest combinations of and they say nothing. Whether is irrational is not known. Whether is irrational is not known — though at least one of the two must be, since if both were rational then and would be roots of a quadratic with rational coefficients, contradicting their transcendence. Whether , or is irrational is not known. And the Euler–Mascheroni constant, which the harmonic series defines as the gap between its partial sums and the logarithm, is not known to be irrational at all.
The next step on this path is the other continued fraction quoted here without proof: ’s own simple continued fraction, , whose pattern is itself a proof of something — and whose proof by three integrals is a short piece of integration by parts.
A statement about every fraction, cashed at one
Lambert did not prove that π is irrational by studying π. He proved that the tangent of every non-zero fraction is irrational, using a continued fraction whose tails are trapped between nothing and one and a descent that makes trapped tails impossible for a rational value — and then observed that one particular angle has a tangent of exactly one.
The same fraction with its signs changed gives the hyperbolic tangent, and with it the irrationality of every rational power of . Two of the most famous irrationalities in mathematics fall to one continued fraction and one descent, found in the 1760s, a century before anybody could say what either number was not.
What links here
Computed from the collection, not written here: the essays that point at this one.
Reads more easily once this is understood
Essays that name this one as worth reading first.
Shares its objects with
Essays that name at least two of the same things, and that neither author linked.
- The fractions that beat every smaller one — both name continued fractions, diophantine approximation, irrationality, rational approximation
- A bell curve assembled out of coin flips — both name convergence, pi
- A square wave built entirely out of round ones — both name convergence, pi
- A sum read from inside — both name convergence, pi
- An endless region with a finite area — both name convergence, pi
- Getting pi by dropping needles on the floor — both name convergence, pi
Named objects
A dashed tag is an object no other essay names yet.
Continued fractionsConvergenceDescentDiophantine approximatione, the numberIrrationalityPiProof by contradictionRational approximation