MAT 125 Lecture notes on Methods of Proof - Copy (1)
MAT 125 Lecture notes on Methods of Proof - Copy (1)
METHODS OF PROOF
By Dr. Runji Flora
Definition: A definition is an exact, unambiguous explanation of
the meaning of a mathematical word or phrase.
Even Integer: An integer n is even if, and only if, n equals twice
some integer. Symbolically, if n is an integer, then
n is even ⇔ ∃an integer k such that n = 2k.
Odd Integer: An integer n is odd if, and only if, n equals twice
some integer plus 1. Symbolically, if n is an integer, then
n is odd ⇔ ∃an integer k such that n = 2k + 1.
Consecutive Integers: Two integers a and b are consecutive if
and only if
b=a+1
Prime Integer: An integer n is prime if, and only if, n>1 and for
all positive integers r and s, if n=rs, then either r or s equals n. In
symbols:
n is prime ⇔ ∀positive integers r and s, if n = rs
then either r = 1 and s = n or r = n and s = 1.
Page 1 of 25
Perfect Square: An integer a is a perfect square if there is an
2
integer b such that a=b .
Parity: Two integers have the same parity if they are both even
or they are both odd. Otherwise they have opposite parity.
Rational Numbers: A real number x is defined to be a rational
number provided that there exist
m
x=
integers m and n with n≠0 such that n A real number that is
Page 2 of 25
A theorem may be the universal quantification of a conditional
statement
with one or more premises and a conclusion. However, it may be
some other type of logical statement. We demonstrate that a
theorem is true with a proof.
Page 3 of 25
times conjectures are shown to be false, so they are not
theorems.
Trivial Proof:
If we know q is true then p → q is true regardless of the truth
value of p.
Example: Prove the statement: If there are 100 students enrolled
2
in this course this semester, then 6 =36 .
Proof. The assertion is trivially true, since the conclusion is true,
independent of the hypothesis (which, may or may not be true
depending on the enrollment).
Vacuous Proof:
If p is a conjunction of other hypotheses and we know one or
more of these hypotheses is false, then p is false and so p → q is
vacuously true regardless of the truth value of q.
2
Example: Prove the statement. If 6 is a prime number, then 6 =30
Proof. The hypothesis is false, therefore the statement is
vacuously true (even though the conclusion is also false).
Direct Proof (Proof by Construction)
A direct proof of a conditional statement p → q is constructed
when the first step is the assumption that p is true; subsequent
steps are constructed using rules of inference, with the final step
showing that q must also be true.
A direct proof uses rules of inference to derive the conclusion
from the premises.
There are only two steps to a direct:
Page 4 of 25
1. Assume that P is true.
2. Use P to show that Q must be true.
Example: Prove the statement: For all integers m and n, if
m and n are odd integers, then m + n is an even integer.
Proof. Assume m and n are arbitrary odd integers. Then m and n
can be written in the form m = 2a + 1 and n = 2b + 1,
where a and b are also integers.
Then m + n = (2a + 1) + (2b + 1) (substitution)
= 2a + 2b + 2 (associative and commutative laws of
addition)
= 2(a + b + 1) (distributive law)
Since m+n is twice another integer, namely, a+b+1, m+n is an
even integer. ♦
Example: Theorem: The sum of two even numbers x and y
is even.
Proof: Assume there are two even numbers x and y , then show
that their sum x + y is even.
Let m and n be integers so that x=2 m and y=2n (by defn of
“even”).
Then x + y=2 m+2 n (by substitution).
=2 (m+ n) (by left distribution)
Page 5 of 25
2 2
Where 2 t +2t is an integer. Hence, n is odd. ♦
Example: Show that the product of two odd integers is odd.
Proof: Let m and n be two odd integers.
Then m=2 a+1, n=2 b+1 for some integers a , b
This implies
mn=( 2 a+1 )( 2 b+1 )
=4 ab+2 a+2 b+1
=2 ( 2 ab+a+b )+1
2 ab+ a+b is an integer and thus mn is an odd number. ♦
Example: Give a direct proof that if m and n are both perfect
squares, then nm is also a perfect square.
Proof: Assume that m and n are both perfect squares. By the
definition of a perfect square, it follows that there are integers s
2
and t such that m=s and
n=t 2 . We show that mn must also be a perfect square when m and
n are;
mn=s 2 . t 2=( st )2 . By the definition of perfect square, it follows that
mn is also
a perfect square, because it is the square of st, which is an
integer.
Page 6 of 25
Proof by Contraposition
Direct proofs lead from the premises of a theorem to the
conclusion. They begin with the premises, continue with a
sequence of deductions, and end with the conclusion. However,
we will see that attempts at direct proofs often reach dead ends.
We need other methods of proving theorems of the form
∀x(P(x) → Q(x)). Proofs of theorems of this type that are not direct
proofs, that is, that do not start with the premises and end with
the conclusion, are called indirect proofs.
An extremely useful type of indirect proof is known as proof by
contraposition. Proofs by contraposition make use of the fact
that the conditional statement p → q is equivalent to its
contrapositive, ¬q →¬p. This means that the conditional statement
p → q can be proved by showing that its contrapositive, ¬q →¬p, is
true.
In a proof by contraposition of p → q, we take ¬q as a premise,
and using axioms, definitions, and previously proven theorems,
together with rules of inference, we show that ¬p must follow.
Page 7 of 25
Example: Prove the statement: For all integers m and n, if the
product of m and n is even, then m is even or n is even.
Proof: We prove the contrapositive of the statement: If m and n
are both odd integers, then mn is odd.
Proof. Suppose that m and n are arbitrary odd integers.
Then m = 2a + 1 and n = 2b + 1, where a and b are integers.
Then mn = (2a + 1)(2b + 1) (substitution)
= 4ab + 2a + 2b + 1 (associative, commutative, and
distributive laws)
= 2(2ab + a + b) + 1 (distributive law)
Since mn is twice an integer (namely, 2ab + a + b) plus 1, mn is
odd.
Proposition: Let a,b and c be integers. If a|b and b|c, then a|c.
Proof. Suppose a | b and b | c.
By Definition, a|b means there is an integer d with b = ad.
Likewise, b|c means there is an integer e for which c = be.
Thus c = be = (ad)e = a(de), so c = ax for the integer x = de.
Therefore, a | c.
■
Proposition: If x is an even integer, then x2 −6x+5 is odd.
Proof: Suppose x is an even integer. Then x = 2a for some a ∈
ℤ, by definition of an even integer.
So x2−6x+5 = (2a)2 - 6(2a) +5
= 4a2 - 12a+5
= 4a2 -12a+4+1
= 2(2a2 - 6a+2) +1.
Page 8 of 25
Therefore, we have x 2
- 6x+5 = 2b +1, where b = 2a2 −6a+2 ∈
ℤ. Consequently, x2 - 6x+5 is odd, by definition of an odd number.
■
Proof by Cases
In proving a statement is true, we sometimes have to examine
multiple cases before showing the statement is true in all possible
scenarios.
Page 9 of 25
Example: Show that if an integer n is not divisible by 3, then n2 -
1 must be a multiple of 3.
Proof: Let n be an integer that is not divisible by 3.
When it is divided by 3, the remainder is 1 or 2.
Hence, n=3q+1 or n=3q+2 some integer q.
Case 1: If n=3q+1 for some integer q, then
Page 10 of 25
Treating Similar Cases
Occasionally two or more cases in a proof will be so similar that
writing them separately seems tedious or unnecessary. Here is an
example.
Proposition: If two integers have opposite parity, then their sum
is odd.
Proof: Suppose m and n are two integers with opposite parity.
We need to show that m+ n is odd.
This is done in two cases, as follows.
Case 1. Suppose m is even and n is odd.
Thus m = 2a and n = 2b +1 for some integers a and b.
Therefore m+ n = 2a+2b +1 = 2(a+ b)+1, which is
Case 2. Suppose m is odd and n is even.
Thus m = 2a +1 and n = 2b for some integers a and b.
Therefore m+ n = 2a+1+2b = 2(a+ b)+1, which is odd.
In either case, m+ n is odd.
■
The two cases in this proof are entirely alike except for the order
in which the even and odd terms occur. It is entirely appropriate
to just do one case and indicate that the other case is nearly
Page 11 of 25
identical. The phrase “Without loss of generality...” is a common
way of signaling that the proof is treating just one of several
nearly identical cases.
Here is a second version of the above example.
Proposition: If two integers have opposite parity, then their sum
is odd.
Proof: Suppose m and n are two integers with opposite parity.
We need to show that m+ n is odd. Without loss of generality,
suppose m is even and n is odd. Thus m = 2a and n = 2b +1 for
some integers a and b.
Therefore m+n = 2a+2b+1 = 2(a+b)+1, which is odd.
■
Exercise:
Page 12 of 25
Proof by Contradiction
The proof by contradiction is grounded in the fact that any
proposition must be either true or false, but not both true and
false at the same time.
We arrive at a contradiction when we are able to demonstrate
that a statement is both simultaneously true and false, showing
that our assumptions are inconsistent. We can use this to
demonstrate P ⇒ Q by assuming both P and ¬Q are
simultaneously true and deriving a contradiction. When we derive
this contradiction it means that one of our assumptions was
untenable. Presumably we have either assumed or already proved
Page 13 of 25
P to be true so that finding a contradiction implies that ¬Q must
be false.
The method of proof by contradiction.
1. Assume that P is true.
2. Assume that ¬Q is true.
3. Use P and ¬Q to demonstrate a contradiction.
Theorem: If a and b are consecutive integers, then the sum a + b
is odd.
Proof. Assume that a and b are consecutive integers.
Assume also that the sum a + b is not odd.
Because the sum a + b is not odd, there exists no number k such
that a + b = 2k + 1.
However, the integers a and b are consecutive, so we may write
the sum a + b as 2a + 1. Thus, we have derived that a + b 6≠2k
+ 1 for any integer k and also that a + b = 2a + 1. This is a
contradiction. If we hold that a and b are consecutive then we
know that the sum a + b must be odd.
Example: Prove the statement is true: Let x and y be real
numbers. If 5x + 25y = 1723, then x or y is not an integer.
Proof: Assume x and y are real numbers such that 5x+25y =
1723, and assume that both x and y are integers. By the
distributive law, 5(x + 5y) = 1723. Since x and y are integers, this
implies 1723 is divisible by 5. The integer 1723, however, is
clearly not divisible by 5. This contradiction establishes the result.
Example: Prove that√2 is irrational by giving a proof by
contradiction
Page 14 of 25
Proof by Mathematical Induction
Page 15 of 25
Mathematical Induction is a mathematical technique which is
used to
prove a statement, a formula or a theorem is true for every
natural
number.
Page 16 of 25
Example: Prove statements in the examples below, by using
the Principle of Mathematical Induction for all n ∈ N :
Page 17 of 25
Example: Show that if n is a positive integer, then
Page 18 of 25
Example: Use mathematical induction to show that
Page 19 of 25
Example: Use mathematical induction to show that
Page 20 of 25
Example: Prove using mathematical induction that for all n ≥ 1,
Page 21 of 25
Example: Use the Principle of Mathematical Induction to verify
that, for n any positive integer, 6n - 1 is divisible by 5.
Page 22 of 25
Example: The sum of n consecutive cubes is equal to the square
of the sum of the first n numbers. i.e.
3 3 3 3 2 n2 ( n+1 )2
1 + 2 +3 +. . . + n =( 1+2+3+. . . +n ) =
4
Page 23 of 25
Example: Prove by mathematical induction:
Proof:
Page 24 of 25
Therefore the formular is true for all natural numbers.
Page 25 of 25