How Do Brackets Work in Boolean Algebra’s Distributive Laws?
At a glance
- 1. Read the operators
Treat + as OR and juxtaposition as AND; parentheses group the expression they contain.
- 2. Distribute across a sum
Multiply an outside term into each term inside parentheses: A(B + C) = AB + AC.
- 3. Use the dual law
An OR outside a product can be distributed as A + BC = (A + B)(A + C).
- 4. Simplify carefully
Apply Boolean identities such as AA = A and A + AB = A after expanding.
Try it: Boolean simplifier calculator
In Boolean algebra, brackets (parentheses) show which operations belong together. The distributive laws tell you when you can remove or introduce brackets without changing the expression’s value. The main thing to watch is that Boolean algebra has two distributive laws, one for each operator.
Here, means OR, and writing variables next to each other means AND. For example, means AND . Variables take values 0 or 1.
The two distributive laws
AND distributes over OR in the familiar way:
Read the left side as “ AND ( OR ).” The right side says “( AND ) OR ( AND ).”
Boolean algebra also has the dual distributive law:
This is often less familiar from ordinary arithmetic, but it is valid for Boolean values. Together, the laws can be written as:
| Form before distributing | Equivalent form |
|---|---|
You can also use each equality in reverse to factor an expression and add brackets. For example, can be written as .
How to distribute with brackets
Use this method when expanding an expression:
- Identify the operator outside the parentheses.
- Apply the matching distributive law to every term inside.
- Keep the original operators in the correct places.
- Simplify using Boolean identities, if needed.
For instance, in , the outside operation is AND, so multiply into both terms: . In , the outside operation is OR, so use the dual law: .
Parentheses are particularly important when an expression has several operations. Under the usual precedence convention, AND is evaluated before OR, so means . The brackets make that grouping explicit. If you mean “OR first, then AND,” write .
Worked example: simplify a bracketed expression
Simplify . Distribute each term in the first bracket across the second:
The second line uses the idempotent law . In the last line, and , which follow from the absorption law . Thus, the expression with two brackets has the same value as .
You can check the result by considering . If , both expressions equal 1. If , the left side becomes , and so does the right side. This confirms the identity for both possible values of .
Common mistakes
- Using the arithmetic rule for every case. The law resembles ordinary multiplication over addition. But Boolean algebra also has ; it is not a mistake that this rule looks different from ordinary arithmetic.
- Dropping a term while distributing. In , the must multiply both and . The result is , not .
- Changing the grouping. and are generally different. For , , and , the first equals 1 while the second equals 0.
- Treating Boolean addition like ordinary addition. In Boolean algebra, because is OR. Also, and .
- Stopping before simplification. Expanding is only one step. Identities such as and can make the final expression much shorter.
When unsure whether a bracket manipulation is valid, substitute 0 and 1 for the variables or compare truth tables. Every valid Boolean identity must give the same output for every input combination.
References
- Digital Design: With an Introduction to the Verilog HDL, VHDL, and SystemVerilog, M. Morris Mano and Michael D. Ciletti
Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.