Introduction To Proofs: Lecture # 16
Introduction To Proofs: Lecture # 16
Lecture # 16
1
INTRODUCTION
A proof is a valid argument that establishes the truth of a
mathematical statement.
2
SOME TERMINOLOGY
A theorem is a statement that can be shown as true.
pq
PROOF BY PROOF BY
CONTRAPOSITION CONTRADICTION
p q ~q ~p p q (p~q) c
5
DIRECT PROOF
The implication p q can be proved by showing that if p
is true, the q must also be true.
6
SOME BASICS
An integer n is even if, and only if, n = 2k for some
integer k.
An integer n is prime if, and only if, n > 1 and for all
positive integers r and s, if n = r.s, then r = 1 or s = 1.
8
EXERCISE
Prove that the sum of two odd integers is even.
PROOF:
Let m and n be two odd integers.
Then by definition of odd numbers
m = 2k + 1 for some k Z
n = 2l + 1 for some l Z
Now,
m + n = (2k + 1) + (2l + 1)
9
= 2k + 2l + 2
= 2 (k + l + 1)
= 2r
where,
r = (k + l + 1) Z
Hence m + n is even.
10
EXERCISE
Prove that if n is any even integer, then (-1)n = 1
PROOF:
Suppose n is an even integer.
Then n = 2k for some integer k.
Now
(-1) n = (-1)2k
= [(-1)2]k
= (1)k
=1 (proved)
11
EXERCISE
Prove that the product of an even integer and an odd integer is
even.
PROOF:
Suppose m is an even integer and n is an odd integer. Then,
m = 2k for some integer k
and n = 2l + 1 for some integer l
Now
m.n = 2k . (2l + 1)
= 2.k (2l + 1)
= 2.r where r = k(2l + 1) is an integer
Hence m.n is even. (Proved)
12
EXERCISE
Prove that the square of an even integer is even.
PROOF:
Suppose n is an even integer.
Then n = 2k
Now,
square of n = n2= (2.k)2
= 4k2
= 2.(2k2)
= 2.p where, p = 2k2 Z
Hence, n2 is even. (proved)
13
EXERCISE
Prove that if n is an odd integer, then n3 + n is even.
PROOF:
Let n be an odd integer,
then
n = 2k + 1 for some k Z
Now,
n3 + n = n (n2 + 1)
= (2k + 1) ((2k+1)2 + 1)
= (2k + 1) (4k2 + 4k + 1 + 1)
14
= (2k + 1) (4k2 + 4k + 2)
= (2k + 1) 2.(2k2 + 2k + 1)
= 2.(2k + 1) (2k2 + 2k + 1) k Z
= an even integer
15
EXERCISE
Prove that, if the sum of any two integers is even, then so is
their difference.
PROOF:
Suppose m and n are integers
So that m + n is even.
Then by definition of even numbers
16
Now,
m - n = (2k - n) - n using (1)
= 2k - 2n
= 2(k - n) = 2r
where,
r = k - n is an integer
Hence m - n is even.
17
EXERCISE
Prove that for all integers a, b and c, if a|b and b|c then a|c.
PROOF:
Suppose a|b and b|c
where a, b, c Z.
18
Now, c = b.s
= (a.r).s (substituting value of b)
= a.(r.s) (associative law)
= a.k
where,
k = r.s Z
19
EXERCISE
Prove that for all integers a, b and c if a|b and a|c then a|(b+c)
PROOF:
Suppose a|b and a|c where a, b, c Z
By definition of divides
b = a.r and c = a.s for some r, s Z
Now
b + c = a.r + a.s (substituting values)
= a.(r+s) (by distributive law)
= a.k
where k = (r + s) Z
Hence a|(b + c) by definition of divides.
20
EXERCISE
Prove that the sum of any three consecutive integers is
divisible by 3.
PROOF:
Let n, n + 1 and n + 2 be three consecutive integers.
Now
n + (n + 1) + (n + 2) = 3n + 3
= 3(n + 1)
= 3k
where k=(n+1)Z
Hence, the sum of three consecutive integers is divisible by 3.
21
PROOF BY CONTRADICTION
A proof by contradiction is based on the fact that either a
statement is true or it is false but not both.
22
Thus to prove an implication p → q by contradiction
method we suppose that the condition p and the negation
of the conclusion q, i.e., (p ~q) is true and ultimately
arrive at a contradiction.
23
THEOREM
Give a proof by contradiction for the statement:
“If n2 is an even integer then n is an even integer.”
PROOF:
Suppose n2 is an even integer and n is not even, so that n is
odd.
Hence
n = 2k + 1 for some integer k.
Now
n2 = (2k + 1)2
= 4k2 + 4k + 1
24
= 2.(2k2 + 2k) + 1
= 2r + 1
where
r = (2k2 + 2k) Z
25
EXERCISE
Prove that if n is an integer and n 3 + 5 is odd, then n is even using
contradiction method.
PROOF:
Suppose that n3 + 5 is odd and n is not even (odd).
Since n is odd and the product of two odd numbers is odd, it
follows that n2 is odd and n3 = n2. n is odd.
Further, since the difference of two odd number is even, it follows
that
= (n3 + 5) - n3
= 5 is even.
But this is a contradiction.
Therefore, the supposition that n3 + 5 and n are both odd is wrong
and so the given statement is true.
26
EXERCISE
Prove by contradiction method, the statement: If n and m
are odd integers, then n + m is an even integer.
PROOF:
Suppose n and m are odd and n + m is not even (odd i.e by
taking contradiction).
Now
n = 2p + 1 for some integer p
and
m = 2q + 1 for some integer q
27
Hence
n + m = (2p + 1) + (2q + 1)
= 2p + 2q + 2 = 2· (p + q + 1)
28
EXERCISE
Prove that 2 is irrational.
PROOF:
Suppose
is rational.
2
Then there are integers m and n with no common factors
so that m
2
n
Squaring both sides gives
m2
2 2
n
29
or m2 = 2n2 ………………………(1)
This implies that m2 is even (by definition of even).
It follows that m is even. Hence
m = 2 k for some integer k…..(2)
Substituting (2) in (1), we get
(2k)2 = 2n2
4k2 = 2n2
n2 = 2k2
30
This implies that n2 is even, and so n is even. But we also
know that m is even.
31
EXERCISE
Prove by contradiction that 67 is2 irrational.
PROOF:
67 2
Suppose is rational.
33
This contradicts the fact because 2is irrational.
34
PROOF BY CONTRAPOSITION
A proof by contraposition is based on the logical
equivalence between a statement and its contrapositive.
35
The method of proof by contrapositive may be
summarized as:
Express the statement in the form if p then q.
Rewrite this statement in the contrapositive form
if not q then not p.
Prove the contrapositive by a direct proof.
36
EXERCISE
Prove that for all integers n, if n2 is even then n is even.
PROOF:
The contrapositive of the given statement is:
“if n is not even (odd) then n2 is not even (odd)”
37
Now
n2 = (2k+1)2 = 4k2 + 4k + 1
= 2.(2k2 + 2k) + 1
= 2.r + 1
where,
r = 2k2 + 2k Z
38
EXERCISE
Prove that if 3n + 2 is odd, then n is odd.
PROOF:
The contrapositive of the given conditional statement is
“ if n is even then 3n + 2 is even”
40
EXERCISE
Prove that if n2 is not divisible by 25, then n is not
divisible by 5.
PROOF:
The contra-positive statement is:
“if n is divisible by 5, then n2 is divisible by 25”
Suppose n is divisible by 5.
Then by definition of divisibility
n = 5.k for some integer k
41
Squaring both sides
n2 = 25.k2
where
k2 Z
So,
n2 is divisible by 25
42
EXERCISE
Prove the statement by contraposition:
For all integers m and n, if m + n is even then m and n are both even or
m and n are both odd.
PROOF:
The contrapositive statement is:
“For all integers m and n, if m and n are not both even and m and n are
not both odd, then m + n is not even.”
or more simply,
“For all integers m and n, if one of m and n is even and the other is
odd, then m + n is odd”
43
Suppose m is even and n is odd.
Then,
m = 2p for some integer p
and n = 2q + 1for some integer q
Hence m + n is odd.
44
Similarly, taking m as odd and n even, we again arrive at
the result that m + n is odd.
45