4.4 Proving the contrapositive

The statements ‘PQP\Rightarrow Q’ and ‘not QQ\Rightarrow not PP’ are equivalent. To see why, let’s think about the Euler diagrams representing these two statements.

Recall the Euler diagram for the statement ‘PQP\Rightarrow Q’ from Section 3.2.4.

PPQQ

Figure 4.1: Euler diagram showing ‘PQP\Rightarrow Q

The arrangement of PP and QQ in the diagram ensures that a dot placed inside PP (representing PP being true) must also be inside QQ (meaning that QQ must also be true). But this relationship can be equally well described by saying that if a dot is outside QQ then it must be outside PP. If we draw the Euler diagram for this, then the shape for PP must be inside the shape for QQ, giving the same Euler diagram as above.

So proving the statement ‘not QQ\Rightarrow not PP’ is equivalent to proving ‘PQP\Rightarrow Q’. We call ’not QQ \Rightarrow not PP’ the contrapositive of ’PQP\Rightarrow Q’.

This idea may seem counter-intuitive at first but it helps to think about a real-life example. In some legal jurisdictions, there is a road safety law that states: ‘if your vehicle’s wipers are on, then its lights must be on’. The contrapositive of this statement is ‘if your vehicle’s lights are not on, then its wipers are not on’. Think about this and convince yourself that these are indeed equivalent ways of stating the same thing.

As demonstrated by the following exercises, it can sometimes be easier to prove the contrapositive rather than the original statement.

Exercise 4.20.

Let aa be an integer. By proving the contrapositive, show that if a2a^{2} is odd then aa is odd.

  • Solution.The contrapositive is: if aa is not odd then a2a^{2} is not odd. In other words, if aa is even then a2a^{2} is even.

    We can now prove this directly. Suppose aa is even, and so we can write a=2ka=2k for some integer kk. Then

    a2=(2k)2=4k2=2(2k2).a^{2}=(2k)^{2}=4k^{2}=2(2k^{2}).

    As kk is an integer, so is (2k2)(2k^{2}) and so a2a^{2} has the form of an even integer.

Exercise 4.21.

Let aa be an integer. Prove that if a2a^{2} is even then aa is even.

  • Solution.The contrapositive is: if aa is odd then a2a^{2} is odd.

    We now prove this directly. Suppose aa is odd, and so we can write a=2k+1a=2k+1 for some integer kk. 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.

    As kk is an integer, so is (2k2+2k)(2k^{2}+2k) and so a2a^{2} has the form of an odd integer.

Exercise 4.22.

Suppose that xx, yy and zz are real numbers and that x>yx>y. Prove that if xzyzxz\leq yz then z0z\leq 0.

[Take care to understand what this claim is saying before you start writing a proof.]

  • Solution.The contrapositive is: if z>0z>0, then xz>yzxz>yz.

    We now prove this directly. Suppose x>yx>y and z>0z>0. Multiplying both sides of an inequality by a positive number does not reverse the direction of the inequality, and so xz>yzxz>yz.