0% found this document useful (0 votes)
148 views10 pages

Boolean Algebra

- George Boole introduced Boolean algebra in 1854 as a formal logical system consisting of a set of elements and two binary operations - sum and product. - A boolean algebra satisfies eight properties including closure, commutativity, associativity, distributive laws, identity elements, and complements/inverses. - Examples of boolean algebras include the power set of a set endowed with set operations, and the set of divisors of a natural number endowed with greatest common divisor and least common multiple operations.

Uploaded by

Fahad Khan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
148 views10 pages

Boolean Algebra

- George Boole introduced Boolean algebra in 1854 as a formal logical system consisting of a set of elements and two binary operations - sum and product. - A boolean algebra satisfies eight properties including closure, commutativity, associativity, distributive laws, identity elements, and complements/inverses. - Examples of boolean algebras include the power set of a set endowed with set operations, and the set of divisors of a natural number endowed with greatest common divisor and least common multiple operations.

Uploaded by

Fahad Khan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

3 Boolean Algebra

3.1 BOOLEAN ALGEBRA


In 1854, George Boole introduced the following formalism which eventually became Boolean
Algebra.
Definition. An algebraic system consisting of a set B of elements a, b, c ... and two binary
operations called the sum and product, denoted respectively by + and •, is called a boolean algebra
iff for all a, b, c ∈ B, the following axioms are satisfied :
(1) a + b, a • b ∈ B (closure property)
(2) a + b = b + a and a • b = b • a (commutative property)
(3) (a + b) + c = a + (b + c) and (a • b) • c = a • (b • c) (associative property)
(4) a • (b + c) = a • b + a • c and a + (b • c) = (a + b) • (a + c)
(distributive laws)
(5) An additive identity 0 and a multiplicative identity 1 (both belonging to B) exist such that
∀ a ∈ B, a + 0 = a and a • 1 = a (identity)
(6) for every a ∈ B, there exists an element a′ ∈ B such that
a + a′ = 1 and a • a′ = 0 (complement or inverse)
Remarks
1. Some authors include another axiom—that of cardinality—that there are atleast
two elements a and b in B such that a ≠ b.
2. Some axioms, especially (6) are quite different from usual arithmetic or algebraic
structures. First, the additive and multiplicative inverses of an element are usually
different, e.g., in real numbers, additive inverse of 2 is (– 2) whereas multiplicative
1
inverse of 2 is . In boolean algebra, both inverses are the same. Secondly, in a usual
2
algebra, we have a + a′ = 0 and a • a′ = 1. In boolean algebra, we have a + a′ = 1 and
a • a′ = 0. This is more like sets, where A ∪ A′ = ξ (universal set) and A ∩ A′ = φ
(null set). Observe that ξ acts as multiplicative identity since A ∩ ξ = A and φ acts as
additive identity (i.e. zero element) since A ∪ φ = A, ∀ A ⊆ ξ. Also note that in boolean
algebra, inverse of a is generally denoted as a′ and not a–1.
3. The distributive property a • (b + c) = a • b + a • c is similar to that of real numbers,
but the distribution of + over • i.e. a + (b • c) = (a + b) • (a + c) does not hold for
conventional algebra.
4. In conventional algebra, x + x + x + … n times = n x, but in boolean algebra,
x + x + x + … n times = x. This is called idempotent law.
5. Since family of sets is a classical example of a boolean algebra, many texts use
∪ and ∩ instead of + and •.
A-130 UNDERSTANDING ISC MATHEMATICS - XII

6. Modern computers and telecommunications use boolean algebra a lot — binary


digits (or bits) 0 and 1 correspond to electrical switch off or on, current
absent or flowing, bulbs off or on, capacitor discharged or charged etc. This
will become clearer as we proceed.
7. Sometimes a • b is written simply as ab.
8. When parentheses are not used, the operation • has precedence over +.
Thus, in a + b • c, we first evaluate b • c.
Example. Let B = {0, 1} and let two operations + and • be defined on B as follows :
+ 1 0 • 1 0
1 1 1 1 1 0
0 1 0 0 0 0
Then B, or more precisely the triplet (B, +, •) is a boolean algebra. (Check ! Are all axioms (1)
to (6) satisfied?) Here 1 is the multiplicative identity and 0 is the additive identity. This is the
smallest possible Boolean Algebra called Switching Algebra.

