How Do You Simplify This Boolean Expression Using DeMorgan's Law?

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 reply · 5K views
genu
Messages
22
Reaction score
0

Homework Statement



I'm trying to understand an example in the book. They're simplifying the following expression:

[tex] S=z \oplus (x \oplus y)[/tex]
[tex]=z'(xy'+x'y)+z(xy'+x'y)'[/tex]
I don't get how they go to this from the above
[tex]=z'(xy'+x'y)+z(xy+x'y')[/tex]
[tex]=xy'z'+x'yz'+xyz+x'y'z[/tex]

Homework Equations



DeMorgan law: (x+y)' = x'y'

The Attempt at a Solution


By DeMorgan's law, negating that last term should give z(z'y'*xy)
 
Last edited:
Physics news on Phys.org
Draw a truth table for X XOR Y, and then put an extra output that is NOT X XOR Y, and you should see that anything that isn't x'y + xy' is x'y' + xy.

*Edit: An explanation

DeMorgan law: (x+y)' = x'y'

You need to use both of DeMorgans laws in this case:

1. (x+y)' = x'y'
2. (xy)' = x' + y'

You have [xy' + x'y]'. You need to think of it as [xy']' + [x'y]'. This becomes [x'+y''] + [x''+y'] by 2. You need to think of as [x+y']' + [x'+y]' and then as [(x+y') + (x'+y)]'. This becomes (x+y')'(x'+y)' by 1. Simplify a bit and it becomes (x'+y)(x+y') which becomes x'x + x'y' + xy + yy' = 0 + x'y' + xy + 0 = x'y' + xy.

The truth table is a quick way (in this instance) of verifying the math.
 
Last edited: