Maths · Ch 1 · Topic 5 of 6Proving √2 irrational
Topic 5 of 6

Irrational numbers and proving √2 is irrational

About 60 minutes · 3 things to learn
By the end you can…
  • Describe rational and irrational numbers and where they sit on the number line.
  • Understand, through examples, the theorem "if a prime p divides a², then p divides a".
  • Prove that √2, √3, √5 (and √p for a prime p) are irrational by contradiction.

Draw a square with sides of 1 cm. Its diagonal is exactly 2\sqrt{2} cm long — you can draw it with a ruler in one second. Yet no fraction, however huge its numerator and denominator, is exactly equal to that length. How can anyone be sure of that? You cannot check every fraction. In this topic you will prove it in about ten lines, using the Fundamental Theorem of Arithmetic.

Rational, irrational, real

The natural numbers sit inside the whole numbers, which sit inside the integers, which sit inside the rationals. The irrationals are a separate family — no number is both. Every point of the number line is a real number: 34\dfrac{3}{4} has its point, and so does 2\sqrt{2} — mark the diagonal of a unit square on the line with a compass, and it lands between 1.41 and 1.42.

Why decimals cannot settle the question

A calculator shows 1.414213562 for 2\sqrt{2}. That is only ten digits. Perhaps the decimal starts repeating after a million digits? No amount of computing can rule that out. We need an argument that covers every fraction at once. That argument is a proof.

A fact about primes and squares

Look at some squares and their prime factors:

144=122=(22×3)2=24×32225=152=(3×5)2=32×52144 = 12^2 = (2^2 \times 3)^2 = 2^4 \times 3^2 \qquad 225 = 15^2 = (3 \times 5)^2 = 3^2 \times 5^2

When you square a number, you get the same primes, each one twice as often. No new prime can appear (that is the uniqueness in the Fundamental Theorem of Arithmetic). So if a prime divides a2a^2, it was already a prime factor of aa:

Examples: 3 divides 144, and 3 divides 12. 5 divides 225, and 5 divides 15. You need to use this theorem in proofs; you do not have to prove it in the exam.

Why "prime" matters. For a number that is not prime the statement can fail: 4 divides 36=6236 = 6^2, but 4 does not divide 6. (36 contains 222^2 only because 6 contains one 2, squared.) So the theorem may only be used with a prime p.

Proof by contradiction

To prove something is true, you can assume it is false and follow the logic step by step. If you arrive at something impossible — a contradiction — the assumption must have been wrong, so the statement is true. Detectives argue this way: "Suppose the suspect left at 9 p.m. Then the 9:15 camera would show the car — but it doesn't. So he did not leave at 9 p.m."

The proof template

Every irrationality proof in this chapter follows the same seven stages. Learn them as a routine:

Stage What you write Why
1. Assume the opposite "Suppose p\sqrt{p} is rational." This is the assumption we will break.
2. Write it as a fraction in lowest terms p=ab\sqrt{p} = \dfrac{a}{b}, a and b integers, b≠0b \neq 0, a and b co-prime Any fraction can be reduced until numerator and denominator share no factor.
3. Remove the root multiply by b, then square: p b2=a2p\,b^2 = a^2 Squares are whole numbers we can factorise.
4. Use the theorem p divides a2a^2, so p divides a; write a=pca = pc p is prime.
5. Substitute and repeat b2=p c2b^2 = p\,c^2, so p divides b The same theorem again.
6. Contradiction p divides both a and b, but they are co-prime Impossible.
7. Conclude "So p\sqrt{p} is irrational." The assumption was false.

The hinge is stage 2. Without the words "a and b are co-prime", stage 6 contradicts nothing — and the proof collapses. Examiners look for them.

The same seven stages prove that p\sqrt{p} is irrational for every prime p: 2\sqrt{2}, 3\sqrt{3}, 5\sqrt{5}, 7\sqrt{7}, 11\sqrt{11}, and so on.

Indian contribution: Baudhāyana's value of 2\sqrt{2}

Beyond the syllabus — not assessed. This short box is here for interest; there are no exam questions on it.

Builders in ancient India needed a good value for 2\sqrt{2}. The Baudhāyana Śulbasūtra — one of the ancient Indian Śulbasūtras, manuals of geometry for laying out brick altars of exact shapes and sizes — gives a rule for the diagonal of a square (Chapter 1, verse 61). In words: increase the side by its third, and this third by its own fourth, less the thirty-fourth part of that fourth. Written as fractions, for a square of side 1, this gives

2≈1+13+13×4−13×4×34=408+136+34−1408=577408\sqrt{2} \approx 1 + \dfrac{1}{3} + \dfrac{1}{3 \times 4} - \dfrac{1}{3 \times 4 \times 34} = \dfrac{408 + 136 + 34 - 1}{408} = \dfrac{577}{408}

