A-level Mathematics

1.5 Proof by contradiction — Learn

Prerequisites: proof by deduction from 1.2; the general forms 2n2n for even and 2n+12n + 1 for odd; prime factorisation; cancelling a fraction to its simplest form.

By the end of this section you can: set up a proof by contradiction; derive an impossibility from the assumption; and use the method to prove that 2\sqrt{2} is irrational and that there are infinitely many prime numbers.

1. The method

Sometimes the quickest route to a result is to suppose it is false and see what breaks. A proof by contradiction has three steps:

  1. assume the opposite of the statement you want to prove;
  2. use that assumption to derive something impossible;
  3. conclude that the assumption was false, so the original statement is true.

Step 2 usually ends in one of a few familiar impossibilities: a number that is both even and odd; a fraction that is not in its lowest terms although we said it was; a prime that divides a number and leaves a remainder; a "smallest" object with something smaller than it.

2. A warm-up contradiction

Example 1. Prove that there is no greatest even number.

Assume, for contradiction, that there is a greatest even number. Call it MM.

Because MM is even,

M=2kM = 2k

for some whole number kk.

Add 22 to MM. Then

M+2=2k+2=2(k+1).M + 2 = 2k + 2 = 2(k + 1).

This is a multiple of 22, so M+2M + 2 is even. Also

M+2>M.M + 2 > M.

So M+2M + 2 is an even number greater than MM. This contradicts the claim that MM is the greatest even number. The assumption is false, so there is no greatest even number.

3. 2\sqrt{2} is irrational

A rational number can be written as a fraction ab\frac{a}{b} with whole numbers aa and bb and b≠0b \neq 0. We can cancel common factors until aa and bb have no factor in common. Then the fraction is in its lowest terms.

First we need a small fact.

Lemma. If a2a^2 is even, then aa is even.

Suppose aa is odd, so

a=2k+1.a = 2k + 1.

Then

a2=(2k+1)2=4k2+4k+1=2(2k2+2k)+1,a^2 = (2k + 1)^2 = 4k^2 + 4k + 1 = 2(2k^2 + 2k) + 1,

which is odd, not even. This contradicts the fact that a2a^2 is even. So aa cannot be odd, and therefore aa is even.

Now the main proof.

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

Assume, for contradiction, that 2\sqrt{2} is rational. Then

2=ab,\sqrt{2} = \frac{a}{b},

where aa and bb are whole numbers, b≠0b \neq 0, and the fraction is in its lowest terms.

Square both sides:

2=a2b2.2 = \frac{a^2}{b^2}.

Multiply both sides by b2b^2:

a2=2b2.a^2 = 2b^2.

The right-hand side has a factor 22, so a2a^2 is even. By the lemma, aa is even, so

a=2ka = 2k

for some whole number kk.

Substitute a=2ka = 2k into a2=2b2a^2 = 2b^2:

(2k)2=2b2,so4k2=2b2.(2k)^2 = 2b^2, \qquad \text{so} \qquad 4k^2 = 2b^2.

Divide both sides by 22:

2k2=b2.2k^2 = b^2.

Now b2b^2 has a factor 22, so b2b^2 is even, and by the lemma bb is even.

So aa and bb are both even. That means the fraction ab\frac{a}{b} had a common factor 22, which contradicts the fact that it was in its lowest terms. The assumption is false, so 2\sqrt{2} is irrational.

4. Infinitely many primes

Example 3. Prove that there are infinitely many prime numbers.

Assume, for contradiction, that there are only finitely many primes. List them all:

p1,p2,p3,…,pn.p_1, p_2, p_3, \ldots, p_n.

Form the number

N=p1p2p3⋯pn+1.N = p_1 p_2 p_3 \cdots p_n + 1.

Each prime pip_i divides the product p1p2⋯pnp_1 p_2 \cdots p_n, so pip_i leaves remainder 00 for the product and remainder 11 for NN. Therefore no pip_i divides NN.

Now NN is greater than 11, and every whole number greater than 11 has a prime factor. Let pp be a prime factor of NN. The list p1,…,pnp_1, \ldots, p_n was supposed to contain every prime, so pp is one of them. But no prime in the list divides NN. This is a contradiction.

The assumption is false, so the list of primes cannot be finite. There are infinitely many prime numbers.

Watch out. The contradiction must be a genuine impossibility, not a surprise.

Suppose you want to prove a statement PP. You assume not-PP and find that not-PP leads to a strange result, such as a number being both positive and negative. That is a contradiction, because no number is both. But "I cannot see where the argument goes next" is not a contradiction: it only means the proof is unfinished.

Re-check: write the exact sentence you are assuming, and the exact sentence that it conflicts with. Two sentences that both have to be true, and cannot be, are the whole method.

Progress check

Return to the chapter problem. Claim C says that there is a largest prime number.

  1. To prove Claim C false by contradiction, what do you assume at the start?
  2. The proof in Example 3 builds the number NN. Why does no prime in the list divide NN?
  3. Write one sentence that states the contradiction, and one that states the conclusion.

You should now be able to

Settings

Colour scheme

Applies to every book you read here.

Reading theme

Applies to every book you read here.