Proof by Contradiction and Counterexample
Some statements are hard to prove head-on. How could you directly show that can never be written as a fraction, when there are infinitely many fractions to rule out? Proof by contradiction takes a sneaky route: suppose the statement is false, and show that this leads to something impossible. And when a statement is false, you don’t need a proof at all, just one example where it fails: a counterexample.
Key ideas
Section titled “Key ideas”How proof by contradiction works
Section titled “How proof by contradiction works”To prove a statement :
- Assume the opposite: suppose is false.
- Reason logically from that assumption, using correct steps.
- Reach a contradiction: something that can’t be true, like , or a number that is both odd and even, or a fraction in lowest terms that can still be simplified.
- Conclude: the assumption must be wrong, so is true.
Here’s a short example. Claim: there is no largest even number.
Suppose, for a contradiction, that there is a largest even number; call it . Then for some integer . But is also even, and . So is not the largest even number, which contradicts our assumption. Therefore there is no largest even number.
Useful facts for irrationality proofs
Section titled “Useful facts for irrationality proofs”A number is rational if it can be written as where and are integers and (see number systems). Every rational number can be written in lowest terms, where and have no common factor other than . Irrationality proofs use this.
You’ll also need this fact: if is even, then is even. Why: if were odd, , then would be odd. The same reasoning works for cubes: if is even, then is even.
Disproving with a counterexample
Section titled “Disproving with a counterexample”A statement that claims something is true for all cases is false if there is even one case where it fails. That case is a counterexample.
It is not enough to just state the counterexample. You must show why it is one: substitute it in and explain why the statement fails for it.
For example, the claim ” for every real number ” is false. Take : then , and , so is not true for this value.
Notice the asymmetry: one counterexample disproves a “for all” statement, but no number of examples can prove one.
Which method should you use?
Section titled “Which method should you use?”| The statement… | Try… |
|---|---|
| can be reached directly with algebra (an identity, a result about or ) | a deductive proof |
| is about every positive integer , and case builds on case (sums, divisibility, th derivatives) | proof by induction |
| says something is impossible or not true: “is irrational”, “there is no largest…”, “there are infinitely many…”, “has no solutions” | proof by contradiction |
| claims to be true “for all” cases, but you suspect it’s false | look for a counterexample |
Worked examples
Section titled “Worked examples”Example 1: Counterexamples
Section titled “Example 1: Counterexamples”Show that each statement is not always true.
- (a) “For every positive integer , is prime.”
- (b) “If , then .”
Solution.
(a) Take : . Since has the factor , it is not prime. So the statement is false for , and it is not true for every positive integer.
(b) Take and . Then , since . But and , so . The statement is false for these values.
In both parts, the explanation (why isn’t prime, why breaks the claim) is what earns the marks.
Example 2: √2 is irrational
Section titled “Example 2: √2 is irrational”Prove that is irrational.
Solution. Suppose, for a contradiction, that is rational. Then
where and are positive integers with no common factor (the fraction is in lowest terms). Square both sides and rearrange:
So is even, which means is even. Write for some integer :
So is even, which means is even.
Now and are both even, so they have a common factor of . This contradicts the assumption that was in lowest terms. Therefore is irrational.
Example 3: log₂3 is irrational
Section titled “Example 3: log₂3 is irrational”Prove that is irrational.
Solution. Suppose, for a contradiction, that is rational. Since , , so we can write
where and are positive integers. By the definition of a logarithm,
Since , is even. But is a product of odd numbers, so it is odd. An even number can’t equal an odd number, which is a contradiction. Therefore is irrational.
The step ” and are positive” matters: if were , then would be odd, and the argument would fall apart.
Example 4: There are infinitely many primes
Section titled “Example 4: There are infinitely many primes”Prove that there are infinitely many prime numbers.
Solution. This proof goes back to Euclid, about 2300 years ago.
Suppose, for a contradiction, that there are only finitely many primes. List all of them: . Now build the number
is bigger than , so it has at least one prime factor. That prime must be one of , since the list contains every prime. But dividing by any leaves a remainder of , because is one more than a multiple of . So none of the primes in the list divides .
That means has a prime factor that isn’t on the list, which contradicts the assumption that the list contained every prime. Therefore there are infinitely many primes.
Careful: the proof does not say itself is prime. For example, . What it says is that has a prime factor missing from the list.
Common mistakes
Section titled “Common mistakes”Stating a counterexample without explaining it. Writing "" isn’t enough. Show the calculation () and say why it breaks the statement (it isn’t prime).
Trying to prove a “for all” statement with examples. Checking , , and so on doesn’t prove is irrational. There are infinitely many fractions; you need a proof.
Forgetting “in lowest terms”. The contradiction in the proof comes from and both being even. That’s only a contradiction if you said at the start that has no common factor.
Thinking Euclid’s N must be prime. is not always prime (). The proof only needs to have a prime factor that isn’t on the list.
Skipping the reason that p is even. ” is even, so is even” needs a justification the first time you use it: if were odd, would be odd.
Not saying what was contradicted. End by naming the contradiction (“this contradicts being in lowest terms”) and stating the conclusion (“so is irrational”).
Practice
Section titled “Practice”1. (Warm-up) Find a counterexample to show that this statement is false: “If , then .”
Solution
Take and . Then and , so . But , so is false. The statement fails for these values.
(Any negative with works.)
2. (Warm-up) Find a counterexample to show that this statement is false: “The sum of two irrational numbers is always irrational.”
Solution
Take and . Both are irrational ( is irrational because if it equalled a fraction , then would equal ). But
which is rational. So the sum of two irrational numbers is not always irrational.
3. (Warm-up) Prove by contradiction that there is no smallest positive rational number.
Solution
Suppose, for a contradiction, that there is a smallest positive rational number, . Then is also rational (if , then ), it is positive, and . So is not the smallest positive rational number, which contradicts the assumption. Therefore there is no smallest positive rational number.
4. (Core) Prove that is irrational. You may use the fact that if is a multiple of , then is a multiple of .
Solution
Suppose, for a contradiction, that where and are positive integers with no common factor. Then
so is a multiple of , and therefore is a multiple of . Write :
so is a multiple of , and therefore is a multiple of .
Now and have a common factor of , contradicting the assumption that is in lowest terms. Therefore is irrational.
(Why the given fact is true: if is not a multiple of , then or , and or . Either way, leaves a remainder of when divided by .)
5. (Core) Let be a rational number and an irrational number. Prove by contradiction that is irrational.
Solution
Suppose, for a contradiction, that is rational. Write and , where are integers and . Then
Here and are integers, and , so is rational. This contradicts being irrational. Therefore is irrational.
6. (Core) Prove that is irrational.
Solution
Suppose, for a contradiction, that is rational. Since , , so with and positive integers. Then
Since , is a multiple of . But is a product of ‘s, and is prime and doesn’t divide , so is not a multiple of . This is a contradiction. Therefore is irrational.
7. (Core) Show that this statement is false: “For every positive integer , is prime.”
Solution
Try values in turn: give , which are all prime. But for :
is not prime, so is a counterexample, and the statement is false.
8. (Challenge) Prove that is irrational.
Solution
Suppose, for a contradiction, that where and are positive integers with no common factor. Cube both sides:
So is even. Then must be even (if were odd, would be a product of odd numbers, so odd). Write :
So is even, and by the same reasoning is even.
Now and are both even, contradicting the assumption that is in lowest terms. Therefore is irrational.
9. (Challenge) Prove by contradiction that there are no integers and with .
Solution
Suppose, for a contradiction, that there are integers and with . Factor:
The two factors and differ by , which is even, so they are both even or both odd.
- If both are odd, their product is odd. But is even. Contradiction.
- If both are even, each is a multiple of , so their product is a multiple of . But is not a multiple of . Contradiction.
Either way we reach a contradiction, so there are no integers and with .