Professional Documents
Culture Documents
2 Boolean Algebra
Objectives
A list of some of the laws of switching algebra, which is a special case of Boolean
algebra, is given in Table 2-3. Additional theorems of Boolean algebra are given
in Table 2-4. When you complete this unit, you should be familiar with and be
able to use these laws and theorems of Boolean algebra.
1. Understand the basic operations and laws of Boolean algebra.
2. Relate these operations and laws to circuits composed of AND gates, OR gates,
and INVERTERS. Also relate these operations and laws to circuits composed
of switches.
3. Prove any of these laws in switching algebra using a truth table.
4. Apply these laws to the manipulation of algebraic expressions including:
a. Multiplying out an expression to obtain a sum of products (SOP)
b. Factoring an expression to obtain a product of sums (POS)
c. Simplifying an expression by applying one of the laws
d. Finding the complement of an expression
29
Copyright 2021 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
30 Unit 2
Study Guide
1. In this unit you will study Boolean algebra, the basic mathematics needed
for the logic design of digital systems. Just as when you first learned ordinary
algebra, you will need a fair amount of practice before you can use Boolean
algebra effectively. However, by the end of the course, you should be just as
comfortable with Boolean algebra as with ordinary algebra. Fortunately, many
of the rules of Boolean algebra are the same as for ordinary algebra, but watch
out for some surprises!
(b) Two commonly used notations for the inverse or complement of A are A
and A′. The latter has the advantage that it is much easier for typists, print-
ers, and computers. (Have you ever tried to get a computer to print a bar
over a letter?) We will use A′ for the complement of A. You may use either
notation in your work, but please do not mix notations in the same equa-
tion. Most engineers use + for OR and • (or no symbol) for AND, and we
will follow this practice. An alternative notation, often used by mathemati-
cians, is ∨ for OR and ∧ for AND.
(c) Many different symbols are used for AND, OR, and INVERTER logic
blocks. Initially we will use
...
AND OR INVERTER
1 1 1 1
+ +
1 0 0 1
(e) Determine the unspecified inputs to each of the following gates if the out-
puts are as shown:
1 0
1 + 0 0 + 1
Copyright 2021 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
Boolean Algebra 31
A′BC′D + AB + B′CD + D′
C
D +
A + F
B
E
(c) Derive a Boolean expression for the circuit output. Then substitute
A = B = 0 and C = D = E = 1 into your expression and verify that the
value of F obtained in this way is the same as that obtained on the circuit
diagram in (b).
(d) Write an expression for the output of the following circuit and complete
the truth table:
A AB A′ A′ B (A′B)′
F
B
F=
(e) When filling in the combinations of values for the variables on the left side
of a truth table, always list the combinations of 0’s and 1’s in binary order.
For example, for a three-variable truth table, the first row should be 000,
the next row 001, then 010, 011, 100, 101, 110, and 111. Write an expression
for the output of the following circuit and complete the truth table:
F=
(Hint: Start with the innermost parentheses and draw the circuit for AD′
first.)
Copyright 2021 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
32 Unit 2
A A′ A A
A A 0 1
A A′ A A
+ + + +
A A 0 1
(c) State which of the basic theorems was used in simplifying each of the
following expressions:
(c) Simplify the following circuit by using the associative laws. Your answer
should require only two gates.
A
B
+ G
C
D
E
+
F
(d) For each gate determine the value of the unspecified input(s):
1 0
0 1 0 0 1 1
+ +
1 0
(e) Using a truth table, verify the distributive law, Equation (2-11).
Copyright 2021 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
Boolean Algebra 33
(f) Illustrate the distributive laws, Equations (2-11) and (2-11D), using AND
and OR gates.
(h) Show how the second distributive law can be used to factor RS + T′ .
(b) Which one of Theorems in Table 2-4 was applied to simplify each of the
following expressions? Identify X and Y in each case.
(A + B)(DE)′ + DE = A + B + DE
Copyright 2021 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
34 Unit 2
A
B +
C Z
C
D +
AB′ + D′EF ′ + G
(A + B′C′)(A′ + BC)
AB′(C′ + D + E′)(F ′ + G)
X′Y + WX(X′ + Z) + A′B′C′
Now factor your result using the second distributive law to obtain a prod-
uct of sums.
8. Probably the most difficult part of the unit is using the second distributive
law for factoring or multiplying out an expression. If you have difficulty with
Problems 2.5 or 2.6, or you cannot work them quickly, study the examples in
Section 2.7 again, and then work the following problems.
Multiply out:
(a) (B′ + D + E)(B′ + D + A)(AE + C′)
(b) (A + C′)(B′ + D)(C′ + D′)(C + D)E
Copyright 2021 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
Boolean Algebra 35
As usual, when we say multiply out, we do not mean to multiply out by brute
force, but rather to use the second distributive law whenever you can to cut
down on the amount of work required.
The answer to (a) should be of the following form: XX + XX + XX and
(b) of the form: XXX + XXXXX, where each X represents a single variable or
its complement.
Now factor your answer to (a) to see that you can get back the original
expression.
10. Find the complement of each of the following expressions as indicated. In your
answer, the complement operation should be applied only to single variables.
(a) (ab′c′)′ =
(b) (a′ + b + c + d′)′ =
(c) (a′ + bc)′ =
(d) (a′b′ + cd)′ =
(e) [a(b′ + c′d) ] ′ =
11. Because (X′)′ = X, if you complement each of your answers to 10, you should
get back the original expression. Verify that this is true.
(a)
(b)
(c)
(d)
(e)
Copyright 2021 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
36 Unit 2
13. A fully simplified expression should have nothing complemented except the
individual variables. For example, F = (X + Y)′ ( W + Z ) is not a minimum
product of sums. Find the minimum product of sums for F.
16. Review the laws of Table 2-3 and the first three theorems of Table 2-4. Make
sure that you can recognize when to apply them even if an expression has been
substituted for a variable.
17. Reread the objectives of this unit. If you are satisfied that you can meet these
objectives, take the readiness test.
[Note: You will be provided with a copy of Tables 2-3 and 2-4 when you
take the readiness test this time. However, by the end of Unit 3, you
should know all the laws and theorems by memory.]
Boolean Algebra
2.1 Introduction
The basic mathematics needed for the study of logic design of digital systems is
Boolean algebra. George Boole developed Boolean algebra in 1847 and used it to
solve problems in mathematical logic. Boolean algebra has many other applications,
including set theory and mathematical logic; however, we primarily consider its appli-
cation to switching circuits. All of the switching devices we will use are essentially two-
state devices (e.g., switches which are open or closed and transistors with high or low
Copyright 2021 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
Boolean Algebra 37
output voltages). Consequently, we will emphasize the special case of Boolean algebra
in which all of the variables assume only one of two values; this two-valued Boolean
algebra is often called switching algebra. Claude Shannon first applied Boolean alge-
bra to the design of switching circuits in 1939. First, we develop some of the properties
of switching algebra and use these to define a general Boolean algebra.
We will use a Boolean variable, such as X or Y, to represent the input or out-
put of a switching circuit. We will assume that each of these variables can take on
only two different values. The symbols “0” and “1” are used to represent these two
different values. Thus, if X is a Boolean (switching) variable, then either X = 0
or X = 1.
The symbols “0” and “1” used in Boolean algebra do not have a numeric value;
instead they represent two different states in a logic circuit and are the two values
of a switching variable. In a logic gate circuit, 0 (usually) represents a range of low
voltages, and 1 represents a range of high voltages. In a switch circuit, 0 (usually)
represents an open switch, and 1 represents a closed circuit. In general, 0 and 1 can
be used to represent the two states in any binary-valued system.
X X = 0 → switch open
X = 1 → switch closed
The contacts in a switch can be normally open (NO) or normally closed (NC). When
the switch position is changed, the NO contact closes and the NC contact opens,
so the NO and NC contacts are always in opposite states. If X is the variable assigned
to the NO contact, then the variable assigned to the NC contact is the complement
of X, denoted as X′ , where the prime (′) denotes complementation.
A
NO contact
B
NC contact
0′ = 1 and 1′ = 0
Copyright 2021 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
38 Unit 2
X′ = 1 if X = 0 and X′ = 0 if X = 1
X X′
where the circle at the output indicates inversion. A low voltage at the inverter input
produces a high voltage at the output and vice versa.
In a general switch circuit, the value 0 is assigned to the connection between
two terminals in the circuit if there is no connection (open circuit) between the
terminals, and a 1 is assigned if there is a connection (closed circuit) between the
terminals. If the switch circuit only contains two switches, the switch contacts must
be connected in series or in parallel. When switch contacts A and B are connected
in series, there is an open circuit between the terminals if either A or B or both are
open (0), and there is a closed circuit between the terminals only if both A and B
are closed (1).
AB C=A·B
0 0 0
0 1 0
1 0 0
1 1 1
The operation defined by the table is called AND and it is written algebraically as
C = A · B. The “·” symbol is frequently omitted in a Boolean expression, and we will
usually write AB instead of A · B. The AND operation is also referred to as logical
(or Boolean) multiplication.
When switches A and B are connected in parallel, there is a closed circuit between
the terminals if either A or B is closed (1), and there is an open circuit between the
terminals only if both A and B are open (0).
1 2
B
Copyright 2021 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
Boolean Algebra 39
AB C=A+B
0 0 0
0 1 1
1 0 1
1 1 1
The operation defined by the table is called OR and it is written algebraically as
C = A + B. This type of OR operation is sometimes referred to as inclusive OR as
opposed to exclusive OR, which is defined later. The OR operation is also referred
to as logical (or Boolean) addition.
Logic gates operate so that the voltage on inputs and outputs of a gate is either in a
low voltage range or a high voltage range, except when the signals are changing. Switch-
ing algebra can be applied to logic gates by assigning 0 and 1 to the two voltage ranges.
Usually, a 0 is assigned to the low voltage range and a 1 to the high voltage range.
A logic gate which performs the AND operation is represented by
A
C=A•B
B
A
+ C=A+B
B
The gate output is C = 1 if and only if the gate inputs A = 1 or B = 1 (or both).
Electronic circuits which realize inverters and AND and OR gates are described in
Appendix A.
AB′ + C (2-1)
[ A(C + D) ] ′ + BE (2-2)
Parentheses are added as needed to specify the order in which the operations are
performed. When parentheses are omitted, complementation is performed first fol-
lowed by AND and then OR. Thus in Expression (2-1), B′ is formed first, then AB′,
and finally AB′ + C.
Copyright 2021 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
40 Unit 2
Each expression corresponds directly to a circuit of logic gates. Figure 2-1 gives
the circuits for Expressions (2-1) and (2-2).
B BE
E
(b)
When an expression is realized using logic gates, each literal in the expression cor-
responds to a gate input.
A truth table (also called a table of combinations) specifies the values of a
Boolean expression for every possible combination of values of the variables in the
expression. The name truth table comes from a similar table which is used in sym-
bolic logic to list the truth or falsity of a statement under all possible conditions.
We can use a truth table to specify the output values for a circuit of logic gates in
terms of the values of the input variables. The output of the circuit in Figure 2-2(a)
is F = A′ + B. Figure 2-2(b) shows a truth table which specifies the output of the
circuit for all possible combinations of values of the inputs A and B. The first two
columns list the four combinations of values of A and B, and the next column gives
the corresponding values of A′. The last column, which gives the values of A′ + B, is
formed by ORing together corresponding values of A′ and B in each row.
Figure 2-2 A′ A B A′ F = A′ + B
A
Two-Input Circuit + F = A′ + B 0 0 1 1
and Truth Table B
0 1 1 1
© Cengage Learning 2014 (a) 1 0 0 0
(b) 1 1 0 1
Copyright 2021 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
Boolean Algebra 41
Next, we will use a truth table to specify the value of Expression (2-1) for all
possible combinations of values of the variables A, B, and C. On the left side of
Table 2-1, we list the values of the variables A, B, and C. Because each of the three
variables can assume the value 0 or 1, there are 2 × 2 × 2 = 8 combinations of values
of the variables. These combinations are easily obtained by listing the binary num-
bers 000, 001, … , 111. In the next three columns of the truth table, we compute B′ ,
AB′, and AB′ + C, respectively.
Two expressions are equal if they have the same value for every possible combi-
nation of the variables. The expression (A + C)(B′ + C) is evaluated using the last
three columns of Table 2-1. Because it has the same value as AB′ + C for all eight
combinations of values of the variables A, B, and C, we conclude
If an expression has n variables, and each variable can have the value 0 or 1, the
number of different combinations of values of the variables is
2 × 2 × 2 × . . . = 2n
n times
X + 0 = X (2-4) X · 1 = X (2-4D)
X + 1 = 1 (2-5) X · 0 = 0 (2-5D)
Copyright 2021 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
42 Unit 2
Idempotent laws:
X + X = X (2-6) X · X = X (2-6D)
Involution law:
(X′)′ = X (2-7)
Laws of complementarity:
X + X′ = 1 (2-8) X · X′ = 0 (2-8D)
Each of these theorems is easily proved by showing that it is valid for both of the
possible values of X. For example, to prove X + X′ = 1, we observe that if
X = 0, 0 + 0′ = 0 + 1 = 1, and if X = 1, 1 + 1′ = 1 + 0 = 1
Any expression can be substituted for the variable X in these theorems. Thus, by
Theorem (2-5),
(AB′ + D)E + 1 = 1
and by Theorem (2-8D),
(AB′ + D)(AB′ + D)′ = 0
We will illustrate some of the basic theorems with circuits of switches. As before,
0 will represent an open circuit or open switch, and 1 will represent a closed circuit
or closed switch. If two switches are both labeled with the variable A, this means that
both switches are open when A = 0 and both are closed when A = 1. Thus the circuit
A A
A
A
A
=
A
A
=
(A + 0 = A)
Copyright 2021 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
Boolean Algebra 43
(A + 1 = 1)
If a switch is labeled A′, then it is open when A is closed and conversely. Hence, A
in parallel with A′ can be replaced with a closed circuit because one or the other of the
two switches is always closed.
A′ =
(A + A′ = 1)
Similarly, switch A in series with A′ can be replaced with an open circuit (why?).
A A′
=
(A • A′ = 0)
Copyright 2021 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
44 Unit 2
When the preceding laws are interpreted as switch circuits, they simply indicate
that the order in which switch contacts are connected does not change the logic
operation of the circuit.
We will prove the associative law for AND by using a truth table (Table 2-2).
On the left side of the table, we list all combinations of values of the variables X,Y,
and Z. In the next two columns of the truth table, we compute XY and YZ for
each combination of values of X, Y, and Z. Finally, we compute (XY)Z and X(YZ).
Because (XY)Z and X(YZ) are equal for all possible combinations of values of the
variables, we conclude that Equation (2-10) is valid.
Table 2-2 X Y Z XY YZ (XY )Z X(YZ )
Proof of 0 0 0 0 0 0 0
Associative 0 0 1 0 0 0 0
Law for AND 0 1 0 0 0 0 0
© Cengage Learning 2014 0 1 1 0 1 0 0
1 0 0 0 0 0 0
1 0 1 0 0 0 0
1 1 0 1 0 0 0
1 1 1 1 1 1 1
Figure 2-3 illustrates the associative laws using AND and OR gates. In
Figure 2-3(a) two two-input AND gates are replaced with a single three-input AND
gate. Similarly, in Figure 2-3(b) two two-input OR gates are replaced with a single
three-input OR gate.
Figure 2-3 A
A
Associative Laws B = B
for AND and OR C C
A
+ =
A
B + B +
C C
(A + B) + C = A + B + C
(b)
When two or more variables are ANDed together, the value of the result will be 1
if all of the variables have the value 1. If any of the variables have the value 0, the
result of the AND operation will be 0. For example,
XYZ = 1 iff X = Y = Z = 1
When two or more variables are ORed together, the value of the result will be 1
if any of the variables have the value 1. The result of the OR operation will be 0 iff
all of the variables have the value 0. For example,
X + Y + Z = 0 iff X = Y = Z = 0
Copyright 2021 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
Boolean Algebra 45
Using a truth table, it is easy to show that the distributive law is valid:
In addition to the ordinary distributive law, a second distributive law is valid for
Boolean algebra but not for ordinary algebra:
The ordinary distributive law states that the AND operation distributes over OR,
while the second distributive law states that OR distributes over AND. This second
law is very useful in manipulating Boolean expressions. In particular, an expression
like A + BC, which cannot be factored in ordinary algebra, is easily factored using
the second distributive law:
A + BC = (A + B)(A + C)
The laws we have derived for switching algebra are summarized in Table 2-3. One
definition of Boolean algebra is a set containing at least two distinct elements with
the operations of AND, OR, and complement defined on the elements that satisfy
Copyright 2021 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
46 Unit 2
the laws in Table 2-3. This definition is not minimal (i.e., the laws are not independent
since some can be derived from others). It is chosen for convenience so that other
Boolean algebra theorems can be derived easily. One minimal set of laws referred to
as Huntington’s postulates are operations with 0 and 1, commutative laws, distribu-
tive laws, and complementation laws. The other laws can be algebraically derived
from this minimal set.
Laws of complementarity:
5. X + X′ = 1 5D. X · X′ = 0
Commutative laws:
6. X + Y = Y + X 6D. XY = YX
Associative laws:
7. (X + Y ) + Z = X + (Y + Z ) 7D. (XY )Z = X(YZ ) = XYZ
=X+Y+Z
Distributive laws:
8. X(Y + Z ) = XY + XZ 8D. X + YZ = (X + Y )(X + Z )
DeMorgan’s laws:
9. (X + Y )′ = X′Y′ 9D. (XY )′ = X′ + Y ′
The Boolean algebra laws were given in pairs to show the algebra satisfies a dual-
ity. Given a Boolean algebra expression the dual of the expression is obtained by
interchanging the constants 0 and 1 and interchanging the operations of AND and
OR. Variables and complements are left unchanged. The laws listed in Table 2-3 show
that given a Boolean algebra identity, another identity can be obtained by taking the
dual of both sides of the identity. The dual of AND is OR and the dual of OR is AND:
(XYZ. . .)D = X + Y + Z + · · · (X + Y + Z + · · ·)D = XYZ. . . (2-14)
Copyright 2021 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
Boolean Algebra 47
After proving one theorem in a pair of theorems, the other theorem follows by the
duality property of Boolean algebra. Alternatively, the other theorem can be proved
using the dual steps used to prove the first theorem. For example, (2-16D) can be
proved using the dual steps of the (2-16) proof.
We will illustrate the elimination theorem using switches. Consider the following
circuit:
X Y′
Its transmission is T = Y + XY′ because there is a closed circuit between the termi-
nals if switch Y is closed or switch X is closed and switch Y′ is closed. The following
circuit is equivalent because if Y is closed (Y = 1) both circuits have a transmission
of 1; if Y is open (Y′ = 1) both circuits have a transmission of X.
Y
The following example illustrates simplification of a logic gate circuit using one
of the theorems. In Figure 2-4, the output of circuit (a) is
F = A(A′ + B)
Copyright 2021 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
48 Unit 2
By the elimination theorem, the expression for F simplifies to AB. Therefore, circuit (a)
can be replaced with the equivalent circuit (b).
Figure 2-4 A
Equivalent Gate + A
B F F
Circuits A B
Z = X = A + B′C
Note that in this example we let X = (AB + C)′ rather than (AB + C) in order to
match the form of the elimination theorem (2-17).
Copyright 2021 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
Boolean Algebra 49
However, in degenerate cases, one or more of the product terms may consist of a
single variable. For example,
and
A + B′ + C + D′E (2-21)
(A + B)CD + EF
is not in sum-of-products form because the A + B term enters into a product but is
not a single variable.
When multiplying out an expression, apply the second distributive law first when
possible. For example, to multiply out (A + BC )(A + D + E ) let
X = A, Y = BC, Z=D+E
Copyright 2021 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
50 Unit 2
Then
(X + Y)(X + Z) = X + YZ = A + BC(D + E) = A + BCD + BCE
Of course, the same result could be obtained the hard way by multiplying out the
original expression completely and then eliminating redundant terms:
(A + BC)(A + D + E) = A + AD + AE + ABC + BCD + BCE
= A(1 + D + E + BC) + BCD + BCE
= A + BCD + BCE
You will save yourself a lot of time if you learn to apply the second distributive law
instead of doing the problem the hard way.
Both distributive laws can be used to factor an expression to obtain a product-of-
sums form. An expression is in product-of-sums (POS) form when all sums are the
sums of single variables. It is usually easy to recognize a product-of-sums expression
since it consists of a product of sum terms:
Example 1 Factor A + B′CD. This is of the form X + YZ where X = A, Y = B′, and Z = CD, so
Copyright 2021 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
Boolean Algebra 51
C′D + C′E′ + G′H = C′(D + E′) + G′H ← first apply the ordinary
distributive law,
XY + XZ = X(Y + Z)
= (C′ + G′H)((D + E′) + G′H) ← then apply the second
distributive law
= (C′ + G′)(C′ + H)(D + E′ + G′)(D + E′ + H) ← now identify X, Y, and Z
in each expression and
complete the factoring
As in Example 3, the ordinary distributive law should be applied before the second
law when factoring an expression.
A sum-of-products expression can always be realized directly by one or more
AND gates feeding a single OR gate at the circuit output. Figure 2-5 shows the cir-
cuits for Equations (2-19) and (2-21). Inverters required to generate the comple-
mented variables have been omitted.
A product-of-sums expression can always be realized directly by one or more
OR gates feeding a single AND gate at the circuit output. Figure 2-6 shows the cir-
cuits for Equations (2-22) and (2-24). Inverters required to generate the comple-
ments have been omitted.
The circuits shown in Figures 2-5 and 2-6 are often referred to as two-level cir-
cuits because they have a maximum of two gates in series between an input and the
circuit output.
Figure 2-5 A
Circuits for B′
Equations D′
C
(2-19) and D′ + E A
B′ +
(2-21) E
C
© Cengage Learning 2014 A
C′
E′
Figure 2-6 A
Circuits for
+
B′
Equations (2-22) A
C B′
and (2-24) D′ + C
D′
© Cengage Learning 2014
E +
E
A
C′ +
E′
Copyright 2021 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
52 Unit 2
Referring to the OR operation as the logical sum and the AND operation as logical
product, DeMorgan’s laws can be stated as
The complement of the product is the sum of the complements.
The complement of the sum is the product of the complements.
To form the complement of an expression containing both OR and AND operations,
DeMorgan’s laws are applied alternately.
Example 1 To find the complement of (A′ + B)C′, first apply (2-13) and then (2-12).
Note that in the final expressions, the complement operation is applied only to single
variables.
Copyright 2021 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
Boolean Algebra 53
In the table, note that for every combination of values of A and B for which
F = 0, F′ = 1; and whenever F = 1, F′ = 0.
The dual of an expression may be found by complementing the entire expression
and then complementing each individual variable. For example, to find the dual of
AB′ + C,
Problems
2.1 Prove the following theorems algebraically:
(a) X(X′ + Y) = XY (b) X + XY = X
(c) XY + XY′ = X (d) (A + B)(A + B′) = A
2.3 Simplify each of the following expressions by applying one of the theorems. State
the theorem used.
(a) X′ Y′ Z + (X′ Y′ Z)′ (b) (AB′ + CD)(B′E + CD)
(c) ACF + AC′F (d) A(C + D′B) + A′
(e) (A′B + C + D)(A′B + D) (f) (A + BC) + (DE + F )(A + BC)′
2.4 For each of the following circuits, find the output and design a simpler circuit having
the same output. (Hint: Find the circuit output by first finding the output of each
gate, going from left to right, and simplifying as you go.)
Copyright 2021 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
54 Unit 2
A +
+
1 E + F
B
C
D
(a)
A
B +
B + Y
B A
A +
B
(b)
2.7 Draw a circuit that uses only one AND gate and one OR gate to realize each of the
following functions:
(a) (A + B + C + D)(A + B + C + E)(A + B + C + F )
(b) WXYZ + VXYZ + UXYZ
+
A
(a)
R
S +
T P
G
R T
+
S
T
(b)
Copyright 2021 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
Boolean Algebra 55
2.11 Simplify each of the following expressions by applying one of the theorems. State
the theorem used.
(a) (A′ + B′ + C)(A′ + B′ + C)′ (b) AB(C′ + D) + B(C′ + D)
(c) AB + (C′ + D)(AB)′ (d) (A′BF + CD′)(A′BF + CEG)
(e) [AB′ + (C + D)′ + E′F] (C + D) (f) A′(B + C)(D′E + F )′ + (D′E + F )
2.12 Simplify each of the following expressions by applying one of the theorems. State
the theorem used.
(a) (X + Y′Z) + (X + Y′Z)′
(b) [W + X′(Y + Z) ][ W′ + X′(Y + Z) ]
(c) (V′W + UX)′(UX + Y + Z + V′W)
(d) (UV′ + W′X)(UV′ + W′X + Y′Z)
(e) (W′ + X)(Y + Z′) + (W′ + X)′(Y + Z′)
(f) (V′ + U + W) [(W + X) + Y + UZ′ ] + [ (W + X) + UZ′ + Y ]
2.13 For each of the following circuits, find the output and design a simpler circuit that
has the same output. (Hint: Find the circuit output by first finding the output of each
gate, going from left to right, and simplifying as you go.)
A
+
+ F1
(a) B
A
+ F2
(b)
A
B +
F3
(c) C D
+
A +
B
Copyright 2021 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
56 Unit 2
A
+
B
C + Z
(d)
A D
+
B
C
2.14 Draw a circuit that uses only one AND gate and one OR gate to realize each of the
following functions:
(a) ABCF + ACEF + ACDF
(b) (V + W + Y + Z)(U + W + Y + Z)(W + X + Y + Z)
2.15 Use only DeMorgan’s relationships and Involution to find the complements of the
following functions:
(a) f(A, B, C, D) = [ A + (BCD)′ ][(AD)′ + B(C′ + A) ]
(b) f(A, B, C, D) = AB′C + (A′ + B + D)(ABD′ + B′)
2.16 Using just the definition of the dual of a Boolean algebra expression, find the duals
of the following expressions:
(a) f(A, B, C, D) = [ A + (BCD)′ ][(AD)′ + B(C′ + A) ]
(b) f(A, B, C, D) = AB′C + (A′ + B + D)(ABD′ + B′)
2.17 For the following switching circuit, find the logic function expression describing the cir-
cuit by the three methods indicated, simplify each expression, and show they are equal.
(a) subdividing it into series and parallel connections of subcircuits until single
switches are obtained
(b) finding all paths through the circuit (sometimes called tie sets), forming an AND
term for each path and ORing the AND terms together
(c) finding all ways of breaking all paths through the circuit (sometimes called cut
sets), forming an OR term for each cut set and ANDing the OR terms together.
A′
C
B′
B
A
C′
2.18 For each of the following Boolean (or switching) algebra expressions, indicate which,
if any, of the following terms describe the expression: product term, sum-of-products,
sum term, and product-of-sums. (More than one may apply.)
(a) X′Y (b) XY′ + YZ
(c) (X′ + Y)(WX + Z) (d) X + Z
(e) (X′ + Y)(W + Z)(X + Y′ + Z′)
Copyright 2021 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
Boolean Algebra 57
2.19 Construct a gate circuit using AND, OR, and NOT gates that corresponds one to one
with the following switching algebra expression. Assume that inputs are available
only in uncomplemented form. (Do not change the expression.)
D
B′
A C′
2.21 In the following circuit, F = (A′ + B)C. Give a truth table for G so that H is as speci-
fied in its truth table. If G can be either 0 or 1 for some input combination, leave its
value unspecified.
A A B C H
F
B 0 0 0 0
C 0 0 1 1
+ H 0 1 0 1
A 0 1 1 1
B 1 0 0 0
C G
1 0 1 1
1 1 0 0
1 1 1 1
2.24 Simplify the following expressions to a minimum sum of products. Only individual
variables should be complemented.
(a) [(XY′)′ + (X′ + Y)′Z ] (b) (X + (Y′(Z + W)′)′)′
(c) [(A′ + B′)′ + (A′B′C)′ + C′D] ′ (d) (A + B)CD + (A + B)′
Copyright 2021 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
58 Unit 2
2.25 For each of the following functions find a sum-of-products expression for F′ .
(a) F(P, Q, R, S) = (R′ + PQ)S
(b) F(W, X, Y, Z) = X + YZ(W + X′)
(c) F(A, B, C, D) = A′ + B′ + ACD
A
+
B
(a) B
C + F
A
B
G
(b)
+
C
W
X
(c) H
Y
+
Z
2.27 Draw a circuit that uses two OR gates and two AND gates to realize the following
function:
F = (V + W + X)(V + X + Y)(V + Z)
(a) using one OR gate and three AND gates. The AND gates should have two
inputs.
(b) using two OR gates and two AND gates. All of the gates should have two inputs.
Copyright 2021 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.
Boolean Algebra 59
2.30 Show that the following two gate circuits realize the same function.
X
+
Y
+f F
Z
(a)
X
Y +f
Z
+f G
+f
(b)
Copyright 2021 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part. Due to electronic rights, some third party content may be suppressed from the eBook and/or eChapter(s).
Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. Cengage Learning reserves the right to remove additional content at any time if subsequent rights restrictions require it.