Number

Which roots refuse to be fractions

The square root of two is not a fraction, and neither is the square root of three, five, six or seven. The rule behind the list turns an infinite question into a search over the divisors of a single number — and the search finishes.

Worth reading first: The square that cannot shrink · One way to factor, and no other.

The square that cannot shrink settles one number. Its argument is a descent — assume 2\sqrt2 is a fraction, produce a smaller one with the same property, and observe that the whole numbers do not allow an endless supply of smaller whole numbers.

That argument is beautiful and it is also stubbornly single-purpose. Adapting it to 3\sqrt3 takes work; adapting it to 23\sqrt[3]{2} takes more. What is wanted is a rule that decides the whole family at once, and there is one, and the surprise is how little it needs.

Every candidate for a rational square root, tried. A column for each of 2, 3, 4, 5, 6, 7, 8, 9, listing the whole numbers that divide it with their squares, and the verdict the search returns.
Fig. 1 Every candidate for a rational square root of each of the numbers from two to nine, tried. A fraction in lowest terms solving x2=nx^2 = n forces the denominator to divide one, so every candidate is a whole number dividing nn — a list that ends. Where no candidate’s square hits nn, the root is not a fraction, and the verdict at the foot of each column is what that search returned.

Turning it into a question about polynomials

Write the question as an equation rather than as a root. Asking whether n\sqrt{n} is a fraction is asking whether

x2−n=0x^2 - n = 0

has a rational solution. That looks like no progress at all, and it is the whole of the progress, because equations with whole-number coefficients have a property that square roots do not obviously have.

The rational root theorem. If a polynomial with whole-number coefficients has a rational root p/qp/q in lowest terms, then pp divides the constant term and qq divides the leading coefficient.

The proof is three lines. Substitute p/qp/q into adxd+⋯+a0=0a_d x^d + \dots + a_0 = 0 and multiply through by qdq^d:

adpd+ad−1pd−1q+⋯+a0qd=0.a_d p^d + a_{d-1}p^{d-1}q + \dots + a_0 q^d = 0.

Every term after the first has a factor of qq, so qq divides adpda_d p^d; and qq shares no factor with pp, so it shares none with pdp^d, so it divides ada_d. Every term before the last has a factor of pp, so pp divides a0qda_0 q^d, so by the same argument pp divides a0a_0.

The step that is doing the work is the one about sharing no factors, and it is not free: it is unique factorisation, in the form that says a prime dividing a product divides one of the factors. Every proof in this essay rests on that theorem, and it is worth knowing which brick is load-bearing.

What that gives for a square root

For x2−nx^2 - n the leading coefficient is 11. So qq divides 11, which means q=1q = 1, which means any rational root is a whole number.

That single sentence is the whole reduction. There was an infinity of fractions to check and now there is a finite list: the whole numbers dividing nn. Try each, square it, and see.

  • n=2n = 2: candidates 1,21, 2; squares 1,41, 4; neither is 22.
  • n=3n = 3: candidates 1,31, 3; squares 1,91, 9; neither is 33.
  • n=9n = 9: candidates 1,3,91, 3, 9; squares 1,9,811, 9, 81; the second is 99, so 9=3\sqrt9 = 3.

The figure runs that search on eight numbers at once. It also checks the answer a second way: for each nn it computes whether nn is a perfect square directly, and asserts that the search agrees. The two are the same question, which is exactly what the theorem says and exactly what a figure ought to demonstrate rather than assume.

A square root of a whole number is either a whole number or not a fraction at all. There is nothing in between, and the middle case that intuition wants — a root that is “nearly” rational, a fraction with a big denominator — does not exist.

The same answer read off a factorisation

There is a second proof, and it is worth having because it says why the perfect squares are the exception rather than only that they are.

Every whole number above one factors into primes in exactly one way. Suppose n=p/q\sqrt{n} = p/q in lowest terms; then nq2=p2n q^2 = p^2. Look at the exponent of any single prime on each side. On the right it is even, being twice the exponent in pp. On the left it is the exponent in nn plus an even number. So every prime’s exponent in nn is even, and a number all of whose prime exponents are even is a perfect square.

Every candidate for a rational square root, tried. A column for each of 10, 11, 12, 16, 25, 36, listing the whole numbers that divide it with their squares, and the verdict the search returns.
Fig. 2 The same search on a run of numbers chosen to straddle the boundary. Sixteen, twenty-five and thirty-six are squares and their roots are among the divisors tried; ten, eleven and twelve are not, and for each of them the search runs to the end of its divisor list and finds nothing. Twelve is the instructive one — it is 22×32^2 \times 3, so it is nearly a square, and being nearly one buys nothing: the verdict turns on whether every exponent is even, not on how many are.

