Docsity

Mathematical Induction Lecture, Lecture notes of Discrete Mathematics

Partial preview of the text

Download Mathematical Induction Lecture and more Lecture notes Discrete Mathematics in PDF only on Docsity!

Mathematical Induction I

Lecture 4: Sep 16

This Lecture Last time we have discussed different proof techniques. This time we will focus on probably the most important one

  • mathematical induction. This lecture’s plan is to go through the following:
  • The idea of mathematical induction
  • Basic induction proofs (e.g. equality, inequality, property, etc)
  • Inductive constructions
  • A paradox

Universal Generalization ( )

. ( ) A R c A x R x    valid rule (^) providing c is independent of A One way to prove a for-all statement is to prove that R(c) is true for any c, but this is often difficult to prove directly (e.g. consider the statements in the previous slide). Mathematical induction provides another way to prove a for-all statement. It allows us to prove the statement step-by-step. Let us first see the idea in two examples.

Odd Powers Are Odd Fact: If m is odd and n is odd, then nm is odd. Proposition: for an odd number m, m i is odd for all non-negative integer i. Let P(i) be the proposition that m i is odd.

  • P(1) is true by definition.
  • P(2) is true by P(1) and the fact.
  • P(3) is true by P(2) and the fact.
  • P(i+1) is true by P(i) and the fact.
  • So P(i) is true for all i. Idea of induction.

Objective: Prove Idea of Induction This is to prove The idea of induction is to first prove P(0) unconditionally, then use P(0) to prove P(1) then use P(1) to prove P(2) and repeat this to infinity…

The Induction Rule 0 and (from n to n +1), proves 0 , 1 , 2 , 3 ,…. P (0),  n Z P ( n ) P ( n +1)  m Z P ( m ) Very easy to prove Much easier to prove with P(n) as an assumption. The point is to use the knowledge on smaller problems to solve bigger problems (i.e. can assume P(n) to prove P(n+1)). Compare it with the universal generalization rule. induction rule (an axiom)

Proving an Equality Let P(n) be the induction hypothesis that the statement is true for n. Base case: P(1) is true Induction step: assume P(n) is true, prove P(n+1) is true. because both LHS and RHS equal to 1 That is, assuming: Want to prove: This is much easier to prove than proving it directly, because we already know the sum of the first n terms!

Proving an Equality Let P(n) be the induction hypothesis that the statement is true for n. Base case: P(1) is true Induction step: assume P(n) is true, prove P(n+1) is true. by induction because both LHS and RHS equal to 1

Proving a Property Base Case ( n = 1): Induction Step: Assume P ( i ) for some i  1 and prove P ( i + 1): Assume is divisible by 3, prove^ is divisible by 3. Divisible by 3 Divisible by 3 by induction

Proving a Property Base Case ( n = 2): Induction Step: Assume P ( i ) for some i  2 and prove P ( i + 1): Assume is divisible by 6 is divisible by 6. Divisible by 2 by case analysis Divisible by 6 by induction Prove

Cauchy-Schwarz (Cauchy-Schwarz inequality) For any a 1 ,…,an, and any b 1 ,…bn Proof by induction (on n): When n=1, LHS <= RHS. When n=2, want to show Consider

Cauchy-Schwarz (Cauchy-Schwarz inequality) For any a 1 ,…,an, and any b 1 ,…bn Induction step: assume true for <=n, prove n+1. induction by P(2)

Gray Code Can you find an ordering of all the n-bit strings in such a way that two consecutive n-bit strings differed by only one bit? This is called the Gray code and has some applications. How to construct them? Think inductively! 2 bit 00 01 11 10 3 bit 000 001 011 010 110 111 101 100 Can you see the pattern? How to construct 4-bit gray code?

Gray Code 3 bit 000 001 011 010 110 111 101 100 3 bit (reversed) 100 101 111 110 010 011 001 000

4 bit differed by 1 bit by induction differed by 1 bit by induction differed by 1 bit by construction Every 4-bit string appears exactly once.