Discrete Math2
Discrete Math2
Discrete Mathematics
Instructor: Selin Selen Özbek Şimşek
E-mail: [email protected]
Textbook: Discrete Mathematics and its Applications; Kenneth H. Rosen,
Seventh Edition, (2011)
Other Books :
• Discrete Mathematics with Applications; Susanna S. Epp, Fourth Edition,
Cengage Learning, (2010)
• Discrete Mathematics; Kenneth A. Ross, Charles R. Wright, Fifth Edition,
Prentice Hall (2002)
Course book.
Discrete Mathematics and its Applications;
Kenneth H. Rosen, Seventh Edition, (2011)
1) Direct Proof:
Example: Give a direct proof that «if m and n are both perfect squares, then 𝑛𝑚 is also a
perfect square».
Definition: An integer 𝑎 is a perfect square if there is an integer 𝑏 such that 𝑎 = 𝑏 2
Solution: p: m and n are both perfect squares q: 𝑛𝑚 is a perfect square
1) Assume that p is true. «m and n are both perfect squares»
2) Then we have 𝑚 = 𝑠 2 𝑎𝑛𝑑 𝑛 = 𝑡 2 where 𝑠 and 𝑡 are real numbers.
3) m. n = 𝑠 2 𝑡 2 = 𝑠𝑠 𝑡𝑡 = 𝑠𝑡 𝑠𝑡 = (𝑠𝑡)2 = 𝑟 2
4) 𝑛𝑚 is a perfect square.
Proofs of theorems of this type that are not direct proofs, that is, that do not start
with the premises and end with the conclusion, are called indirect proofs.
• Second Type
1. The proposition to be proved is 𝑝 → 𝑞.
2. Assume p and ¬𝑞.
3. Find a contradiction.
4. Conclude 𝑝 → 𝑞.
Remark: The real number r is rational if there exist integers p and q with q≠0 such that
r = p/q. A real number that is not rational is called irrational.
Solution:
1) p: 2 is irrational.
2) Assume ¬𝑝: 2 is a rational number.
3) Find a contradiction:
Assume that 2 is a rational number. Then there are m, n (n≠0) integers such that
2 =m/n , where m and n have no common factors. We have
𝑚2 is an even number.
𝑛2 is an even number.
We conclude that n must be even as well. That is, 2 divides both m and n.
« 2 =m/n , where m and n have no common factors.»
Our assumption of ¬p leads to the contradiction that 2 divides both m and n .
4) Conclude p: 2 is irrational.
3𝑛 + 2 = 3 2𝑘 + 2 = 6𝑘 + 2 = 2 3𝑘 + 1 = 2𝑡
4. Conclude 𝑝 → 𝑞.
Altınbaş Üniversitesi [email protected] MATH211-Discrete Math.
Proofs of Equivalence
To prove a theorem that is a biconditional statement, that is, a statement of the
form 𝑝 ↔ 𝑞, we show that p → q and q → p are both true.
1.(𝑝 → 𝑞): We can use Direct Proof Method for this part.
Assume that n is odd. Then we have n=2k+1 , where k is an integer.
𝑛2 = (2𝑘 + 1)2 = 4𝑘 2 + 4𝑘 + 1 = 2 2𝑘 2 + 2𝑘 + 1 = 2𝑚 + 1
where m is an integer. We conclude that 𝑛2 is odd.
𝑛2 = 4𝑘 2 =2(2𝑘 2 )=2t
A statement of the form ∀xP(x) is false, we need only find a counterexample, that is,
an example x for which P(x) is false. When presented with a statement of the form ∀xP(x),
which we believe to be false we look for a counterexample.
Example: Show that the statement “Every positive integer is the sum of the squares of two
integers” is false.
Solution: To show that this statement is false, we look for a counterexample, which is a
particular integer that is not the sum of the squares of two integers. For example 3 cannot
be written as the sum of the squares of two integers. To show this is the case, note that the
only perfect squares not exceeding 3 are 02 = 0 and 12 = 0 . There are no numbers a and
b such that 3=𝑎2 + 𝑏 2 .
Solution:
Existence : If 𝑎𝑟 + 𝑏 = 0 then 𝑎𝑟 = −𝑏 .We obtain the solution 𝑟 = −𝑏/𝑎 .
Uniqueness : Assume that s is a real number such that
𝑎𝑠 + 𝑏 = 0
Then
𝑎𝑟 + 𝑏 = 𝑎𝑠 + 𝑏
Subtracting b from both sides, we find that
𝑎𝑟 = 𝑎𝑠
Dividing both sides of this last equation by a, which is nonzero, we see that
𝑟=𝑠
Then r is unique.
𝑥+𝑦
Example: Prove that > 𝑥𝑦 .
2
Solution: To prove that we can work backward. We construct a sequence of equivalent
inequalities. The equivalent inequalities are
it follows that the final inequality is true. Once we have carried out this backward reasoning,
we can easily reverse the steps to construct a proof using forward reasoning.We now give
this proof.
Altınbaş Üniversitesi [email protected] MATH211-Discrete Math.
Altınbaş Üniversitesi [email protected] MATH211-Discrete Math.