Sign In
There are three steps to follow to make a truth table for a compound statement.
Let p and q represent two different logical statements. Consider the following compound statement. (¬ p∨ q)∧¬ q By making a truth table it can be determined for what values of p and q this statement is true and for what values it is false.
broken downinto simpler statements until the simplest statements are obtained. In this case, the compound statement is broken down until p and q are obtained.
The columns are formed by ordering each unique step of simplification from simplest to most complex. The last column of a truth table is always the original statement.
| p | q | ¬ p | ¬ q | ¬ p∨ q | (¬ p∨ q)∧¬ q |
|---|---|---|---|---|---|
In this case, the truth table has six columns.
| p | q | ¬ p | ¬ q | ¬ p∨ q | (¬ p∨ q)∧¬ q |
|---|---|---|---|---|---|
| T | T | ||||
| T | F | ||||
| F | T | ||||
| F | F |
The general rule is that a truth table has 2^n rows, where n is the number of variables.
| p | q | ¬ p | ¬ q | ¬ p∨ q | (¬ p∨ q)∧¬ q |
|---|---|---|---|---|---|
| T | T | F | |||
| T | F | F | |||
| F | T | T | |||
| F | F | T |
Similarly, the fourth column — the negation of q — is completed.
| p | q | ¬ p | ¬ q | ¬ p∨ q | (¬ p∨ q)∧¬ q |
|---|---|---|---|---|---|
| T | T | F | F | ||
| T | F | F | T | ||
| F | T | T | F | ||
| F | F | T | T |
The next column is the disjunction (∨) of ¬ p and q. A disjunction is true unless both statements are false.
| p | q | ¬ p | ¬ q | ¬ p∨ q | (¬ p∨ q)∧¬ q |
|---|---|---|---|---|---|
| T | T | F | F | T | |
| T | F | F | T | F | |
| F | T | T | F | T | |
| F | F | T | T | T |
Finally, the last column is the conjunction (∧) of (¬ p∨ q) and ¬ q. A conjunction is false unless both statements are true.
| p | q | ¬ p | ¬ q | ¬ p∨ q | (¬ p∨ q)∧¬ q |
|---|---|---|---|---|---|
| T | T | F | F | T | F |
| T | F | F | T | F | F |
| F | T | T | F | T | F |
| F | F | T | T | T | T |