More examples of Boolean Algebras


We have already given one example of a Boolean Algebra B = {0, 1}.
Now as second example, let A be a family of sets which is closed under the operations
of union, intersection and complement. Then (A, ∪, ∩ ) is a Boolean Algebra. Note that
universal set ξ is the unit element and the null set φ is the zero element.

ILLUSTRATIVE EXAMPLES

Example 1. If V = {1, 2, 3}, A = {1, 2}, then A′ = {3}. Show that the set
T = {V, A, A′, φ} along with operations ∪ and ∩ forms Boolean algebra.
Solution. We have to show that this system satisfies basic axioms of Boolean Algebra.
The composition tables for ∪ and ∩ are as follows :
∪ V A A′ φ ∩ V A A′ φ
V V V V V V V A A′ φ
A V A V A A A A φ φ
A′ V V A′ A′ A′ A′ φ A′ φ
φ V A A′ φ φ φ φ φ φ

(1) Closure : all unions and intersections of sets V, A, A′, φ belong to T.


(2) Operations ∪ and ∩ are commutative in sets.
(3) Operations ∪ and ∩ are associative in sets.
(4) Operations ∪ and ∩ are distributive in sets
(i.e. A ∪ (B ∩ C) = (A ∪ B) ∩ (A ∪ C) etc.)
(5) Identity element for ∪, that is, zero element (or additive identity) is φ, since V ∪ φ = V;
A ∪ φ = A; A′ ∪ φ = A′; φ ∪ φ = φ. Identity element for operation ∩ (that is, unit element)
is V since V ∩ V = V; A ∩ V = A; A′ ∩ V = A′; φ ∩ V = φ.
(6) Inverse : Inverse of A is A′ and inverse of V is φ (check).
Since all basic axioms are satisfied, the system (T, ∪, ∩ ) is a boolean algebra.
BOOLEAN ALGEBRA A-131

Example 2. Let Dn denote the set of divisors of n, where n is a natural number, define
operations +, • and ′ on Dn as
a + b = lcm {a, b} i.e. least common multiple of a and b,
n
a • b = gcd {a, b} i.e. greatest common divisor of a and b, and a′ = .
a
Prove that D4 is not a boolean algebra, while D6 is a boolean algebra.
Solution. (i) For D4 = {1, 2, 4}, the tables for given operations are
+ 1 2 4 • 1 2 4 ′ 1 2 4
1 1 2 4 1 1 1 1 4 2 1
2 2 2 4 2 1 2 2
4 4 4 4 4 1 2 4
From these we observe that operations + and • are closed, commutative and associative.
For distribution of + over •, we see that
1 + (2 • 4) = 1 + 2 = 2 ;
(1 + 2) • (1 + 4) = 2 • 4 = 2 etc.
Similarly, we can verify for other elements, and also the distribution of • over +.
Now zero element (additive identity) is such that
a + zero element = a ∀ a ∈ D4.
From table of ‘+’, we see that a + 1 = a ∀a, so that 1 acts as zero element (additive
identity), while from table of ‘•’ we see that a • 4 = a ∀a, so that 4 acts as unit element
(multiplicative identity).
Thus, we should have a + a′ = unit element, a • a′ = zero element ∀ a.
From table of ′, we see that 2′ = 2.
However from table of +, we see that 2 + 2 = 2 ≠ 4 (unit element).
Also from table of •, we see that 2 • 2 = 2 ≠ 1 (zero element).
Hence, D4 is not a boolean algebra.
(ii) For D6 = {1, 2, 3, 6}, we construct tables for operations as