The two proofs are the same theorem and they answer different questions. The divisor search says no candidate works; the exponent argument says the candidates are the numbers whose prime exponents are all even, and those are the squares. The second is the one that would let a reader decide 1,000,000\sqrt{1{,}000{,}000} without listing a single divisor.

It also makes the cube-root case obvious rather than a repetition: n3\sqrt[3]{n} is rational exactly when every prime exponent in nn is a multiple of three, and nk\sqrt[k]{n} exactly when every exponent is a multiple of kk. The figure’s cube-root columns pass at eight and twenty-seven for precisely that reason — 232^3 and 333^3 — and at nothing else drawn.

Why the argument has to be this shape

It is worth noticing what has and has not been proved, because the theorem is often quoted in a stronger form than it has.

The theorem does not say the polynomial has no root. x2−2x^2 - 2 has two perfectly good roots; it says nothing about them except that they are not fractions. Nor does it produce a root, or approximate one, or say anything about how close a fraction can get — that last question is answered elsewhere and answered differently.

What it does is convert a search over an infinite set into a search over a finite one, and the conversion is the only interesting step. Infinitely many fractions could solve the equation as far as anyone knew before; afterwards, only the divisors of nn could, and there are at most a few dozen of those for any nn a reader will meet.

That is the shape of a great many impossibility proofs: not an argument that no object exists, but an argument that if one existed it would be findable, followed by a search that fails. The cube that will not double is the same manoeuvre at greater length, and the search over divisors that decides whether a number is perfect is another.

The cube root, free of charge

Nothing about the argument used the exponent two, so the same search decides cube roots.

Every candidate for a rational cube root, tried. A column for each of 2, 3, 4, 8, 9, 16, 27, listing the whole numbers that divide it with their 3th powers, and the verdict the search returns.
Fig. 3 The same search for cube roots. A fraction solving x3=nx^3 = n is again a whole number dividing nn, so the same finite list is tried and the same verdict comes back: a cube root of a whole number is either a whole number or not a fraction. Eight and twenty-seven pass; two, three, four, nine and sixteen do not.

The case n=2n = 2 is the one with a history attached. 23\sqrt[3]{2} is the side of a cube with twice the volume of a unit cube, which is the Delian problem — and this argument shows it is not a fraction in about four lines, where showing it is not constructible with compass and straightedge took two thousand years and a different subject.

The gap between those two facts is worth holding on to. Not a fraction is easy and not enough; the constructible numbers include 2\sqrt2, which is not a fraction either, so irrationality decides nothing about ruler-and-compass constructions. What decides them is the degree of the field extension, and that is a much later idea.

The general statement

The theorem gives more than roots of whole numbers, and the general form is worth having because it is what makes algebraic number a usable notion.

Take any polynomial with whole-number coefficients whose leading coefficient is 11 — a monic polynomial. Then q=1q = 1, and every rational root is a whole number. So

x3−x−1=0x^3 - x - 1 = 0

has a rational root only if it is ±1\pm 1, and neither works, so its real root is irrational. And

x5−x−1=0x^5 - x - 1 = 0

likewise. Any monic polynomial with whole-number coefficients and no whole-number root has only irrational roots, and testing for a whole-number root is a finite search over the divisors of the constant term.

The name for what has just been proved is integrality: a rational number that is a root of a monic whole-number polynomial is a whole number. It is one of those statements that sounds like a triviality and is a theorem, and it is the reason the whole numbers are the right notion of “integer” inside the rationals rather than an arbitrary choice.

Two squares of side 70 inside one of side 99. Two overlapping squares laid into opposite corners of a larger one, with the overlap and the two uncovered corners marked.
Fig. 4 The descent argument for 2\sqrt2, for comparison. It produces a strictly smaller pair with the same discrepancy at every step and runs out of room; it is a complete proof, it is prettier than the divisor search, and it does not generalise without being rewritten for each new number.

Sums of roots, where the criterion earns its keep

Everything so far has tested a single root, and for those the exponent argument in the section above is quicker. The monic form is worth more than that, and the cleanest demonstration is a number no factorisation argument reaches.

Is 2+3\sqrt2 + \sqrt3 a fraction?

