Brackets in Boolean ALgebra Distributive Law

$\begingroup$

What is the purpose of the brackets in all the examples I've seen of the distributive law? Why are there no brackets when distributing an AND term and there are when distributing an OR term? Could I write:

X * (Y + Z) = (X * Y) + (X * Z)?

eg of law. X * (Y + Z) = X * Y + X * Z
X + (Y * Z) = (X + Y) * (X + Z)

Note: I'm very new to boolean algebra

$\endgroup$ 0

1 Answer

$\begingroup$

The order of operations is * then +. So $X * Y + X * Z$ means $(X * Y) + (X * Z)$ but $X + Y * X + Z$ means $X + (Y * X) + Z$. That is why the parentheses are necessary in these statements of the laws: $$X * (Y + Z) = X * Y + X * Z$$ $$X + Y * Z = (X + Y) * (X + Z)$$ Sometimes we put in extra parentheses to emphasize the order of operations, as in $$X * (Y + Z) = (X * Y) + (X * Z)$$ $$X + (Y * Z) = (X + Y) * (X + Z)$$

$\endgroup$

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like