Discrete Math1
Discrete Math1
Discrete Mathematics
Instructor: Selin Selen Özbek Şimşek
E-mail: selin.ozbek@altinbas.edu.tr
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)
A proposition is a declarative sentence (that is, a sentence that declares a fact) that is either
true or false, but not both.
Definition 1:
Example: Find 𝑝 → 𝑞.
1. p :2<1 , q: 2<3 𝑝 → 𝑞 :2 < 1 → 2 < 3 The truth table of 𝒑 → 𝒒
p q 𝑝→𝑞
2. p: 2 and 3 are prime numbers. q: 6 isn’t a prime number. T T T
𝑝 → 𝑞: If 2 and 3 are prime numbers, then 6 isn’t a prime number
T F F
3. p: 8<3 , q:8<4 𝑝 → 𝑞: If 8<3 , then 8<4. F T T
F F T
1) Contrapositive ¬𝑞 → ¬𝑝 : If the home team does not win, then it is not raining.
2) Converse 𝑞 → 𝑝 : If the home team wins, then it is raining.
3) Inverse ¬𝑝 → ¬𝑞 : If it is not raining, then the home team does not win.
Definition:
𝑝 ↔ 𝑞: You can take the flight if and only if you buy a ticket.
Precedence Operator
Example:
1) ¬(p ∧ q) and ¬p ∧ q propositions are different to each other. 1 ¬
2) p ∧ q ∨ r means (p ∧ q) ∨ r rather than p ∧ (q ∨ r). 2 ⋀
3) p ∨ q → r is the same as (p ∨ q) → r. 3 ∨
4 →
5 ↔
Definition: A compound proposition that is always true, no matter what the truth values of
the propositional variables that occur in it, is called a tautology. A compound proposition
that is always false is called a contradiction. A compound proposition that is neither a
tautology nor a contradiction is called a contingency.
One way to determine whether two compound propositions are equivalent is to use a
truth table. In particular, the compound propositions p and q are equivalent if and only if
the columns giving their truth values agree.
De Morgan Laws:
The following two examples illustrate this method to establish an extremely important and
useful logical equivalences. Thess logical equivalences are called De Morgan’s laws.
De Morgan’s Law
¬ 𝑝 ∧ 𝑞 ≡ ¬p∨ ¬q
¬ 𝑝 ∨ 𝑞 ≡ ¬p∧ ¬q
Altınbaş Üniversitesi Selin Selen Özbek Şimşek selin.ozbek@altinbas.edu.tr MATH211-Discrete Mathematics
Example:Show that ¬(p ∨ q) and ¬p ∧¬q are logically equivalent.
We can denote the statement “x is greater than 3” by 𝑷(𝒙), where P denotes the
predicate “is greater than 3” and x is the variable. The statement P(x) is also said to be the
value of the propositional function P at x. Once a value has been assigned to the variable x,
We can also have statements that involve more than one variable. For instance,
consider the statement “x = y + 3.” We can denote this statement by Q(x, y), where x and y
are variables and Q is the predicate. When values are assigned to the variables x and y, the
statement Q(x, y) has a truth value.
Example: Let Q(x,y) denote the statement x=y+3 . What are the truth values of the
propositions Q(1,2) and Q(3,0)?
Solution: To obtain Q(1,2) set x=1 and y=2 in the statement Q(x, y). Hence, Q(1, 2) is the
statemen «1=2+3» which is false. The statement Q(3, 0) is the proposition “3 = 0 + 3,” which
is true.
Altınbaş Üniversitesi Selin Selen Özbek Şimşek selin.ozbek@altinbas.edu.tr MATH211-Discrete Mathematics
Quantifiers expresses the extent to which a predicate is true over a range of elements.
We will focus on two types of quantification here: universal quantification and existential
quantification.
Universal Quantification :
Example: Let P(x) denote the statement “x > 3.” What is the truth value of the quantification
∃xP(x), where the domain consists of all real numbers?
Solution: Because “x > 3” is sometimes true—for instance, when x = 4—the existential
quantification of P(x), which is ∃xP(x), is true.
Example: Let Q(x) denote the statement “x = x + 1.”What is the truth value of the
quantification ∃xQ(x), where the domain consists of all real numbers?
Solution: Because Q(x) is false for every real number x, the existential quantification of Q(x),
which is ∃xQ(x), is false.
Solution:
• The negation of ∀𝑥 𝑥 2 > 𝑥 is the statement ¬∀𝑥 𝑥 2 > 𝑥 , which is equivalent to
∃𝑥¬ 𝑥 2 > 𝑥 .This can be rewritten as ∃𝑥 𝑥 2 ≤ 𝑥 olarak da yazabiliriz.
• The negation of ∃𝑥 𝑥 2 = 2 is the statement ¬∃𝑥 𝑥 2 = 2 , which is equivalent to
∀𝑥¬ 𝑥 2 = 2 .This can be rewritten as ∀𝑥 𝑥 2 ≠ 2 .
Example: Show that ¬∀𝑥(𝑃(x)→ 𝑄(𝑥)) and ∃𝑥(𝑃(x)⋀¬𝑄 𝑥 ) are logically equivalent.
Solution: By De Morgan’s law for universal quantifiers, we know that ¬∀𝑥(𝑃(x)→ 𝑄(𝑥))
and ∃𝑥¬ (𝑃(x)→ 𝑄(𝑥)) are logically equivalent. By the logical equivalence in the previous
section, we know that 𝑃(x)→ 𝑄(𝑥) ≡ ¬𝑃(x) ∨ 𝑄 𝑥 . We obtain
Example: Assume that the domain for the variables x and y consists of all real numbers.
The statement
∀x∀y(x + y = y + x)
says that x + y = y + x for all real numbers x and y.
Example: The statement
∀x∃y(x + y = 0)
says that for every real number x there is a real number y such that x + y = 0.
Altınbaş Üniversitesi Selin Selen Özbek Şimşek selin.ozbek@altinbas.edu.tr MATH211-Discrete Mathematics
The Order of the Quantifiers
It is important to note that the order of the quantifiers is important, unless all the
quantifiers are universal quantifiers or all are existential quantifiers.
∀𝑥∃𝑦 𝑥 + 𝑦 = 0 The statement says that for every real number x there is a real number
y such that x + y = 0.
∃𝑦∀𝑥 𝑥 + 𝑦 = 0 The statement says that there is a real number y such that for every
real number x, x + y = 0.
Statements involving nested quantifiers can be negated by repeatedly applying the rules for
negating statements involving a single quantifier.
Example: Use quantifiers and predicates to express the fact that limx→a f (x) does not exist.
lim 𝑓(𝑥) ≠ 𝐿
𝑥→𝑎
Solution:
The definition of a limit: For every real number 𝜀> 0 there exists a real number δ > 0 such that
|f (x) − L| < 𝜀 whenever 0 < |x − a| < δ.