The question is not answered by knowing that both summands are irrational. A sum of two irrational numbers can be perfectly rational — 2\sqrt2 and 2−22 - \sqrt2 add to two — and a product can be as well, since 2\sqrt2 times 8\sqrt8 is four. Any argument that treats irrational as a property closed under arithmetic is wrong, and the two examples above are what it is wrong about.

So build the polynomial. Put x=2+3x = \sqrt2 + \sqrt3 and square: x2=5+26x^2 = 5 + 2\sqrt6. Move the five across and square again, which clears the remaining root:

x4−10x2+1=0.x^4 - 10x^2 + 1 = 0.

Monic, whole-number coefficients. The theorem says a rational root is a whole number dividing the constant term, so the candidates are one and minus one, and both give 1−10+1=−81 - 10 + 1 = -8 rather than nought. Therefore 2+3\sqrt2 + \sqrt3 is not a fraction, decided in four lines by a search over two candidates.

The same manoeuvre settles 2+23\sqrt2 + \sqrt[3]{2}, or 2+3\sqrt{2 + \sqrt{3}}, or any expression built from whole numbers by adding, multiplying and taking roots. Each such number satisfies some monic whole-number polynomial — squaring away one root at a time always terminates — and once the polynomial is in hand the verdict is a divisor search.

That is the sense in which the algebraic numbers are a good notion rather than a list. They are closed under addition and multiplication, so an expression built from them is one of them, and the criterion applies to the expression rather than needing to be re-derived for it. The exponent argument has nothing to say here: 2+3\sqrt2 + \sqrt3 is not the root of any whole number, so there are no prime exponents to inspect.

The honest cost is that finding the polynomial is the work. Clearing roots by repeated squaring is easy when there are two of them and unpleasant when there are five, and the systematic version — eliminating between polynomials, or setting up a linear system in the powers of the number — is real machinery. What the theorem supplies is that the search afterwards is finite and short, however unpleasant the polynomial turned out to be.

And it supplies the degree, which is the quantity the next subject along cares about. The polynomial above has degree four, so 2+3\sqrt2 + \sqrt3 sits in an extension of degree four over the fractions — and it is that number, not its irrationality, that decides whether the length can be drawn with a compass and a straight edge.

Descent and divisors, side by side

The two arguments prove overlapping things and it is worth being precise about which is stronger where.

Descent is geometric, it is visible on a page, and it says something the divisor argument does not: it exhibits the failure. Given any fraction claiming to be 2\sqrt2, it produces a smaller one, so it is a procedure rather than a decision. That is why it survives into settings where the divisor argument has nothing to say — Fermat’s descent for the equation x4+y4=z4x^4 + y^4 = z^4 is the same move, and there is no polynomial in one variable to apply a root theorem to.

The divisor search decides more cases with less work and it decides them uniformly. It handles every nn, every exponent, and every monic polynomial, and its cost is the cost of listing divisors. What it gives up is the picture: nothing about the search suggests why the answer comes out the way it does, and the two-line proof that qq divides 11 is the kind of step that convinces without illuminating.

Both rest on unique factorisation. The descent’s step needs “if a2a^2 is even then aa is even”, and the divisor search needs “a prime dividing a product divides a factor”. Those are the same theorem, and in a number system where it fails both arguments fail with it.

What a search that finishes is worth

There is a habit of mind worth naming here, because it recurs across this site and it is the reason the divisor argument is the one to remember.

An impossibility is hard to demonstrate directly. No fraction squares to two quantifies over an infinite set, and no amount of checking settles it. What settles it is a reduction: an argument that any counterexample would have to be of a particular restricted shape, followed by an exhaustion of that shape. The infinity is dealt with by the reduction and the remainder by brute force.

The pattern is everywhere once it is looked for. Six people at a party reduces an infinity of colourings to a case analysis on one vertex. Why only five solids reduces an infinity of candidate polyhedra to a handful of angle sums, and then checks them. Every one of them has the same two halves, and the interesting half is always the reduction.

What makes this instance a good first example is that the reduction is three lines and the exhaustion is a list a reader can read. There is nowhere for the argument to hide, and the figure is the exhaustion printed in full rather than summarised — which is the site’s standing rule for a picture of an impossibility, and is the only honest one.

Where the answer changes

The interesting test of any criterion is a case where it gives a different answer, and there is one nearby.