+ 1 2 3 6 • 1 2 3 6 ′ 1 2 3 6
1 1 2 3 6 1 1 1 1 1 6 3 2 1
2 2 2 6 6 2 1 2 1 2
3 3 6 3 6 3 1 1 3 3
6 6 6 6 6 6 1 2 3 6
As above, we can verify closure, commutative, associative and distributive properties.
From + table, we see that a + 1 = a ∀ a, so that 1 acts as zero element (additive identity),
while from • table, we see that a • 6 = a ∀ a, so that 6 acts as unit element (multiplicative
identity).
Now we verify a + a′ = unit element, a • a′ = zero element ∀ a :
1 + 6 = 6, 1 • 6 = 1
2 + 3 = 6, 2 • 3 = 1
3 + 2 = 6, 3 • 2 = 1
6 + 1 = 6, 6 • 1 = 1
Thus, all properties of boolean algebra are satisfied.
Note. In general, if n is a product of distinct prime numbers, then Dn = {set of positive
divisors of n} is a boolean algebra, with least common multiple acting as +, greatest
n
common divisor acting as •, acting as complement of a, integer 1 acting as zero
a
element (additive identity) and integer n acting as unit element (multiplicative
identity). However, if in the prime factorisation of n, any number is repeated, then
Dn is not a boolean algebra.
A-132 UNDERSTANDING ISC MATHEMATICS - XII

EXERCISE 3.1
1. If B = {φ, ξ, S, S′} where S is any non-empty subset of ξ, then show that B along with
the operations ∪ and ∩ forms a boolean algebra.
2. Let B = {{1}, {2}, {1, 2}, φ}. Show that (B, ∩, ∪, ′, φ, {1, 2}) is a boolean algebra.
3. Let B = {φ, {1}, {2}, {3}, {1, 2}, {1, 3}, {2, 3}, {1, 2, 3}}. Show that (B, ∪, ∩, ′, φ, {1, 2, 3})
is a boolean algebra.
4. Let Dn = set of divisors of n, where n is a natural number.
Define operations +, • and ′ as
a + b = lcm {a, b}, a • b = gcd {a, b}, a′ = n .
a
Prove that D8 is not a boolean algebra while D15 is a boolean algebra.

3.2 DUALITY IN A BOOLEAN ALGEBRA


By definition, the dual of any statement in a boolean algebra is the statement derived by
interchanging + and • and also interchanging the identities 1 and 0 in the original statement.
For example, the dual of statement a + b = b + a is a • b = b • a, and dual of statement
a + a = 1 is a • a = 0.
The Principle of Duality says that the dual of any theorem in a Boolean algebra is also a
theorem.
A theorem is derived from the basic axioms; dual statement of theorem can be proved
by using the dual of each step of the proof of original theorem. For example, if we can prove
that a + a = a, it will follow that a • a = a ; if we can prove that a + 1 = 1, it will follow that
a • 0 = 0. Thus, when we prove a theorem in boolean algebra, we get its dual for free.

3.3 ELEMENTARY PROPERTIES OF BOOLEAN ALGEBRA


Starting from basic axioms (1) to (6), a number of properties of Boolean Algebra can be
proved. Important of these are :
(i) (Idempotent Law) : a + a = a and a • a = a.
(ii) (Boundedness Laws) a + 1 = 1 and a • 0 = 0.
(iii) (Involution Law) : (a′′)′′ = a.
(iv) 1′′ = 0 and 0′′ = 1.
(v) (De Morgan’s Laws) : (a + b)′′ = a′′ • b′′ and (a • b)′′ = a′′ + b′′.
(vi) (Law of absorption) : a + (a • b) = a and a • (a + b) = a.
(vii) (Uniqueness of inverse) : for every a ∈ B, a′′ is unique.
Proofs of properties :
(i) To prove that a + a = a
a = a+0 (by Identity)
= a + (a • a′) (by Inverse)
= (a + a) • (a + a′) (by Distributive Law)
= (a + a) • 1 (by Inverse)
= a+a (by Identity)
To prove that a • a = a
a = a•1 (by Identity)
= a • (a + a′) (by Inverse)
= a • a + a • a′ (by Distributive Law)
= a•a+0 (by Inverse)
= a•a (by Identity)
Aliter, the property a • a = a follows by duality from a + a = a.
BOOLEAN ALGEBRA A-133

