Reputation: 1158
I have the following problem in my assignment:
"Verify, using Boolean algebra, the following equality:
NOT((A AND NOT B) OR (NOT A AND B)) == ((A AND B) OR (NOT A AND NOT B)). "
I am able to do it with Karnaugh Maps and Truth tables, but I'm stuck on the formal procedure using Boolean Algebra.
Thanks in advance for your kind help!
Upvotes: 0
Views: 230
Reputation: 1158
I figured it out on my own:
Steps:
~((A AND ~B) AND (~A AND B)) .... Original Eqn.
((~A OR ~~B) AND (~~A OR ~B)) .... DeMorgan's Law
((~A OR B ) AND (A OR ~B) .... Elimination of double negation
Introducing mathematical symbols as it makes it a bit clearer in my opinion
(~A (~B + A) * B (~B + A) .... "Factor out" (~A * B) and carry out multiplication
(~A*~B)+(~AA)+(B~B)+(B*A) .... "Multiply out the terms"
(~A*~B) + 1 + 1 + (B*A) .... Excluded middle
(~A*~B) + (A*B) .... Required Answer
Upvotes: 1
Reputation: 61
Using DeMorgan's laws (http://www.ask-math.com/de-morgans-law.html) we can simplify down the left side:
Next we use the Product of Sums to get:
(!A and A) or (B and A) or (!A and !B) or (B and !B)
Since (!A and A) is false and (B and !B) is false we reduce to:
(B and A) or (!A and !B).
This matches the right side of the equation.
Upvotes: 3