mathematical induction Sept. 29, 2017 1 For all 1 , 1 + 2 + 3 + - - PowerPoint PPT Presentation

β–Ά
mathematical induction
SMART_READER_LITE
LIVE PREVIEW

mathematical induction Sept. 29, 2017 1 For all 1 , 1 + 2 + 3 + - - PowerPoint PPT Presentation

COMP 250 Lecture 10 mathematical induction Sept. 29, 2017 1 For all 1 , 1 + 2 + 3 + . + 1 + = ( + 1) 2 How to prove such a statement ? By proof, we mean a formal logical argument that convincely


slide-1
SLIDE 1

1

COMP 250

Lecture 10

mathematical induction

  • Sept. 29, 2017
slide-2
SLIDE 2

For all π‘œ β‰₯ 1, How to prove such a statement ? By β€œproof”, we mean a formal logical argument that convincely shows the statement is true. Note that β€œconvincely” is itself not well defined.

2

1 + 2 + 3 + … . + π‘œ βˆ’ 1 + π‘œ = π‘œ(π‘œ + 1) 2

slide-3
SLIDE 3

3

1 + 2 + … + π‘œ βˆ’ 1 + π‘œ Rewrite by considering π‘œ/2 pairs : 1 + 2 + β‹― + π‘œ 2 + ( π‘œ 2 + 1) … + π‘œ βˆ’ 1 + π‘œ If π‘œ is even, then adding up the π‘œ/2 pairs gives π‘œ/2 *(π‘œ+ 1). What if π‘œ is odd?

slide-4
SLIDE 4

4

What if π‘œ is odd? Then, π‘œ-1 is even. So, 1 + 2 + … + π‘œ βˆ’ 1 + π‘œ = (

π‘œβˆ’1 2 βˆ— π‘œ ) + π‘œ

= (

π‘œβˆ’1 2 + 1) βˆ— π‘œ

= π‘œ+1

2 βˆ— π‘œ which is the same formula as before.

slide-5
SLIDE 5

Mathematical Induction

5

Consider a statement of the form: β€œFor all π‘œ β‰₯ π‘œ0, 𝑄 π‘œ is true” where π‘œ0 is some constant and proposition 𝑄(π‘œ) has value true or false for each π‘œ. Mathematical induction is a general technique for proving such a statement.

slide-6
SLIDE 6

6

β€œFor all π‘œ β‰₯ π‘œ0, 𝑄 π‘œ is true”

For all π‘œ β‰₯ 1, 1 + 2 + … + π‘œ βˆ’ 1 + π‘œ =

π‘œ(π‘œ+1) 2

slide-7
SLIDE 7

7

Mathematical induction requires proving two things: Base case: β€œP(π‘œ0) is true.” Induction step: β€œFor any 𝑙 β‰₯ π‘œ0, if P(𝑙) is true, then P(𝑙 + 1) is also true.”

slide-8
SLIDE 8

8

Base case:

β€œP(π‘œ0) is true.”

Induction step:

β€œFor any k β‰₯ π‘œ0, if P(k) is true, then P(k+1) is also true.” The statement β€œP(k) is true” is called the β€œinduction hypothesis”. 1 2 π‘œ0 k k+1

slide-9
SLIDE 9

For any k >= π‘œ0, if P(k) is true then P(k+1) is true. P(π‘œ0) is true.

Thus we have proved:

For any n >= π‘œ0, P(n) is true. Base case: Induction step: 1 2 n0 k k+1 1 2 n0 k k+1

slide-10
SLIDE 10

10

Statement: For all π‘œ β‰₯ 1, 1 + 2 + 3 + … . + π‘œ βˆ’ 1 + π‘œ = π‘œ(π‘œ + 1) 2 Proof (base case, n=1):

slide-11
SLIDE 11

11

Statement: For all π‘œ β‰₯ 1, 1 + 2 + 3 + … . + π‘œ βˆ’ 1 + π‘œ = π‘œ(π‘œ + 1) 2 Proof (base case, n=1): 1 =

1(1+1) 2

(true)

slide-12
SLIDE 12

