The Gaps in the Rationals
Is there a rational number whose square is exactly ? A carpenter measuring the diagonal of a unit square might expect the answer to be yes. A student solving might think so too. After all, the rationals contain every fraction imaginable. They are densely packed along the number line. The startling fact, known already to the ancient Greeks, is that no fraction works. simply does not live among the rationals. This is not a failure of imagination or notation. It is a theorem. This discovery matters far beyond a single missing number. It reveals that the rational numbers have literal holes in them. This is true despite being an ordered field with rich algebraic structure. These holes are points that "should" exist by geometric or algebraic reasoning. Yet they do not. The set of rationals whose square is less than has no least upper bound inside . This single observation is the crack. It eventually forces the construction of the real numbers. The big picture is this: is algebraically well-behaved but topologically incomplete. Sequences of rationals can bunch together, getting arbitrarily close to each other. Yet they need not converge to any rational limit. The gap at is the simplest, most concrete witness to this phenomenon. Understanding it precisely is the natural doorway to the The Completeness Axiom that defines . This article delivers a complete, rigorous proof that no rational number squares to . It explores the geometric and order-theoretic meaning of that fact. It shows exactly how this motivates the search for a larger, "gap-free" number system. This sets up the ideas of Bounds of a Set and least upper bounds that complete the story.
- The equation has no solution ; this is proved by a classical infinite-descent argument on parity.
- The proof only uses that is an ordered field with unique factorization in — no calculus is needed.
- The set has upper bounds in but no least one.
- This shows is an ordered field that is not order-complete: bounded sets can fail to have a least upper bound.
- The same descent argument generalizes to show is irrational whenever is a positive integer that is not a perfect square.
- Key idea: the rationals have "holes" at exactly the points where reasonable bounded sets fail to have a supremum, and is the simplest example.
Where this lives today
The irrationality of is the prototype for an entire branch of number theory studying which numbers are rational, irrational, or transcendental — questions central to Diophantine approximation and to modern results like the proofs that and are irrational (and transcendental). The Pell equation that appeared in the second worked example reappears in algorithms for computing square roots efficiently, in continued-fraction based cryptographic attacks (e.g. on RSA via continued fraction factorization methods), and in the theory of quadratic number fields used throughout algebraic number theory. More broadly, the structural lesson — that an ordered field can fail to have the least-upper-bound property — is the entire reason real analysis exists as a distinct subject from algebra. Every theorem that depends on completeness (the Intermediate Value Theorem, the Extreme Value Theorem, the convergence of Cauchy sequences, the existence of limits of bounded monotonic sequences) ultimately traces back to filling exactly the kind of gap exhibited by . In computer science and numerical analysis, floating-point arithmetic is itself an approximation scheme reminiscent of the rational approximations in Example 1 — finite-precision surrogates chasing a real target they can never exactly reach, a discretized echo of the ancient gap in .
Ask the tutor: How does the least-upper-bound property, once assumed as an axiom for , actually guarantee that exists as a real number?
A number is rational if for integers with ; the set of all rationals is denoted . We may always write a nonzero rational in lowest terms, meaning (no common integer factor greater than ). A real number is said to be a square root of if , i.e. . We are asking whether such an can be found inside . We also record the set that will be central to the completeness discussion:
A rational number is an upper bound for if for every . The least upper bound (or supremum) of , if it exists, is an upper bound such that for every upper bound .
Intuition
Picture the rational numbers as points marked on a number line — not just the integers, but every fraction , and so on. There are infinitely many rationals between any two others: the rationals are dense. It is tempting to think that a line made of infinitely many densely packed points has no room left for gaps. But density is not the same as completeness. Consider the set of positive rationals with : this includes These numbers creep steadily toward "the square root of ," each one a better rational approximation than the last. Geometrically, is a perfectly definite point — it is the length of the diagonal of a unit square, constructible with a compass and straightedge. Yet as a number, when we ask "which rational is it?", the answer is: none of them. The sequence of approximations converges toward a location on the line where no rational number sits. The rational line has a pinhole exactly there, invisible under magnification of any finite precision, but real.
The failure is not about a lack of precision — it is a structural fact about itself. This is the seed of everything that follows: to fill such gaps, mathematicians eventually build the real numbers precisely by declaring that every nonempty, bounded-above set of numbers must have a least upper bound. Understanding why fails this property, concretely and rigorously, is the goal of this article.
There is no rational number such that .
We argue by contradiction, using an infinite-descent argument grounded in the unique factorization of integers (specifically, the fact that every integer has a well-defined, finite count of factors of ).
Step 1: Set up in lowest terms. Suppose, for contradiction, that there exists a rational number with . Write where , , and (such a representation in lowest terms always exists for a nonzero rational, by dividing and by their greatest common divisor). Since , we may take both positive without loss of generality (replacing by if necessary). From we get
This is a legitimate algebraic step: multiplying both sides of by .
Step 2: must be even. Equation shows , so is an even integer (it equals times the integer ). We claim this forces itself to be even. Indeed, every integer is either even or odd. If were odd, write for some integer . Then
which is odd (it is with ). This contradicts being even. Hence cannot be odd, so is even.
Step 3: Extract a factor of and derive that is also even. Since is even, write for some integer . Substitute into :
This division by is valid since in (integers form an integral domain). So is even, and by the identical argument as in Step 2 (applied to in place of ), must be even as well.
Step 4: Contradiction. We have shown both and are even, so divides both and . This means is a common divisor of and greater than , contradicting our assumption that .
Conclusion. The assumption that some rational (in lowest terms) satisfies leads to a logical contradiction. Therefore no such rational number exists: there is no with .
∎Let as above. For every rational upper bound of with , there exists a strictly smaller rational upper bound of . Consequently has no least upper bound in .
We use an algebraic averaging/correction trick: given a rational guess with (any positive upper bound of must satisfy this — justified below), we manufacture a strictly smaller rational that is still an upper bound.
Step 0: Any positive upper bound of satisfies . By Irrationality of , . Suppose toward contradiction . Then itself (since and ). We show has no maximum, so being in contradicts being an upper bound of : since is dense, choose rational with ; then
using (as ) and (as ). So and , contradicting that is an upper bound of . Hence is impossible for an upper bound, so .
Step 1: Construct a smaller upper bound. Given rational with , define
Since and , as well (a ratio of integers). Since and , we have , so : this is our candidate smaller bound.
Step 2: is still positive and satisfies . First, since numerator and denominator are positive. Next, compute:
Since (by Step 0, in fact ), the numerator , and the denominator . Hence , i.e. .
Step 3: is an upper bound of . Let , so and . Since and both , and since is strictly increasing on positive rationals (if fails then forces , contradicting ), we conclude . As was arbitrary, is an upper bound of .
Conclusion. We have produced, from any positive rational upper bound of , a strictly smaller rational upper bound . Hence no rational upper bound of can be the least one: given any candidate least upper bound , would be a smaller upper bound, contradiction. Therefore has no supremum in .
∎There exists a nonempty subset of (namely above) that is bounded above in (e.g. by , since ) but has no least upper bound in .
Worked examples
Example 1: Locating between rationals via the correction map. Let's use the map from the Lemma's proof to squeeze in on starting from a deliberately poor, asymmetric guess (not the "nice" guess ).
- : check . Compute
- : check . Compute
- : check . Compute
Since , this simplifies to . Each is rational (an explicit ratio of integers, confirmed above), each satisfies by Step 2 of the Lemma, and the sequence is strictly decreasing by Step 1. Numerically is already within of . This is a concrete demonstration: we can get arbitrarily rationally close to , but by the Theorem, we never land on it — the target is never hit exactly by any , consistent with .
Example 2: A rational candidate that "almost" works, checked exactly. A common near-miss is , since , tantalizingly close to . Let's verify precisely why this — and every rational — must fail, using the exact machinery of the Theorem rather than decimal intuition. Suppose someone proposes (a classical convergent of 's continued fraction) as an exact square root of . Compute:
Is ? Cross-multiply: this would require . But — off by exactly . So fails, missing by the smallest possible margin at this scale, since . This is not a coincidence: the proof of the Theorem shows no fraction in lowest terms can satisfy exactly, because such an equation forces both and to be even, violating lowest terms. The near-misses like (with ) are solutions to the Pell equation , which has infinitely many integer solutions — explaining why arbitrarily good rational approximations to exist even though an exact one never does.
The proof of irrationality of relied on a specific fact about integers: if is even then is even, which itself rests on the more general principle of unique factorization (every integer greater than factors uniquely into primes, so the number of factors of in is exactly twice the number of factors of in , hence cannot equal an odd count). To see why this hypothesis is essential, consider working instead in the ring , a set of "integers" that does not have unique factorization. In , the number factors two genuinely different ways:
and one can check are all irreducible in (none factors further into non-unit elements of ), so these are genuinely different factorizations into irreducibles. In such a ring, parity-style descent arguments like the one we used can fail outright, because "even" no longer behaves consistently — an element's factorization into irreducibles is not unique, so counting factors of a fixed prime-like element is not well-defined. Concretely, in the field of fractions of , an analogous descent argument attempting to show some element has no "rational" (i.e. ratio-of--elements) square root can break down at exactly the step where we conclude "if is divisible by then is divisible by " for an irreducible — this step uses unique factorization (equivalently, that irreducibles are prime) and is simply false in general in rings without it. This shows the descent proof is not a free-floating trick; it depends essentially on having unique factorization, equivalently that is prime in (if then or ), which is what Step 2 and Step 3 of the Theorem's proof silently used.
Scope, edge cases & common traps
| Situation | What holds | What can go wrong |
|---|---|---|
| , | No solution (Theorem) | Assuming a decimal approximation like is "the" exact value |
| , a positive integer | Irrational unless is a perfect square (same descent argument generalizes) | Forgetting to check whether is a perfect square first (e.g. ) |
| Bounded above, nonempty, but no rational supremum | Claiming the supremum "is" while working only inside — is not a rational object yet | |
| Rational approximations | Get arbitrarily close (dense approach) | Confusing "arbitrarily close" with "eventually equal" |
| General ordered fields | Least-upper-bound property can fail (as in ) | Assuming every ordered field is complete — only (up to isomorphism) has this property among ordered fields extending |
The mathematician behind it
Origins · 1 minHippasus of Metapontum and how this was discovered
Hippasus is credited by ancient tradition with the earliest known demonstration that the diagonal of a unit square — geometrically, — cannot be expressed as a ratio of whole numbers. This directly contradicted the Pythagorean doctrine that "all is number," meaning all magnitudes should be expressible as ratios of integers. Ancient legend holds that this discovery was treated as a scandal, allegedly leading to Hippasus's expulsion or even death at the hands of fellow Pythagoreans — a story likely more myth than history, but one that reflects how genuinely destabilizing this result was to the mathematics of the time. The rigorous parity-based descent proof we gave above (using even/odd integers) is essentially the argument attributed to the Pythagorean school and preserved, in a version very close to the modern one, in the appendices of some editions of Euclid's Elements (Book X).
Why does having no rational solution matter for calculus?
Calculus is built on limits, continuity, and the existence of extrema — all of which secretly rely on the real numbers being "complete," meaning bounded sets have least upper bounds. If we tried to do calculus using only , basic tools like the Intermediate Value Theorem would fail: a continuous function could go from negative to positive without ever hitting zero, simply because the zero it needs (like ) isn't there. The failure of to have a rational root is the cleanest, most concrete instance of this gap, and it is the historical and pedagogical motivation for constructing via the The Completeness Axiom.
Is the proof that is irrational really airtight, or does it assume something hidden?
It is airtight, but it does rest on foundational facts about the integers: that every nonzero rational can be written in lowest terms, and that an integer's square is even if and only if the integer itself is even. Both facts follow from unique factorization of integers into primes (or can be proven directly by casework on even/odd, as we did). No hidden assumption about or completeness is used — the proof is purely about integers and the field structure of , which is why it was accessible to ancient Greek mathematicians long before the real numbers were formally constructed.
Does this mean doesn't exist at all?
No — it means does not exist as a rational number. Geometrically, exists perfectly well as the length of the diagonal of a unit square, and once we build the real numbers (via Dedekind cuts, Cauchy sequences, or the completeness axiom), exists as a genuine real number satisfying . The point of this article is narrower and sharper: within the strictly smaller system , this number is simply absent, which is exactly the phenomenon that motivates constructing in the first place.
How does this generalize to other square roots, like or ?
The same descent argument works with only cosmetic changes. For a prime , if for rational in lowest terms, then , so , and since is prime this forces ; writing leads to wait — more precisely , so too, forcing , contradicting . This shows is irrational for every prime , and with a little more care (using the full prime factorization) one shows is irrational for every positive integer that is not a perfect square.
What exactly does "the rationals have gaps" mean, precisely?
It means there exist nonempty subsets of that are bounded above (every element is at most some fixed rational number) but which have no least rational upper bound — the set is the standard example, proven in the Lemma above. Equivalently, the order structure of fails the least-upper-bound property. This is a precise, provable statement, not a vague metaphor: "gap" refers exactly to this missing supremum, located at what will become the real number .
Why is the specific number used, rather than some other number, in the classic example?
Historically and pedagogically, gives the cleanest possible proof: the descent argument needs only even/odd reasoning, no general prime factorization machinery, and it corresponds to a vivid geometric picture (the diagonal of a unit square, via the Pythagorean theorem ). Other irrational square roots like or work by the same method but are slightly less immediately visualizable and require a small generalization of the "even implies even square root" step to divisibility by an arbitrary prime.