4.5 Proof by contradiction

Consider the conditional statement ‘PQP\Rightarrow Q’ and suppose we know that statement QQ is false. This situation can be represented by the Euler diagram in Figure 4.2. (See Section 3.2.4 if you need to remind yourself about this.)

PPQQ
Figure 4.2: Euler diagram showing ‘PQP\Rightarrow Q’ with QQ false

We can deduce that statement PP must also be false, because it is not possible to place a dot outside QQ but inside PP. This is the key to the idea of a proof by contradiction: it is impossible to start with a true statement and deduce a false statement using valid logical deduction.

This means that we can prove a statement PP is true by showing that ‘not PFP\Rightarrow F’ for some statement FF that we know is false. As FF is false, ‘not PP’ must also be false and so PP must be true. Such a proof of PP is called a proof by contradiction.

Example 4.23.

Let’s prove by contradiction that there is no integer that is both odd and even. This means that we should assume the negation is true and use that to deduce a statement that we know is false.

So, assume that there is some integer aa that is both even and odd. [Convince yourself that this is indeed the negation.] By definition (see Definition 2.6) this means we can write a=2ka=2k and a=2l+1a=2l+1 for some integers kk and ll. This means that

a\displaystyle a =a\displaystyle=a
\displaystyle\Leftrightarrow 2k\displaystyle 2k =2l+1\displaystyle=2l+1 (replacing aa)
\displaystyle\Leftrightarrow 2k2l\displaystyle 2k-2l =1\displaystyle=1 (rearranging)
\displaystyle\Leftrightarrow 2(kl)\displaystyle\quad 2(k-l) =1\displaystyle=1 (factorising)
\displaystyle\Leftrightarrow kl\displaystyle k-l =12\displaystyle=\tfrac{1}{2} (dividing both sides by 22).

The statement kl=12k-l=\tfrac{1}{2} must be false because kk and ll are integers and so klk-l must also be an integer. Every step of the argument is a valid logical deduction, and so the only statement involved that could be false (and must be false!) is the statement that there is some integer aa that is both even and odd.

Example 4.24.

We shall prove that there is no integer nn such that n2=2n^{2}=2.

For a contradiction, assume that there is an integer nn with n2=2n^{2}=2. Because n2n^{2} is even then, by Exercise 4.21, nn must be even too. This means that there is an integer kk such that n=2kn=2k. Therefore n2=(2k)2=4k2n^{2}=(2k)^{2}=4k^{2} and so

4k2\displaystyle 4k^{2} =2\displaystyle=2 (since n2=2n^{2}=2)
\displaystyle\Leftrightarrow 2k2\displaystyle\quad 2k^{2} =1\displaystyle=1 (dividing both sides by 22).

Because k2k^{2} is an integer, this last equation implies that 11 is even (since it can be written as 22 times an integer). This contradicts the fact that 11 is not even (as discussed after Definition 2.6) and so our assumption that such an integer nn exists must be false.

Note that in these examples, we clearly stated what we were assuming and that these assumptions were ‘for a contradiction’. You should do this too – it will help the reader to understand the structure of your proof.

Exercise 4.25.

Prove that if aa and bb are positive integers then a2b21a^{2}-b^{2}\neq 1.

  • Solution.For a contradiction, assume that aa and bb are positive integers and that a2b2=1a^{2}-b^{2}=1. Then, by factorising the left-hand side, we have

    (ab)(a+b)=1.(a-b)(a+b)=1.

    As aa and bb are integers, so are (ab)(a-b) and (a+b)(a+b). Moreover, as aa and bb are positive, (a+b)(a+b) must also be positive. The only way two integers, one of which is positive, can multiply to give 11 is if both are equal to 11, thus aa and bb must solve these equations simultaneously:

    {ab=1a+b=1.\left\{\begin{array}[]{lr}a-b=1\\ a+b=1.\end{array}\right.

    Adding the two equations gives 2a=22a=2 and so a=1a=1. Putting a=1a=1 in either equation gives b=0b=0. This contradicts our assumption that bb was a positive integer and so our assumption that a2b2=1a^{2}-b^{2}=1 must be false.