Simplifying Boolean Expressions and Logic Tables
Learn how to simplify Boolean expressions and complete truth tables using NOT, AND and OR, with a clear GCSE AQA Computer Science example and exam tip.
Simplify Boolean expressions by applying one rule at a time. Complete logic tables, also called truth tables, by listing every possible input combination and calculating intermediate results before the final output. This makes errors easier to spot.
Boolean logic rules
A Boolean value has only two states: 111 means true and 000 means false. A logic operator combines or changes these values according to a fixed rule.
- NOT A\text{NOT } ANOT A reverses the value of AAA.
- A AND BA \text{ AND } BA AND B is true only when both inputs are true.
- A OR BA \text{ OR } BA OR B is true when either input, or both inputs, are true.
Useful simplification rules include:
A AND 1=AA \text{ AND } 1 = AA AND 1=A A OR 0=AA \text{ OR } 0 = AA OR 0=A A AND 0=0A \text{ AND } 0 = 0A AND 0=0 NOT(NOT A)=A\text{NOT}(\text{NOT } A) = ANOT(NOT A)=AThese rules show that an input remains unchanged when it is combined with the neutral value. A value that forces a fixed result, such as false with AND, is sometimes called a dominating value.
Worked example
For example, simplify:
(A AND 1) OR (A AND 0)(A \text{ AND } 1) \text{ OR } (A \text{ AND } 0)(A AND 1) OR (A AND 0)First, the first bracket becomes AAA, while the second bracket becomes 000. The expression is therefore:
A OR 0=AA \text{ OR } 0 = AA OR 0=AThe final answer is AAA. This simplification works for both possible values of AAA, so a truth table would give the same outputs as the original expression.
Completing a logic table
Consider:
Q=(A AND B) OR NOT AQ = (A \text{ AND } B) \text{ OR NOT } AQ=(A AND B) OR NOT AWith two inputs, there are four possible input combinations. List them systematically and use one intermediate column for each operation. This prevents a mistake in an early stage from being hidden inside the final answer.
| AAA | BBB | A AND BA \text{ AND } BA AND B | NOT A\text{NOT } ANOT A | QQQ |
|---|---|---|---|---|
| 000 | 000 | 000 | 111 | 111 |
| 000 | 111 | 000 | 111 | 111 |
| 111 | 000 | 000 | 000 | 000 |
| 111 | 111 | 111 | 000 | 111 |
Read each row from left to right. For example, when A=0A=0A=0 and B=1B=1B=1, the AND result is false, but NOT AAA is true, so the final OR result is true.
Order and exam tip
Work inside brackets first, then apply NOT\text{NOT}NOT, followed by AND\text{AND}AND and finally OR\text{OR}OR, unless brackets change the order. Keep intermediate columns clearly labelled and check that every input combination appears exactly once.
Common exam mistake: treating OR\text{OR}OR as “one but not both”. In Boolean logic, 1 OR 11 \text{ OR } 11 OR 1 gives 111, not 000. OR is inclusive, meaning both true inputs still produce a true output. Do not confuse it with exclusive OR, which follows a different rule.