Truth Tables &
Logical Expressions
Master the systematic method for evaluating logical connectives by constructing and reading truth tables for any compound proposition.
What Is a Proposition?
A proposition is a declarative statement that is either true (T) or false (F), but never both. Propositions are the atoms of logic: we combine them with logical connectives to build compound expressions.
The Five Core Connectives
Why Truth Tables Matter
A truth table systematically lists every possible combination of truth values for the variables in an expression, then evaluates the result for each row. This gives us a complete picture of when a statement is true or false.
Negation: \( \neg p \)
Negation is the simplest connective: it takes one input and flips it. If \( p \) is true, then \( \neg p \) is false, and vice versa.
| \( p \) | \( \neg p \) |
|---|---|
| T | F |
| F | T |
AND vs. OR
| \( p \) | \( q \) | \( p \land q \) | \( p \lor q \) |
|---|---|---|---|
| T | T | T | T |
| T | F | F | T |
| F | T | F | T |
| F | F | F | F |
The Conditional: \( p \to q \)
The conditional "if \( p \), then \( q \)" is only false in one case: when the hypothesis \( p \) is true but the conclusion \( q \) is false. A false hypothesis makes the entire conditional vacuously true.
| \( p \) | \( q \) | \( p \to q \) |
|---|---|---|
| T | T | T |
| T | F | F |
| F | T | T |
| F | F | T |
The Biconditional: \( p \leftrightarrow q \)
The biconditional "\( p \) if and only if \( q \)" is true when both sides have the same truth value: both true or both false.
| \( p \) | \( q \) | \( p \leftrightarrow q \) |
|---|---|---|
| T | T | T |
| T | F | F |
| F | T | F |
| F | F | T |
\( \to \) vs. \( \leftrightarrow \): Key Difference
| Conditional \( p \to q \) | Biconditional \( p \leftrightarrow q \) | |
|---|---|---|
| Read as | "If \( p \), then \( q \)" | "\( p \) if and only if \( q \)" |
| False when | \( p \) is T and \( q \) is F | \( p \) and \( q \) differ |
| Row (T, T) | T | T |
| Row (T, F) | F | F |
| Row (F, T) | T | F |
| Row (F, F) | T | T |
| Equivalent to | \( \neg p \lor q \) | \( (p \to q) \land (q \to p) \) |
How to Build a Truth Table
Example 1: \( \neg p \land q \)
Evaluate \( \neg p \land q \). First negate \( p \), then combine with \( q \) using conjunction.
| \( p \) | \( q \) | \( \neg p \) | \( \neg p \land q \) |
|---|---|---|---|
| T | T | F | F |
| T | F | F | F |
| F | T | T | T |
| F | F | T | F |
Example 2: \( p \lor (q \land \neg r) \)
With three variables, we need \( 2^3 = 8 \) rows. Work inside out: first \( \neg r \), then \( q \land \neg r \), then the full disjunction.
| \( p \) | \( q \) | \( r \) | \( \neg r \) | \( q \land \neg r \) | \( p \lor (q \land \neg r) \) |
|---|---|---|---|---|---|
| T | T | T | F | F | T |
| T | T | F | T | T | T |
| T | F | T | F | F | T |
| T | F | F | T | F | T |
| F | T | T | F | F | F |
| F | T | F | T | T | T |
| F | F | T | F | F | F |
| F | F | F | T | F | F |
Example 3: Proving Equivalence
Show that \( p \to q \equiv \neg p \lor q \) by comparing their truth table columns.
| \( p \) | \( q \) | \( \neg p \) | \( p \to q \) | \( \neg p \lor q \) |
|---|---|---|---|---|
| T | T | F | T | T |
| T | F | F | F | F |
| F | T | T | T | T |
| F | F | T | T | T |
Tautology, Contradiction, Contingency
Common Mistakes
Connective Summary
| Connective | Symbol | True when | False when |
|---|---|---|---|
| Negation | \( \neg p \) | \( p \) is F | \( p \) is T |
| Conjunction | \( p \land q \) | Both T | Any F |
| Disjunction | \( p \lor q \) | Any T | Both F |
| Conditional | \( p \to q \) | \( p \) F or \( q \) T | \( p \) T and \( q \) F |
| Biconditional | \( p \leftrightarrow q \) | Same values | Different values |
Question 1 of 5
What is the truth value of \( p \land q \) when \( p = T \) and \( q = F \)?
Question 2 of 5
Which expression is a tautology?
Question 3 of 5
What is the truth value of \( p \to q \) when \( p = F \) and \( q = F \)?
Question 4 of 5
How many rows does a truth table need for the expression \( (p \land q) \to (r \lor s) \)?
Question 5 of 5
Which of the following is logically equivalent to \( p \to q \)?