3.3 Indirect proofs: contradiction and contraposition

Suppose we are trying to prove that all thrackles are polycyclic29. A direct proof of this would involve looking up the definition of what it means to be a thrackle, and of what it means to be polycyclic, and somehow discerning a way to convert whatever thrackle’s logical equivalent is into the logical equivalent of polycyclic. As happens fairly often, there may be no obvious way to accomplish this task.

Indirect proof takes a completely different tack. Suppose you had a thrackle that wasn’t polycyclic, and furthermore, show that this supposition leads to something truly impossible. Well, if it’s impossible for a thrackle to not be polycyclic, then it must be the case that all of them are. Such an argument is known as proof by contradiction.

Quite possibly the sweetest indirect proof known is Euclid’s proof that there are an infinite number of primes.

Theorem 3.3 (Euclid) The set of all prime numbers is infinite.

Proof. Suppose on the contrary that there are only a finite number of primes. This finite set of prime numbers could, in principle, be listed in ascending order.

\[ \{ p_1, p_2, p_3, \ldots , p_n \} \]

Consider the number \(N\) formed by adding 1 to the product of all of these primes.

\[ N = 1 + \prod_{k=1}^n p_k \]

Clearly, \(N\) is much larger than the largest prime \(p_n\), so \(N\) cannot be a prime number itself. Thus \(N\) must be a product of some of the primes in the list. Suppose that \(p_j\) is one of the primes that divides \(N\). Now notice that, by construction, \(N\) would leave remainder \(1\) upon division by \(p_j\). This is a contradiction since we cannot have both \(p_j \!\mid\!N\) and \(p_j \nmid N\).

Since the supposition that there are only finitely many primes leads to a contradiction, there must indeed be an infinite number of primes.

 

If you are working on proving a UCS and the direct approach seems to be failing, you may find that another indirect approach, proof by contraposition, will do the trick. In one sense, this proof technique isn’t really all that indirect; what one does is determine the contrapositive of the original conditional and then prove that directly. In another sense, this method is indirect because a proof by contraposition can usually be recast as a proof by contradiction fairly easily.

The easiest proof I know of using the method of contraposition (and possibly the nicest example of this technique) is the proof of the lemma we stated in Section 1.6 in the course of proving that \(\sqrt{2}\) wasn’t rational. In case you’ve forgotten, we needed the fact that whenever \(x^2\) is an even number, so is \(x\).

Let’s first phrase this as a UCS.

\[ \forall x \in {\mathbb Z}, \; x^2 \, \mbox{even} \; \implies x \, \mbox{even} \]

Perhaps you tried to prove this result earlier. If so, you probably came across the conceptual problem that all you have to work with is the evenness of \(x^2\) which doesn’t give you much ammunition in trying to show that \(x\) is even. The contrapositive of this statement is:

\[ \forall x \in {\mathbb Z}, \; x \, \mbox{not even} \; \implies x^2 \, \mbox{not even} \]

Now, since \(x\) and \(x^2\) are integers, there is only one alternative to being even — so we can re-express the contrapositive as

\[ \forall x \in {\mathbb Z}, \; x \, \mbox{odd} \; \implies x^2 \, \mbox{odd}. \]

Without further ado, here is the proof:

Theorem 3.4 \[ \forall x \in {\mathbb Z}, \; x^2 \, \mbox{even} \; \implies x \, \mbox{even} \]

Proof. This statement is logically equivalent to

\[ \forall x \in {\mathbb Z}, \; x \, \mbox{odd} \; \implies x^2 \, \mbox{odd} \] so we prove that instead.

Suppose that \(x\) is a particular but arbitrarily chosen integer such that \(x\) is odd. Since \(x\) is odd, there is an integer \(k\) such that \(x=2k+1\). It follows that \[x^2 = (2k + 1)^2 = 4k^2 + 4k + 1 = 2(2k^2 + 2k) + 1.\] Finally, we see that \(x^2\) must be odd because it is of the form \(2m+1\), where \(m = 2k^2 + 2k\) is clearly an integer.

 

