e π i 1 = 0 Proofs and Mathematical Induction Carlos Moreno uwaterloo.ca EIT-4103 e x2 log k a+b a + b

Similar documents
Mathematical Proofs. e x2. log k. a+b a + b. Carlos Moreno uwaterloo.ca EIT e π i 1 = 0.

Mathematical Proofs. e x2. log k. a+b a + b. Carlos Moreno uwaterloo.ca EIT e π i 1 = 0.

Mathematical Background. e x2. log k. a+b a + b. Carlos Moreno uwaterloo.ca EIT e π i 1 = 0.

Asymptotic Analysis Cont'd

Modern Algebra Prof. Manindra Agrawal Department of Computer Science and Engineering Indian Institute of Technology, Kanpur

Tutorial on Mathematical Induction

The Inductive Proof Template

Introducing Proof 1. hsn.uk.net. Contents

MITOCW watch?v=vjzv6wjttnc

MITOCW watch?v=pqkyqu11eta

PROOF WITHOUT WORDS MATH CIRCLE (BEGINNERS) 05/06/2012

Basics of Proofs. 1 The Basics. 2 Proof Strategies. 2.1 Understand What s Going On

3 The language of proof

Introduction to Basic Proof Techniques Mathew A. Johnson

Basic Proof Examples

CS 246 Review of Proof Techniques and Probability 01/14/19

MITOCW ocw f99-lec23_300k

Lecture 4: Constructing the Integers, Rationals and Reals

MITOCW ocw f99-lec09_300k

MITOCW MITRES18_006F10_26_0602_300k-mp4

means is a subset of. So we say A B for sets A and B if x A we have x B holds. BY CONTRAST, a S means that a is a member of S.

Mathematical Induction

Math 38: Graph Theory Spring 2004 Dartmouth College. On Writing Proofs. 1 Introduction. 2 Finding A Solution

3: Linear Systems. Examples. [1.] Solve. The first equation is in blue; the second is in red. Here's the graph: The solution is ( 0.8,3.4 ).

1. Introduction to commutative rings and fields

Direct Proofs. the product of two consecutive integers plus the larger of the two integers

Chapter 2. Mathematical Reasoning. 2.1 Mathematical Models

CSE373: Data Structures and Algorithms Lecture 2: Proof by Induction. Linda Shapiro Spring 2016

MITOCW ocw-18_02-f07-lec02_220k

Lecture 6 : Induction DRAFT

1. Introduction to commutative rings and fields

Proof Techniques (Review of Math 271)

Direct Proof MAT231. Fall Transition to Higher Mathematics. MAT231 (Transition to Higher Math) Direct Proof Fall / 24

