intro_post_lecture sept 1.1
intro_post_lecture sept 1.1
1
based on How To Prove It, by D. Velleman
1
Discrete Mathematics
Why do you need to study discrete mathematics?
c
b
a2 + b 2 = c 2
a
What does this mean?
1. Usually a2 + b 2 is approximately c 2 .
2. a2 + b 2 = c 2 exactly, on every right triangle that anyone has
ever checked.
3. a2 + b 2 = c 2 exactly, on every right triangle that anyone has
ever checked, and we think that it holds exactly on every
other right triangle.
4. We know that a2 + b 2 = c 2 on every right triangle that can
possibly exist. We can guarantee that nobody will ever find a
right triangle where this is not true.
mathematical reasoning
• So far, most of your math classes have been computational.
• You have been taught methods to compute things, and you
have trusted that those methods work.
• In university, you will dive deeper.
• You will learn how to know that these things work.
• How to know that a mathematical statement is true.
7
mathematical reasoning
Let’s begin with a simple problem.
Every pair of odd integers adds up to an even integer.
We have definitions:
• An even integer can be written as 2x where x is some integer.
• An odd integer can be written as 2x + 1 where x is some
integer.
Proof steps:
1. Take any two odd integers.
2. By definition, they can be written as 2x + 1 and 2y + 1.
3. Using algebraic rules, their sum is
2x + 1 + 2y + 1 = 2x + 2y + 2 = 2(x + y + 1).
4. By definition, this is an even integer.
Q. How did we show that this is true for every possible pair of
odd integers?
A. We used variables. Every statement logically follows from the
previous statements or from known truths.
mathematical reasoning
A slightly more challenging problem:
We have a definition:
• A prime number is an integer greater than 1, that is not a
product of two smaller positive integers.
Proof steps:
9
mathematical reasoning
Proof steps:
1. By definition, n = ab, where a and b are positive integers, and
a < n and b < n.
2. Let x = 2b − 1, y = 1 + 2b + 22b + · · · + 2(a−1)b .
3. Then
x · y =(2b − 1) · (1 + 2b + 22b + · · · + 2(a−1)b )
=2b · (1 + 2b + 22b + · · · + 2(a−1)b ) − (1 + 2b + 22b + · · · + 2(a−1)b )
=(2b + 22b + · · · + 2ab ) − (1 + 2b + 22b + · · · + 2(a−1)b )
=2ab − 1
=2n − 1
4. Since b < n, we have x = 2b − 1 < 2n − 1.
Since a < n = ab, we have b > 1 and so
x = 2b − 1 > 21 − 1 = 1. Then y < xy = 2n − 1.
5. Since 2n − 1 = xy for positive integers x, y both less than
2n − 1, we have 2n − 1 is not prime, by definition.
10
mathematical reasoning
√ p √ √ √
1= 1= (−1)(−1) = −1 −1 = ( −1)2 = −1
Clearly, something went wrong. What was it?
p √ √
(−1)(−1) ̸= −1 −1
11
mathematical reasoning
Usually, it is even harder to spot.
1=1
1/(−1) = 1/(−1)
1/(−1) = (−1)/1
p p
1/(−1) = (−1)/1
1/i = i/1
i2 = 1
−1 = 1