Let’s have a look at a proof of the same statement done by contradiction.

Proof. We wish to show that

\[ \forall x \in {\mathbb Z}, \; x^2 \, \mbox{even} \; \implies x \, \mbox{even}. \]

Suppose to the contrary that there is an integer \(x\) such that \(x^2\) is even but \(x\) is odd.30 Since \(x\) is odd, there is an integer \(m\) such that \(x=2m+1\). Therefore, by simple arithmetic, we obtain \(x^2 = 4m^2+4m+1\) which is clearly odd. This is a contradiction because \(x^2\) is even by assumption.

 

The main problem in applying the method of proof by contradiction is that it usually involves “cleverness.” You have to come up with some reason why the presumption that the theorem is false leads to a contradiction — and this may or may not be obvious. More than any other proof technique, proof by contradiction demands that we use drafts and rewriting. After monkeying around enough that we find a way to reach a contradiction, we need to go back to the beginning of the proof and highlight the feature that we will eventually contradict! After all, we want it to look like our proofs are completely clear, concise and reasonable even if their formulation caused us some sort of Gordian-level mental anguish.

We’ll end this section with an example from geometry.

Theorem 3.5 Among all triangles inscribed in a fixed circle, the one with maximum area is equilateral.

Proof. We’ll proceed by contradiction. Suppose to the contrary that there is a triangle, \(\triangle ABC\), inscribed in a circle having maximum area that is not equilateral. Since \(\triangle ABC\) is not equilateral, there are two sides of it that are not equal. Without loss of generality, suppose that sides \(\overline{AB}\) and \(\overline{BC}\) have different lengths. Consider the remaining side \(\overline{AC}\) to be the base of this triangle. We can construct another triangle \(\triangle AB'C\), also inscribed in our circle, and also having \(\overline{AC}\) as its base, having a greater altitude than \(\triangle ABC\) — since the area of a triangle is given by the formula \(bh/2\) (where \(b\) is the base, and \(h\) is the altitude), this triangle’s area is evidently greater than that of \(\triangle ABC\). This is a contradiction since \(\triangle ABC\) was presumed to have maximal area.

We leave the actual construction \(\triangle AB'C\) to the following exercise.

 

Exercise 3.4 Consider Figure 3.1. Where should we place the point \(B'\) in order to create a triangle \(\triangle AB'C\) having greater area than any triangle such as \(\triangle ABC\) which is not isosceles?
Triangle inscribed in a circle.

Figure 3.1: Triangle inscribed in a circle.

3.3.1 Exercises

  1. Prove that if the cube of an integer is odd, then that integer is odd.

  2. Prove that whenever a prime \(p\) does not divide the square of an integer, it also doesn’t divide the original integer. (\(p \nmid x^2 \; \implies \; p \nmid x\))

  3. Prove (by contradiction) that there is no largest integer.

  4. Prove (by contradiction) that there is no smallest positive real number.

  5. Prove (by contradiction) that the sum of a rational and an irrational number is irrational.

  6. Prove (by contraposition) that for all integers \(x\) and \(y\), if \(x+y\) is odd, then \(x\neq y\).

  7. Prove (by contraposition) that for all real numbers \(a\) and \(b\), if \(ab\) is irrational, then \(a\) is irrational or \(b\) is irrational.

  8. A Pythagorean triple is a set of three natural numbers, \(a\), \(b\) and \(c\), such that \(a^2 + b^2 = c^2\). Prove that, in a Pythagorean triple, at least one of \(a\) and \(b\) is even. Use either a proof by contradiction or a proof by contraposition.

  9. Suppose you have two pairs of positive real numbers whose products are 1. That is, you have \((a,b)\) and \((c,d)\) in \({\mathbb R}^2\) satisfying \(ab=cd=1\). Prove that \(a < c\) implies that \(b > d\).


  1. Both of these strange sounding words represent real mathematical concepts, however, they don’t have anything to do with one another.

  2. Recall that the negation of a UCS is an existentially quantified conjunction.