← mapBedrock

Irrationals & the Real Line

⚗ Dr. Möbius, from the lab

The rationals looked perfect. Dense, gap-free to the naked eye, a number wedged between any two others forever. Then the ancient Greeks drew a square, measured its diagonal, and the whole beautiful edifice cracked open — there's a number sitting right there on the line that no fraction can name. They were so disturbed by it that legend says they drowned the poor bastard who proved it. Today we commit the same glorious heresy, and nobody is getting drowned.

THE BIG IDEA

The diagonal of a unit square has length $\sqrt{2}$, which is provably not a fraction — so $\mathbb{Q}$ has holes, and filling every hole produces $\mathbb{R}$, the complete real line, finishing the course's origin story $\mathbb{N}\subset\mathbb{Z}\subset\mathbb{Q}\subset\mathbb{R}$.

The defect you couldn't see

Every other defect in this stratum was visible. N\mathbb{N} obviously couldn't do 353-5. Z\mathbb{Z} obviously couldn't do 3÷53\div5. But in Fractions & the Rationals I told you Q\mathbb{Q} is dense — between any two rationals there's another — and the line looked completely full. No gaps anywhere.

I lied by omission. The line is riddled with holes. You just can't see them, because the rationals crowd right up to the edge of each hole from both sides without ever landing in it. This is the kind of shit that kept the Greeks up at night. Here's the hole they found.

The diagonal that broke mathematics

