Lesson-2-S-MATH-1
Lesson-2-S-MATH-1
Objectives:
At the end of the lesson, the students must have:
1. Discussed the definition and usage of logical operators or connectives.
2. Distinguished different logical operators or connectives as it apply to the different
logical statements.
3. Appreciated the language of mathematics through logic and reasoning.
Introduction:
In this lesson, we will discuss the concepts and definitions of logical operators. Further,
this lesson will discuss on how to apply the different logical operators in constructing
compound propositions. These concepts are taken from the book Discrete Mathematics
and its Application, 6th Edition by Rosen and Krithivasan.
Supplementary Topic
The Table 2.0 displays truth table for the negation of a proposition p. This table has a
row for each of the two possible truth values of a proposition p. Each row shows the
truth value of ¬p corresponding to the truth value of o for this row.
Table 2.0: The Truth Table for the Negation of a Proposition.
p ¬p
T F
F T
The negation of a proposition can also be considered the result of the operation of the
negation operator on a proposition. The negation operator constructs a new proposition
from a single existing proposition. We will now introduce the logical operators.
Definition 1.2.1 Logical operators are used to form new proposition from the two or
more existing propositions. These logical operators are also called logical connectives.
Table 2.1: The Truth Table for the Conjunction of Two Propositions.
p q p∧q
T T T
T F F
F T F
F F F
Example 1.2.3 Find the conjunction of the propositions p and q where p is the
proposition “Today is Friday” and q is the proposition “It is raining today”.
Solution: The conjunction of these propositions, p ∧ q, is the proposition “Today
is Friday and it is raining today”. This proposition is true on rainy Fridays, and is false on
any day that is not a Friday and on Fridays when it does not rain.
Table 2.2: The Truth Table for the Disjunction of Two Propositions.
p q p ∨q
T T T
T F T
F T T
F F F
Example 1.2.5 What is the disjunction of the proposition p and q where p and q are the
same propositions in Example 1.1.9?
Solution: The disjunction of p and q, p ∨ q, is the proposition
“Today is Friday or it is raining today”.
Definition 1.2.6 The conditional statement p → q is the proposition "if p, then q."
The conditional statement p → q is false when p is true and q is false, and true
otherwise. In the conditional statement p → q, p is called the hypothesis (or antecedent
or premise) and q is called the conclusion (or consequence).
The statement p → q is called a conditional statement because p → q asserts
that q is true on the condition that q holds. A conditional statement is also called an
implication.
The truth table for the conditional statement p → q is shown in Table 2.3. Note
that the statement p → q is true when both p and q are true and when q is false (no
matter what truth value q has). Moreover, you will encounter most if not all of the
following other ways to express this conditional statement:
“p only if q” “p implies q” “if p, q”
“q unless ¬p” “p is sufficient for q” “a sufficient condition for q is p”
“q if p” “q whenever p” “q when p”
“q is necessary for p” “q follows from p” “a necessary condition for p is q”
Example 1.2.7 Let p be the statement “Maria learns discrete mathematics” and q the
statement “Maria will find a good job.” Express the statement p → q as a statement in
English.
Solution. From the definition of conditional statements, we see that when p is the
statement “Maria learns discrete mathematics” and q is the statement “Maria will find a
good job.” The p → q represents some of the statements
“If Maria learns discrete mathematics, then she will find a good job”,
“Maria will find a good job when she learns discrete mathematics”,
“For Maria to have a good job, it is sufficient for her to learn discrete
mathematics”,
and
“Maria will find a good job unless she does not learn discrete mathematics”.
Definition 1.2.8 There are three related conditional statements. The proposition q → p
is called the converse of p → q. The contrapositive of p → q is the proposition ¬ q →¬
p. The proposition ¬ p →¬ q is called the inverse of p → q. The contrapositive is the
only statement that has the same truth value as p → q.
Example 1.2.9 What are the contrapositive, the converse, and the inverse of the
conditional statement
“If it is raining, then the home team wins.”
Solution. Consequently, the contrapositive of this conditional statement is
“If the home team does not win, then it is not raining.”
The converse is
“If the home team wins, then it is raining.”
The inverse is
“If it is not raining, then the home team does not win.”
Definition 1.2.10 The biconditional statement p ↔ q is the proposition "p if and only if
q." The biconditional statement p ↔ q is true when p and q have the same truth values,
and is false otherwise. Biconditional statements are also called bi-implications
The truth table for p ↔ q is shown in Table 2.4. Note that the statement p ↔ q is
true when both the conditional statements p → q and q → p are true and is false
otherwise. That is why we use the words “if and only if” to express this logical
connective and why it is symbolically written by combining the symbols → and ←. There
are some other common ways to express p ↔ q:
“p is necessary and sufficient for q” “if p then q, and conversely” “p iff q”
Table 2.4: The Truth Table for the biconditional statement p ↔ q.
p q p ↔q
T T T
T F F
F T F
F F T
Example 1.2.11 Let p be the statement “You can take the flight” and let q be the
statement, “You can buy a ticket.” Then p ↔ q is the statement
“You can take the flight if and only if you buy a ticket”.
Table 2.5: The Truth Table for the Exclusive Or of Two propositions.
p q 𝑝⊕𝑞
T T F
T F T
F T T
F F F
Solution:
Table 2.7: The Truth Table for the (p ∨ ¬q) → (p ∧ q).
p q ¬q p ∨ ¬q p∧q (p ∨ ¬q) → (p ∧ q)
T T F T T T
T F T T F F
F T F F F T
F F T T F F
b. p → ¬q.
Solution. If swimming at the New Jersey shore is allowed, then Sharks have not
been spotted near the shore.
c. p ∧ q
Solution. Swimming at the New Jersey shore is allowed and sharks have been
spotted near the shore.
d. p ∨ q.
Solution. Swimming at the New Jersey shore is allowed or sharks have been
spotted near the shore.
e. p ↔ q
Solution. Swimming at the New Jersey shore is allowed if and only if sharks
have been spotted near the shore
b. You get 95/100 points on the final exam, you do every exercise on the
handouts, and you get 1.0 in this class.
_____________________________________________________________
c. To get 1.0 in this class, it is necessary for you to get 95/100 points on the final
exam.
_____________________________________________________________
d. You get 95/100 points on the final exam but you don’t do every exercise on
the handouts; nevertheless, you can get 1.0 in this class.
_____________________________________________________________
e. Getting 95/100 points on the final exam and doing every exercise on the
handouts is sufficient for getting 1.0 in this class.
_____________________________________________________________
f. You will get 1.0 in this class if and only if you either do every exercise on the
handouts or get 95/100 points on the final exam.
_____________________________________________________________
b. A password must have at least three digits or be at least eight characters long.
_____________________________________________________________
_____________________________________________________________
d. You can log-in in your Facebook account using your email address or
cellphone number.
_____________________________________________________________
_____________________________________________________________
d. You can only access the CPSU LMS only if you have your valid ID Number.
_____________________________________________________________
a. ¬p ∧ p
b. ¬p ∨ p
c. (p ∨ q) → ¬q
d. (p ∨ q) → (p ∧ q)
g. (p ⊕ q) ↔ (p ⊕ ¬r).