Brackets in Boolean ALgebra Distributive Law

2.8k Views Asked by At

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

1

There are 1 best solutions below

0
On BEST ANSWER

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)$$