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 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: 43 has its point, and so does 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. 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×52Swipe to see the whole equation →
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 a2, it was already a prime factor of a:
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=62, but 4 does not divide 6. (36 contains 22 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 is rational."
This is the assumption we will break.
2. Write it as a fraction in lowest terms
p=ba, a and b integers, b=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: pb2=a2
Squares are whole numbers we can factorise.
4. Use the theorem
p divides a2, so p divides a; write a=pc
p is prime.
5. Substitute and repeat
b2=pc2, 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 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 is irrational for every prime p: 2, 3, 5, 7, 11, and so on.
Indian contribution: Baudhāyana's value of 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. 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+31+3×41−3×4×341=408408+136+34−1=408577Swipe to see the whole equation →
Now 408577=1.414215… while 2=1.414213… — their first five decimal places are the same (1.41421…). The reason it is so close: 5772=332929 and 2×4082=332928, 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 exactly2.
Source: MacTutor History of Mathematics, University of St Andrews, "Baudhayana".
Visuals
Proof-by-contradiction template with "why" labelsThe routine students reproduce in every irrationality proof; shows why "co-prime" must be written.Draw in examReal-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 is irrational
Question. Prove that 2 is irrational.
Given: nothing except the theorem on primes and squares. To prove:2 cannot be written as ba.
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
Assume the opposite. Suppose 2 is rational. Then there are integers a and b, b=0, with
2=baSwipe to see the whole equation →
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 is positive.)
3
Remove the root. Multiply both sides by b.
2b=aSwipe to see the whole equation →
4
Square both sides.
2b2=a2Swipe to see the whole equation →
5
Use the theorem.a2 equals 2b2, a multiple of 2, so 2 divides a2. Since 2 is prime, 2 divides a. So we can write a=2c for some integer c.
6
Substitutea=2c into 2b2=a2.
2b2=(2c)2=4c2Swipe to see the whole equation →
7
Divide both sides by 2.
b2=2c2Swipe to see the whole equation →
8
So 2 divides b2, and since 2 is prime, 2 divides b.
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
Conclude. The contradiction arose from assuming 2 is rational. So that assumption is false.
Hence2is irrational.
Common trap: Writing "2=1.41421356…, 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 is irrational
Question. Prove that 3 is irrational.
Given: the theorem on primes and squares. To prove:3 is irrational.
Concept used: the same template with p = 3. Why it applies: 3 is prime, so the theorem can be used.
1
Assume the opposite. Suppose 3 is rational. Then
3=baSwipe to see the whole equation →
where a and b are integers, b=0, and a and b are co-prime.
2
Remove the root. Multiply by b.
3b=aSwipe to see the whole equation →
3
Square both sides.
3b2=a2Swipe to see the whole equation →
4
Use the theorem. 3 divides a2; 3 is prime, so 3 divides a. Write a=3c for some integer c.
5
Substitute into 3b2=a2.
3b2=(3c)2=9c2Swipe to see the whole equation →
6
Divide both sides by 3.
b2=3c2Swipe to see the whole equation →
7
So 3 divides b2, and since 3 is prime, 3 divides b.
8
Contradiction. 3 divides both a and b, so they have the common factor 3 — but they are co-prime.
9
Conclude. The assumption that 3 is rational is false.
Hence3is irrational.
Common trap: In step 5, writing (3c)2=3c2. The 3 is squared too: (3c)2=9c2.
Worked example 3
Why the proof does not work for 4
Question. Ravi copies the proof for 4: "Suppose 4=ba with a and b co-prime. Then 4b2=a2, so 4 divides a2, so 4 divides a …" Where does his argument go wrong? Is 4 irrational?
Given: Ravi's attempted proof. Asked: the faulty step, and the truth about 4.
Concept used: the theorem needs a prime p. Why it applies: 4 is not prime.
1
Up to 4b2=a2 the algebra is fine.
2
The step "4 divides a2, 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=36, yet 4 does not divide 6.
3
In fact 4=2=12: here a = 2 and b = 1 are co-prime, and 4b2=4=a2 — no contradiction appears.
4
So 4 is rational, and the proof breaks exactly where the word "prime" is needed.
Check:4×4=4 and 2×2=4 ✔.
AnswerThe faulty step is "4 divides a2 ⇒ 4 divides a" — the theorem works only for primes. 4=2 is rational.
Common trap: Thinking the template proves every square root irrational. It works for primes — and 4, 9, 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?
8 is not a perfect square: 8=22, irrational.
0.09=0.3=103.
π is irrational.
The run of zeros keeps growing, so the decimal never repeats.
Quick check · 2 of 3MCQ1 mark
In a proof that 5 is irrational, a student reaches 5b2=a2, where a and b are co-prime integers. What is the correct next step?
This uses the theorem with the prime 5, and leads on to "5 divides b" and the contradiction.
5b2=a2 does not force these values — and a = 5, b = 1 does not even satisfy it (5=25).
Decimal digits are not a proof.
Nothing in the equation says that b divides a.
Quick check · 3 of 3True/False with justification1 mark
True or false? Justify. "If 4 divides a2, then 4 divides a."
Answer:False.
Working: Take a = 6: 4 divides 62=36, but 4 does not divide 6.
The theorem is only for a prime divisor. One counter-example is enough to show a statement is false.
Did you get it?
Key points
A real number is either rational (qp) or irrational, never both; every real number has a point on the number line.
Theorem: if a prime p divides a2, then p divides a. It fails for non-primes (4 divides 36, not 6).
Template: assume rational → ba with a, b co-prime → square → p divides a → a=pc → p divides b → contradiction → irrational.
The same proof works for p, any prime p. It does not work for 4, which is rational.