Now 577408=1.414215…\dfrac{577}{408} = 1.414215\ldots while 2=1.414213…\sqrt{2} = 1.414213\ldots — their first five decimal places are the same (1.41421…). The reason it is so close: 5772=332 929577^2 = 332\,929 and 2×4082=332 9282 \times 408^2 = 332\,928, which differ by only 1. The exact date of the text is not known; historians usually place it several centuries BCE. And, as this topic proves, no fraction — not even this excellent one — can ever be exactly 2\sqrt{2}.

Source: MacTutor History of Mathematics, University of St Andrews, "Baudhayana".

Visuals

Proof by contradiction: the template Proof-by-contradiction template for √p irrational, p prime: seven boxes joined by arrows, each with a reason. 1 Assume the opposite: assume √p is rational (why: the assumption we will break). 2 Lowest terms: co-prime: √p = a/b, a and b integers, b ≠ 0, a and b CO-PRIME (why: any fraction can be reduced to lowest terms). 3 Square: multiply by b and square, p b² = a² (why: whole numbers we can factorise). 4 Use the theorem (p prime): p divides a² so p divides a; write a = pc (why: theorem — p is prime). 5 Substitute and repeat: p b² = p² c², so b² = p c², so p divides b (why: same theorem again). 6 Contradiction, red border with a cross: p divides a AND b — but a and b are co-prime. 7 Conclude, green border: so √p is irrational (why: the assumption was false). A bracket labelled the hinge joins boxes 2 and 6. Note: use the theorem only with a PRIME: 4 divides 36 but 4 does not divide 6. why? 1 Assume the opposite Assume p is rational. the assumption we will break 2 lowest terms: co-prime p = a b a, b integers, b 0, a and b CO-PRIME any fraction can be reduced to lowest terms 3 square Multiply by b, square: p b2 = a2 whole numbers we can factorise 4 use the theorem (p prime) p divides a2 p divides a. Write a = pc. theorem — p is prime 5 substitute and repeat Substitute: p b2 = p2 c2 b2 = p c2 p divides b same theorem again 6 contradiction p divides a AND b — but a, b are co-prime contradiction 7 conclude So p is irrational. the assumption was false the hinge Use the theorem only with a PRIME: 4 divides 36 but 4 does not divide 6.
Proof-by-contradiction template with "why" labelsThe routine students reproduce in every irrationality proof; shows why "co-prime" must be written.Draw in exam
Real numbers: the family and the number line The real-number family. A large box, Real numbers, holds two separate boxes that do not overlap. Rational numbers (p/q), for example 3/4, −2.5, 0.333…, contain Integers (…, −2, −1, 0, 1, 2, …), which contain Whole numbers (0, 1, 2, …), which contain Natural numbers (1, 2, 3, …). Irrational numbers (not p/q): √2, √3, √5, π, 0.1010010001…. Below, a number line from −2 to 3 with points at −1.5, 0, 3/4, 1, √2, 2 and √5. A unit square stands on 0 to 1; its diagonal from 0 and a compass arc from the diagonal's end come down to the line at √2. √2 ≈ 1.414 and √5 ≈ 2.236, drawn to scale. Real numbers Rational numbers ( p q ) 3 4 ,  −2.5,  0.333… Integers: …, −2, −1, 0, 1, 2, … Whole numbers: 0, 1, 2, … Natural numbers: 1, 2, 3, … Irrational numbers (not p q ) 2 , 3 , 5 , π ,  0.1010010001… 1 1 −2 −1 0 1 2 3 −1.5 3 4 2 5 2 1.414 5 2.236
Real-number family and number linePlaces rational and irrational numbers in one picture, and shows that √2 is a real point on the line even though it is not a fraction.

Worked examples

Worked example 1

Proving 2\sqrt{2} is irrational

Question. Prove that 2\sqrt{2} is irrational.

Given: nothing except the theorem on primes and squares. To prove: 2\sqrt{2} cannot be written as ab\dfrac{a}{b}.

Concept used: proof by contradiction, with the seven-stage template. Why it applies: we cannot test every fraction, so we show that assuming one exists leads to something impossible.

  1. 1

    Assume the opposite. Suppose 2\sqrt{2} is rational. Then there are integers a and b, b≠0b \neq 0, with

    2=ab\sqrt{2} = \dfrac{a}{b}
  2. 2

    Lowest terms. Cancel any common factor, so that a and b are co-prime (their HCF is 1). (We can take a and b positive, because p\sqrt{p} is positive.)

  3. 3

    Remove the root. Multiply both sides by b.

    2 b=a\sqrt{2}\,b = a
  4. 4

    Square both sides.

    2b2=a22b^2 = a^2
  5. 5

    Use the theorem. a2a^2 equals 2b22b^2, a multiple of 2, so 2 divides a2a^2. Since 2 is prime, 2 divides a. So we can write a=2ca = 2c for some integer c.

  6. 6

    Substitute a=2ca = 2c into 2b2=a22b^2 = a^2.

    2b2=(2c)2=4c22b^2 = (2c)^2 = 4c^2
  7. 7

    Divide both sides by 2.

    b2=2c2b^2 = 2c^2
  8. 8

    So 2 divides b2b^2, and since 2 is prime, 2 divides b.

  9. 9

    Contradiction. 2 divides a (step 5) and 2 divides b (step 8). But a and b were chosen co-prime in step 2. This is impossible.

  10. 10

    Conclude. The contradiction arose from assuming 2\sqrt{2} is rational. So that assumption is false.

    Hence 2\sqrt{2} is irrational.

    Common trap: Writing "2=1.41421356…\sqrt{2} = 1.41421356\ldots, which does not repeat, so it is irrational." You can only ever see finitely many digits — that is evidence, not a proof. No marks.