(ii) To prove that a + 1 = 1


1 = a + a′ (by Inverse)
= a + a′ • 1 (by Identity)
= (a + a′) • (a + 1) (by Distributive Law)
= 1 • (a + 1) (by Inverse)
= a+1 (by Identity)
The property a • 0 = 0 follows by duality.
Exercise : Prove a • 0 = 0 from basic axioms!
(iii) To prove Involution Law : (a′)′ = a
As a′ is inverse (complement) of a, we have
a + a′ = 1 and a • a′ = 0.
It can be written as a′ + a = 1 and a′ • a = 0.
Therefore, by axiom (6), (a′)′ = a.
(iv) To prove that 1′ = 0 and 0′ = 1
1′ = 1′ • 1 (by Identity)
= 1 • 1′ (by Commutative Law)
= 0 (by Inverse)
The property 0′ = 1 follows by duality.
Exercise : Prove 0′ = 1 from basic axioms!

Remark. To prove that a′ = b or b′ = a i.e. to prove that a and b are inverse of each other,
we should prove a + b = 1 and a • b = 0.

(v) De Morgan’s Laws : To prove that (a + b)′ = a′ • b′ (I.S.C. 2000)


(a + b) • (a′ • b′) = (a′ • b′) • (a + b) (by Commutative Law)
= ((a′ • b′) • a) + ((a′ • b′) • b) (by Distributive Law)
= ((b′ • a′) • a) + ((a′ • b′) • b) (why?)
= (b′ • (a ′ • a)) + (a′ • (b′ • b)) (why?)
= (b′ • 0) + (a′ • 0) = 0 + 0 = 0.
Also (a + b) + (a′ • b′)= (a + b + a′) • (a + b + b′)
= (a + a′ + b) • (a + 1) = (1 + b) • 1 = 1 • 1 = 1.
Hence by definition of inverse, (a + b)′ = a′ • b′.
To prove that (a • b)′ = a′ + b′
(a • b) + (a′ + b′) = a′ + b′ + a • b (by Commutative Law)
= (a′ + b′ + a) • (a′ + b′ + b) (why ?)
= (a + a′ + b′) • (a′ + b + b′) (why ?)
= (1 + b′) • (a′ + 1) (why ?)
= 1 • 1 = 1.
Also (a • b) • (a′ + b′)= (a • b) • a′ + (a • b) • b′
= (a • a′) • b + a • (b • b′)
= 0 • b + a • 0 = 0 + 0 = 0.
Hence by definition of inverse, (a • b)′ = a′ + b′.
Aliter, the property (a • b)′ = a′ + b′ follows by duality from (a + b)′ = a′ • b′.
(vi) Law of Absorption : To prove that a + a • b = a
a + (a • b) = a • 1 + a • b (why?)
= a • (1 + b) (by Distributive Law)
= a•1 (by property (ii) above)
= a (why?)
A-134 UNDERSTANDING ISC MATHEMATICS - XII

To prove that a • (a + b) = a
a • (a + b) = (a + 0) • (a + b) (why?)
= a+0•b (by Distributive Law)
= a+0 (why?)
= a (why?)
Aliter, the property a • (a + b) = a follows by duality from a + a • b = a.
(vii) Uniqueness of complement (inverse) : (I.S.C. 2003)
Let us assume that a1′ and a2′ are two complements of a. Then by definition,
a + a1′ = 1, a • a1′ = 0, a + a2′ = 1, a • a2′ = 0.
a1′ = a1′ • 1 = a1′ • (a + a2′ )
= ( a1′ • a) + ( a1′ • a2′ ) = 0 + ( a1′ • a2′ )
= (a • a2′ ) + ( a1′ • a2′ ) = (a + a1′ ) • a2′
= 1 • a2′ = a2′ .
Now try to prove it by starting from a1′ = a1′ + 0.