For any k >= π‘œ0, if P(k) is true then P(k+1) is true. P(1) is true. Base case: Induction step: 1 2 k k+1

induction hypothesis is that P(𝑙) is true:

1 + 2 + … + 𝑙 = 𝑙(𝑙 + 1) 2

slide-13
SLIDE 13

13

Proof of Induction Step: ( 1 + 2 + 3 + … . + 𝑙) + 𝑙 + 1 =

𝑙(𝑙+1) 2

+ 𝑙 + 1 =

by induction hypothesis

slide-14
SLIDE 14

14

Proof of Induction Step: ( 1 + 2 + 3 + … . + 𝑙) + 𝑙 + 1 =

𝑙(𝑙+1) 2

+ 𝑙 + 1 = (

𝑙 2 + 1) (𝑙 + 1)

=

1 2 ( 𝑙 + 2 ) (𝑙 + 1)

Thus, 𝑄 𝑙 𝑗𝑑 𝑒𝑠𝑣𝑓 π‘—π‘›π‘žπ‘šπ‘—π‘“π‘‘ 𝑄 𝑙 + 1 𝑗𝑑 𝑒𝑠𝑣𝑓.

by induction hypothesis

slide-15
SLIDE 15

Possible confusion

15

𝑄 𝑙 has value true or false (Boolean). So, 𝑄 𝑙 𝑗𝑑 𝑒𝑠𝑣𝑓 means what?

slide-16
SLIDE 16

Examples

16

β€œ3 = 2 + 1” is true. β€œ3 = 2 + 2” is false.

slide-17
SLIDE 17

Examples

17

β€œ3 = 2 + 1” is true. β€œ3 = 2 + 2” is false. β€œIf 3 = 2 + 2 then 5 > 7” is true.

If this is a mystery to you, then I strongly advise you to take MATH 240 or MATH 318 (logic).

slide-18
SLIDE 18

18

Mathematical Induction: Example 2

Prove the following statement: For all π‘œ β‰₯ 3, 2π‘œ + 1 < 2π‘œ. 2π‘œ + 1 2π‘œ π‘œ

0 1 2 3 4

slide-19
SLIDE 19

19

Statement: For all π‘œ β‰₯ 3, 2π‘œ + 1 < 2π‘œ. Note: P( π‘œ ) is false for n= 1, 2. But that has nothing to do with what we need to prove. Proof (base case, π‘œ =3):

slide-20
SLIDE 20

20

Statement: For all π‘œ β‰₯ 3, 2π‘œ + 1 < 2π‘œ. Note: P( π‘œ ) is false for n= 1, 2. But that has nothing to do with what we need to prove. Proof (base case, π‘œ =3): 2*3 + 1 < 8 (true)

slide-21
SLIDE 21

21

Proof of Induction Step: We want to show that P(k) implies P(k+1).

Statement: For all π‘œ β‰₯ 3, 2π‘œ + 1 < 2π‘œ.

slide-22
SLIDE 22

22

Proof of Induction Step: We want to show that P(k) implies P(k+1). 2 𝑙 + 1 + 1 = ? 2𝑙 + 2 + 1 (This is 2π‘œ + 1 where π‘œ = 𝑙 + 1.)

Statement: For all π‘œ β‰₯ 3, 2π‘œ + 1 < 2π‘œ.

slide-23
SLIDE 23

23

Proof of Induction Step: We want to show that P(k) implies P(k+1). 2 𝑙 + 1 + 1 = 2𝑙 + 2 + 1 < 2𝑙 + 2

by induction hypothesis Statement: For all π‘œ β‰₯ 3, 2π‘œ + 1 < 2π‘œ.

slide-24
SLIDE 24

24

Proof of Induction Step: We want to show that P(k) implies P(k+1). 2 𝑙 + 1 + 1 = 2𝑙 + 2 + 1 < 2𝑙 + 2 < 2𝑙 + 2𝑙, for k β‰₯ 3 = 2𝑙+1

by induction hypothesis Statement: For all π‘œ β‰₯ 3, 2π‘œ + 1 < 2π‘œ. This inequality is also true for k >=2 but we don’t care because we are trying to prove for k>=3.