Draw a square one unit on each side. Its diagonal dd cuts across. By the Pythagorean theorem (which we'll prove properly in the Geometry stratum — for now, trust the most famous fact in math):

d2=12+12=2.d^2 = 1^2 + 1^2 = 2.

So dd is a positive number whose square is 22 — it's 2\sqrt{2}, using roots from Exponents & Roots. This length exists; it's the diagonal of a square you can draw with a ruler. Surely such an honest, physical length is a fraction. Right?

No. And we can prove it.

The proof: 2\sqrt{2} is not a fraction

This is a proof by contradiction — assume the thing you want to disprove, then watch the whole damn universe break. (We'll formalize this technique in Proof by Contradiction over in Logic & Proof; consider this the trailer, and it's a hell of a trailer.)

Suppose, for contradiction, that 2\sqrt{2} is rational. Then we can write it as a fraction in lowest terms (always possible — reduce until top and bottom share no common factor, using equivalent fractions from Fractions & the Rationals):

2=pq,p,q share no common factor.\sqrt{2} = \frac{p}{q}, \qquad p, q \text{ share no common factor}.

Square both sides: 2=p2q22 = \dfrac{p^2}{q^2}, so

p2=2q2.p^2 = 2q^2.

Read this: p2p^2 is two times something, so p2p^2 is even. Now a key fact (proved in full in the Logic stratum, but believe it: it follows from "odd times odd is odd"): if p2p^2 is even, then pp itself is even. So p=2kp = 2k for some integer kk.

Substitute back: (2k)2=2q2(2k)^2 = 2q^2, i.e. 4k2=2q24k^2 = 2q^2, so

q2=2k2.q^2 = 2k^2.

By the exact same reasoning, q2q^2 is even, so qq is even.

But now both pp and qq are even — they share the factor 22. That directly contradicts our setup that p/qp/q was in lowest terms with no common factor. The assumption detonated. Therefore the assumption was false:

2 is NOT rational.\sqrt{2} \text{ is NOT rational.}

Let that land. Sit with it for a second. There is a perfectly real length — you can draw it with a ruler right now — that no fraction in the universe equals. Not an approximation problem, not a rounding issue. Q\mathbb{Q} has a hole exactly where 2\sqrt{2} should be, and the rationals pile up on both sides of that hole forever without ever filling it. This is why the Greeks nearly had a breakdown, and frankly it's appropriate.

The irrationals: a whole new species

Numbers that are not ratios of integers are called irrational. 2\sqrt2 is one. So is 3\sqrt3, 5\sqrt5, and most roots. And the two superstars:

  • π3.14159\pi \approx 3.14159\ldots — the circle's circumference-to-diameter ratio.
  • e2.71828e \approx 2.71828\ldots — the natural growth constant (you'll meet it properly in Exponential Functions).

Both irrational, both fundamental, neither expressible as any fraction.

What does an irrational look like as a decimal? Recall from Fractions & the Rationals: every rational decimal either terminates (0.250.25) or eventually repeats a block (0.30.\overline{3}). An irrational does neither — its decimal expansion runs on forever with no repeating pattern, ever:

2=1.41421356,π=3.14159265\sqrt2 = 1.41421356\ldots, \qquad \pi = 3.14159265\ldots

No block ever cycles. That non-repeating, non-terminating sprawl is the signature of irrationality. A rational is a decimal that eventually settles into a rhythm; an irrational never does.

R\mathbb{R}: filling every last hole

The fix is the same move we've made all stratum: when the system has a defect, forge what's missing. The rationals have holes; we fill every single goddamn one. The result — the rationals plus all the irrationals, every point on the line with no gaps left — is R\mathbb{R}, the real numbers.

Drag along and feel it: between the rational tick-marks live uncountably many irrationals, plugging every gap. The line is now genuinely solid:

number line
-3-2-101232
x = 2−x = -2|x| = 2

The property that R\mathbb{R} has and Q\mathbb{Q} lacks is completeness: stated informally, the real line has no holes. Anywhere a sequence of numbers is closing in on a target, the target is actually there in R\mathbb{R} — unlike in Q\mathbb{Q}, where the rationals could close in on 2\sqrt2 and find nothing home. Completeness is the technical heart of calculus and analysis; for now, "no holes" is the whole idea, and it's enough.

The origin story, complete

Step all the way back. We started this stratum with bare counting and watched four number systems get forged, each to repair the last one's defect:

NZQR.\mathbb{N} \subset \mathbb{Z} \subset \mathbb{Q} \subset \mathbb{R}.

  • N\mathbb{N}: counting. Can't subtract past zero.
  • Z\mathbb{Z}: add the negatives. Now subtraction always works. Can't divide.
  • Q\mathbb{Q}: add the fractions. Now division always works. Has invisible holes.
  • R\mathbb{R}: add the irrationals. Now there are no holes. The line is complete.

Four systems, one creature, upgraded three times — exactly the master plot I promised you in the very first lesson. Every later object in this entire course (vectors, matrices, eigenvalues, all of it) is built on top of R\mathbb{R}. You now stand on solid ground. Literally — the line finally has no holes to fall through. That took humanity thousands of years to sort out and you just did it in one lesson. Go run the gauntlet.

🔬 SPECIMENS (worked examples)

Worked example 1 — rational or irrational?

Classify each as rational or irrational: (a) 25\sqrt{25}, (b) 7\sqrt{7}, (c) 0.450.\overline{45} (the block 4545 repeating).

(a) 25\sqrt{25}. Is 2525 a perfect square? Yes: 52=255^2 = 25, so 25=5\sqrt{25} = 5. An integer — rational.

(b) 7\sqrt{7}. Is 77 a perfect square? No (it's between 22=42^2=4 and 32=93^2=9). The same contradiction proof that killed 2\sqrt2 works for 7\sqrt7 — no fraction squares to 77. Irrational.

(c) 0.45=0.4545450.\overline{45} = 0.454545\ldots It repeats the block 4545 forever, and every repeating decimal is a fraction (in fact 0.45=4599=5110.\overline{45} = \frac{45}{99} = \frac{5}{11}). Rational.

The pattern: roots of perfect squares are rational; non-perfect-square roots are irrational; repeating decimals are always rational.

Worked example 2 — the proof that detonates the rationals

In the proof that 2\sqrt2 is irrational, we reach p2=2q2p^2 = 2q^2 and conclude pp is even. Then what is the very next deduction, and how does the contradiction finally appear?

Since pp is even, write p=2kp = 2k. Substitute into p2=2q2p^2 = 2q^2:

(2k)2=2q2    4k2=2q2    q2=2k2.(2k)^2 = 2q^2 \;\Longrightarrow\; 4k^2 = 2q^2 \;\Longrightarrow\; q^2 = 2k^2.

That last equation says q2q^2 is even, so (same lemma) qq is even too.

Now the trap springs: we assumed pq\frac{p}{q} was in lowest terms, meaning pp and qq share no common factor. But we've just shown both are even — they share the factor 22. Contradiction.

The only thing we assumed was "2\sqrt2 is rational," so that must be false. The engine of the whole proof is: rational \Rightarrow lowest terms exist \Rightarrow but both parts turn out even \Rightarrow no lowest terms after all \Rightarrow boom.

Worked example 3 — the trap: dense isn't complete

A student says: "Q\mathbb{Q} is dense — there's a rational between any two numbers — so Q\mathbb{Q} has no gaps and we don't need R\mathbb{R}." Where exactly does this reasoning fail?

The student conflated two different properties: density and completeness.

Density is true of Q\mathbb{Q}: between any two rationals lives another rational (average them — from Fractions & the Rationals). So no rational is "isolated."

Completeness is what Q\mathbb{Q} lacks. Consider rationals closing in on 2\sqrt2: 1.4, 1.41, 1.414, 1.4142, 1.4,\ 1.41,\ 1.414,\ 1.4142,\ \ldots Each term is rational, each is closer to 2\sqrt2, the gaps between them shrink to nothing — yet the number they're homing in on, 2\sqrt2, is not in Q\mathbb{Q}. The sequence converges to a hole.

So density says "rationals are everywhere"; completeness says "every limit is actually present." Q\mathbb{Q} has the first and fails the second. The whole reason R\mathbb{R} exists is to supply the missing limits — to fill exactly the holes that density can crowd around but never plug.

☠ KNOWN HAZARDS

  • Thinking 21.414\sqrt2 \approx 1.414 "is" rational because the calculator shows a finite decimal. The calculator truncates. The true expansion never terminates and never repeats. A finite display is a rounding, not the number — your calculator is lying to you by omission.

  • Believing dense means gap-free. Q\mathbb{Q} is dense (a rational between any two) yet still full of holes — density and completeness are different properties. Rationals can crowd a hole from both sides forever without ever filling it. The Greeks' nightmare, right there.

  • Assuming every root is irrational. 4=2\sqrt4=2 and 9=3\sqrt9=3 are perfectly rational. Roots of perfect squares are integers; it's the non-perfect-squares (2,3,5\sqrt2,\sqrt3,\sqrt5) that go irrational. Check before you panic.

  • Calling 0.3330.333\ldots irrational because it "goes on forever." Going forever isn't enough — it has to go forever without repeating. 0.30.\overline3 repeats like clockwork, so it's the rational 13\frac13. Irrationals never settle into a rhythm — ever.

TL;DR

  • The diagonal of a unit square is 2\sqrt2 (Pythagoras: d2=1+1=2d^2=1+1=2) — a real, drawable length.

  • 2\sqrt2 is not a fraction: assume 2=p/q\sqrt2=p/q in lowest terms, derive that pp and qq are both even — a contradiction. So Q\mathbb{Q} has holes.

  • Irrational numbers (2\sqrt2, π\pi, ee) are non-ratios; their decimals are non-terminating AND non-repeating — the opposite of every rational decimal.

  • R\mathbb{R} fills every hole in Q\mathbb{Q}. Its defining property is completeness: informally, the real line has no holes.

  • The origin story is complete: NZQR\mathbb{N}\subset\mathbb{Z}\subset\mathbb{Q}\subset\mathbb{R}, each system forged to fix the previous one's defect.

unlocks