Every Way It Could Be
Sam packs for a day out. Will it rain? Will it be windy? Each answer is yes or no, so the day can turn out in more than one way. How many ways are there, and how do we list them all?
One letter, two ways
Key: P = It is raining. The world can be one of two ways. P is true, or P is false.
We write each way as one row of a table. A row is one way the world could be. T means true and F means false.
| P |
|---|
| T |
| F |
Two letters, four rows
Add Q = It is windy. For each way of P, Q can be true or false. So we get 2 × 2 = 4 rows.
| P | Q |
|---|---|
| T | T |
| T | F |
| F | T |
| F | F |
Always write the rows in this order. Both true. P true, Q false. P false, Q true. Both false. A fixed order means nobody forgets a row.
Each new letter doubles the rows. One letter gives 2 rows. Two letters give 4. Three letters give 8.
The table for and
We give the word "and" a sign: ∧. P ∧ Q reads "P and Q". When is it true? Look at every row.
A truth table lists every row and the value of the claim in that row.
| P | Q | P ∧ Q |
|---|---|---|
| T | T | T |
| T | F | F |
| F | T | F |
| F | F | F |
Only the first row has T. If it is not raining, or it is not windy, "It is raining and it is windy" is false.
Careful
One row is one way the world could be, not one letter. Two letters do not give two rows. They give four.
Try it at home
- Pick two things about today that could be true or false, such as "It is cold" and "I am hungry". Write the key.
- Draw the four rows for them in the fixed order.
- Put a pencil mark on the one row that is how today really is.
- Write "both" as a claim with ∧. Is it true in your marked row?
Words to know
- row - one way the world could be, with a value for each letter
- truth table - a list of every row and the value of a claim in each
- ∧ - the sign for and: true only when both parts are true
Big idea
A table has one row for every way the world could be. Each new letter doubles the rows, and P ∧ Q is true only in the first one.