slide-25
SLIDE 25

For any k >= π‘œ0, if P(k) then P(k+1). P(π‘œ0) is true.

Thus,

For any n >= π‘œ0, P(n) is true. Base case: Induction step: 1 2 n0 k k+1 1 2 n0 k k+1

slide-26
SLIDE 26

26

Example 3

Statement: For all π‘œ β‰₯ 5, π‘œ2 < 2π‘œ. 2π‘œ π‘œ2 π‘œ

0 1 2 3 4 5

slide-27
SLIDE 27

27

Statement: For all π‘œ β‰₯ 5, π‘œ2 < 2π‘œ. Base case (n = 5): Induction step:

slide-28
SLIDE 28

28

Statement: For all π‘œ β‰₯ 5, π‘œ2 < 2π‘œ. Base case (n = 5): 25 < 32 Induction step: What do we assume ? What do we want to prove ?

slide-29
SLIDE 29

29

Statement: For all π‘œ β‰₯ 5, π‘œ2 < 2π‘œ. Base case (n = 5): 25 < 32 Induction step: What do we assume ? 𝑙2 < 2𝑙, 𝑙 β‰₯ 5 What do we want to show ? (𝑙 + 1)2 < 2𝑙+1

slide-30
SLIDE 30

30

Statement: For all π‘œ β‰₯ 5, π‘œ2 < 2π‘œ. Base case (n = 5): 25 < 32 Induction step: (𝑙 + 1) 2 = 𝑙2 + 2𝑙 + 1

slide-31
SLIDE 31

31

Statement: For all π‘œ β‰₯ 5, π‘œ2 < 2π‘œ. Base case (n = 5): 25 < 32 Induction step: (𝑙 + 1) 2 = 𝑙2 + 2𝑙 + 1 < 2𝑙 + 2𝑙 + 1

by induction hypothesis

slide-32
SLIDE 32

32

Statement: For all π‘œ β‰₯ 5, π‘œ2 < 2π‘œ. Base case (n = 5): 25 < 32 Induction step: (𝑙 + 1) 2 = 𝑙2 + 2𝑙 + 1 < 2𝑙 + 2𝑙 + 1 < 2𝑙 + 2𝑙 = 2𝑙+1

by induction hypothesis by Example 2

slide-33
SLIDE 33

33

Example 4 : Fibonacci Sequence

0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, …. 𝐺 0 = 0 𝐺 1 = 1 𝐺 π‘œ + 2 = 𝐺 π‘œ + 1 + 𝐺(π‘œ) , for π‘œ β‰₯ 0. Statement: For all π‘œ β‰₯ 0, 𝐺 π‘œ < 2π‘œ

slide-34
SLIDE 34

34

𝐺 0 = 0 𝐺 1 = 1 𝐺 π‘œ + 2 = 𝐺 π‘œ + 1 + 𝐺(π‘œ) , for π‘œ β‰₯ 0. Base case(s): π‘œ = 0: 0 < 20 is true. π‘œ = 1: 1 < 21 is true.

slide-35
SLIDE 35

35

𝐺 0 = 0 𝐺 1 = 1 𝐺 π‘œ + 2 = 𝐺 π‘œ + 1 + 𝐺(π‘œ) , for π‘œ β‰₯ 0. Induction step: 𝐺 𝑙 + 1 = 𝐺 𝑙 + 𝐺 𝑙 βˆ’ 1 < 2𝑙 + 2π‘™βˆ’1

by induction hypothesis

slide-36
SLIDE 36

36

𝐺 0 = 0 𝐺 1 = 1 𝐺 π‘œ + 2 = 𝐺 π‘œ + 1 + 𝐺(π‘œ) , for π‘œ β‰₯ 0. Induction step: 𝐺 𝑙 + 1 = 𝐺 𝑙 + 𝐺 𝑙 βˆ’ 1 < 2𝑙 + 2π‘™βˆ’1 < 2𝑙 + 2𝑙 = 2𝑙+1

by induction hypothesis