04 Chapter 7 - 1
04 Chapter 7 - 1
Logic, Sets,
and
Counting
Section 1
Logic
Barnett, College Mathematics for Business, Economics, Life Sciences, and Social Sciences, 14e, GE
Copyright © 2019, 2015, 2011 Pearson Education Ltd. Slide 1
Introduction
Quality control is crucial in manufacturing to ensure product
safety and reliability.
o One method of quality control is to test a sample of
manufactured parts
The mathematics behind this method of quality control
involves logic, sets, and counting
Logic and sets are foundational concepts for mathematics.
We use logic to formulate precise mathematical statements.
In this section, we introduce the symbolic logic of
propositions.
o Sets are studied in Section 7.2.
o In later sections in Chapter 7, we study various counting
techniques.
Barnett, College Mathematics for Business, Economics, Life Sciences, and Social Sciences, 14e, GE
Copyright © 2019, 2015, 2011 Pearson Education Ltd. Slide 2
Logical Reasoning and Statements
[(p → q) ∧ p] ⇒ q
Barnett, College Mathematics for Business, Economics, Life Sciences, and Social Sciences, 14e, GE
Copyright © 2019, 2015, 2011 Pearson Education Ltd. Slide 4
Logic
Logic is the study of the form of arguments.
Barnett, College Mathematics for Business, Economics, Life Sciences, and Social Sciences, 14e, GE
Copyright © 2019, 2015, 2011 Pearson Education Ltd. Slide 5
Propositions and Connectives
A proposition is a statement (not a question or command)
that is either true or false.
So, the statement,
o “There is a prime number between 2,312 and 2,325” is
a proposition.
o A prime number is a number that can only be
divided by itself and 1 without remainders
Lowercase letters, p, q, and r are used to denote
propositions.
Barnett, College Mathematics for Business, Economics, Life Sciences, and Social Sciences, 14e, GE
Copyright © 2019, 2015, 2011 Pearson Education Ltd. Slide 6
Propositions and Connectives
If p and q are propositions, then compound propositions
can be formed using logic symbols as follows:
o Negation: ¬p “not p”
o Disjunction p ∨ q “p or q”
o Conjunction p ∧ q “p and q”
Barnett, College Mathematics for Business, Economics, Life Sciences, and Social Sciences, 14e, GE
Copyright © 2019, 2015, 2011 Pearson Education Ltd. Slide 7
Definition Negation and a
Truth Table for Negation
A truth table is used to specify a proposition’s truth value.
p ¬p
T F
F T
Barnett, College Mathematics for Business, Economics, Life Sciences, and Social Sciences, 14e, GE
Copyright © 2019, 2015, 2011 Pearson Education Ltd. Slide 8
Definition Disjunction and a
Truth Table for Disjunction
If p and q are propositions, then the proposition p ∨ q, read
p or q, or the disjunction of p and q, is true if p is true, or
if q is true, or if both are true and is false otherwise.
This is summarized in the following truth table.
p q p∨q
T T T
T F T
F T T
F F F
Barnett, College Mathematics for Business, Economics, Life Sciences, and Social Sciences, 14e, GE
Copyright © 2019, 2015, 2011 Pearson Education Ltd. Slide 10
Definition Conditional and a
Truth Table for Conditional
If p and q are propositions, then the proposition p → q,
read if p then q, or the conditional with hypothesis p and
conclusion q, is false if p is true and q is false but is true
otherwise.
Barnett, College Mathematics for Business, Economics, Life Sciences, and Social Sciences, 14e, GE
Copyright © 2019, 2015, 2011 Pearson Education Ltd. Slide 11
About the Use of Conditionals
The definition of p → q differs somewhat from the use of
“if p then q” in everyday language.
The proposition:
o “If Paris is in Switzerland, then Queens is in New
York” is true.
o There is no apparent connection between p (“Paris is in
Switzerland”) and q (“Queens is in New York”),
however, since the hypothesis p is false, the conditional
p → q is true.
Whenever the hypothesis p is false, we say that the
conditional p → q is vacuously true.
Barnett, College Mathematics for Business, Economics, Life Sciences, and Social Sciences, 14e, GE
Copyright © 2019, 2015, 2011 Pearson Education Ltd. Slide 12
CONCEPTUAL INSIGHT
It is helpful to think of the conditional as a guarantee.
For example, an instructor of a mathematics course might
give a student the guarantee: “If you score at least 90%,
then you will get an A.”
o Suppose the student scores less than 90%, so the
hypothesis is false. The guarantee remains in effect
even though it is not applicable.
We say that the conditional statement is vacuously
true.
o In fact, there is only one circumstance in which the
conditional statement could be false: The student scores
at least 90% (that is, the hypothesis is true), but the
grade is not an A (the conclusion is false).
Barnett, College Mathematics for Business, Economics, Life Sciences, and Social Sciences, 14e, GE
Copyright © 2019, 2015, 2011 Pearson Education Ltd. Slide 13
Example 1 Compound Propositions
Question: Consider the propositions p and q:
p: “4 + 3 is even.”
q: “42 + 32 is odd.”
Barnett, College Mathematics for Business, Economics, Life Sciences, and Social Sciences, 14e, GE
Copyright © 2019, 2015, 2011 Pearson Education Ltd. Slide 14
Example 1 Compound Propositions
Question: Consider the propositions p and q:
p: “4 + 3 is even.”
q: “42 + 32 is odd.”
Barnett, College Mathematics for Business, Economics, Life Sciences, and Social Sciences, 14e, GE
Copyright © 2019, 2015, 2011 Pearson Education Ltd. Slide 15
Example 1 Compound Propositions
Question: Consider the propositions p and q:
p: “4 + 3 is even.”
q: “42 + 32 is odd.”
Barnett, College Mathematics for Business, Economics, Life Sciences, and Social Sciences, 14e, GE
Copyright © 2019, 2015, 2011 Pearson Education Ltd. Slide 16
Example 1 Compound Propositions
Barnett, College Mathematics for Business, Economics, Life Sciences, and Social Sciences, 14e, GE
Copyright © 2019, 2015, 2011 Pearson Education Ltd. Slide 17
Example 1 Compound Propositions
Question: Consider the propositions p and q:
p: “4 + 3 is even.”
q: “42 + 32 is odd.”
Barnett, College Mathematics for Business, Economics, Life Sciences, and Social Sciences, 14e, GE
Copyright © 2019, 2015, 2011 Pearson Education Ltd. Slide 18
Definition Converse and
Contrapositive
Barnett, College Mathematics for Business, Economics, Life Sciences, and Social Sciences, 14e, GE
Copyright © 2019, 2015, 2011 Pearson Education Ltd. Slide 19
Example 2 Converse and
Contrapositive
Question: Consider the propositions p and q:
p: “2 + 2 = 4”
q: “9 is a prime”
Express each of the following propositions as an English
sentence and determine whether it is true or false.
(A) p → q
Barnett, College Mathematics for Business, Economics, Life Sciences, and Social Sciences, 14e, GE
Copyright © 2019, 2015, 2011 Pearson Education Ltd. Slide 20
Example 2 Converse and
Contrapositive
Question: Consider the propositions p and q:
p: “2 + 2 = 4”
q: “9 is a prime”
Express each of the following propositions as an English
sentence and determine whether it is true or false.
Barnett, College Mathematics for Business, Economics, Life Sciences, and Social Sciences, 14e, GE
Copyright © 2019, 2015, 2011 Pearson Education Ltd. Slide 21
Example 2 Converse and
Contrapositive
Question: Consider the propositions p and q:
p: “2 + 2 = 4”
q: “9 is a prime”
Express each of the following propositions as an English
sentence and determine whether it is true or false.
Barnett, College Mathematics for Business, Economics, Life Sciences, and Social Sciences, 14e, GE
Copyright © 2019, 2015, 2011 Pearson Education Ltd. Slide 23
Example 3 Constructing
Truth Tables
Question: Construct the truth table for ¬p ∨ q.
Barnett, College Mathematics for Business, Economics, Life Sciences, and Social Sciences, 14e, GE
Copyright © 2019, 2015, 2011 Pearson Education Ltd. Slide 24
Example 3 Constructing
Truth Tables continued
The truth table for ¬p ∨ q is:
p q ¬p ¬p ∨ q
T T F T
T F F F
F T T T
F F T T
Truth entries for the columns p and ¬p are opposite
because a proposition and its negation are opposite in
truth.
The right side column for ¬p ∨ q is found by using the
disjunction truth values for the second and third columns.
The truth table for ¬p ∨ q and for p → q are identical.
Barnett, College Mathematics for Business, Economics, Life Sciences, and Social Sciences, 14e, GE
Copyright © 2019, 2015, 2011 Pearson Education Ltd. Slide 25
Example 4 Constructing a
Truth Table
Question: Construct a truth table for [(p →q) ∧ p] → q.
Solution Start with the truth table for the conditional p →q.
p q p→q
T T T
T F F
F T T
F F T
Barnett, College Mathematics for Business, Economics, Life Sciences, and Social Sciences, 14e, GE
Copyright © 2019, 2015, 2011 Pearson Education Ltd. Slide 26
Example 4 Constructing a
Truth Table
Question: Construct a truth table for [(p →q) ∧ p] → q.
p q p→q (p →q) ∧ p
T T T T
T F F F
F T T F
F F T F
Barnett, College Mathematics for Business, Economics, Life Sciences, and Social Sciences, 14e, GE
Copyright © 2019, 2015, 2011 Pearson Education Ltd. Slide 27
Example 4 Constructing a
Truth Table
Question: Construct a truth table for [(p →q) ∧ p] → q.
Definition
A proposition is a tautology if each entry in its column of
the truth table is T.
Barnett, College Mathematics for Business, Economics, Life Sciences, and Social Sciences, 14e, GE
Copyright © 2019, 2015, 2011 Pearson Education Ltd. Slide 29
Example 5 Constructing a
Truth Table
Question: Construct a truth table for p ∧ ¬(p ∨ q).
Barnett, College Mathematics for Business, Economics, Life Sciences, and Social Sciences, 14e, GE
Copyright © 2019, 2015, 2011 Pearson Education Ltd. Slide 30
Example 5 Constructing a
Truth Table
Question: Construct a truth table for p ∧ ¬(p ∨ q).
Barnett, College Mathematics for Business, Economics, Life Sciences, and Social Sciences, 14e, GE
Copyright © 2019, 2015, 2011 Pearson Education Ltd. Slide 31
Example 5 Constructing a
Truth Table
Question: Construct a truth table for p ∧ ¬(p ∨ q).
Complete a fifth column for the conjunction p ∧ ¬(p ∨ q)
using the first and fourth columns.
p q p∨q ¬(p ∨ q) p ∧ ¬(p ∨
q)
T T T F F
T F T F F
F T T F F
F F F T F
Note that p ∧ ¬(p ∨ q) is false, regardless of the truth
values of p and q.
o This proposition is a contradiction.
Barnett, College Mathematics for Business, Economics, Life Sciences, and Social Sciences, 14e, GE
Copyright © 2019, 2015, 2011 Pearson Education Ltd. Slide 32