Two to the four is four to the two
Worth reading first: The curve that is its own slope · Root two, raised to itself for ever.
Addition and multiplication do not care about order: and . Exponentiation does. Two cubed is 8 and three squared is 9; two to the fifth is 32 and five squared is 25; ten cubed is a thousand and three to the tenth is 59,049. Swapping base and exponent almost always changes the answer, and usually by a great deal. And then there is .
Daniel Bernoulli remarked in a letter to Christian Goldbach in 1728 that 2 and 4 are the only unequal whole numbers with this property, and Leonhard Euler later found every solution of in positive real numbers. The answer is one curve, and it is a remarkable one. It crosses the diagonal exactly at . Its two coordinates, written in terms of a single parameter, are the two most familiar approximations to — the amount a unit grows to under compound interest, one from below and one from above. And its rational points are exactly the points where that parameter is a whole number, which proves Bernoulli’s remark and says what the curve’s other fractions are.
Everything here is computed: the curve, the comparison of with for whole numbers in exact integer arithmetic, and a search for rational solutions in which every candidate is confirmed or refused by comparing two whole numbers.
One curve beside the diagonal
Every pair satisfies the equation trivially, and the diagonal is drawn faint for that reason. The interesting solutions are the others, and the figure shows that they form a single curve, symmetric about the diagonal — since swapping and swaps the two sides of the equation — and crossing it at one point, , where its slope is . Far out along the curve, one coordinate grows without bound while the other sinks towards 1, because only in the limit: the curve is asymptotic to the lines and without reaching them.
The whole-number point is on it, of course, together with its mirror image . So are some less familiar fractions. Take and : then and . Both are to the same power, and the two sides agree exactly. The pair and works the same way, with base . The red dots mark these three pairs and their reflections, and the rest of the essay is about why these, and only these kinds of fractions, appear.
The point is where the two halves of the curve meet the diagonal, and the slope there is computed in the figure from two nearby points of the curve as . That is as it must be: a curve symmetric about the diagonal that crosses it transversally can only cross it at a right angle.
The hump that pairs the numbers
Take logarithms. For positive and , says , which is
So the question is when the function takes the same value at two different places, and the figure draws it. Its derivative is , positive below and negative above it, so the function climbs from near 0, crosses zero at , reaches its only peak, , at , and then falls back towards zero for ever without reaching it.
Everything about the curve of solutions can be read from this hump. A horizontal line at a level between 0 and meets the graph exactly twice, once at some between 1 and and once at some beyond ; that pair is a solution, and every solution arises this way. The level is met at 2 and at 4, because . Levels at or below zero are met only once, so no number at most 1 has a partner, and the level is met only at itself, where the two halves of the curve join. The same function is what the infinite tower of a base turns on: its peak at is why is the largest of the numbers .
The hump also settles a well-known comparison in a line. Since is the peak, , that is , and exponentiating gives . The figure marks just past the peak, at 0.3644 against 0.3679: the two values are close, and so are the two powers, against .
Which power wins among whole numbers
For whole numbers the hump gives a complete rule, and the figure checks it against exact integer powers for every pair from 1 to 10. When both numbers are at least 3, both lie on the falling side of the hump, so the smaller one has the larger value of and the smaller base wins: beats , and beats . The colours in the upper right of the grid are therefore a clean staircase, divided along the diagonal.
The number 2 sits on the rising side of the hump, below , and is the only whole number that can be paired with one on the other side. Its value, , lies above the value at 5 and every later number, below the value at 3, and exactly equal to the value at 4. So , , and for every from 5 on — the familiar fact that eventually outruns , here seen to happen at the first possible moment. The number 1 loses to everything, since .
The curve drawn over the grid is the border between the colours, as it must be, and it passes through the centre of a square at exactly two places. That is the figure’s version of Bernoulli’s remark, and it can be proved without the curve at all. If with , the two numbers have the same prime factors, and unique factorisation says that each prime’s exponent in is times its exponent in , so divides . Writing turns the equation into , that is , and since forces , the only possibility is and .
Compound interest from both sides
Euler’s parametrisation comes from fixing the ratio. Write with . Then , and taking -th roots, , so and
Now put , so that . The pair becomes and , and these are two very familiar expressions. The first is what one unit of money grows to in a year at 100 per cent interest compounded times, the sequence that defines as the curve that is its own slope when grows without bound. The second is the same thing with one more factor, and it decreases to from above.
So the curve of commuting pairs is traced by the two compound-interest sequences side by side. The figure draws both against : at the pair is , interest compounded once; at it is ; as grows both close in on , which is why the curve reaches the diagonal at . At they are 2.6533 and 2.7860, either side of by about . The classical squeeze , used to pin down the number that names the area, is the statement that every point of the curve has one coordinate on each side of .
Small values of fill the other end of the curve. As falls towards 0, falls to 1 and grows without limit, which is the curve’s approach to its asymptote; and every positive real gives exactly one pair, so the parametrisation covers the whole curve on one side of the diagonal.
The rational points
When is a whole number , both coordinates are fractions: and . The converse is the real content: these are the only rational points on the curve. The argument runs through the ratio again. If and are rational, so is ; write in lowest terms, so and . For to be rational, must be an -th power of a rational number, and since and share no factor, both must be perfect -th powers, say and . But two -th powers that differ by must be consecutive at least, and whenever and . So , , and is a whole number.
The figure checks this by brute force, independently of the argument. For each of the 840 fractions in lowest terms between 1 and with denominator at most 40, it computes the partner on the curve to high precision, asks whether is close to a fraction with denominator under ten thousand, and then settles the question exactly: raising both sides of to the power turns it into an equality between whole numbers, , which is compared digit for digit. Three fractions pass — 2, and , the values at — and the next, , has a denominator beyond the search. Rational points on a curve are a recurring subject; the rational points of the unit circle are just as completely described, by a single parameter running through the rationals, but there every rational parameter gives a rational point, and here only the whole ones do.
The partner written down
The parametrisation gives the pairs, but not the partner of a given . For that the equation has to be solved for , and it cannot be done with logarithms and powers alone. Put ; then becomes, after a line of algebra, . The function that undoes is the Lambert W function, named for the same Johann Heinrich Lambert who built the continued fraction that proves π irrational, and so
The formula carries the whole picture in it. The equation has two real solutions when lies between and 0, because has a single minimum, , at — the same hump as before, turned upside down and moved. So has two real branches there, above and below it. For between 1 and the argument lies in exactly that range. The upper branch returns , the diagonal: at it gives and . The lower branch returns the partner: at it gives and ; at it gives ; at it gives 7.4088, a partner far out along the curve.
The diagonal and the curve are the two branches of one function, and the point is its branch point. At the argument is exactly , the two branches meet at , and both return . That is why the curve crosses the diagonal there and nowhere else: a branch point of is where two solutions of collide, and two collided solutions of are a pair with . The same function appears wherever an unknown sits both in an exponent and outside it, as in , and its power series, , counts rooted labelled trees — the series behind the power tower’s sum over trees. The commuting pairs are its simplest instance.
Two fixed points of one exponential
There is a second way to read the equation, and it ties the curve to a different question. Raise both sides of to the power : it becomes . So each pair on the curve shares a common value , and and are both solutions of — the two fixed points of the exponential map . For the pair 2 and 4 the base is , and indeed and . For and the base is 1.4339.
The figure draws the two exponentials and the diagonal, and each crosses the diagonal twice, at its pair. As the pair slides along the curve towards , the base rises, the two crossings move together, and at they merge into a single tangency at (dashed). Above that base the exponential clears the diagonal entirely. This is exactly the threshold at which the infinite power tower of a base stops converging, and the tower of settling at 2 rather than 4 is the statement that of the two fixed points the smaller attracts and the larger repels, as the staircase that shows the whole orbit makes visible: the slope of at the smaller crossing is below 1 and at the larger above it. The equation knows nothing of stability; it lists the pairs, and the dynamics of the tower picks one member of each.
So the curve of commuting pairs, the compound-interest squeeze on , and the convergence of power towers are three readings of one function, — its level sets, its peak, and the fixed points of the exponential whose base is raised to its values.
What the pictures leave out
The figures are drawn for positive real numbers, and the equation has more to say elsewhere. For negative bases, is defined only for some exponents, and pairs such as satisfy ; the set of solutions there is scattered rather than a curve. For complex numbers, has infinitely many values, one for each branch of the logarithm — the same multiplicity that leaves some matrices with no logarithm at all — and the equation becomes a statement about one branch at a time. None of that is drawn.
The rational search is evidence and not proof: it examines only denominators up to 40 and partners with denominators under ten thousand, and a rational point with larger height would have escaped it. The proof that none exists is the argument about -th powers, which the search merely corroborates. Likewise the grid of whole numbers stops at 10, and the claim that the smaller base wins from 3 onwards rests on the hump falling, not on the grid.
Finally, the pictures do not show that the curve is smooth at , where the parametrisation has no parameter value: . The two halves of the curve meet there because both coordinates tend to , and the slope is forced by symmetry, but that the curve has a tangent there at all is not what the usual tool says. The implicit function theorem cannot be applied to at , because its gradient vanishes there; a second-order look at the function shows two smooth branches crossing — the diagonal and the curve — which is the one place on the whole picture where the easy argument gives out.
Still open: commuting towers and the other operations
The equation is solved, but its relatives are not all. Ask instead when is unchanged by permuting , and — when three numbers commute under a tower of powers — and the solution set is a surface whose rational points are not classified. Ask for whole numbers with in other number systems, such as the Gaussian integers, and the unique-factorisation argument carries over, but the answer depends on units and associates in a way that needs working out case by case.
A different direction asks about the sequence of operations beyond exponentiation. Addition and multiplication commute; exponentiation commutes only on the curve drawn here; tetration — repeated exponentiation, the tower itself — has no description of its commuting pairs as clean as Euler’s, not least because extending it from whole heights to real ones can be done in several inequivalent ways. The pair 2 and 4 survives one more level, since and are and , and so it does not; for whole numbers the growth of towers makes ties hopeless, and for real numbers the question is not yet even well posed.
Bernoulli’s pair, and Euler’s curve
Apart from , the positive solutions of form a single curve, , , crossing the diagonal at with slope ; its rational points are exactly the whole values of , so is its only whole-number point. The equation is the statement that takes the same value twice, and that function’s single peak at explains the rest: every number between 1 and has one partner beyond ; from 3 onwards the smaller base always wins, so is the only tie among whole numbers; beats ; and each pair is the two fixed points of the exponential to the base , which is why the tower of meets both 2 and 4 and settles at the smaller. The two coordinates are the compound-interest approximations to on either side, so the curve is the squeeze that defines , drawn in the plane.
Shares its objects with
Essays that name at least two of the same things, and that neither author linked.
- How many get their own hat — both name e, the number, fixed point
Named objects
A dashed tag is an object no other essay names yet.
e, the numberFixed pointLogarithmParametrisationRational pointsUnique factorisation