Professional Documents
Culture Documents
Boolean Algebra
Boolean Algebra
Commutative laws
X+Y =Y+X
X•Y =Y•X
1
2. Associative laws
X + (Y + Z) = (X + Y) + Z
X • (Y • Z) = (X • Y) • Z
3. Distributive laws
X • (Y + Z) = X•Y + X•Z
X + Y•Z = (X + Y) • (X + Z)
2
4. De Morgans laws
(X + Y) = X •Y
(X • Y) = X + Y
3
5. Laws of absorption
X + X•Y = X
X • (X + Y) = X
6. Laws of tautology
X+X =X
X•X =X
4
7. Law of complementation
X+X = 1
X •X = 0
8. Other identities
X+1 = 1
X+0 = X
X•1 = X
X•0 = 0 5
9. Involution law
(a) = a
6
Using Venn Diagrams highlighting Boolean operations
A·B
A B
A B
8
Derivation of some of laws
Distributive laws
X • (Y + Z) = X•Y + X•Z
2
1
X • (Y + Z) Expand bracket
X•Y +X•Z
1 2
9
X + Y•Z = (X + Y) • (X + Z)
TO SHOW THIS
PROVE (X Y) XY 1 AND (X Y) XY 0
THIS WILL SHOW THAT
(X+Y) IS THE COMPLEMENT OF X·Y
PROVING DE-MORGANS LAW
11
X ( X Y ) 1 ( X ( X Y ))
(X X) (X (X Y)) Expand brackets
XX 0 XY 0 X X X Y
(X XY) (X X Y )
X(1 Y) X(1 Y )
X X
=1
SO FAR WE HAVE SHOWN X (X Y ) 1
12
(X Y) X Y
BUT
(X Y) (X Y)(X Y) (X Y) X (X Y) Y
SUBSTITUTING
(X Y)(X Y) (X Y) X (X Y) Y X Y
FACTORISING GIVES
=1.1
=1
13
(X Y) X Y X(X Y) Y(X Y)
(X X)Y X(Y Y)
0Y X0
00
0
(X Y) XY 1 AND (X Y) XY 0
1+0 = 1 AND 1·0 = 0 OR 0+1 = 1 AND 0·1 = 0
THEREFORE (X + Y) = X·Y
14
Using a Venn Diagram we can show De Morgans law
(X + Y) = X •Y
X Y
15
X
X Y
16
Y
X Y
17
If we AND X and Y this represents the areas which are shaded on both of
previous Venn diagrams giving
X Y
18
Laws of absorption X + X•Y = X
X + X•Y = (X + X•Y)
= X(1 + Y)
= X(1)
=X
X • (X + Y) = X
X • (X + Y) EXPAND GIVES XX + XY
BUT XX = X SUBSTITUTING GIVES X + XY
= (X + XY)
= X(1 + Y) = X(1) = X
19
Using a Venn Diagram we can show the law of absorption
X Y
20
X is represented on the Venn Diagram (X ONLY TRUE)
X Y
21
To OR the two area we show this on the resultant Venn Diagram by
shading the common shaded areas in both diagrams where we have
X Y
23
Simplify A•B•C + A •B• C + A•B•C using the laws of Boolean
algebra
using associative law we have:-
= A•B•C + A •B(C + C)
= A•B•C + A •B(1)
and using distributive law we have
= A(B•C + B)
24
A(B•C + B)
BUT B = BB +BB + BC
WE HAVE A(BB + BC + BB +B C)
= A((B + B)(B + C))
= A((1)(B+C))
= A(B + C)
25