You are viewing a free preview of this lesson.
Subscribe to unlock all 10 lessons in this course and every other course on LearningBro.
A Boolean expression is an algebraic expression that uses Boolean operators (AND, OR, NOT) to describe the output of a logic circuit or condition. In GCSE Computer Science, you need to be able to write, interpret and simplify Boolean expressions.
| Operation | Common Notations | Example |
|---|---|---|
| NOT | ¬A, A̅, NOT A | ¬A |
| AND | A ∧ B, A · B, A AND B | A ∧ B |
| OR | A ∨ B, A + B, A OR B | A ∨ B |
| XOR | A ⊕ B, A XOR B | A ⊕ B |
Just like in mathematics where multiplication is done before addition, Boolean algebra has an order of operations:
So the expression A ∨ B ∧ C is evaluated as A ∨ (B ∧ C) — the AND is done before the OR.
Exam Tip: When in doubt, use brackets to make the order of operations clear. This avoids ambiguity and makes it easier for you (and the examiner) to follow your working.
To create a truth table from a Boolean expression:
Example: Create a truth table for ¬A ∧ (B ∨ C)
| A | B | C | ¬A | B ∨ C | ¬A ∧ (B ∨ C) |
|---|---|---|---|---|---|
| 0 | 0 | 0 | 1 | 0 | 0 |
| 0 | 0 | 1 | 1 | 1 | 1 |
| 0 | 1 | 0 | 1 | 1 | 1 |
| 0 | 1 | 1 | 1 | 1 | 1 |
| 1 | 0 | 0 | 0 | 0 | 0 |
| 1 | 0 | 1 | 0 | 1 | 0 |
| 1 | 1 | 0 | 0 | 1 | 0 |
| 1 | 1 | 1 | 0 | 1 | 0 |
To write a Boolean expression from a truth table:
This method produces a Sum of Products (SoP) expression.
Example: Given this truth table:
| A | B | Output |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 0 |
Rows with output 1: Row 2 (A=0, B=1) and Row 3 (A=1, B=0).
Expression: (¬A ∧ B) ∨ (A ∧ ¬B) — which is equivalent to A ⊕ B (XOR).
These are the key Boolean algebra laws you should know for GCSE. They allow you to simplify complex expressions.
These are particularly important and commonly examined:
Exam Tip: De Morgan's Laws are frequently tested. A useful way to remember them: "break the bar, change the sign." When you distribute a NOT over a bracket, AND becomes OR and OR becomes AND.
Using the absorption law: A ∧ (A ∨ B) = A
Using the complement law: ¬A ∧ A = 0
Factor out A (distributive law): A ∧ (B ∨ ¬B) Apply complement law: B ∨ ¬B = 1 Apply identity law: A ∧ 1 = A Result: A
The simplification flow above can be visualised as a sequence of rewrite steps:
graph TD
S0["(A AND B) OR (A AND NOT B)"] --> S1["A AND (B OR NOT B)"]
S1 --> S2["A AND 1"]
S2 --> S3["A"]
S0 -.distributive.-> S1
S1 -.complement.-> S2
S2 -.identity.-> S3
Using De Morgan's Law: ¬(¬A ∧ ¬B) = ¬(¬A) ∨ ¬(¬B) = A ∨ B
Simplifying Boolean expressions has practical benefits:
In industry, engineers use Boolean simplification (and tools like Karnaugh maps) to design efficient circuits for processors, memory and other components.
Subscribe to continue reading
Get full access to this lesson and all 10 lessons in this course.