Note 3
Note 3
Techniques of Proof
Note 3
Proof : We use these steps, where a and b are two equal positive integers.
Step Reason
(1). a = b Given
Solution: Every step is valid except for one, step 5 where we divided both sides by a − b. The error is
that a − b equals zero; division of both sides of an equation by the same quantity is valid as long as
this quantity is not zero.
Proof : Suppose that n2 is positive. Because the conditional statement “If n is positive, then n2 is
positive” is true, we can conclude that n is positive.
Solution :
• Let P (n) : n is positive and Q(n) : n2 is positive. Then our hypothesis is Q(n).
• The statement “If n is positive, then n2 is positive” is the statement ∀n(P (n) −→ Q(n)).
• From the hypothesis Q(n) and the statement ∀n(P (n) −→ Q(n)) we cannot conclude P (n),
because we are not using a valid rule of inference.
Example 3 What is wrong with this “proof” of “If n is not positive, then n2 is not positive.”
Proof : Suppose that n is not positive. Because the conditional statement “If n is positive, then n2
is positive” is true, we can conclude that n2 is not positive.
Solution :
• Then our hypothesis is ¬P (n) and the statement “If n is positive, then n2 is positive” is the
statement ∀n (P (n) −→ Q(n)).
• From the hypothesis ¬P (n) and the statement ∀n (P (n) −→ Q(n)) we cannot conclude ¬Q(n),
because we are not using a valid rule of inference.
• Instead, this is an example of the fallacy of denying the hypothesis. A counterexample is supplied
by n = −1, as in Example 2.
Suppose that n2 is even. Then n2 = 2k for some integer k. Let n = 2l for some integer l. This
shows that n is even.
Solution : This argument is incorrect. The statement “let n = 2l for some integer l” occurs in the
proof. No argument has been given to show that n can be written as 2l for some integer l. This is
circular reasoning because this statement is equivalent to the statement being proved, namely, “n
is even”. Of course, the result itself is correct; only the method of proof is wrong.
Remark : Making mistakes in proofs is part of the learning process. When you make a mistake that
someone else find, you should carefully analyze where you went wrong and make sure that you do not
make the same mistake again. Even professional mathematicians make mistakes in proofs. More than
a few incorrect proofs of important results have fooled people for many years before subtle errors in
them were found.
(p1 ∨ p2 ∨ · · · ∨ pn ) −→ q
the tautology
can be used as a rule of inference. This shows that the original conditional statement with a hypothesis
made up of a disjunction of the propositions p1 , p2 , · · · , pn can be proved by proving each of the n
conditional statements pi −→ q, i = 1, 2, · · · , n, individually. Such an argument is called a proof by
cases. Sometimes to prove that a conditional statement p −→ q is true, it is convenient to use a
disjunction (p1 ∨ p2 ∨ · · · ∨ pn ) instead of p as the hypothesis of the conditional statement, where p
and (p1 ∨ p2 ∨ · · · ∨ pn ) are equivalent.
Proof:
Example 2 Prove that the only consecutive positive integers not exceeding 100 that are perfect
powers are 8 and 9. (An integer is a perfect power if it equals na , where a ∈ Z+ and a > 1.)
Proof:
• We use a proof by exhaustion. In particular, we can prove the assertion by examining positive
integers n not exceeding 100, first checking whether n is a perfect power, and if it is, checking
whether n + 1 is also a perfect power.
• A quicker way to do this is simply to look at all perfect powers not exceeding 100 and checking
whether the next largest integer is also a perfect power.
• The squares of positive integers not exceeding 100 are 1, 4, 9, 16, 25, 36, 49, 64, 81, and 100.
• The cubes of positive integers not exceeding 100 are 1, 8, 27, and 64 .
• The fourth powers of positive integers not exceeding 100 are 1, 16, and 81.
• The fifth powers of positive integers not exceeding 100 are 1 and 32.
• The sixth powers of positive integers not exceeding 100 are 1 and 64.
• There are no powers of positive integers higher than the sixth power not exceeding 100, other
than 1.
• Looking at this list of perfect powers not exceeding 100, we see that n = 8 is the only perfect
power n for which n + 1 is also a perfect power. That is, 23 = 8 and 32 = 9 are the only two
consecutive perfect powers not exceeding 100.
Proof.
• We can prove that n2 ≥ n for every integer by considering three cases, when n = 0, when n ≥ 1,
and when n ≤ −1
• We split the proof into three cases because it is straightforward to prove the result by considering
zero, positive integers, and negative integers separately.
• Case (i) : When n = 0, because 02 = 0, we see that 02 ≥ 0. It follows that n2 ≥ n is true in this
case.
• Case (ii) : When n ≥ 1, when we multiply both sides of the inequality n ≥ 1 by the positive
integer n, we obtain n · n ≥ n · 1. This implies that n2 ≥ n for n ≥ 1.
• Because the inequality n2 ≥ n holds in all three cases, we can conclude that if n is an integer,
then n2 ≥ n
Example 4 Use a proof by cases to show that |xy| = |x||y|, where x and y are real numbers.
Proof:
• Because both |x| and |y| occur in our formula, we will need four cases: (i) x and y both non-
negative, (ii) x non-negative and y is negative, (iii) x negative and y non-negative, and (iv) x
negative and y negative.
• Case (i): We see that p1 −→ q because xy ≥ 0 when x ≥ 0 and y ≥ 0, so that |xy| = xy = |x||y|.
• Case (ii) : To see that p2 −→ q, note that if x ≥ 0 and y < 0, then xy ≤ 0, so that |xy| =
−xy = x(−y) = |x||y|
• Case (iii) : To see that p3 −→ q, we follow the same reasoning as the previous case with the
roles of x and y reversed.
• Case (iv) : To see that p4 −→ q, note that when x < 0 and y < 0, it follows that xy > 0. Hence,
|xy| = xy = (−x)(−y) = |x||y|
• Because |xy| = |x||y| holds in each of the four cases and these cases exhaust all possibilities, we
can conclude that |xy| = |x||y|, whenever x and y are real numbers.
Sometimes we can eliminate all but a few examples in a proof by cases, as Example 5 illustrates.
Proof:
• We can quickly reduce a proof to checking just a few simple cases because x2 > 8 when |x| ≥ 3
and 3y 2 > 8 when |y| ≥ 2
• This leaves the cases when x equals −2, −1, 0, 1, or 2 and y equals −1, 0, or 1. We can finish
using an exhaustive proof.
• To dispense with the remaining cases, we note that possible values for x2 are 0, 1, and 4, and
possible values for 3y 2 are 0 and 3, and the largest sum of possible values for x2 and 3y 2 is 7.
Example 6 Show that if x and y are integers and both xy and x + y are even, then both x and y
are even.
Proof:
• We will use proof by contraposition, the notion of without loss of generality, and proof by cases.
• First, suppose that x and y are not both even. That is, assume that x is odd or that y is odd
(or both).
• Without loss of generality, we assume that x is odd, so that x = 2m + 1 for some integer k.
x + y = (2m + 1) + 2n = 2(m + n) + 1
is odd.
Remarks : A common error of reasoning is to draw incorrect conclusions from examples. No matter
how many separate examples are considered, a theorem is not proved by considering examples unless
every possible case is covered. The problem of proving a theorem is analogous to showing that a
computer program always produces the output desired. No matter how many input values are tested,
unless all input values are tested, we cannot conclude that the program always produces the correct
output.
• Uniqueness : We show that if y 6= x, then y does not have the desired property.
Equivalently, we can show that if x and y both have the desired property, then x = y.
Remark : Showing that there is a unique element x such that P (x) is the same as proving the
statement ∃x(P (x) ∧ ∀y(y 6= x −→ ¬P (y))).
Example 7 Show that if a and b are real numbers and a 6= 0, then there is a unique real number
r such that ar + b = 0.
Proof:
• Dividing both sides of this last equation by a(6= 0), we see that r = s.
• This means that if s 6= r, then as + b 6= 0. This establishes the uniqueness part of the proof.
Example 8 Given two positive real numbers x and y, their arithmetic mean is (x + y)/2 and their
√
geometric mean is xy. When we compare the arithmetic and geometric means of pairs of distinct
positive real numbers, we find that the arithmetic mean is always greater than the geometric mean.
Can we prove that this inequality is always true?
√
Solution : To prove that (x + y)/2 > xy when x and y are distinct positive real numbers, we can
work backward. We construct a sequence of equivalent inequalities. The equivalent inequalities are
x2 − 2xy + y 2 > 0
(x − y)2 > 0.
Because (x − y)2 > 0 when x 6= y, it follows that the final inequality is true. Because all these
√
inequalities are equivalent, it follows that (x + y)/2 > xy when x 6= y. Once we have carried out
this backward reasoning, we can easily reverse the steps to construct a proof using forward reasoning.
Proof:
• Suppose that x and y are distinct positive real numbers. Then (x − y)2 > 0.
• Adding 4xy to both sides of the above inequality and arranging terms yields
(x + y)2
> xy
4
• Often you’ll need to do some rough work to figure out how your proof should go. Some of the
time, you will be able to get a good idea of how a proof should go by noticing that it can be
similar to the proof of something else.
• Understand every line that you write, and do not make bogus claims.
• Understanding the proofs in the lectures/ lecture notes as a way of understanding of the type
of reasoning that is involved in a proof.
• How you lay out a proof is at least as important as the content (it’s not ok if ‘it’s all in there
somewhere’).
• Try to make your proofs easier to follow by including brief phrases where appropriate. For
example, rather than writing (statement A) implies (statement B) it may be more enlightening
to write (statement B) follows from (statement A) because. . .
• Try to write out many of them, understanding every step. Ask others about unclear points. Try
to follow proofs in class or in books, and ask about unclear points.
“The importance of proofs goes well beyond a university degree. It is eventually about using reason
in everyday life. This could contribute to solving major and global problems.”
.............................................................