√2 is not a fraction
P83.irrationals.01 · Audience: Guest, IT/ML learner, Language professional · Prerequisites: From counting to fractions: ℕ, ℤ and ℚ
Where next?
Later in Irrational Numbers
This module unlocks
P83.irrationals.01 · Audience: Guest, IT/ML learner, Language professional · Prerequisites: From counting to fractions: ℕ, ℤ and ℚ
Later in Irrational Numbers
This module unlocks
The goal of this lesson is one proof, read slowly: the length of the diagonal of a square whose sides are 1 is not a fraction. It is the oldest surprise in mathematics, and it shows that the rational numbers, dense as they are, leave gaps in the line. You need the previous lesson's fractions in lowest terms, and the fact that every whole number is either even or odd.
Draw a square with sides of length 1 and its diagonal. Pythagoras' theorem says the diagonal d satisfies d² = 1² + 1² = 2. So d is the number whose square is 2, written √2 ("the square root of 2"). It is a real length: you can draw it, and a ruler measures it at about 1.414.
The Greeks expected every length to be a ratio of whole numbers, a fraction. Here is why √2 cannot be one.
The method is a proof by contradiction: assume the opposite of what you want to show, and follow it until it says something impossible. If correct steps lead to something impossible, the assumption was false.
Two facts about even and odd numbers do the work. An even number is twice a whole number (2k); an odd number is one more than an even one (2k + 1).
Suppose √2 is a fraction. Then it has a form in lowest terms: √2 = p/q, where p and q are whole numbers with no common factor bigger than 1. Every fraction has such a form (the previous lesson), so this costs nothing.
A number that is not rational is called an irrational number. √2 is the first one we have met. "Irrational" here means "not a ratio", not "unreasonable".
Without step 1's "lowest terms", step 5 would only say that p and q are both even, which is no contradiction: 4/2 has an even top and bottom. Lowest terms turn "both even" into an impossibility. Another way to see the same argument: if p/q worked, then so would (p/2)/(q/2), a smaller pair, and then a smaller one again, forever. Whole numbers cannot shrink forever, so no pair works at all.
A computer can search for a fraction whose square is exactly 2. It will not find one, and watching it fail is instructive:
from fractions import Fraction
candidates = [Fraction(p, q) for q in range(1, 13) for p in range(q, 2 * q + 1)]
nearest = min(candidates, key=lambda f: abs(f * f - 2))
print(nearest, float(nearest * nearest)) # 17/12 2.0069444444444446
The fractions get closer: 3/2, 7/5, 17/12, 41/29, 99/70, and their squares approach 2. But a search that finds nothing up to a million proves nothing about a million and one. Only the proof covers every fraction at once. That is the course's rule: compute to see, prove to know.
Mark every rational number on a line. They are dense: between any two there is another. Yet the point at distance √2 from 0 is not one of them. The rational numbers are everywhere and still leave holes, and √2 sits in one. Filling every such hole gives the real numbers, the number line with no gaps. The next lesson asks whether all the holes are like √2, the root of a simple equation, or whether some are stranger still.
Loading the exercise...
Ask a question about this content. The mentor explains and grounds its answer in what you are studying; asking is recorded as a learning signal, not a grade.
Off by default. The mentor always gets your file; this only decides whether your own copy stays here. Copies live in this browser only - they do not follow you to another device, and clearing site data removes them.
Two coding rungs (a little Python; Beginner Python teaches it), then one proof in your own words, graded against the steps a proof must contain.
Loading exercise…
Loading exercise…
Loading exercise…
Loading your notes...