In the whole numbers, n\sqrt{n} is rational exactly when nn is a perfect square. In the ring Z[−5]\mathbb{Z}[\sqrt{-5}], where 6=2×3=(1+−5)(1−−5)6 = 2 \times 3 = (1+\sqrt{-5})(1-\sqrt{-5}) and factorisation is not unique, the analogous questions have different answers, and the reason is precisely the brick that has been removed.

Closer to home, the criterion changes if the leading coefficient is not one. 2x2−1=02x^2 - 1 = 0 has roots ±1/2\pm 1/\sqrt2, and the theorem allows a denominator dividing 22 — so the candidates are ±1,±1/2\pm 1, \pm 1/2, four of them rather than two, and all four fail. The extra candidates are real work and the search still finishes.

And the criterion says nothing at all once the coefficients stop being whole numbers. x2−πx^2 - \pi has an irrational root for a completely different reason, which is the next rung but one and needs an argument of a different kind entirely.

How many numbers this catches, and how few

Every number this essay has ruled a fraction or ruled out is a root of a whole-number polynomial. Those numbers have a name — the algebraic numbers — and they include a great deal: every fraction, every root of every whole number, every number built from those by adding, multiplying and taking roots, and a good many that cannot be built that way at all.

It is tempting to conclude that a criterion covering so much covers nearly everything. It does not, and the direction of the error is worth stating now because the last rung of this ladder is about it: the algebraic numbers can be listed, and the real numbers cannot, so almost every real number is a root of no whole-number polynomial whatever. The rational root theorem has nothing to say about any of them, because there is no polynomial to apply it to.

Every candidate for a rational fourth root, tried. A column for each of 2, 3, 5, 16, listing the whole numbers that divide it with their 4th powers, and the verdict the search returns.
Fig. 5 The same argument at the fourth power, where nothing new has to be said. A fraction solving x4=nx^4 = n is again a whole number dividing nn, so the same finite list is tried — eleven candidates across the four numbers. Sixteen passes, its root sitting among its own divisors; two, three and five do not, and their searches run to the end and find nothing. A kk-th root of a whole number is a whole number or not a fraction, and which of the two is decided by the exponents modulo kk.

That gap is the reason this ladder does not stop here. The criterion is complete for its own question and its own question turns out to be a narrow one — and the two numbers everyone wants to ask about, ee and π\pi, are both outside it.

What the picture cannot show

The figure shows a search that finished, and the reason it finished is not in the picture. That every candidate is a divisor is the theorem; the picture assumes it and lists the divisors, so a reader who does not already believe the reduction sees a suspiciously short list of things tried.

It cannot show the fractions that were ruled out, either, because there are infinitely many of them and that is the point. What the columns show is the residue after an infinite set was reduced to a finite one, and the reduction happened in the prose.

And it says nothing about how close those ruled-out fractions get. 99/7099/70 is 2\sqrt2 to four decimal places and the figure has no column for it; the search is about exactness and is completely blind to accuracy.

How closely a fraction can come, and the barrier that says no closer. Two panels at very different scales: the approximations to √2, which stay above the barrier a degree-two number obeys, and the truncations of a constructed number, which fall below every barrier drawn.
Fig. 6 The question the divisor search cannot ask, drawn beside the one it can. Denominator against closeness, both as powers of ten: on the left the best fractions for 2\sqrt2, which stay above the barrier a number of degree two obeys and never break it; on the right a number built to break every barrier there is. The search above rules out equality and says nothing about proximity — and the difference between never exactly and never even close is the whole of the last rung of this ladder.

The rung above that asks about accuracy rather than exactness finds a different world, and finds it precisely by asking a question this one refuses to ask.

Where the ladder goes next

Above: numbers that are not roots of any whole-number polynomial at all, which no divisor search can decide because there is no constant term to divide. The two classical cases, ee and π\pi, each need an argument built for it, and both are squeezes rather than searches.

One debt this essay leaves. Unique factorisation is used twice and proved nowhere here; it has its own essay, and the dependence is worth stating rather than hiding, because the whole of this rung rests on it and the descent argument on the rung below does too.

What the reduction was

An infinite question about fractions becomes a finite question about divisors, because a denominator has to divide the leading coefficient and the leading coefficient is one.

That is the sentence to carry. Everything else — the eight columns, the cube roots, the monic polynomials — is the same observation applied again, and the reason it feels like a trick the first time is that the infinity disappears in a single line and never comes back.

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.

Named objects

A dashed tag is an object no other essay names yet.

Algebraic numberDivisorInfinite descentIntegralityIrrationalityLowest termsPerfect squarePolynomial rootsRational root theoremUnique factorisation