Constructing Truth Tables: Examples
Constructing Truth Tables: Examples
Examples:
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
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 negated p (in step 2) and
negated 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),perform the biconditional of (p → q) ↔ (~q ∨~p) to
produce the truth values.
Write the results in the last column.
Try this!
Construct a truth table for the proposition (p → ~q) ↔ (~p ∨ q).
2.4.5 Tautology, Contradiction, and Contingency
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 negated q (in step 3) and
p (in step 1),
determine the truth values of ~q →p.
Step 5: Using the truth values of negated p (in step 2) and
~q →p (in step 4),
perform the disjunction of ~p ∨ (~q →p) to produce their
truth values.
Write the results in the last column.
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
It shows that the truth values of ~p ∨ (~q →p) are always true.
Thus, ~p ∨ (~q →p) is a tautology.
2. Is the proposition p ∧ (p→ ~p) a tautology, a contradiction,
or a contingency? Look at the table below.
p ~p p → ~p p ∧ (p → ~p)
T F F F
F T T 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!
Examples:
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
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.
3. Verify if ~(p → q) is logically equivalent to 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 same truth
values as p ∧ ~ q. Therefore, they are logically equivalent.
Try this!
Is q ∧ ~p logically equivalent to ~p ∨ q? Use the truth table
to show your answer.
2.4.7 The Converse, the Inverse, and the Contrapositive
The converse of p → q is q → p.
The inverse of p → q is ~p → ~q.
The contrapositive of p → q is ~q → ~p.
You can form the above statements by using the following guide:
Examples:
Write the converse, inverse, and contrapositive of the
following conditional statements:
Inverse: If I don't get the loan, then I won't buy a new motorbike.
Contrapositive: If I don't buy a new motorbike, then I don't get the loan.
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!
The truth table for conditional and its related statements is shown below.
Notation:
p → q ≡ ~q → ~p
q → p ≡ ~p → ~q