Boolean Algebra Activity 1
Boolean Algebra Activity 1
Boolean Simplification
AND is called conjunction. It is represented by a dot (.). We are said to be ‘multiplying’ when we perform
an AND in binary, i.e. 0x0 = 0, 1x0 = 0, etc.
A B Q
0 0 0
0 1 0
1 0 0
1 1 1
OR is called disjunction. It is represented by a plus sign (+). This is because we are said to be ‘adding’
when we perform an OR in binary, i.e. 0+0 = 0, 1+0 = 1, etc.
A B Q
0 0 0
0 1 1
1 0 1
1 1 1
A Q
0 1
1 0
XOR is represented by the OR symbol inside a circle ⊕. In the case where we have 1+1, XOR produces 0.
Version 1
1
NAND is represented by ( A . B).
Exercise 4 – Draw out the truth tables for the above logic gates
0 0 0 0 1 0 1
1 0 1 0 1 1 0
0 1 1 0 1 1 0
1 1 0 1 0 1 0
1a. A.A = A
1b. A+A = A
1c. A+ A = 1
1d. A. A = 0
1e. 1+A = 1
1f. 0+A = A
1g. 0.A = 0
1h. 1.A = A
Version 1
2
A A A.A A+A A+ A A. A
0 1 0 0 1 0
1 0 1 1 1 0
The order of the statements in OR/AND does not change the outcome.
0 0 0 0 0 0
0 1 1 1 0 0
1 0 1 1 0 0
1 1 1 1 1 1
0 0 0 0 0 0 0
Version 1
3
1 0 0 0 1 1 1
0 1 0 1 1 1 1
1 1 0 1 1 1 1
0 0 1 1 1 0 1
1 0 1 1 1 1 1
0 1 1 1 1 1 1
1 1 1 1 1 1 1
We can expand of contract a bracket just like in ‘normal’ maths. Notice how we also do this for ‘OR’
whereas we would usually not expand brackets for a + operator.
0 0 0 0 0 0 0 0
1 0 0 0 0 0 0 0
0 1 0 1 0 0 0 0
1 1 0 1 1 1 0 1
0 0 1 1 0 0 0 0
1 0 1 1 1 0 1 1
0 1 1 1 0 0 0 0
1 1 1 1 1 1 1 1
0 0 0 0 0 0 0 0
1 0 0 0 1 1 1 1
Version 1
4
0 1 0 0 0 1 0 0
1 1 0 0 1 1 1 1
0 0 1 0 0 0 1 0
1 0 1 0 1 1 1 1
0 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1
If a value is doubly negated (two lines above it), it is the positive version of itself
Á = A
A A Á
0 1 0
1 0 1
De Morgan’s Laws are used to simplify Boolean equations so that you can build equations using only
one sort of gate, usually NAND or NOR gates. You can build cheaper hardware this way.
The general idea of the laws are: If you break the bar, you have to change the sign.
Version 1
5
6a.
A . B=P+Q
P Q P.Q P .Q P Q P+Q
0 0 0 1 1 1 1
0 1 0 1 1 0 1
1 0 0 1 0 1 1
1 1 1 0 0 0 0
6b.
A+ B=P . Q
0 1 1 0 1 0 0
1 0 1 0 0 1 0
1 1 1 0 0 0 0
Version 1
6
Crib Sheet
Simple Boolean identities
A.A = A
A+A = A
A+ A = 1
A. A = 0
1+A = 1
1.A = A
0+A = A
0.A = 0
Commutative
AB = BA
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)
Double negation
Á = A
Version 1
7
Example Questions
Write the following Boolean expressions in their simplest forms
For each question also create a truth table to prove each example.
1. (A̅ .B̅ )
2. A.B+A. B
3. A.(B+1)
Using Rule 1e B+1 = 1. Therefore, we are left with A.1. Rule 1h is A.1 = A.
4. ( A . B)+¿ ¿
5. ( X +Y ) .( X +Y )
6. A+(B . A)
Using Rule 1a A+ B
Version 1
8
Reapplying De Morgan’s Law gives Á+ B́ , and using double negation (Rule 5) gives A+B
7. A . B . C+ A .C
We can then use the distributive rule again to give A.(C (B +1)¿
8. B .(A + A)
9. A.B+B
10. B . A+ B
Version 1