ILLUSTRATIVE EXAMPLES
Example 1. Write the dual of each of the following statements :
(i) x + (y • x) = x
(ii) x • y′ + y = x + y
(iii) (x + y) • (x + 1) = x + x • y + y
(iv) (x′ + y) • (x + y′) = x′ • y′ + x • y
(v) [(x′ + y) • (y′ + z)] • (x′ + z)′ = 0.
Solution. Since the dual statement is derived by interchanging + and • and also
interchanging the identities 1 and 0 in the original statement, therefore, the dual statements
of the given statements are :
(i) x • (y + x) = x
(ii) (x + y′) • y = x • y
(iii) (x • y) + (x • 0) = x • (x + y) • y
(iv) (x′ • y) + (x • y′) = (x′ + y′) • (x + y)
(v) [(x′ • y) + (y′ • z)] + (x′ • z)′ = 1.
Example 2. Prove that a + (a′ • b) = a + b and a • (a′ + b) = a • b.
Solution. a + (a′ • b) = (a + a′) • (a + b) (by Distributive Law)
= 1 • (a + b) (by Complement)
= a+b (by Identity)
Similarly, a • (a′ + b) = (a • a′) + (a • b) (by Distributive Law)
= 0 + (a • b) (by Complement)
=a•b (by Identity)
Example 3. Prove that a + (a′ • c + b) = a + b + c.
Solution. a + (a′ • c + b) = (a + a′ • c) + b (by Associative Law)
= ((a + a′) • (a + c)) + b (by Distributive Law)
= (1 • (a + c)) + b (by Complement)
= (a + c) + b (by Identity)
= a + (c + b) (by Associativity)
= a + (b + c) (by Commutative Law)
= a + b + c.
BOOLEAN ALGEBRA A-135

Example 4. Prove that ab + c(a′ + b′) = ab + c. (I.S.C. 2004)


Solution. ab + c(a′ + b′) = ab + c(ab)′ (by De Morgan’s Law)
= (ab + c) • (ab + (ab)′) (by Distributive Law)
= (ab + c) • 1 (by Complement)
= ab + c (by Identity)
Example 5. Prove that (x + y) • (x + 1) = x + x • y + y.
Solution. (x + y) • (x + 1) = (x + y) • 1 (by Boundedness)
=x+y (by Identity)
= (x + x • y) + y (by Absorption Law)
=x+x•y+y (by Associative Law)
Example 6. Show that in a boolean algebra, the zero element 0 and the unit element 1 are unique.
Solution. Let 0, 0 be two zero elements in B.
As 0 is an additive identity, by definition,
a + 0 = a for all a ∈ B.
∴ 0 +0= 0 …(i) (taking a = 0 )
Also as 0 is an additive identity, by definition,
a + 0 = a for all a ∈ B.
∴ 0+ 0 =0 …(ii) (taking a = 0)
However, by commutativity, we have 0 + 0 = 0 + 0
⇒ 0 = 0. (using (i) and (ii))
Hence, zero element in a boolean algebra is unique.
Let 1, 1 be two unit elements in B. Then, by definition
a • 1 = a and a • 1 = a for all a ∈ B.
∴ 1 • 1 = 1 and 1 • 1 = 1.
However, by commutativity, we have 1 • 1=1 • 1.
Hence 1 = 1.
Example 7. Prove the following :
(i) If x + y = 0, then x = 0 = y
(ii) x • y′ = 0 if and only if x • y = x
(iii) x = 0 if and only if y = x • y′ + x′ • y for all y.
Solution. (i) Given x + y = 0
Now x = x • (x + y) (by Absorption Law)
= x•0 (given, x + y = 0)
= 0.
Similarly, y = y • (y + x) = y • (x + y) = y • 0 = 0.
(ii) First assume x • y′ = 0
⇒ (x • y′)′ = 0′ ⇒ x′ + y = 1
Now x = x • 1 = x • (x′ + y) (using x′ + y = 1)
= x • x′ + x • y = 0 + x • y
= x • y.
Now to prove the other part, assume x • y = x. We wish to prove that
x • y′ = 0
Now x • y′ = (x • y) • y′ (using x = x • y)
= x • (y • y′) = x • 0 = 0.
A-136 UNDERSTANDING ISC MATHEMATICS - XII

