All subjects · Computer Science · WCP03 Advanced Principles of Computer Science
Boolean algebra: laws and simplification
Edexcel IAL Computer Science · WCP03 Advanced Principles of Computer Science
Boolean algebra simplifies logic expressions so circuits need fewer gates and conditions in code are easier to read. You need six laws and must be able to show that two expressions are equivalent.
Notation
The specification asks you to use the symbols in its Appendix 2. The Unit 3 sample paper writes A.B for A AND B, A + B for A OR B, and NOT A with a bar over A; check the appendix in your copy of the specification. On this site the bar is shown as ¬A because overbars do not display reliably; in the exam, draw the bar. AND binds more tightly than OR, so A + B.C means A + (B.C).
Useful identities (the sample mark scheme names some of these laws in its steps):
- Identity: A.1 = A, A + 0 = A
- Annulment: A.0 = 0, A + 1 = 1
- Idempotent: A.A = A, A + A = A
- Complement: A.¬A = 0, A + ¬A = 1
The six laws
Each law has an AND form and an OR form. Name the law on every line of a simplification.
| Law | AND form | OR form |
|---|---|---|
| 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 |
| De Morgan's | ¬(A.B) = ¬A + ¬B | ¬(A + B) = ¬A.¬B |
| Double negation | ¬¬A = A |
De Morgan's: break the bar and change the sign
Simplifying step by step
Write one law per line so the examiner can award each step.
Example 1: X.Y + Y.¬X
= Y.X + Y.¬X (commutative)
= Y.(X + ¬X) (distributive)
= Y.1 (X + ¬X = 1)
= Y
Example 2: ¬(¬A + B)
= ¬¬A.¬B (De Morgan's)
= A.¬B (double negation)
Example 3: (A + B).(A + ¬B)
= A + B.¬B (distributive, OR form)
= A + 0 = A
Checking with a truth table
Two expressions are equivalent if their truth tables match on every row. If you are unsure of an algebraic step, check it with a small truth table. This is also how every answer in this lesson was checked.
Worked example
Simplify A.B + A.¬B + ¬A.B.
- A.B + A.¬B = A.(B + ¬B) = A.1 = A (distributive, complement)
- So the expression is A + ¬A.B.
- A + ¬A.B = (A + ¬A).(A + B) (distributive, OR form) = 1.(A + B) = A + B
Answer: A + B
Check yourself
- Which law shows that A + A.B = A?
- De Morgan's
- Commutative
- Double negation
- Absorption
Show answer
Absorption. A + A.B = A.(1 + B) = A.
- Which law gives A + 1 = 1 and A.0 = 0?
- Identity
- Annulment
- Absorption
- Double negation
Show answer
Annulment. Annulment: OR with 1 always gives 1; AND with 0 always gives 0. Identity is A + 0 = A and A.1 = A.
- Which expression is equivalent to ¬(A.B)?
- ¬A.¬B
- A + B
- ¬A.B
- ¬A + ¬B
Show answer
¬A + ¬B. De Morgan's: break the bar, change AND to OR.
- Which expression is equivalent to ¬(A + ¬B)?
- ¬A.B
- ¬A + B
- A.¬B
- ¬A.¬B
Show answer
¬A.B. ¬(A + ¬B) = ¬A.¬¬B = ¬A.B.
- Simplify A.(A + B).
- B
- A.B
- A
- A + B
Show answer
A. Absorption (AND form): A.(A + B) = A.
- Simplify (A + B).(A + C).
- A + B.C
- A.B + C
- A + B + C
- A.B.C
Show answer
A + B.C. Distributive (OR form): A + B.C = (A + B).(A + C).
- Simplify ¬(¬A.¬B).
- A.B
- ¬A + ¬B
- A + B
- ¬(A + B)
Show answer
A + B. ¬¬A + ¬¬B = A + B.
- Simplify A.B + ¬A.B + A.¬B.
- A.B
- B
- 1
- A + B
Show answer
A + B. A.B + ¬A.B = B, so B + A.¬B = (B + A).(B + ¬B) = A + B.
Sources
- Pearson Edexcel International Advanced Subsidiary and Advanced Level in Computer Science specification (2026), Issue 1
- Pearson Edexcel IAL Computer Science sample assessment materials (Unit 3 paper, resource booklet and mark scheme)
Last updated 8 November 2026. Spotted a mistake? Tell us.