A topic in the Open Knowledge Graph — a free, open map of 15,495 topics and the order to learn them in.

Density of the Rationals

Graduate Depth 66 in the knowledge graph ☐ I know this ☆ Set as goal
242prerequisites beneath it
See this on the map →
Supremum and InfimumThe Archimedean Property→
rationals density approximation

Core Idea

Between any two distinct real numbers, there exists at least one rational number, and hence infinitely many. This is the density of ℚ in ℝ: the closure of ℚ is ℝ. Density means rationals are arbitrarily close to any real number, making them essential for approximation in analysis.

How It's Best Learned

Prove this using the Archimedean Property: given reals a < b, show that n(b - a) > 1 for some n, then find the smallest integer m with m/n > a. Construct rational approximations to √2 and π to see the density in action.

Common Misconceptions

Explainer

You already know the Archimedean property: for any real ε > 0, there exists a natural number n with 1/n < ε. You also know supremum and infimum — the least upper and greatest lower bounds of a set. These two tools are precisely what you need to prove that the rationals are dense in the reals, and understanding the proof is the best way to understand what density actually means.

Here is the claim: given any two real numbers a < b, there is a rational number p/q with a < p/q < b. The proof uses the Archimedean property to find a denominator q large enough that consecutive integers of the form p/q are closer together than the gap b − a. Specifically, choose q so that 1/q < b − a, which is possible by the Archimedean property since b − a > 0. Now consider the multiples ..., −1/q, 0, 1/q, 2/q, ... — they march along the number line in steps smaller than the interval (a, b). The interval must contain at least one such multiple; let p be the smallest integer with p/q > a. Then p/q ≤ a + 1/q < a + (b − a) = b. So a < p/q < b.

What this proves is not just that one rational exists between a and b — it proves that for every smaller sub-interval of (a, b), you can repeat the argument and find another rational. The rationals are therefore dense in ℝ: every open interval contains infinitely many of them. You can think of the rationals as a countable but "everywhere-reaching" approximation net for the reals. No matter what real number you name — π, √2, e — there is a rational within any positive distance you specify.

But density does not mean the rationals *are* the reals. This is the hardest misconception to shake. The irrationals are not just a sparse exception; they vastly outnumber the rationals in a precise measure-theoretic sense. The rationals are countable; the reals are uncountable. The "holes" at irrational positions are, in a sense, almost all of ℝ. Density is a topological statement — every neighborhood of every real point contains a rational — but measure theory reveals that the set of rationals has measure zero: a randomly chosen real is rational with probability zero. This tension between topological density and measure-theoretic smallness is a recurring theme in analysis, and density of the rationals is your first encounter with it. It motivates the construction of the real numbers as the completion of the rationals — filling in all the gaps that rational sequences "want" to reach but cannot.

Practice Questions 5 questions

Prerequisite Chain

Understanding Zero → The Number Zero → Counting to Five → Counting to 10 → One-to-One Correspondence → Counting a Set of Objects Up to 20 → Cardinality: The Last Number Counted → Matching Numerals to Quantities → Subitizing Small Quantities → Combining Small Groups Within 5 → Addition Within 10 → Number Bonds to 10 → Tens and Ones Place Value → Reading and Writing Three-Digit Numbers → Comparing Three-Digit Numbers → Comparing and Ordering Three-Digit Quantities → Comparing and Ordering Whole Numbers → Comparing Numbers 1 to 20 → Ordering Numbers to 20 → Number Line 0 to 20 → Addition Within 20 → Doubles and Near Doubles → Doubles Facts Within 10 → Near Doubles Facts Within 20 → Mental Math Strategies for Addition → Mental Math: Adding and Subtracting Tens → Addition Within 100 → Repeated Addition as Multiplication → Multiplication as Equal Groups → Multiplication: Arrays → Basic Multiplication Facts Through 10 → Multiplication Facts Within 100 → Division as Equal Sharing → Division as Grouping (Measurement Division) → Division: Grouping (Repeated Subtraction) Model → Division: Fair Sharing Model → Division as Equal Sharing → Division as Grouping → Basic Division Facts → Division Facts Within 100 → Multiplication and Division Fact Families → Relationship Between Multiplication and Division → Division Facts as Inverse of Multiplication → Remainders and Quotients in Division → Division Word Problems → Multi-Step Word Problems → Solving Multi-Step Word Problems → Multiplication Word Problems → Division Word Problems → Introduction to Long Division → Factors and Multiples → Prime and Composite Numbers → Equivalent Fractions → Relating Fractions and Decimals → Decimal Place Value → Integers and the Number Line → Opposites and Additive Inverses → Absolute Value → Adding Integers → Subtracting Integers → Multiplying Integers → Properties of Operations → Ordered Field Axioms of the Real Numbers → The Completeness Axiom (Least Upper Bound Property) → Supremum and Infimum → The Archimedean Property → Density of the Rationals

Longest path: 67 steps · 242 total prerequisite topics

Prerequisites (2)

Leads To (0)

No topics depend on this one yet.