Revision Notes
AQA A-Level Computer Science (7517): Boolean Algebra – Revision Notes
Condensed AQA 7517 section 4.6.5 recall: Boolean identities, De Morgan's laws, a simplification method, common slips and a self-test.
- Subject
- Computer Science
- Level
- A LEVELS
- Topic
- Fundamentals of computer systems
- Author
- Marlbridge Academic Team
- Updated
- Reviewed by
- Harris Khan (what this means)
Aligned to AQA A Level Computer Science (7517), 2015-onwards. Official specification .
Syllabus page (what it covers and how it is assessed): AQA A Level Computer Science.
Syllabus points this page covers
7517
- 4.6.5 Boolean algebra
Found an error? Report a correction.
Need help with this topic? Request a free trial class for A Level Computer Science (7517).
Condensed recall for 4.6.5 Boolean algebra, AQA A-Level Computer Science (7517): use Boolean identities and De Morgan’s laws to manipulate and simplify Boolean expressions. Every law and six fully worked simplifications are in the Boolean algebra study guide; exam-style questions are in the Boolean algebra practice questions.
Notation
| Symbol | Meaning |
|---|---|
| ¬A | NOT A |
| A ∧ B | A AND B |
| A ∨ B | A OR B |
| A ⊕ B | A XOR B: true when exactly one input is true |
Precedence: NOT first, then AND, then OR. Add brackets when in doubt.
The identities
| Law | AND form | OR form |
|---|---|---|
| Identity | A ∧ 1 = A | A ∨ 0 = A |
| Null | A ∧ 0 = 0 | A ∨ 1 = 1 |
| Idempotent | A ∧ A = A | A ∨ A = A |
| Complement | A ∧ ¬A = 0 | A ∨ ¬A = 1 |
| Commutative | A ∧ B = B ∧ A | A ∨ B = B ∨ A |
| Associative | (A ∧ B) ∧ C = A ∧ (B ∧ C) | (A ∨ B) ∨ C = A ∨ (B ∨ C) |
| Distributive | A ∧ (B ∨ C) = (A ∧ B) ∨ (A ∧ C) | A ∨ (B ∧ C) = (A ∨ B) ∧ (A ∨ C) |
| Absorption | A ∧ (A ∨ B) = A | A ∨ (A ∧ B) = A |
Also: double negation ¬¬A = A, and XOR A ⊕ B = (A ∧ ¬B) ∨ (¬A ∧ B).
Dual rule: swap ∧ with ∨ and 0 with 1 in any law and you get another true law. Use it to recall the OR form from the AND form.
De Morgan’s laws
- ¬(A ∧ B) = ¬A ∨ ¬B
- ¬(A ∨ B) = ¬A ∧ ¬B
Procedure: negate every term inside the bracket, swap ∧ and ∨, then remove any double negation.
- NAND = ¬(A ∧ B) = ¬A ∨ ¬B.
- NOR = ¬(A ∨ B) = ¬A ∧ ¬B.
- With three terms: ¬(A ∨ B ∨ C) = ¬A ∧ ¬B ∧ ¬C.
Simplification method
- Remove XOR (use its definition) and expand any NOT over a bracket (De Morgan).
- Factorise with the distributive law.
- Replace A and ¬A pairs using the complement law.
- Apply absorption.
- Tidy with identity, null and idempotent laws.
- Write the name of the law beside each line.
Results worth remembering
These come up so often that spotting them saves time. Each can be derived from the laws above.
| Expression | Simplifies to | Key law |
|---|---|---|
| (¬A ∧ B) ∨ (A ∧ B) | B | factorise, complement |
| A ∨ (¬A ∧ B) | A ∨ B | OR distributive, complement |
| A ∧ (¬A ∨ B) | A ∧ B | distribute, complement |
| (A ∨ B) ∧ (A ∨ ¬B) | A | OR distributive, complement |
| ¬(¬A ∨ ¬B) | A ∧ B | De Morgan, double negation |
| (A ∨ B) ∧ ¬(A ∧ B) | A ⊕ B | De Morgan, complement |
| A ∨ (A ∧ B) | A | absorption |
Trap pair: A ∧ (A ∨ B) = A (absorption), but A ∧ (¬A ∨ B) = A ∧ B. One NOT changes the answer.
Worked check
Simplify ¬(A ∨ B) ∨ (¬A ∧ B).
- De Morgan:
(¬A ∧ ¬B) ∨ (¬A ∧ B). - Factorise ¬A:
¬A ∧ (¬B ∨ B). - Complement:
¬A ∧ 1. - Identity:
¬A.
Reading circuits and statements
- Label the output of each gate with its expression, working from the inputs to the output.
- “X and Y, or Z” is
(X ∧ Y) ∨ Z. - “Unless both are on” means
¬(P ∧ Q), which equals¬P ∨ ¬Q. - Gate symbols: AND, OR, NOT, XOR, plus NAND and NOR (an AND or OR with a NOT on the output).
Question styles to expect
- Simplify: reduce an expression to the fewest terms, naming each law.
- Show that: start from one side and reach the other, or reduce both to the same form.
- Circuit to expression: label every gate output, then write the final expression.
- Expression to circuit: one gate for each operator, working from the innermost bracket outwards.
- NAND or NOR only: use De Morgan’s laws to rewrite AND, OR and NOT. For example, NOT A is NAND(A, A), because A ∧ A = A.
- Truth table check: write every input combination (2ⁿ rows for n inputs) and compare columns.
Key terms
| Term | Definition |
|---|---|
| Boolean expression | A combination of variables and operators (AND, OR, NOT, XOR) that evaluates to 0 or 1 |
| Identity | A law that is true for every value of its variables |
| Equivalent expressions | Expressions with identical truth tables |
| Complement | The NOT of a variable: A and ¬A are complements |
| De Morgan’s laws | Rules for negating an AND or an OR |
| Simplify | Rewrite as an equivalent expression with fewer terms or operators |
| Absorption | A short term makes a longer term that contains it redundant |
Exam traps
- De Morgan with the operator left unchanged.
¬(A ∧ B)is not¬A ∧ ¬B. - A missing NOT on one term after expanding a bracket.
- Absorption with a complement.
A ∨ (¬A ∧ B)isA ∨ B, notA. - Precedence errors.
¬A ∧ Bis not¬(A ∧ B). - Steps with no reasons. Name each law.
- Using arithmetic instincts.
A ∨ A = A, andA ∧ A = A. - Stopping with A and ¬A still joined in the same term.
Self-test
- Write the complement law in both forms.
- State De Morgan’s law for ¬(A ∨ B).
- What does ¬¬A equal?
- Write A ⊕ B using only AND, OR and NOT.
- Simplify
A ∧ (A ∨ B). - Simplify
A ∨ (¬A ∧ B). - Express
¬(P ∧ Q)using OR. - Simplify
(X ∧ Y) ∨ (X ∧ ¬Y). - In what order are NOT, AND and OR evaluated?
- Which gate has the same behaviour as ¬A ∨ ¬B?
- Why does a shorter expression matter for a circuit?
- Simplify
¬(¬A ∧ ¬B).
Answers
- A ∧ ¬A = 0 and A ∨ ¬A = 1.
- ¬(A ∨ B) = ¬A ∧ ¬B.
- A (double negation).
- (A ∧ ¬B) ∨ (¬A ∧ B).
- A (absorption).
- A ∨ B.
- ¬P ∨ ¬Q.
- X: factorise to
X ∧ (Y ∨ ¬Y), thenX ∧ 1. - NOT, then AND, then OR.
- NAND.
- It needs fewer gates, so the circuit is cheaper and uses less power.
- A ∨ B (De Morgan, then double negation).
More resources on this topic
Related resources
-
Study guides
AQA A-Level Computer Science (7517): Classification of programming languages
Deeper guide to AQA 7517 section 4.6.2 Classification of programming languages: low-level machine code and assembly language, imperative high-level languages, and the trade-offs between them.
Computer Science · AQA · A Level
Read guide -
Practice questions
AQA A-Level Computer Science (7517): Classification of programming languages – Practice Questions
Original AQA 7517 section 4.6.2 questions with answers: machine code, assembly language, imperative high-level languages and choosing between them.
Computer Science · AQA · A Level
Try questions -
Revision notes
AQA A-Level Computer Science (7517): Classification of programming languages – Revision Notes
Condensed AQA 7517 section 4.6.2 recall: low-level and high-level languages, machine code, assembly language, imperative languages and their trade-offs.
Computer Science · AQA · A Level
Revise topic
Get free revision emails (optional)
Occasional emails with practice questions, worked explanations and links to free resources for the qualification and subjects you choose. No spam, and you can unsubscribe from any email. The free tools on this site never need an email.