M5.8.2 Chapter 2
Proof by contradiction
How can you prove something is true by first pretending it is false?
Your guess
Pick one before you read on. It is fine to be wrong.
By the end you can
- Prove that √2 is irrational
- Prove that there are infinitely many primes
In chapter 1 a proof went from what we know to the claim. A proof by contradiction goes the other way round. It assumes that the claim is false. Then it takes valid steps until it reaches something impossible, a contradiction. If every step was valid, the only thing left to blame is the assumption. So the assumption is false, and the claim is true.
A first example. Claim: there is no smallest positive fraction. Suppose there is one, and call it s. Then s ÷ 2 is also a positive fraction, and it is smaller than s. That contradicts the choice of s as the smallest. So the assumption was false, and there is no smallest positive fraction.
Worked example
Prove that there are no whole numbers m and n with 4m + 6n = 1001.
- Suppose there are whole numbers m and n with 4m + 6n = 1001.
- Take out the common factor 2: 4m + 6n = 2(2m + 3n). The left side is twice a whole number, so it is even.
- The right side is odd: 1001 = 2 × 500 + 1.
- So an even number equals an odd number. That is impossible.
- So the assumption was false, and no such whole numbers exist.
Answer: No such whole numbers exist. The left side is even and 1001 is odd.
Now a bigger example. A number is rational if it can be written as a fraction a/b of two integers, with b not 0, and irrational if it cannot. To show that √2 is irrational we need one fact first: if a² is even, then a is even. We prove it by the other direction. If a is odd, then a² is odd, since odd × odd is odd (chapter 1). So an odd a never has an even square. The table shows it for small cases.
Now the proof. We write the fraction in lowest terms, so that a and b have no common factor. The contradiction will be that they do have one.
The same idea proves that there are infinitely many primes. Suppose not. Then all the primes can be listed, up to a last one. Multiply every prime on the list and add 1. Call the result N. Divide N by any prime on the list. The product part divides exactly, so the remainder is always 1. So no prime on the list divides N. But every number above 1 has a prime factor. That factor is a prime that is not on the list.
Worked example
Suppose the only primes were 2, 3, 5, 7, 11 and 13. Find N, and show that the list is not complete.
- Multiply the primes: 2 × 3 × 5 × 7 × 11 × 13 = 30030.
- Add 1: N = 30030 + 1 = 30031.
- Each prime on the list leaves remainder 1 when it divides N, so none of them divides N.
- But N has a prime factor. Here 30031 = 59 × 509.
- 59 and 509 are primes that are not on the list, so the list was not complete.
Answer: N = 30031 = 59 × 509, and 59 and 509 are not on the list.
See it three ways
With things
Cut a strip of paper. Fold it in half and tear off one half. Fold what is left in half again, and tear again. Paper runs out after a few tears, but a number can always be halved again, so no fraction is the smallest.
As a picture
In words
Assume there is a smallest piece. Halving it gives a smaller piece, which is impossible. So the assumption was false, and there is no smallest piece.
In symbols
s ÷ 2 is less than s, so s was not the smallest.
Try it
Fold a strip again and again
You need: a long strip of paper, a ruler, a pencil.
- Draw a line along the strip and mark its length. Call the length 1.
- Fold the strip in half. Mark the fold and tear off one half.
- Fold the piece that is left in half. Mark the fold and tear off one half.
- Do it a few more times. Write the length of the piece after each fold.
What you will see: Each piece is half of the last. Pieces of 1/2, 1/4, 1/8 and 1/16 of the strip come off, and a piece always remains. There is no smallest piece.
A wrong idea many people have
In the proof that there are infinitely many primes, N is always a prime number.
Why it feels right: N is not divisible by any prime on the list, which looks like what a prime is.
The test that breaks it: Take the primes 2, 3, 5, 7, 11 and 13. Then N = 30031 = 59 × 509, which is not prime.
What is true: N has a prime factor that is not on the list. That factor may be N itself, or it may be a smaller prime, such as 59 here. Either way it is a prime that was missing.
A wrong idea many people have
The opposite of "there are infinitely many primes" is "there are no primes".
Why it feels right: The words "infinitely many" and "none" look like two ends of a scale.
The test that breaks it: There are primes: 2, 3 and 5 are three of them. So "there are no primes" is false, yet the claim could still be false for another reason. It is not the exact opposite.
What is true: The exact opposite is "there are finitely many primes". That is why the proof starts by listing all the primes.
Key words
- proof by contradiction
- a proof that assumes the opposite of the claim and reaches something impossible.
- contradiction
- a result that cannot be true, such as an even number equal to an odd number.
- rational
- a number that can be written as a fraction a/b of two integers, with b not 0.
- irrational
- a number that cannot be written as a fraction of two integers. √2 is one.
- lowest terms
- a fraction a/b where a and b have no common factor above 1.
Back to your guess
The answer is C: A proof assumes the opposite of a claim and reaches something impossible, such as 1 = 2. That shows the opposite is false, so the claim is true.
If every step is valid, an impossible result can only come from the assumption. So the assumption is false. Its opposite, the claim, is then true. This is how we prove that √2 is not a fraction.
Check yourself
Try each one before you look. A wrong answer tells you where to go next.
Suppose √5 = a/b in lowest terms. Squaring gives a² = 5b². Which statement follows in one step from a² = 5b²?
See the answer
a² is a multiple of 5
a² = 5 × b², which is 5 times a whole number. The proof continues as for √2: 5 divides a² so it divides a, and then 5 also divides b, which breaks lowest terms.
- If you chose B: That was the case for a² = 2b². Here a² = 5b², and 5b² is odd when b is odd, so a² need not be even. Read this page again.
- If you chose C: Nothing in a² = 5b² says that. In lowest terms, a and b share no factor. Read this page again.
- If you chose D: Squaring a = 5b gives a² = 25b², not 5b². Read this page again.
This proof that there are infinitely many primes goes wrong at one line. Which is the first wrong line?
See the answer
Line 3
The product divides exactly by each listed prime, so adding 1 leaves a remainder of 1, not 0. For the primes 2, 3, 5, 7, 11, 13 and 17, N = 510511 and 510511 ÷ 17 leaves 1.
- If you chose A: Line 2 defines N as the product plus 1. For the primes 2, 3, 5, 7, 11, 13 and 17 that is 510510 + 1 = 510511. It is correct. Read this page again.
- If you chose B: Every whole number above 1 has a prime factor, so line 5 is true. Read this page again.
- If you chose C: Line 6 is true: for the primes 2, 3, 5, 7, 11, 13 and 17 the factor 19 of 510511 is not on the list. Read this page again.
What is the exact opposite of "there are infinitely many primes", the statement to assume at the start of the proof?
See the answer
There are finitely many primes.
The claim says the primes never run out. The exact opposite says they do run out, so all of them can be listed.
- If you chose A: That is false, and it is not the opposite. For example, 4 is not prime. Read this page again.
- If you chose C: 2 is a prime, so this is false. It is not the exact opposite either. Read this page again.
- If you chose D: 2 is an even prime. This is not the opposite of the claim. Read this page again.
Which of these equations has no solution in whole numbers x and y (zero allowed)?
See the answer
10x + 15y = 2013
10x + 15y = 5(2x + 3y) is always a multiple of 5. 2013 ends in 3, so it is not one. Suppose a solution exists, and a multiple of 5 equals a number that is not a multiple of 5. That is a contradiction.
- If you chose A: 10x + 15y = 2010 has solutions, such as x = 0 and y = 134. The left side is a multiple of 5, and so is the right side. Read this page again.
- If you chose C: 2015 is a multiple of 5, as the left side always is. It has solutions. Read this page again.
- If you chose D: 2025 is a multiple of 5, as the left side always is. It has solutions. Read this page again.
From an earlier chapter
A claim says that n² + n + 17 is prime for every whole number n from 0 up. Which value of n is a counterexample?
See the answer
n = 16
n = 16 gives 16² + 16 + 17 = 289, which is 17 × 17. So it is not prime. One failure is enough.
Let N be the product of the primes 2, 3, 5 and 7, plus 1. What is N?
See the answer
211
2 × 3 × 5 × 7 = 210, and adding 1 gives 211.
Take the primes 2, 5, 7, 11 and 13. Then N = 2 × 5 × 7 × 11 × 13 + 1 = 10011. What is the smallest prime factor of N?
See the answer
3
None of 2, 5, 7, 11 and 13 divides 10011, as each leaves remainder 1. Trying 3: 10011 = 3 × 3337. So the smallest prime factor is 3, a prime that was not on the list.
In the proof that √2 is irrational, which fact takes us from "a² is even" to "a is even"?
See the answer
The square of an odd number is odd.
If a were odd, a² would be odd. So a² even rules out a odd, and a must be even.
- If you chose A: That fact goes the other way. We need: if a² is even, then a is even. Read this page again.
- If you chose B: That is a true fact, but it is about sums. The proof needs a fact about squares. Read this page again.
- If you chose D: That is false. 6 is even and is not a multiple of 4. Read this page again.
Keep it
Copy this into your exercise book.
Contradiction: assume the opposite, reach something impossible, so the assumption is false. √2 = a/b in lowest terms gives a² = 2b², a and b both even. Product of primes plus 1 has a new prime factor.
Draw: Four boxes joined by arrows: assume the opposite, valid steps, impossible, so the claim is true.