Proof by Contradiction
What you will get from this section. You will learn the main structure of proof by contradiction, how it grows naturally from the contrapositive, and how to use it to prove both ordinary statements and if-then statements.
The main structure of proof by contradiction
Suppose we want to prove that a statement is true.
A proof by contradiction starts by temporarily assuming that the opposite, , is true, and proceeds to make a chain of deductions from , for example:
At this point, we realise, however, that cannot actually be true, and is true. Thus we have established two facts:
- (1): ,
- (2): is true.
We also know that the contrapositive of (1) is true:
- (3): , which is just .
Now combining (2) and (3), we immediately deduce that must be true. This is the high-level structure of proofs by contradiction.
A useful short way to remember it is:
Assume the opposite, deduce something impossible, then conclude the original statement is true.
Example 1: There are infinitely many prime numbers
Proof: Suppose there are only finitely many prime numbers. Now let's see what can be deduced.
It is then possible to make a complete and ordered list of them: , where is the greatest prime in the world.
It is possible to construct a number
that is, the product of all the primes, plus .
is not a multiple of , or , or , or any prime in the list, since it is always more than a multiple of each prime by construction.
If had any prime factor, that prime factor would have to be in the complete list above. But is not divisible by any prime in the list.
Therefore, is not divisible by any smaller prime.
is prime.
, since is the greatest prime in the world.
However, this last statement cannot be right, since by construction, !
Informally, we can just say, this cannot be right, as we know . Every time we assume "there are finitely many primes", we end up in this contradiction. Therefore, this first assumption is wrong, and its negation must be true: there are infinitely many primes.
Formal proof structure: Through the proof, we have established these facts:
- (1) "There are only finitely many prime numbers" .
- (2) is true.
We also know that the contrapositive of (1) is true:
- (3) "There are infinitely many prime numbers".
Now combining (2) and (3), the result immediately follows. That is, there are infinitely many prime numbers, and this concludes the proof.
Example 2: is irrational
Proof: Suppose is rational. Now let's see what can be deduced.
It is possible to write as a fraction in lowest terms: , where and are positive integers with no common factor greater than .
.
.
is even.
is even.
We can write for some positive integer .
Substituting this into gives .
Therefore .
.
So is even.
is even.
We have now shown that and are both even, so they have a common factor of .
However, this cannot be right, because was chosen to be in lowest terms.
Informally, we can just say: this cannot be right, as and cannot both be even if is in lowest terms. Every time we assume " is rational", we end up in this contradiction. Therefore, this first assumption is wrong, and its negation must be true: is irrational.
Formal proof structure:
Through the proof, we have established these facts:
- (1) " is rational" " and are both even".
- (2) " and are not both even", since was chosen to be in lowest terms.
We also know that the contrapositive of (1) is true:
- (3) " and are not both even" " is irrational".
Now combining (2) and (3), the result immediately follows. That is, is irrational, and this concludes the proof.
Proving "if then " by contradiction
Sometimes we want to prove an implication:
We can rephrase this as:
So we treat as a known fact, and our goal becomes proving . The proof structure is the same as before, except that we now have the additional known fact .
Example 3: if is odd, then is odd
We rephrase this as:
Proof: Suppose we are given that is odd, and assume for contradiction that is even.
where is an integer.
.
is even.
But this is wrong, since we were given that is odd. Every time we assume " is even", we end up in this contradiction. Therefore, this first assumption is wrong, and its negation must be true: must be odd.
Formal proof structure:
Through the proof, we have established, or know, these facts:
- (1) " is even" " is even".
- (2) " is odd" is true.
We also know that the contrapositive of (1) is true:
- (3) " is odd" " is odd".
Now combining (2) and (3), the result immediately follows. That is, given that is odd, is odd, and this concludes the proof.
Example 4: if is divisible by a prime , then is divisible by
We prove this for a positive integer and a prime number .
Before we begin, the symbol means "divides". For example:
means " divides ", or equivalently, " is divisible by ".
We prove this for a positive integer and a prime number .
We rephrase the statement as:
Proof: Suppose we are given that , and assume for contradiction that .
Since is prime and , the prime does not appear in the prime factorisation of .
Therefore, does not appear in the prime factorisation of .
.
But this is wrong, since we were given that . Every time we assume "", we end up in this contradiction. Therefore, this first assumption is wrong, and its negation must be true: .
Formal proof structure:
Through the proof, we have established, or know, these facts:
- (1) "" "".
- (2) "" is true.
We also know that the contrapositive of (1) is true:
- (3) "" "".
Now combining (2) and (3), the result immediately follows. That is, given that , , and this concludes the proof.
Summary
- To prove by contradiction, assume .
- Then deduce something impossible.
- Since leads to something impossible, cannot be true.
- Therefore must be true.
- For an if-then statement , treat as a known condition and prove by contradiction.
- The logical structure is closely connected to the contrapositive: if and is true, then must be true.
Worksheets
Practise proving statements by contradiction: assuming the opposite , deducing an impossible consequence, and concluding that must be true — including classic examples and how the method relates to the contrapositive. Each worksheet below comes as a PDF with fully worked solutions.