






































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. Boolean algebra has only two mathematical operations, addition and multiplication. These operations are associated with the OR gate and the AND gate, respectively.
Math 123 Boolean Algebra
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
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. The commutative law for addition and multiplication of two variables is written as, A + B = B + A And A. B = B. A The associative law for addition and multiplication of three variables is written as, (A + B) + C = A + (B + C) And (A .B). C = A. (B. C)
Math 123 Boolean Algebra Fig. 2
- 1 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. 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
V =5v
Math 123 Boolean Algebra 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). An AND gate performs logical multiplication on inputs. The symbol for AND gate is X Y Fig. A circuit that will functions as an AND gate can be implemented in several ways. A mechanical AND gate can be fabricated by connecting two switches in series as show in fig. 4 Fig. Truth Table for a switch circuit operation as an AND gate.
Switch X Switch Y Output Z Open Open 0
X
Math 123 Boolean Algebra 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
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.
The circle at the output or input indicates inversion. It also distinguish between the symbol for the NOT gate or the symbol for an operational amplifier or certain types of buffers, because the symbol - ►can also be used for diode. Truth Table for a NOT circuit
In put Out put 0 1 1 0 Symbol of inverter or NOT gate is N (^) X Fig. 5 (i) Fig.5 (ii) N^ X^ X Fig.5(ii) (Two invertors in series)
Math 123 Boolean Algebra NOTE : A word is a group (or string) of binary bits that represents a closed instruction or data, Example 1: How many input words in the Truth Table of an 6 - input OR gate? Which,^ input word produce a high output? Solution: The total number of input word‟s = 2n^ = 2^6 =32, where n is number of inputs. In an OR gate 1 or more-high inputs produce a high output. Therefore the word of 000000 results in low outputs all other input words produce a high output.
We state the duality theorem without proof. Starting with a Boolean relation, we can derive another Boolean relation by
X + 0 = X
X + 1 = 1 OR operations
X + X = X __
X + X =
X. 0 =
X. 1 =X AND operations
X. X = X __
X = X Double complement
X + Y = Y + X Commutative laws
XY = YX
(X + Y ) +Z = X +(Y + Z) Associative laws
Math 123 Boolean Algebra 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), = X. 1 = X L.H.S. = R.H.S. As 1 +Z = __ Rule 18: (i) X + X Y =X + Y
L.H.S. = X + X Y = (X + X ). (X +Y) By rule 15 dual Of distributive law. __ = 1. (X + Y) as X + X = 1 = X + Y L.H.S. = R.H.S. (ii) Proof by perfect Induction Method: __
Rule 19: __ (i) X.( X +Y) = X. Y
L.H.S. = X (X + Y) =X X +X Y By distributive law
Math 123 Boolean Algebra = 0 +XY as X. X = =X Y L.H.S. = R.H.S. (ii) Proof by Perfect Induction Method:
(i) X + Y = X. Y
(ii) X. Y = X + Y Proof: (i) By Perfect induction
L.H.S. =R.H.S.
R.H.S. Rules: 3 rd^ and 7th^ called idempotent. These shows that Boolean algebra is idempotent.
Math 123 Boolean Algebra Solution: ______ __ ___ X+ YZ = X. YZ
= X .(Y + Z ) by DeMorgan‟s Law This relation can be verified by perfect induction.
Truth Table 13 for L.H.S. X+YZ and for R.H.S. X. (Y + Z ) X Y Z __ X __ Y __ Z (^) YZ X+YZ
X+YZ
X (Y + Z ) 0 0 0 1 1 1 0 0 1 1 1 0 0 1 1 1 0 0 0 1 1 1 0 1 0 1 0 1 0 0 1 1 1 0 1 1 1 0 0 1 1 0 0 0 1 0 0 0 1 1 0 1 1 0 0 1 0 1 0 1 0 0 1 1 0 0 1 1 0 0 0 1 0 1 1 0 0 1 1 1 0 0 0 1 1 0 0 0 L.H.S. = R.H.S. __ __ Example 4: Find the complement of A B + C D , (b) AB +CD = 0 Solution:
(a) A B + C D = (A B ). ( C D ) = __ __ = = (A + B ). (C + D )
(A+ B ). (C + D) (b) AB +CD= 0 Taking complement on both sides.
= AB + CD = O
= AB. CD = 1
(A + B ). (C +D ) = 1 Example 5: Simplify the Boolean expressions:
Math 123 Boolean Algebra
__ __ (ii) XYZ + X Y Z + XY Z Solution: __ (i) First simplify (X + Y ) ( X + Y )
(X + Y) (X + Y ) = XX + XY + YX + YY __ = X + X Y + YX +O, as XX =X __ as YY = 0
= X + X(Y + Y), as Y + Y = = X + X. 1, as X .1 = X = X + X = X
Now (X + Y) (X + Y ) (X +Z) __ =X(X + Z) __ =XX +XZ, by distributive law = 0 + XZ = XZ
(ii) XYZ + X Y Z + XY Z
=XZ (Y +Y ) + XY Z
=XZ + XY Z , as Y +Y = __ =X (Z +Y Z ) __ = X[(Z +Y). (Z + Z )], (By Rule 15 dual of distributive = X [(Z + Y). 1] = X (Z + Y) =X (Y + Z), by commutative law.
Math 123 Boolean Algebra = AB + A C + BC
= AB +A C + 1.BC as 1 = A + A
= AB +A C + (A + A ) BC
= AB +A C +ABC + A BC , by distributive law
=AB +ABC + A C + A BC, by commutative law __ = AB (1 + C) + A C (1 + B), AS 1 + X = 1 __ =AB + A C L.H.S. =R.H.S. __ (d) L.H.S. = (A +B) (A + C)( B + C)
=(AA + AC + BA + BC) ( B + C) __ =(0 + AC +BA + BC) ( B +C) __ =(AC + BA + BC ) (B + C) __ =[AC + B(A + C)] (B + C)
=ABC + ACC + BB (A + C) + BC (A + C)
=ABC + AC + B (A + C) + BC (A + C) __ = AC (B + 1) +B (A + C) (1 + C) __ = AC + B(A + C)
= AA + AC + B (A + C) as AA = 0
= A(A + C) + B(A + C) or by rule 19. __ = (A + B) (A + C) L.H.S. = R.H.S.
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,
AB + A B + A B + A B + ABC + AB C + AB C
The P roduct of Sum means that the sum of variables that are seperated by a multiplication sign. For example,
(A + B) (A + B) (A + B ) (A + B ),
(A + B + C)(A + B + C )(A + B + C)
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 (^0 0) A B __ 1 (^0 1) A B __ 1 1 0 AB 1 1 1 AB 1 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 __ __ 1 __ 0
Math 123 Boolean Algebra
Y = (A + B + C)(A + B + C )( A + B + C )(A + B + C )
(minterms)terms for which the output is i.e.,
X = A B C + A BC + AB C + ABC
DeMorgan‟s theorems form two new gates NAND and NOR gates. These gates are the most popular and most widely used logic gates. Since any logic circuit can be constructed using only NAND and NOR gates, they are often referred to as the Universal building blocks.
This NAND (or not AND) gate is an AND gate followed by a NOT circuit: The operation of the NAND gate is described by one of
NAND gate has two or more input signals but only one output signal. Any input must be high to get a high output NANDGae (a) Standard Symbol (^) (b) Logical meaning of NAND Gate
NAND- Gate truth Table 17
The NOR (or not OR) gate is an OR-gate followed by a NOT circuit. The operation of the NOR-gate is described by DeMorgan‟s theorem, which states that.
A + B = A. B The NOR gate has two or more input signals but only one output signal. All inputs must be low to get a high output. B A.B =A + B A.B A A.B =A + B B A
Math 123 Boolean Algebra NAND Gate ( c) Standard Symbol (d) Logical meaning of NAND Gate Fig. 6(C)(d)
Fig. 7: NAND and NOR Gates in Two - Level Networks Fig. 7
The OR gate and AND gates and invertors can be interconnected to form gatting or logic networks, in the switching theory, these are also called combinational networks. The Boolean algebra expression corresponding B A+B A A+B =A. B B A A+B =A. B