Hash Tables (Cont'd) Carlos Moreno uwaterloo.ca EIT

Math 300: Foundations of Higher Mathematics Northwestern University, Lecture Notes

HOW TO WRITE PROOFS. Dr. Min Ru, University of Houston

At the start of the term, we saw the following formula for computing the sum of the first n integers:

Some Review Problems for Exam 1: Solutions

PEANO AXIOMS FOR THE NATURAL NUMBERS AND PROOFS BY INDUCTION. The Peano axioms

Lecture 6: Finite Fields

Discrete Mathematics and Probability Theory Fall 2013 Vazirani Note 1

CS 124 Math Review Section January 29, 2018

MITOCW ocw f99-lec05_300k

5.4 Continuity: Preliminary Notions

CONSTRUCTION OF THE REAL NUMBERS.

EECS 1028 M: Discrete Mathematics for Engineers

Ch 3.2: Direct proofs

Mathematics-I Prof. S.K. Ray Department of Mathematics and Statistics Indian Institute of Technology, Kanpur. Lecture 1 Real Numbers

MITOCW R11. Double Pendulum System

MITOCW MITRES18_005S10_DerivOfSinXCosX_300k_512kb-mp4

MATH 135 Fall 2006 Proofs, Part IV

Error Correcting Codes Prof. Dr. P Vijay Kumar Department of Electrical Communication Engineering Indian Institute of Science, Bangalore

What can you prove by induction?

Mathematical Writing and Methods of Proof

Day 5. Friday May 25, 2012

Chapter 1 Review of Equations and Inequalities

MITOCW ocw f99-lec16_300k

We will work with two important rules for radicals. We will write them for square roots but they work for any root (cube root, fourth root, etc.).

6.042/18.062J Mathematics for Computer Science. Induction I

Error Correcting Codes Prof. Dr. P. Vijay Kumar Department of Electrical Communication Engineering Indian Institute of Science, Bangalore

September 12, Math Analysis Ch 1 Review Solutions. #1. 8x + 10 = 4x 30 4x 4x 4x + 10 = x = x = 10.

MITOCW watch?v=t6tqhnxy5wg

MATHEMATICAL INDUCTION

2. Two binary operations (addition, denoted + and multiplication, denoted

MITOCW ocw nov2005-pt1-220k_512kb.mp4

MITOCW 5. Quantum Mechanics: Free Particle and Particle in 1D Box

Mathematical Logic Part One

Sequence convergence, the weak T-axioms, and first countability

MITOCW MITRES_18-007_Part1_lec2_300k.mp4

MITOCW MITRES_18-007_Part5_lec3_300k.mp4

Mathematical Induction

Some Basic Logic. Henry Liu, 25 October 2010

Basic Quantum Mechanics Prof. Ajoy Ghatak Department of Physics Indian Institute of Technology, Delhi

a. See the textbook for examples of proving logical equivalence using truth tables. b. There is a real number x for which f (x) < 0. (x 1) 2 > 0.

CS1800: Strong Induction. Professor Kevin Gold

Mathematical Logic Part One

MITOCW 9ocw-6-451_ mar k_512kb-mp4

Induction 1 = 1(1+1) = 2(2+1) = 3(3+1) 2

MITOCW watch?v=rf5sefhttwo

Mathematical induction

Mathematical Logic Part One

MITOCW MITRES18_006F10_26_0501_300k-mp4

PHIL 422 Advanced Logic Inductive Proof

MITOCW 6. Standing Waves Part I

Linear Programming and its Extensions Prof. Prabha Shrama Department of Mathematics and Statistics Indian Institute of Technology, Kanpur

Proof Terminology. Technique #1: Direct Proof. Learning objectives. Proof Techniques (Rosen, Sections ) Direct Proof:

Proofs: A General How To II. Rules of Inference. Rules of Inference Modus Ponens. Rules of Inference Addition. Rules of Inference Conjunction

Introduction to Induction (LAMC, 10/14/07)

Notes on induction proofs and recursive definitions

Math Fundamentals for Statistics I (Math 52) Unit 7: Connections (Graphs, Equations and Inequalities)

MITOCW MIT8_01F16_w02s05v06_360p

Lecture 6: Lies, Inner Product Spaces, and Symmetric Matrices

MAC-CPTM Situations Project

Lecture 3: Latin Squares and Groups

1 Proof techniques. CS 224W Linear Algebra, Probability, and Proof Techniques

Algebra Exam. Solutions and Grading Guide

Instructor (Brad Osgood)

Workshop 1- Building on the Axioms. The First Proofs

But, there is always a certain amount of mystery that hangs around it. People scratch their heads and can't figure

CIS 2033 Lecture 5, Fall

Transcription:

Proofs and Mathematical Induction Carlos Moreno cmoreno @ uwaterloo.ca EIT-4103 N k=0 log k 0 e x2 e π i 1 = 0 dx a+b a + b https://ece.uwaterloo.ca/~cmoreno/ece250

Proofs and Mathematical Induction Today's class: Discuss the importance of proofs for us, engineers Introduce some basic notions but... We'll mainly focus on mathematical induction Including some (rather neat) examples of incorrect use of the technique! (Next class, we'll look at some other typical techniques and tricks)

Proofs and Mathematical Induction Mathematical proof: Rough / informal definition: An argument, typically based on logic/deductive steps, that shows, in a verifiable and non-disputable way, that a given statement is true. Typically, proofs rely on some background rules to be true (usually called axioms ). For example, algebraic manipulations and basic properties of functions, etc., may be simply used as part of a proof, since they are assumed to be true we don't need to extend our argument to cover those as well.

Proofs and Mathematical Induction Mathematical proof: It is essential that a proof uses deductive arguments rather than inductive or intuition-based arguments: The proof must show that the statement holds under all possible conditions/scenarios, rather than showing a (no matter how large) number of cases that confirm it. For example, to prove that a+b a + b, it's not enough to show a number of examples of values for a and b where the inequality holds.

Proofs and Mathematical Induction Mathematical proof: Often enough, the statement being proven is an implication if A holds, then B must hold as well (this is a rephrased way of an implication; the above is the same as saying A implies B ). In those cases, as part of the argument, we must assume A to be true (and this assumption is indisputable the important detail to understand is that in the context of proving the implication, A is indisputably true). However, careful! One mistake would be to assume B (either directly or indirectly) this is one of the standard categories of logical fallacies : assuming the conclusion!

Proofs and Mathematical Induction Why are proofs important for us? If you happen to end up doing research, or even as early as Grad school, you will need a reasonable level of skills at proving things remember that you would be creating new knowledge! Because it is new, you have to convince your audience that it is true! But also while practicing engineering, coming up with a proof may be a way to convince yourselves (or your boss!) that some trick you just came up with works!

Proofs and Mathematical Induction Why are proofs important for us? Additionally, proofs (at least the good ones) may be quite insightful often enough, they tell you a lot about the statement being proven (such as why it is true, or why exactly it works the way it works)

Proofs and Mathematical Induction Many standard techniques for proofs. We'll see some of the basic ones next class Today, we'll focus on Proofs by Induction.

Mathematical Induction This technique is applicable to discrete cases; typically, statements involving either an integer number, or a group of objects (the number of objects is restricted to be an integer). Statements to be proven may be a formula for n, purported to hold for every value of n > 0, or it could be a statement about a property of a set of values, etc.

Mathematical Induction It could be an algorithm, or some statement about a data structure!! (the statement to be proven about the algorithm typically being its correctness, or the fact that it requires whatever number of operations to complete, etc.) Why is mathematical induction applicable here? An algorithm is discrete by nature, in that it runs in an integer number of steps. Data structures are discrete by nature.

How it works: Mathematical Induction We want to prove a statement about n, or which is stated for a number of things, or for something with integer size, that we denote n. The statement is supposed to be valid for n n 0, for some n 0 (for things with a size, or with a number of elements, it is somewhat implicit that n 0 = 1) We proceed in two steps: Base case Induction step

How it works: Mathematical Induction Base case: We start by showing that the statement is true for n = n 0 (this is not hard as a general proof, since it is a particular case). Induction step: We show that if the statement holds for n = k, then the statement holds for n = k+1 as well. Notice that it is an implication that we're trying to show; thus, we start by assuming (this is called the induction hypothesis) that the statement holds for n = k

How it works: Mathematical Induction Errm... huh? Isn't k supposed to be an arbitrary value? So, we're assuming that the statement (what we need to prove, remember!) is true... How is this not a logical fallacy of assuming the result??

How it works: Mathematical Induction So, the trick: we're showing that it is true for the lowest possible value (say that it is n = 1). And we're also showing that the fact that it is true for n = k implies that it is also true for n = k+1. These two things together imply that the statement is true for all values of n. True for n=1 True for n=2. But now true for n=2 true for n=3, and so on, for every value of n 1.

An example: Mathematical Induction Last class, we saw, without much supporting evidence, the sum of squares. Let's prove that one by induction: n k =1 (for all n 1) k 2 = n(n+1)(2n+1) 6

An example: Mathematical Induction Step 1: Base case we show that the statement holds for n = 1 1 k =1 k 2 = 1 2 = 1 = 1(1+1)(2 1+1) 6

An example: Mathematical Induction Step 2: Induction step we show that if the statement holds for n, then it also holds for n+1 (why are we using, or rather, are we allowed to say for n, instead of for n=k? I mean, isn't this really assuming the result??) To this end, we define our induction hypothesis, which is that the statement is true for n: n k =1 k 2 = n(n+1)(2n+1) 6

An example: Mathematical Induction Based on this induction hypothesis, we need to show that the statement holds for n+1; that is: n+1 k =1 k 2 = (n+1)(n+2)(2n+3) 6

An example: Mathematical Induction How do we proceed? Two details: we know that the sum up to n+1 is the sum up to n, plus (n+1)² (this is axiomatically true plain old algebra). But we also know what the sum up to n is... (right?) I'll leave it (for now) for you to think about what exactly is going on, and will show you the necessary derivation/algebra:

An example: Mathematical Induction n+1 k =1 k 2 n = k =1 k 2 + (n+1) 2 = n(n+1)(2n+1) 6 + (n+1) 2 = n(n+1)(2n+1) + 6(n+1)2 6

Mathematical Induction Working on the numerator, take common factor (n+1) to get: n(n+1)(2n+1)+6(n+1) 2 = (n+1) (n(2n+1)+6(n+1) ) = (n+1)(2n 2 +7n+6) = (n+1)(n+2)(2n+3)

Mathematical Induction Working on the numerator, take common factor (n+1) to get: n(n+1)(2n+1)+6(n+1) 2 = (n+1) (n(2n+1)+6(n+1) ) Thus, we're finally obtaining: = (n+1)(2n 2 +7n+6) = (n+1)(n+2)(2n+3)

Mathematical Induction

Mathematical Induction n+1 k =1 k 2 = (n+1)(n+2)(2n+3) 6 = (n+1)((n+1)+1)(2(n+1)+1) 6 And this completes the induction step (showing that statement true for n implies that statement is true for n+1), completing the proof

Mathematical Induction In the previous example, we (sort of) started from the induction hypothesis and worked our way to the expression corresponding to the case n+1 (which is the one that we need to show to be true, based on the assumed induction hypothesis) We could have worked in the opposite direction; in the next example we'll proceed that way.

Mathematical Induction Example 2: Prove that 8 n 3 n is divisible by 5 for all n 1.

Mathematical Induction Example 2: Prove that 8 n 3 n is divisible by 5 for all n 1. Step 1: Base case: n = 1, 8 3 = 5, which is of course divisible by 5.

Mathematical Induction Example 2: Prove that 8 n 3 n is divisible by 5 for all n 1. Step 1: Base case: n = 1, 8 3 = 5, which is of course divisible by 5. Induction step: Based on the induction hypothesis that the statement holds for n, we want to show that it holds for n+1 as well.

Example 2: Mathematical Induction That is, we want to show that 8 n+1 3 n+1 is divisible by 5 provided that 8 n 3 n is divisible by 5. We observe (somewhat trivial observation) that being divisible by 5 is the same as being a multiple of 5. We proceed as follows:

Example 2: Mathematical Induction 8 n+1 3 n+1 = 8 8 n 3 3 n = 8 8 n 8 3 n + 5 3 n = 8(8 n 3 n ) + 5 3 n

Example 2: Mathematical Induction 8 n+1 3 n+1 = 8 8 n 3 3 n = 8 8 n 8 3 n + 5 3 n = 8(8 n 3 n ) + 5 3 n By induction hypothesis, 8 n 3 n is divisible by 5, so we're pretty much done (you complete the argument)

Mathematical Induction And again, 8 n 3 n being divisible by 5 is what we want to prove, so how come we can just assume it, simply because we add the by induction hypothesis??

Mathematical Induction And again, 8 n 3 n being divisible by 5 is what we want to prove, so how come we can just assume it, simply because we add the by induction hypothesis?? (so, really: what's up with that!!)

Mathematical Induction There's an alternative form of Mathematical Induction, known as Strong or Complete Induction, in which the induction hypothesis is not simply the statement being true for n (or for n=k), but the statement being true for all values between n 0 and n. (n 0 being the value for the base case). The next example illustrates this approach.

Mathematical Induction Example 3: Prove that every integer number > 1 is either prime, or it is divisible by a prime number.

Mathematical Induction Example 3: Prove that every integer number > 1 is either prime, or it is divisible by a prime number. Step 1: Base case, in this case n = 2. The statement trivially holds, since 2 is prime.

Mathematical Induction Example 3: Prove that every integer number > 1 is either prime, or it is divisible by a prime number. Step 1: Base case, in this case n = 2. The statement trivially holds, since 2 is prime. (errr, don't we need to verify the or is divisible by a prime number? )

Mathematical Induction Example 3: Prove that every integer number > 1 is either prime, or it is divisible by a prime number. Step 2: Induction step. The induction hypothesis now is that every number between 2 and n is either prime, or is divisible by a prime. We need to show that n+1 also is either prime or divisible by a prime.

Example 3: Mathematical Induction Clearly, for n+1 there are only two possibilities: either it is prime, or it is not prime. If it is prime, the statement holds.

Example 3: Mathematical Induction Clearly, for n+1 there are only two possibilities: either it is prime, or it is not prime. If it is prime, the statement holds. If it is not prime, then by definition, it is divisible by some number (say, n 1 1). If n+1 is divisble by n 1, then n 1 < n+1 therefore, 2 n 1 n

Example 3: Mathematical Induction By induction hypothesis, if 2 n 1 n, then n 1 is either prime, or divisible by a prime (say, p 1 ), and we're pretty much done: If n 1 is prime, then the statement holds (n+1 is divisible by a prime). If not... well, you complete the argument.

Mathematical Induction So, what could go wrong with this? You have to apply the technique carefully, as the next example shows by proving a (blatantly false) statement!!

Example 4: Mathematical Induction Prove that in every group of n numbers, all numbers are equal to each other.

Example 4: Mathematical Induction Prove that in every group of n numbers, all numbers are equal to each other. (I'm not kidding!! We're going to prove this!!!)

Example 4: Mathematical Induction Prove that in every group of n numbers, all numbers are equal to each other. Step 1: Base case, n=1. The statement is trivially true: In a group with only one number, all numbers are equal.

Example 4: Mathematical Induction Prove that in every group of n numbers, all numbers are equal to each other. Induction step: Our induction hypothesis is that the statement holds for n; that is, in every group of n numbers, all numbers are equal, and we want to show that this implies that in every group of n+1 numbers all numbers must also be equal.

Example 4: Mathematical Induction The argument in the induction step will not be algebraic (but then, no-one said that induction proofs are restricted to algebraic / arithmetic arguments). Consider a group of n+1 values: v 1 v 2 v 3 v 4 v n-1 v n v n+1

Example 4: Mathematical Induction The argument in the induction step will not be algebraic (but then, no-one said that induction proofs are restricted to algebraic / arithmetic arguments). Consider a group of n+1 values. And consider the two subsets indicated below: S 1 v 1 v 2 v 3 v 4 v n-1 v n v n+1 S 2

Mathematical Induction Example 4: S 1 v 1 v 2 v 3 v 4 v n-1 v n v n+1 Since both S 1 and S 2 are groups of n numbers, by induction hypothesis, both consist of n times the same value. S 2

Mathematical Induction Example 4: S 1 v 1 v 2 v 3 v 4 v n-1 v n v n+1 That is, by induction hypothesis for S 1, we obtain v 1 =v 2 = =v n, and by induction hypothesis for S 2, we obtain v 2 =v 3 = =v n =v n+1. By combining the two sets of equalities, we obtain v 1 =v 2 = =v n =v n+1, completing the proof!! S 2

Example 4: Mathematical Induction So... What went wrong? You will understand that I will not accept the argument that this example shows that Mathematical Induction does not work... Right?

Example 4: Mathematical Induction So... What went wrong? Notice also that we're not talking about an unsubstantiated argument, assuming the result or something like that the argument is actually quite clever the cleverness being in the fact that the overlap in the two subsets is what allows the induction step to work!

Example 4: Mathematical Induction So... I ask again, and hope you guys will be intrigued and love solving puzzles and will think about it: What went wrong?

Example 4: Mathematical Induction So... I ask again, and hope you guys will be intrigued and love solving puzzles and will think about it: What went wrong? BTW, when I say the argument is quite clever, I'm not bragging / being blatantly immodest I clarify: the argument is not mine. In fact, it is much more clever than it appears the real cleverness being on how an incorrect argument can look so much like a correct and clever one!