Methods of Proof
Methods of Proof
This Lecture
• Direct proof
• Contrapositive
• Proof by contradiction
• Proof by cases
Basic Definitions
Claim: If , then
Proof:
When
Direct Proofs
Proof x = 2m, y = 2n
x+y = 2m+2n
= 2(m+n)
a “divides” b (a|b):
A number p > 1 with no positive integer divisors other than 1 and itself
is called a prime. Every other number greater than 1 is called composite.
Proof of (1)
a|b
Þ b = ak a “divides” b (a|b):
Þ bc = a(ck)
Þ a|bc
Simple Divisibility Facts
Proof of (2)
a | b => b = ak1
a “divides” b (a|b):
b | c => c = bk2
b = ak for some integer k
=> c = ak1k2
=> a|c
Simple Divisibility Facts
Proof of (3)
a | b => b = ak1
a “divides” b (a|b):
a | c => c = ak2
b = ak for some integer k
sb + tc
= sak1 + tak2
= a(sk1 + tk2)
=> a|(sb+tc)
This Lecture
• Direct proof
• Contrapositive
• Proof by contradiction
• Proof by cases
Proving an Implication
numerator
and b ≠ 0.
denominator
Method 2: Prove the contrapositive, i.e. prove “not Q implies not P”.
Example:
An integer is even if and only if the its square is even.
Proof: m = 2k
m2 = 4k2
Proof: m2 = 2k
m = √(2k)
??
Proof the Contrapositive
So m2 = (2k+1)2
= (2k)2 + 2(2k) + 1
So m2 is an odd number.
This Lecture
• Direct proof
• Contrapositive
• Proof by contradiction
• Proof by cases
Proof by Contradiction
PF
P
To prove P, you prove that not P would lead to ridiculous result,
and so P must be true.
Theorem: 2 is irrational.
Theorem: 2 is irrational.
m so can assume m 2l
2
n
m 2 4l 2
2n m
2n 2 4l 2
2n 2 m 2 n 2 2l 2
so m is even. so n is even.
Infinitude of the Primes
Theorem. There are infinitely many prime numbers.
On the other hand, we show that any number must be divisible by some prime.
• Let n be an integer.
Idea of induction.
Infinitude of the Primes
Theorem. There are infinitely many prime numbers.
Consider p1p2…pN + 1.
• Direct proof
• Contrapositive
• Proof by contradiction
• Proof by cases
Proof by Cases
x is positive or x is negative
x2 > 0.
The Square of an Odd Integer
n2 – 1 = (n-1)(n+1) = ??…
(2k+1)2 = 4k2+4k+1
If k is even, then both k2 and k are even, and so we are done.
If k is odd, then both k2 and k are odd, and so k2+k even, also done.
Trial and Error Won’t Work!
Fermat (1637): If an integer n is greater than 2,
Euler conjecture:
So m2 = (2l+1)2
= (2l)2 + 2(2l) + 1
So m2 is an odd number.
Proof by contrapositive.
Rational vs Irrational
• Direct proof
• Contrapositive
• Proof by contradiction
• Proof by cases