Worked example 2

Proving 3\sqrt{3} is irrational

Question. Prove that 3\sqrt{3} is irrational.

Given: the theorem on primes and squares. To prove: 3\sqrt{3} is irrational.

Concept used: the same template with p = 3. Why it applies: 3 is prime, so the theorem can be used.

  1. 1

    Assume the opposite. Suppose 3\sqrt{3} is rational. Then

    3=ab\sqrt{3} = \dfrac{a}{b}

    where a and b are integers, b≠0b \neq 0, and a and b are co-prime.

  2. 2

    Remove the root. Multiply by b.

    3 b=a\sqrt{3}\,b = a
  3. 3

    Square both sides.

    3b2=a23b^2 = a^2
  4. 4

    Use the theorem. 3 divides a2a^2; 3 is prime, so 3 divides a. Write a=3ca = 3c for some integer c.

  5. 5

    Substitute into 3b2=a23b^2 = a^2.

    3b2=(3c)2=9c23b^2 = (3c)^2 = 9c^2
  6. 6

    Divide both sides by 3.

    b2=3c2b^2 = 3c^2
  7. 7

    So 3 divides b2b^2, and since 3 is prime, 3 divides b.

  8. 8

    Contradiction. 3 divides both a and b, so they have the common factor 3 — but they are co-prime.

  9. 9

    Conclude. The assumption that 3\sqrt{3} is rational is false.

    Hence 3\sqrt{3} is irrational.

    Common trap: In step 5, writing (3c)2=3c2(3c)^2 = 3c^2. The 3 is squared too: (3c)2=9c2(3c)^2 = 9c^2.

Worked example 3

Why the proof does not work for 4\sqrt{4}

Question. Ravi copies the proof for 4\sqrt{4}: "Suppose 4=ab\sqrt{4} = \dfrac{a}{b} with a and b co-prime. Then 4b2=a24b^2 = a^2, so 4 divides a2a^2, so 4 divides a …" Where does his argument go wrong? Is 4\sqrt{4} irrational?

Given: Ravi's attempted proof. Asked: the faulty step, and the truth about 4\sqrt{4}.

Concept used: the theorem needs a prime p. Why it applies: 4 is not prime.

  1. 1

    Up to 4b2=a24b^2 = a^2 the algebra is fine.

  2. 2

    The step "4 divides a2a^2, so 4 divides a" uses the theorem with p = 4. But 4 is not prime, and the theorem does not hold for it: 4 divides 62=366^2 = 36, yet 4 does not divide 6.

  3. 3

    In fact 4=2=21\sqrt{4} = 2 = \dfrac{2}{1}: here a = 2 and b = 1 are co-prime, and 4b2=4=a24b^2 = 4 = a^2 — no contradiction appears.

  4. 4

    So 4\sqrt{4} is rational, and the proof breaks exactly where the word "prime" is needed.

  5. Check: 4×4=4\sqrt{4} \times \sqrt{4} = 4 and 2×2=42 \times 2 = 4 ✔.

  6. Answer The faulty step is "4 divides a2a^2 ⇒ 4 divides a" — the theorem works only for primes. 4=2\sqrt{4} = 2 is rational.

    Common trap: Thinking the template proves every square root irrational. It works for primes — and 4\sqrt{4}, 9\sqrt{9}, 25\sqrt{25} are whole numbers.

3 examples · they get harder as you go

Quick check

Answer without scrolling up
Quick check · 1 of 3MCQ1 mark

Which of these is a rational number?

Quick check · 2 of 3MCQ1 mark

In a proof that 5\sqrt{5} is irrational, a student reaches 5b2=a25b^2 = a^2, where a and b are co-prime integers. What is the correct next step?

Quick check · 3 of 3True/False with justification1 mark

True or false? Justify. "If 4 divides a2a^2, then 4 divides a."

Key points

  • A real number is either rational (pq\dfrac{p}{q}) or irrational, never both; every real number has a point on the number line.
  • Theorem: if a prime p divides a2a^2, then p divides a. It fails for non-primes (4 divides 36, not 6).
  • Template: assume rational → ab\dfrac{a}{b} with a, b co-prime → square → p divides a → a=pca = pc → p divides b → contradiction → irrational.
  • The same proof works for p\sqrt{p}, any prime p. It does not work for 4\sqrt{4}, which is rational.
  • Decimal digits are evidence, never a proof.
My notesComing soon