Professional Documents
Culture Documents
COLLEGE OF SCIENCE
MMW 101
MATHEMATICS IN THE MODERN WORLD
Module 5
Elementary Logic
“Achieving Universal Understanding and
Peace Through the Language of
Mathematics”
48
Elementary Logic
Logic is the discipline that deals with the methods of reasoning. It is regarded
as one of the oldest intellectual disciplines in the history of humanity. It was the Greek
philosopher Aristotle who pioneered logical reasoning. Throughout centuries, logic has
immensely influenced other fields such as philosophy, mathematics, science,
engineering, business, and law, to name a few.
Logic is essential in our daily lives. It helps steer us in the direction of the truth
and away from falsehood. Thus, it helps us in expressing our ideas and opinions and
in making decisions.
Propositions, Simple and Compound Statements
The first step to learning logic is to identify propositions. A proposition,
sometimes called a statement, is a declarative sentence that is either true or false, but
not both. To represent propositions, the lower case letters like p,q,r,s,… are used.
These are called propositional variables.
The table shows examples of propositions and sentences that are not
propositions.
Examples:
Two is a rational number. (simple statement)
Two is a rational number and four is an even number. (compound statement)
Try this!
Which of the following are propositions?
a. I am a freshman student.
b. Answer the exercises.
c. −9 + 15 = −6
The following examples show how these logical connectives are used to form
compound statements.
Note: The negation does not form a compound statement when used but it is
considered a connective since it alters the original statement.
A. Negation:
Proposition Negation
p: The traffic in EDSA is heavy. ~p: The traffic in EDSA is not heavy.
q: Today is Friday ~q: Today is not Friday.
r: I do not like milk tea. ~r: I like milk tea.
s: The students did not attend the ~s: The students attended the
webinar webinar.
t: 23 + 34 57 ~t: 23 + 34 = 57
50
B. Conjunction:
C. Disjunction:
D. Conditional:
E. Biconditional:
Let p, q, and r be the following propositions:
p: Lewis is a singer.
q: Lewis is a vocalist.
r: Lewis is a recording artist.
s: Seven is a whole number.
t: 9 + 13=25
Examples:
p: Cathy is good in Chemistry.
q: Cathy is good in Statistics.
r: Cathy is a scholar.
s: Cathy is an athlete.
References
Aufmann, R.N., et. Al. (2018). Mathematics in the Modern World (14th ed.). Sampaloc,
Manila: Rex Book Store, Inc.
Baltazar, E., Ragasa, C., & Evangelista, J. (2018). Mathematics in the Modern World.
Quezon City: C&E Publishing, Inc.
Earnheart, R. and Adina, E. (2018). Math in the Modern World. Quezon City : C &E
Publishing, Inc.
Malang, P., Malang, B., & Tiongson, I. (2011). Discrete Structure. San Rafael, Bulacan
: HFM Publishing.
Rosen, K.H. (1988). Discrete Mathematics and Its Applications. New York : The
Random House.
Online References
Introduction to Propositional Logic. Geeks for Geeks. Retrieved last July 9, 2022 from:
https://www.geeksforgeeks.org/proposition-logic/.
Uma, A.V. (2022) Logical Connectives and Quantifiers: Definition, Symbols, Usage,
Examples. Embibe. Retrieved last July 9, 2022 from
https://www.embibe.com/exams/logical-connectives-and-quantifiers/.
BULACAN STATE UNIVERSITY
COLLEGE OF SCIENCE
MMW 101
MATHEMATICS IN THE MODERN WORLD
Module 6
Truth Values and Truth Tables
“Achieving Universal Understanding and
Peace Through the Language of
Mathematics”
55
A truth table is a table that shows the truth values of a compound statement
for all possible truth values of its simple statements.
Note: 1. The Truth Table of one simple statement consists of two rows showing
the possible truth values of the given statement.
Truth
Table
(Assertion)
p
T
F
Truth Table
Truth Value of the
p q
compound statement
T T
T F
F T
F F
56
Negation:
Truth Table If a statement is true, its negation is
p ~p false.
T F If a statement is false, its negation is
F T true.
Conjunction:
Truth Table
p q p∧q
T T T The conjunction p ∧ q is TRUE when
T F F both p and q are true.
F T F
F F F
Disjunction:
Truth Table
p q p∨q
The disjunction p ∨ q is TRUE if at
T T T
least one of them (either p or q) is
T F T
true.
F T T
F F F
Conditional:
Truth Table
p q p→q
The conditional p → q is FALSE
T T T
when p is true, and q is false. It is
T F F
true in all other cases.
F T T
F F T
Biconditional:
Truth Table
p q p↔q
The biconditional p ↔ q is TRUE
T T T
when p and q have the same truth
T F F
values.
F T F
F F T
Try this!
Given the following propositions with their corresponding truth values, what is
the truth value of the statement "Archie has fever and he has difficulty in breathing,
but he is infected with COVID 19".
Now let us try to construct a truth table. Follow the steps, as shown in the
examples that follow.
Examples:
1. Construct the truth table for the compound statement (p ∨ q) ∧ ~ p.
Solution:
Step 1: Start with the standard truth table form.
Step 2: Write the truth values of the disjunction p ∨ q on a new column.
Step 3: Negate p, then write the results on the next column.
Step 4: Using the truth values of p ∨ q (in step 2) and ~p (in step 3),
determine the truth values of (p ∨ q) ∧ ~p. Write the results in the last column.
p q p∨q ~p (p ∨ q) ∧ ~p
T T T F F
T F T F F
F T T T T
F F F T F
58
2. Construct the truth table for the compound statement (p → q) ↔ (~q ∨ ~p).
Solution:
Step 1: Start with the standard truth table form.
Step 2: Negate p and then write the results on a new column.
Step 3: Negate q and then write the truth values in the next column.
Step 4: Write the truth values of the conditional p → q on another column.
Step 5: Using the truth values from the negation of p (in step 2) and the negation
of q (in step 3), determine the truth values of ~q ∨ ~p.
Step 6: Using the truth values of p → q (in step 4) and ~q ∨ ~p (in step 5), write
the truth values of (p → q) ↔ (~q ∨ ~p) in the last column.
Try this!
Construct a truth table for the compound proposition (p → ~q) ↔ (~p ∨ q).
A tautology is a proposition where the truth values are always true in all
possible cases.
A contradiction is a proposition where the truth values are always false in all
possible cases.
A contingency is a proposition where the truth values are not always true nor
always false.
Examples:
1. Show that ~p ∨ (~q → p) is a tautology.
Solution:
Step 1: Start with the standard truth table form.
Step 2: Negate p and then write the results on a new column.
Step 3: Negate q and then write the truth values on another column.
Step 4: Using the truth values from the negation of q (in step 3) and p (in step
1), determine the truth values of ~q → p.
Step 5: Using the truth values of the negation of p (in step 2) and ~q →p (in
step 4), find the truth values of the disjunction ~p ∨ (~q → p). Write the
results in the last column.
59
p q ~p ~q ~q → p ~p ∨ (~q → p)
T T F F T T
T F F T T T
F T T F T T
F F T T F T
p ~p p → ~p p ∧ (p → ~p)
T F F F
F T T F
Since the truth values of p ∧ (p → ~p) are always false, then it is a contradiction.
p q ~q p ∧ ~q p∨q (p ∧ ~q) ∧ (p ∨ q)
T T F F T F
T F T T T T
F T F F T F
F F T F F F
Since the truth values of (p ∧ ~q) ∧ (p ∨ q) are not always true nor always false,
then (p ∧ ~q) ∧ (p ∨ q) is a contingency.
Try this!
References
Aufmann, R.N., et. Al. (2018). Mathematics in the Modern World (14th ed.). Sampaloc,
Manila: Rex Book Store, Inc.
Baltazar, E., Ragasa, C., & Evangelista, J. (2018). Mathematics in the Modern World.
Quezon City: C&E Publishing, Inc.
Earnheart, R. and Adina, E. (2018). Math in the Modern World. Quezon City : C &E
Publishing, Inc.
Malang, P., Malang, B., & Tiongson, I. (2011). Discrete Structure. San Rafael, Bulacan
: HFM Publishing.
Rosen, K.H. (1988). Discrete Mathematics and Its Applications. New York : The
Random House.
COLLEGE OF SCIENCE
MMW 101
MATHEMATICS IN THE MODERN WORLD
Module 7
Statements Related to Conditional
Statements and Logical
Equivalence
“Achieving Universal Understanding and
Peace Through the Language of Mathematics”
62
Logical Equivalence
Two statements having the same truth values in all possible cases are logically
equivalent.
Examples:
1. Show that p → q and ~p ∨ q are logically equivalent.
Solution:
Step 1: Begin with the standard truth table form.
Step 2: Negate p and then write the results on a new column.
Step 3: Write the truth values of p → q in the next column.
Step 4: Using the truth values of the negation of p (in step 2) and q (in column
2), write the truth values of ~p ∨ q in the last column.
p q ~p p→q ~p ∨ q
T T F T T
T F F F F
F T T T T
F F T T T
Since p → q and ~p ∨ q have the same truth values in all possible cases, they
are logically equivalent. In symbolic form: p → q ⇔ ~p ∨ q or p → q ≡ ~p ∨ q.
63
p q ~p ~q ~p ∧ ~q p∨q
T T F F F T
T F F T F T
F T T F F T
F F T T T F
Since the truth values of ~p ∧ ~q in all cases are not the same as the truth
values of p ∨ q, then ~p ∧ ~q is not logically equivalent to p ∨ q or in symbols, ~p
∧ ~ q ⇎ p ∨ q.
p q ~q p →q ~ (p → q) p ∧ ~q
T T F T F F
T F T F T T
F T F T F F
F F T T F F
From the truth table, we can see that ~ (p → q) have the same truth values as
p ∧ ~ q. Therefore, they are logically equivalent.
Try this!
Examples:
Write the converse, the inverse, and the contrapositive of the following
conditional statements:
1. If I get the loan, then I will buy a new motorbike.
2. If you are smart, then you can get the job.
Solution:
1. If I get the loan, then I will buy a new motorbike.
Converse: If you can get the job, then you are smart.
Inverse: If you are not smart, then you cannot get the job.
Contrapositive: If you cannot get the job, then you are not smart.
Try this!
Tell the converse, the inverse, and the contrapositive of the conditional
statement, "I feel nauseous whenever I stay up late at night."
65
The truth table for the conditional and its related statements is shown below.
The table also shows that any conditional statement is logically equivalent to its
contrapositive, and its converse is logically equivalent to its inverse.
Notation:
p → q ≡ ~q → ~p
q → p ≡ ~p → ~q
66
References
Aufmann, R.N., et. Al. (2018). Mathematics in the Modern World (14th ed.). Sampaloc,
Manila: Rex Book Store, Inc.
Baltazar, E., Ragasa, C., & Evangelista, J. (2018). Mathematics in the Modern World.
Quezon City: C&E Publishing, Inc.
Earnheart, R. and Adina, E. (2018). Math in the Modern World. Quezon City : C &E
Publishing, Inc.
Malang, P., Malang, B., & Tiongson, I. (2011). Discrete Structure. San Rafael, Bulacan
: HFM Publishing.
Rosen, K.H. (1988). Discrete Mathematics and Its Applications. New York : The
Random House.