90 likes | 134 Views
Inductive Proofs. Mathematical Induction. A powerful, rigorous technique for proving that a predicate P ( n ) is true for every natural number n , no matter how large. Essentially a “domino effect” principle.
E N D
Mathematical Induction • A powerful, rigorous technique for proving that a predicate P(n) is true for every natural number n, no matter how large. • Essentially a “domino effect” principle. • Based on a predicate-logic inference rule: P(0)n0(P(n)P(n+1))n0 P(n) “The First Principleof MathematicalInduction”
Validity of Induction Proof that k0P(k) is a valid consequent:Given any k0, n0(P(n)P(n+1)) (antecedent 2) trivially implies n0 (n<k)(P(n)P(n+1)), or (P(0)P(1)) (P(1)P(2)) … (P(k1)P(k)). Repeatedly applying the hypothetical syllogism rule to adjacent implications k-1 times then gives P(0)P(k); which with P(0) (antecedent #1) and modus ponens gives P(k). Thus k0P(k).
Outline of an Inductive Proof • Want to prove nP(n)… • Base case (or basis step): Prove P(0). • Inductive step: Prove nP(n)P(n+1). • E.g. use a direct proof: • Let nN, assume P(n). (inductive hypothesis) • Under this assumption, prove P(n+1). • Inductive inference rule then gives nP(n).
Induction Example • Prove that the sum of the first n odd positive integers is n2. That is, prove: • Proof by induction. • Base case: Let n=1. The sum of the first 1 odd positive integer is 1 which equals 12.(Cont…) P(n)
Example cont. • Inductive step: Prove n1: P(n)P(n+1). • Let n1, assume P(n), and prove P(n+1). By inductivehypothesis P(n)
Another Induction Example • Prove that n>0, n<2n. Let P(n)=(n<2n) • Base case: P(1)=(1<21)=(1<2)=T. • Inductive step: For n>0, prove P(n)P(n+1). • Assuming n<2n, prove n+1 < 2n+1. • Note n + 1 < 2n + 1 (by inductive hypothesis) < 2n + 2n(because 1<2=22022n-1= 2n) = 2n+1 • So n + 1 < 2n+1, and we’re done. i.e. P(n+1) is true
Another Induction Example Use mathematical Induction to prove that the sum of the first n odd positive integers is n2. SOL: A. Basic Step: p(1) , the sum of the first odd positive integer which is 1 is 12 and equal to 1. So, p(1) is true. B. Inductive step: Suppose that p(k) is true. So, 1+ 3 + 5 + …. + (2K-1) = k2 We must show that p(K+1) is true, assuming that p(K) is true P(K+1) = 1+3+5+…….+ (2K-1) + (2K+1) = K2 + (2K+1) By assumption = (K+1)2By Perfect Square Equation So, p(K+1) is TRUE
Another Induction Example Use mathematical Induction to prove that N3 – N is divisible by 3 whenever n is positive and n>=1 Basic step: P(1) is divisible by 3 since 1-1 = 0 and 3 divides 0 Inductive step: • Assume P(k) is true . P(k): K3 - K is divisible by 3 K3-K= 3m, where m is an integer B. Try to prove that p(k+1) is true as well P(k+1): (K+1)3 – (K+1) = (K3+3K2+3K+1) – K – 1 = ( K3 – K ) + 3(K2 + K) = 3m + 3(K2 + K) = 3(m + K2 + K) = 3 n So, p(k+1) is divisible by 3 Conclusion: N3 – N is divisible by 3 whenever n is positive integer