Lesson 10
Lesson 10
10.1 Introduction
Boolean algebra is the basis for the modern computer and design of various other electronic
devices. The circuits in computers and other electronic devices have inputs, each of which is
either a 0 or a 1, and produce outputs that are also 0s and 1s. Circuits can be constructed
using any basic element that has two different states. Such elements include switches that can
be in either the on or the off position. In 1938 Claude Shannon showed how the basic rules of
logic, first given by George Boole in 1854 in his The Laws of Thought, could be used to design
circuits. These rules form the basis for Boolean algebra.
0̄ = 1 and 1̄ = 0.
1 + 1 = 1, 1 + 0 = 1, 0 + 1 = 1, 0 + 0 = 0.
1 · 1 = 1, 1 · 0 = 0, 0 · 1 = 0, 0 · 0 = 0.
1
2 ITE 1812 - Mathematic for IT
Example 10.1
Solution.
Using the definitions of complementation, the Boolean sum and the Boolean product, it
follows that
(1 · 0) + (0 + 1) = 0 + 1
=0+0
=0
Example 10.2
The function F (x, y) = xy from the set of ordered pairs of Boolean variables to the set
{0, 1} is a Boolean function of degree 2 with F (1, 1) = 0, F (1, 0) = 1, F (0, 1) = 0 and
F (0, 0) = 0. The values of the function F are displayed in the below table.
Example 10.3
Find the value of the Boolean function
F (x, y, z) = x · y + z̄.
Solution.
The values of this function are shown in the below table.
2
Degree of Bachelor of Information Technology 3
(a) a + b = b + a
(b) a · b = b · a
(a) (a + b) + c = a + (b + c)
(b) (a · b) · c = a · (b · c)
(a) a + (b · c) = (a + b) · (a + c)
(b) a · (b + c) = (a · b) + (a · c)
(a) a + 0 = a
(b) a · 1 = a
3
4 ITE 1812 - Mathematic for IT
(a) a + ā = 1
(b) a · ā = 0
We will sometimes designate a Boolean algebra by (B, +, ·,¯, 0, 1). We say 0 is the zero
element, 1, is the unit element and ā is the complement of a.
10.5 Duality
The dual of any statement in a Boolean algebra B is the statement obtained by interchanging
the operations + and ·, and interchanging their identity elements 0 and 1 in the original
statement.
Example 10.4
Find the dual of the following boolean expressions.
(a) (1 + a) · (b + 0) = b
(b) A · (B + C) = (A · B) + (A · C)
Solution.
Interchanging · signs and + signs and interchanging 0s and 1s in these expressions pro-
duces their duals. The duals are (0 · a) + (b · 1) = b and A + (B · C) = (A + B) · (A + C),
respectively.
4
Degree of Bachelor of Information Technology 5
(a) a + b = a · b
(b) a · b = a + b
(a) (a + b) · a = a
(b) (a · b) + a = a
(a) 0 = 1
(b) 1 = 0
(a) a + 1 = 1
(b) a · 0 = 0
(a) a + a = a
(b) a · a = a
Example 10.5
Solution.
The verification of this identity is shown in the below table.
The identity holds because the last two columns of the table agree.
5
6 ITE 1812 - Mathematic for IT
Example 10.6
Prove the absorption law (a + b) · a = a using the other identities of Boolean algebra.
Solution.
(a + b) · a = (a + b) · (a + 0) (Identity law)
= a+b·0 (Distributive law)
= a+0 (Boundedness law)
= a (Identity law)
Self-Assessment Exercises
1. Prove the following properties of boolean algebras. Give a reason for each step.
(a) a · [b + (a · c)] = (a · b) + (a · c)
(b) (a + b) · (a + b) = b
(c) (a · b) + (a · 1) = a · (a + b) · b
(a) 1 · 0
(b) 1 + 1
(c) 1 + 0
(a) F (x, y, z) = x · y + y · z
(b) F (x, y, z) = x · y · z + (x · y · z)
(a) x · y · z + x · y · z
(b) x · z + x · 0 + x · 1
Suggested Reading
Chapter 10: Kenneth Rosen, (2011) Discrete Mathematics and Its Applications, 7th Edition,
McGraw-Hill Education.