Methods of Proof (Discrete Math)
Methods of Proof (Discrete Math)
Lecture 4: Sep 20
This Lecture
Now we have learnt the basics in logic. We are going to apply the logical rules in proving mathematical theorems. Since we will talk about number theory later, we will use examples from elementary number theory to illustrate different proof techniques including: Direct proof Contrapositive Proof by contradiction Proof by cases
Basic Definitions
Proving an Implication
Goal: If P, then Q. (P implies Q)
The sum of two even numbers is even. Proof x = 2m, y = 2n x+y = 2m+2n = 2(m+n)
Direct Proofs
The product of two odd numbers is odd. Proof x = 2m+1, y = 2n+1 xy = (2m+1)(2n+1) = 4mn + 2m + 2n + 1 = 2(2mn+m+n) + 1. If m and n are perfect square, then m+n+2(mn) is a perfect square. Proof m = a2 and n = b2 for some integers a and b Then m + n + 2(mn) = a2 + b2 + 2ab = (a + b)2 So m + n + 2(mn) is a perfect square.
Divisibility
a divides b (a|b):
b = ak for some integer k 5|15 because 15 = 35 n|0 because 0 = n0 1|n because n = 1n n|n because n = n1 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. 2, 3, 5, 7, 11, and 13 are prime, 4, 6, 8, and 9 are composite.
Proof of (1) a|b b = ak bc = ack bc = a(ck) a|bc a divides b (a|b): b = ak for some integer k
Proof of (2) a | b => b = ak1 b | c => c = bk2 => c = ak1k2 => a|c a divides b (a|b):
Proof of (3) a | b => b = ak1 a | c => c = ak2 sb + tc = sak1 + tak2 = a(sk1 + tk2) => a|(sb+tc) a divides b (a|b): b = ak for some integer k
This Lecture
Proving an Implication
Goal: If P, then Q. (P implies Q)
Claim:
What if I prove If r is rational, then r is rational, is it equivalent? Yes, this is equivalent, because it is the contrapositive of the statement, so proving if P, then Q is equivalent to proving if not Q, then not P.
Rational Number
R is rational there are integers a and b such that
numerator and b 0. denominator Is 0.281 a rational number? Is 0 a rational number? Yes, 281/1000 Yes, 0/1 Yes
Is the sum of two rational numbers a rational number? Yes, a/b+c/d=(ad+bc)/bd Is x=0.12121212 a rational number? Note that 100x-x=12, and so x=12/99.
Claim: Proof:
We shall prove the contrapositive if r is rational, then r is rational. Since r is rational, r = a/b for some integers a,b. So r = a2/b2. Since a,b are integers, a2,b2 are integers. Therefore, r is rational. Q.E.D.
(Q.E.D.)
Method 1: Prove P implies Q and Q implies P. Method 1: Prove P implies Q and not P implies not Q.
This Lecture
Proof by Contradiction
PpF P
To prove P, you prove that not P would lead to ridiculous result, and so P must be true.
Proof by Contradiction
Theorem:
is irrational.
Suppose
was rational.
Choose m, n integers without common prime factors (always possible) such that
m 2! n
Show that m and n are both even, thus having a common factor 2, a contradiction!
Proof by Contradiction
Theorem:
m 2! n
so can assume
m ! 2l
2
m 2 ! 4l 2 2n ! 4l
2
2n ! m
2n 2 ! m 2
so m is even.
n 2 ! 2l 2
so n is even.
Divisibility by a Prime
Theorem. Any integer n > 1 is divisible by a prime number. Let n be an integer. If n is a prime number, then we are done. Otherwise, n = ab, both are smaller than n. If a or b is a prime number, then we are done. Otherwise, a = cd, both are smaller than a. If c or d is a prime number, then we are done. Otherwise, repeat this argument, since the numbers are getting smaller and smaller, this will eventually stop and we have found a prime factor of n. Idea of induction.
This Lecture
Proof by Cases
e.g. want to prove a nonzero number always has a positive square. x is positive or x is negative if x is positive, then x2 > 0. if x is negative, then x2 > 0. x2 > 0.
Idea 1: prove that n2 1 is divisible by 8. n2 1 = (n-1)(n+1) = ?? Idea 2: consider (2k+1)2 (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.
Rational vs Irrational
Question: If a and b are irrational, can ab be rational?? We (only) know that 2 is irrational, what about 22 ? Case 1: 22 is rational Then we are done, a=2, b=2. Case 2: 22 is irrational Then (22)2 = 22 = 2, a rational number So a=22, b= 2 will do. So in either case there are a,b irrational and ab be rational. We dont (need to) know which case is true!
Summary
We have learnt different techniques to prove mathematical statements. Direct proof Contrapositive Proof by contradiction Proof by cases