(iii) First assume that x = 0


Then x • y′ + x′ • y = 0 • y′ + 0′ • y = 0 + 1 • y = 0 + y = y for all y.
To prove the other part, assume that y = x • y′ + x′ • y for all y.
In particular, it is true for y = 0.
∴ 0 = x • 0′ + x′ • 0 = x • 1 + x′ • 0 = x + 0 = x.
Thus, x = 0.
Example 8. Prove that if x + y = x + z and x′ + y = x′ + z, then y = z.
Solution. Given x + y = x + z …(i)
and x′ + y = x′ + z …(ii)
Now y = y + 0 = y + x • x′ ( Q x • x′ = 0)
= (y + x) • (y + x′) (by Distributive Law)
= (x + y) • (x′ + y) (by Commutative Law)
= (x + z) • (x′ + z) (by using (i) and (ii))
= x • x′ + z (by Distributive Law)
= 0 + z = z.
Example 9. A boolean algebra cannot have exactly three elements.
Solution. Let a boolean algebra B have exactly three elements and let B = {0, 1, x }, where
x ≠ 0, x ≠ 1 be a boolean algebra under the operation + and • .
Since x ∈ B, there exists x′ ∈ B such that
x + x′ = 1 …(i) and x • x′ = 0 …(ii)
As x′ ∈ B and B has exactly three elements, namely 0, 1 and x.
Three cases arise :
Case I. If x′ = 0
then (x′)′ = 0′ ⇒ x = 1, which is wrong.
Case II. If x′ = 1
then (x′)′ = 1′ ⇒ x = 0, which is wrong.
Case III. If x′ = x, then using (i), we get
x′ + x = 1 ⇒ x + x = 1
⇒ x=1 ( Q x + x = x, Idempotent law)
which is wrong.
It follows that a boolean algebra cannot have exactly three elements.

3.4 BOOLEAN EXPRESSIONS AND FUNCTIONS


In a boolean algebra (B, +, •, ′, 0, 1), the specific elements like 0 and 1, or other elements of
B, are called constants. Variables like x and y may denote any element of B. Thus in boolean
algebra {0, 1}, there are only two constants 0, 1, while we may define any number of
variables like x, y, z etc. on B, which may take values 0 or 1.
A boolean expression is any expression built from variables and constants by applying
the operations +, •, ′ a finite number of times. Examples of boolean expressions are
x + 1, x + y, x′ + y • 0, (x + y) (y′ + z), [(x1 • x2) + x3]′ etc.
A boolean function is determined by a boolean expression.
For example,
f (x) = x′,
f (x, y) = x + y
g (x, y) = x • y′ + 1
Two different boolean expressions may represent the same boolean function. For
example, x • (y + z) and x • y + x • z represent the same boolean function in 3 variables.
A boolean function of n variables x1, x2, …, xn is a mapping from Bn to B. We write it
as f (x1, x2, …, xn) or g (x1, x2, …, xn) etc.
BOOLEAN ALGEBRA A-137

ILLUSTRATIVE EXAMPLES
Example 1. Find the value of the boolean expression (x1 • x2)′ + x3 if
(i) x1 = 1, x2 = 0, x3 = 1
(ii) x1 = 1, x2 = 1, x3 = 0 .
Solution. (i) (x1 • x2)′ + x3 = (1 • 0)′ + 1 = 0′ + 1
= 1 + 1 = 1.
(ii) (x1 • x2)′ + x3 = (1 • 1)′ + 0 = 1′ + 0
= 0 + 0 = 0.
Example 2. Construct input/output table for the boolean function f on boolean algebra {0, 1}
defined by :
(i) f (x1, x2) = x1 • x′2
(ii) f (x1, x2, x3) = (x1 • x2)′ + x3 .
Solution. (i) As the given boolean function has two variables and is defined on the
boolean algebra {0, 1}, its input/output table is :

