11
Lecture 11 Mathematical Induction CSCI – 1900 Mathematics for Computer Science Fall 2014 Bill Pine

Lecture 11 Mathematical Induction CSCI – 1900 Mathematics for Computer Science Fall 2014 Bill Pine

Embed Size (px)

Citation preview

Page 1: Lecture 11 Mathematical Induction CSCI – 1900 Mathematics for Computer Science Fall 2014 Bill Pine

Lecture 11Mathematical Induction

CSCI – 1900 Mathematics for Computer Science

Fall 2014

Bill Pine

Page 2: Lecture 11 Mathematical Induction CSCI – 1900 Mathematics for Computer Science Fall 2014 Bill Pine

Oh No! Not Induction

CSCI 1900 Lecture 11 - 2

Page 3: Lecture 11 Mathematical Induction CSCI – 1900 Mathematics for Computer Science Fall 2014 Bill Pine

CSCI 1900 Lecture 11 - 3

Lecture Introduction

• Reading– Rosen - Section 5.1

• When to consider using induction• Format for an inductive proof• Example inductive proof of a series

Page 4: Lecture 11 Mathematical Induction CSCI – 1900 Mathematics for Computer Science Fall 2014 Bill Pine

CSCI 1900 Lecture 11 - 4

Induction

• Consider the use of induction when you have a sequence of related values and you want to demonstrate a general relationship over the sequence

• First– Show it is true for the first element of the sequence

• Then– Show that if it is true at the kth element, then it must also

true for the (k+1)th element

• Therefore– It must be true for all elements

Page 5: Lecture 11 Mathematical Induction CSCI – 1900 Mathematics for Computer Science Fall 2014 Bill Pine

CSCI 1900 Lecture 11 - 5

Format of Inductive Proof

1. State the problem as given

2. State what you want to proveInductive Hypothesis

3. Show it is true for the first case in the sequenceBasis Case

4. State that you are assuming your Hypothesis is true at item k in the sequence then show the relation between item k and k+1 forces the Hypothesis to be true for k+1

Induction

Page 6: Lecture 11 Mathematical Induction CSCI – 1900 Mathematics for Computer Science Fall 2014 Bill Pine

CSCI 1900 Lecture 11 - 6

Example 1

• Prove that an N by N square has an area N2

• Basis:– A 1 X 1 square is of area 1 thus proving the

basis case

Page 7: Lecture 11 Mathematical Induction CSCI – 1900 Mathematics for Computer Science Fall 2014 Bill Pine

CSCI 1900 Lecture 11 - 7

Induction

Assume this is k2

1 by k

k by 1 1

k

k

k+1

k2 + 2k + 1k+1

(k+1)2

Page 8: Lecture 11 Mathematical Induction CSCI – 1900 Mathematics for Computer Science Fall 2014 Bill Pine

CSCI 1900 Lecture 11 - 8

Formally

• Inductive Hypothesis – P(n): An n x n square will have area n2

• Basis Case– P(1): The unit square 1 by 1 is known to have area 1

• Induction – Assume a k by k square has area k2

– Then an k+1 by k+1 square would have • k2 + 2k + 1 area by adding to each side and the ‘corner’• k2 + 2k +1 = (k+1) * (k+1) =( k+1)2

• Since the base case and induction are true the hypothesis is true.

Page 9: Lecture 11 Mathematical Induction CSCI – 1900 Mathematics for Computer Science Fall 2014 Bill Pine

A Small Aside for Notation

• Too big for a PowerPoint slide

CSCI 1900 Lecture 11 - 9

Page 10: Lecture 11 Mathematical Induction CSCI – 1900 Mathematics for Computer Science Fall 2014 Bill Pine

CSCI 1900 Lecture 11 - 10

Mathematical Induction Example

• P(n): 1 + 2 + 3 +…+ n = n(n+1)/2• To show P(n) is true for all n 1

– Show P(1) is true (Basis Step)– Show if P(k) is true then P(k+1) must be true– Therefore true for all n 1

• Complete proof too big for PowerPoint slide– Refer to handout

Page 11: Lecture 11 Mathematical Induction CSCI – 1900 Mathematics for Computer Science Fall 2014 Bill Pine

CSCI 1900 Lecture 11 - 11

Key Concepts Summary

• When to consider using induction• Required format for an inductive proof• Example inductive proof in geometry• Example inductive proof of a series