










































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!











































Math 123 Boolean Algebra
George Boole, a nineteenth-century English Mathematician, developed a system of logical algebra by which reasoning can be expressed mathematically. In 1854, Boole published a classic book, “An Investigation of the Laws of thought” on which he founded the Mathematical theories of Logic and Probabilities,
Boole‟s system of logical algebra, now called Boolean algebra, was investigated as a tool for analyzing and designing relay switching circuits by Claude E. Shannon at the Massachusetts institute of Technology in 1938. Shannon, a research assistant in the Electrical Engineering Department, wrote a thesis entitled “A” symbolic Analysis of Relay and Switching Circuits. As a result of his work, Boolean algebra is now, used extensively in the analysis and design of logical circuits. Today Boolean algebra is the backbone of computer circuit analysis.
Aristotle made use of a two valued logical system in devising a method for getting to the truth, given a set of true assumptions. The symbols that are used to represent the two levels of a two valued logical system are 1 and 0. The symbol 1 may represent a closed switch, a true statement, an “on” lamp, a correct action, a high voltage, or many other things. The symbol “O” may represent on open switch, a false statement, an “off” lamp, an incorrect action, a low voltage, or many other things.
For the electronics circuits and signals a logic 1 will represent closed switch, a high voltage, or an “on” lamp, and a logic 0 will represent an open switch, low voltage, or an “off” lamp. These describe the only two states that exist in digital logic systems and will be used to represent the in and out conditions of logic gates.
Boolean algebra is a logical algebra in which symbols are used to
represent logic levels. Any symbol can be used, however, letters of the
alphabet are generally used. Since the logic levels are generally associated
with the symbols 1 and 0, whatever letters are used as variables that can
take the values of 1 or 0.
Math 123 Boolean Algebra
Boolean algebra has only two mathematical operations, addition
and multiplication. These operations are associated with the OR gate and
the AND gate, respectively.
When the + ( the logical addition) symbol is placed between two
variables, say X and Y, since both X and Y can take only the role 0 and 1,
we can define the + Symbol by listing, all possible combinations for X and
Y and the resulting value of X + Y.
The possible input and out put combinations may arranged as
follows:
0 + 0 = 0 0 + 1 = 1 + 0 = 1 1 + 1 = 1 This table represents a standard binary addition, except for the
last entry. When both' X and Y represents 1‟s, the value of X + Y is 1. The
symbol + therefore does not has the “Normal” meaning, but is a Logical
addition symbol. The plus symbol (+) read as "OR", therefore X +Y is
read as X or Y.
This concept may be extended to any number of variables for example A + B + C +D = E Even if A, B, C and D all had the values 1, the sum of the values i.e. is 1.
We can define the "." (logical multiplication) symbol or AND
operator by listing all possible combinations for (input) variables X and Y
and the resulting (output) value of X. Y as,
0 .0= 0 0 .1 = 0 1 .0 = 0 1 .1 = 1
Note : Three of the basic laws of Boolean algebra are the same as in ordinary algebra; the commutative law, the associative law and the distributive law.
Math 123 Boolean Algebra
V =5v
An OR gate is a logic circuit with two or more input signals and
one output signal. The output signal will be high (logic 1) if any one input
signal is high (logic 1). OR gate performs logical addition
The symbol for the logic OR gate is
Fig. 1 A circuit that will functions as an OR gate can be implemented in
several ways. A mechanical OR gate can be fabricated by connecting two
switches in parallel as shown in figure 2.
Fig. 2
Truth Table for a switch circuit operation as an OR gate.
Switch X Switch Y Output Z
Open Open 0
Open Closed 5V
Closed Open 5V
Closed Closed 5V
Note that for the switch circuit were use diodes and resistors,
Transistors and resistors and other techniques to control the voltage and
resistance.
X
Y
OR X + Y = Z
Math 123 Boolean Algebra
Note: If the switch is "on", it is represented by 1, and if, it is "off", it is represented by 0.
Truth Table for a Two-input OR gate.
Table - 2
In Put Out Put
X Y Z
0 0 0
0 1 1
1 0 1
1 1 1
Truth table for a three in put OR gate.
Table – 3
A B C X 0 0 0 0 0 0 1 1 0 1 0 1 0 1 1 1 1 0 0 1 1 0 1 1 1 1 0 1 1 1 1 1
No. of combinations = 2 n, where n is number of variables.
An AND gate is a logic circuit with two or more input signals
and one output signal. The output signal of an AND gate is high (logic 1)
only if all inputs signals are high (Logic 1).
Math 123 Boolean Algebra
Truth Table for a Two-input AND gate
Table - 5
In Put Out Put
X Y Z
0 0 0
0 1 0
1 0 0
1 1 1
Truth Table for a three input AND gate.
Inputs Output
A B C X
0 0 0 0
0 0 1 0
0 1 0 0
0 1 1 0
1 0 0 0
1 0 1 0
1 1 0 0
1 1 1 1
The logical operation of complementary or inverting a variable is
performed in the Boolean Algebra. The purpose of complementation is to
Math 123 Boolean Algebra
invert the, input signal, since there are only two values that variables can
assume in two-value logic system, therefore if the input is 1, the output is
0 and if the input is 0 the output is 1. The symbol used to represent
complementation of a variable is a bar (-) above the variable, for example
the complementation of A is written as
A and is read as “complement of
A” or “A not”.
Since variables can only be equal to 0 or 1, we can say that _ O = 1 Or
Also
An inventor is a gate with only one
.input signal and one output signal; the output signal is always the opposite or complement of the input signal.
An invertor is also called a NOT gate because the output not the same as the input.
Symbol of inverter or NOT gate is
The circle at the output or input indicates inversion. It also
distinguish between the symbol for the NOT gate or the symbol for an
N (^) X
Fig.5 (i)
Fig.5 (ii)
N X^ X
Fig.5(ii) (Two invertors in series)
Math 123 Boolean Algebra
X = X Double complement
X Y =X+Y Identity Theorems
Y De Morgan's Theorems
Every rule can be proved by the application of rules and by perfect Induction.
(i) This rule does not apply to normal algebra We follow: (X + Y) (X + Z) = XX + XZ +YX + YZ =X+ XZ +YX + YZ, X.X=X
Math 123 Boolean Algebra = X (1 + Z) + YX + YZ = X + YX + YZ, 1 + Z = 1
= X (1 + Y) + Y Z– = X + YZ 1 + Y = 1
(ii) Proof by Perfect induction Method:
Truth Table-8 for the R.H.S. (X + Y) (X+ Z) and for L.H.S. X + YZ
X Y Z X+Y X+Z YZ (X+Y)(X+Z) X+YZ
0 0 0 0 0 0 0 0
0 0 1 0 1 0 0 0
0 1 0 1 0 0 0 0
0 1 1 1 1 0 1 1
1 0 0 1 1 0 1 1
1 0 1 1 1 0 1 1
1 1 0 1 1 1 1 1
1 1 1 1 1 1 1 1
R.H.S. = L.H.S.
Rule .16 X +XZ =X
L.H.S. =X + XZ = X(1 + Z) = X. 1 = X, I + Z = 1 = R.H.S.
Rule 17: X(X +Z) =X
L.H.S. = X (X + Z) =X X +XZ By distributive law =X +XZ, as X.X = X =X (1 +Z), As 1 +Z = = X. 1 = X L.H.S. = R.H.S.
Math 123 Boolean Algebra
(i)
X + Y =
__ X.
__ Y
(ii)
X. Y =
__ X +
__ Y
Proof: (i) By Perfect induction
X + Y and for R.H.S.
L.H.S. =R.H.S.
X. Y and for R.H.S.
Rules:
3 rd^ and 7th^ called idempotent. These shows that Boolean algebra is idempotent.
i.e. A + A = A and A. A = A
Proof:
The variable A can have only the value 0 or 1. (3) If A =0, then 0 + 0 = 0 If A = 1, then 1 + 1 = 1 (7) If A = 0, then 0.0. = 0 If A =1, then 1. 1 =
Rule 2: X +1 =
If X = 0 then 0 + 1 = 1 If X = 1, then 1 + 1 =
Math 123 Boolean Algebra
Rule 5: X. 0 = 0
If X = 0, Then 0.0 = 1 If X= 1, Then 1 .0 = 1
Rule 9:
X = X, i.e., the Boolean algebra is involuted.
If X =0, Then
O = 1 and
So
If X=1, Then
1 = 0 and
So
Similarly we can prove the remaining rules by setting the values of variables as 0 and 1 or by perfect induction
Example:2: Express the Boolean function
Solution:
Example 3: Find the complement of the expression: X + YZ and
verified the result by perfect induction.
Solution:
X+ YZ =
Z ) by DeMorgan‟s Law This relation can be verified by perfect induction.
Math 123 Boolean Algebra
Solution:
(i) First simplify (X + Y ) ( X +
Y + YX +O, as XX =X
as Y
Y + Y), as
= X + X. 1, as X .1 = X = X + X = X
Now (X + Y) (X +
X +XZ, by distributive law
(ii) XYZ + X
Z , as Y +
Z )], (By Rule 15 dual of distributive
=X (Y + Z), by commutative law.
Math 123 Boolean Algebra
Example 6: Minimize the following expression by use of Boolean rules.
(a) X = A B C +
(b) X =
(c) AB +
(d) (A + B) (
Solution:
(a) X =ABC +
A B as C +
(b) X =
C as
C by the dual of distribution, rules 15
Math 123 Boolean Algebra
The S um of Product means that the products of the variables that are seperated by a plus sign. The variables can be complemented or uncomplemented, for-example,
The P roduct of Sum means that the sum of variables that are seperated by a multiplication sign. For example,
The products that produce a high (1) output are called
Fundamental products. For example, for the two input variables A and B.
We have four possible combination‟s, which are shown in the table below
and the fundamental product‟s corresponding to each:
A B Fundamental Product
Output Z
Math 123 Boolean Algebra
For three input variables or signals a similar idea is applied. Whenever the input variable is 0, the same variable is complemented in the fundamental product.
A B C Output Z
Fundamental Product
Output for product
Sum terms Output for Sum 0 0 0 0
__ A
__ B
__ C 1
A+B+C 0
0 0 1 0
__ A
__ B C 1 A+B+
__ C 0 0 1 0 1
__ A B
__ C 1 A+
__ B +C 0 0 1 1 1
__ A BC 1 A+
__ B +
__ C 0 (^1 0 0 0) A
__ B
__ C 1
__ A +B+C 0 (^1 0 1 0) A
__ B C 1
__ A +B+
__ C 0
(^1 1 0 1) AB
__ C 1
__ A +
__ B +C 0 1 1 1 0 ABC^1
__ A +
__ B +
__ C 0
Sum of product(SOP) =
__ A B
__ C +
__ A B C + A B
__ C
Product of sum(POS) = (A + B + C) (A + B +
__ C ) (
__ A + B + C)
__ A + B +
__ C ) (
__ A +
__ B +
__ C ) Note: See remarks for sum of product and product of sums.
(1) A sum of product (minterm) is obtained as follows: For each row of the truth table for which the out put is 1, the Boolean term is the product of variables that are equal to 1 and the complement of variable that are equal to 0. The sum of these products is the desired Boolean equation. (2) A product of sum expression is obtained as follows: each row of the truth table for which the output is 0, the Boolean term is the sum of the variables that are equal 0 plus the complement of the variables that are equal to 1. The