Input Output
x1 x2 x2′ x1 • x2′
1 1 0 0
1 0 1 1
0 1 0 0
0 0 1 0
(ii) As the given boolean function has three variables and is defined on the boolean
algebra {0, 1}, its input/output table is :
Input Output
x1 x2 x3 x1 • x2 (x1 • x2)′ (x1 • x2)′ + x3
1 1 1 1 0 1
1 1 0 1 0 0
1 0 1 0 1 1
1 0 0 0 1 1
0 1 1 0 1 1
0 1 0 0 1 1
0 0 1 0 1 1
0 0 0 0 1 1

Example 3. Define a boolean function f on boolean algebra {0, 1} corresponding to the


expression x + y′. Give its domain and range. Construct input/output table (or truth table).
Solution. We define f : B2 → B as
f (x, y) = x + y′, where x, y ∈ {0, 1}
Domain is B2 i.e. ({0, 1})2 = {0, 1} × {0, 1} = {(0, 0), (0, 1), (1, 0), (1, 1)}.
From f (x, y) = x + y′,
putting x = 0, y = 0, we get f (0, 0) = 0 + 0′ = 0 + 1 = 1 .
Similarly, f (0, 1) = 0 + 1′ = 0 + 0 = 0,
f (1, 0) = 1 + 0′ = 1 + 1 = 1,
f (1, 1) = 1 + 1′ = 1 + 0 = 1.
∴ Range is B i.e. {0, 1}.
A-138 UNDERSTANDING ISC MATHEMATICS - XII

The input/output table or truth table is :

x y y′ f (x, y) = x + y′
0 0 1 1
0 1 0 0
1 0 1 1
1 1 0 1

Example 4. (i) If f (x, y, z) = xy + yz′ + x′yz in boolean algebra B = {0, 1}, evaluate f (0, 0, 0)
and f (0, 1, 1). How many rows would the truth table have?
(ii) Write a boolean expression in terms of x, y or their complements which has value 1 when
x = 0, y = 1 and assumes value 0 otherwise.
Solution. (i) f (x, y, z) = xy + yz′ + x′yz
∴ f (0, 0, 0) = 0 • 0 + 0 • 0′ + 0′ • 0 • 0 = 0 + 0 • 1 + 1 • 0 • 0
= 0+0+0=0
f (0, 1, 1) = 0 • 1 + 1 • 1′ + 0′ • 1 • 1 = 0 + 1 • 0 + 1 • 1 • 1 = 0 + 0 + 1 = 1.
As there are 3 variables, each of which can have two values, the truth table will have
2 × 2 × 2 = 8 rows.
(ii) Here we use the fact that x • y has value 1 only when x = 1, y = 1; otherwise x • y has
value 0. Hence, the expression which has value 1 when x = 0, y = 1 is x′y.
Note. This idea can be better understood by constructing the following truth table :

x y x′ y′ xy xy′ x′y x′y′

1 1 0 0 1 0 0 0
1 0 0 1 0 1 0 0
0 1 1 0 0 0 1 0
0 0 1 1 0 0 0 1

It is very clear from this table that expression x′y has value 1 when x = 0, y = 1 and
assumes value 0 otherwise.

EXERCISE 3.2
1. Write the dual statement of each of the following :
(i) (1 + x) • ( 0 + y) = y (ii) (x • y)′ = x′ + y′
(iii) a + 1 = 1 (iv) x + x′y = x + y
(v) x + [x • (y + 1)] = x (vi) x + [(y′ + x) • y]′ = 1
(vii) (x + y)′ = x′ • y′ (viii) (x′ + y′)′ = x • y
(ix) (1 • x) + 0 = x (x) (1 • x)′ = 0 + x′
(xi) If x + y = 0 then x = 0 = y (xii) x • y′ = 0 if and only if x • y=x
(xiii) x = 0 if and only if y = x • y′ + x′ • y for all y.
2. Using elementary properties of boolean algebra, prove that :
(i) x + x • (y + 1) = x (ii) (a + b) a′ b′ = 0
(iii) (x + y) + (x′ • y′) = 1.
3. Prove the following statements :
(i) If x • y = 1, then x = 1 = y (ii) x + y′ = 1 if and only if x + y = x.

You might also like