Prove or disprove: the sum of an integer and its cube is even.
To illustrate the ideas of the section, we'll do the proof of this one in three different ways:
This illustrates the use of cases in an argument. The cases must exhaust all possibilities!
Let x be an integer.
We consider , and hope to show that it is even.
Now we can factor,
, so we consider two cases:
You may object that we need to prove that the product of odd integers is odd. If so, then this is called a lemma (a theorem proven to help prove another theorem).
Lemma: the product of odd integers is odd.
Proof: given two odd integers, a and b. Then we can write a=2m+1 and b=2n+1, where m and n are integers. Consider the product: ab=(2m+1)(2n+1)=2(2mn+m+n)+1, which is odd as the sum of an even integer and one. Q.E.D.
Note that the contradiction occurs not in P or Q, but in a sub-wff. Any contradiction will do!
Let x be an integer, and assume that is odd. A product ab is odd if
and only if both a and b are odd.
, so x must be odd,
and
must be odd. But
is odd, as a product of odd integers; hence
is even. But this is a contradiction. Therefore,
is not odd,
but rather is even. Q.E.D.
Restated: ``If is not even, then x is not an integer.''
Notes:
Let be not even, so that
is not even. If x is an integer,
then so is
, and so it is either even or odd. Since we are assuming that
is not even, it must be odd. [Now goto the proof by contradiction, to
show that
cannot be odd.] Since it cannot be even, by hypothesis, and
cannot be odd, by contradiction, we conclude that x is not an integer.
Q.E.D.
Table: Direct Proof, gory detail