Reduce a logic expression like AB+ABAB + A\overline{B} and the whole answer turns out to be just AA. Boolean algebra is the system that lets you make that kind of collapse safely, using laws like complement, distributive, absorption, and De Morgan's theorems.

In one common notation, x+yx + y means OR, xyxy means AND, and x\overline{x} means NOT xx. Some books write NOT as xx', but the underlying rules are the same.

The Laws And What Each Symbol Means

Ordinary algebra works with numbers. Boolean algebra works with statements or binary variables that can take only two values: true/false or 1/01/0. Here are the laws that appear most often when you simplify an expression.

Identity laws

x+0=x,x1=xx + 0 = x, \qquad x \cdot 1 = x

Adding false changes nothing, and AND with true changes nothing.

Null laws

x+1=1,x0=0x + 1 = 1, \qquad x \cdot 0 = 0

If an OR already contains true, the whole result is true. If an AND contains false, the whole result is false.

Idempotent laws

x+x=x,xx=xx + x = x, \qquad x \cdot x = x

Complement laws

x+x=1,xx=0x + \overline{x} = 1, \qquad x \cdot \overline{x} = 0

A variable and its opposite cover every case in OR, but never overlap in AND.

Commutative and associative laws

x+y=y+x,xy=yxx + y = y + x, \qquad xy = yx (x+y)+z=x+(y+z),(xy)z=x(yz)(x + y) + z = x + (y + z), \qquad (xy)z = x(yz)

Distributive laws

x(y+z)=xy+xzx(y + z) = xy + xz x+yz=(x+y)(x+z)x + yz = (x + y)(x + z)

The second form often feels less familiar, but it is a standard Boolean identity and shows up in factoring.

Absorption laws

x+xy=x,x(x+y)=xx + xy = x, \qquad x(x + y) = x

De Morgan's theorems

x+y=xy,xy=x+y\overline{x + y} = \overline{x}\,\overline{y}, \qquad \overline{xy} = \overline{x} + \overline{y}

When NOT passes through parentheses, OR and AND switch roles.

Why These Laws Hold: The Two-Value Reason

Every Boolean law is true for one reason: each variable can only be 00 or 11, so you can check a law by testing both cases.

Take the idempotent law x+x=xx + x = x. If x=1x = 1, then 1+1=11 + 1 = 1 (OR of true with true is true). If x=0x = 0, then 0+0=00 + 0 = 0. Both cases match xx, so the law holds. This is also why x+x=2xx + x = 2x from ordinary algebra is meaningless here: there is no "22" in a system with only two values.

The same two-case reasoning explains the complement law. Whatever xx is, exactly one of xx and x\overline{x} equals 11. So x+xx + \overline{x} always contains a true term, giving 11, while xxx \cdot \overline{x} always contains a false term, giving 00. Once you see that a law is just an exhaustive check over 00 and 11, the whole table stops feeling like memorization.

Worked Example: Simplify AB+ABAB + A\overline{B}

Start with

F=AB+ABF = AB + A\overline{B}

Factor out the shared AA:

F=A(B+B)F = A(B + \overline{B})

Now use the complement law:

F=A1F = A \cdot 1

Then use the identity law:

F=AF = A

So AB+AB=AAB + A\overline{B} = A. Intuitively, if A=1A = 1, then either B=1B = 1 or B=1\overline{B} = 1, so one term must be true. If A=0A = 0, both terms are false. The whole expression depends only on AA.

Practice: Try It Yourself

Simplify (A+B)(A+B)(A + B)(A + \overline{B}) using the laws above. Expect it to collapse more than it first appears.

Check your work: distribute to get AA+AB+BA+BBAA + A\overline{B} + BA + B\overline{B}. Then AA=AAA = A, BB=0B\overline{B} = 0, and the rest factors back down. The result simplifies to AA. You can confirm it by building a truth table and checking that the simplified form matches every row.

Watch These Traps When Simplifying

One common trap is importing ordinary algebra habits. For example, x+x=2xx + x = 2x is not a Boolean rule; the correct result is xx.

Another trap is applying a law without checking the notation. In many texts, ++ means OR, not arithmetic addition, and writing variables next to each other means AND.

Students also misuse De Morgan's theorems by negating each variable but forgetting to switch OR and AND. Both parts matter.

Where Boolean Algebra Is Used

Boolean algebra is central in digital logic, where variables represent on/off or true/false states. It is used to simplify circuit designs, write cleaner logical conditions in software, and reason about search filters or database queries.

If the variables are not binary or the operations are ordinary arithmetic, Boolean laws do not apply directly. The two-value setting is the condition that makes the whole system work.

Frequently Asked Questions

What is Boolean algebra used for?
Boolean algebra is the system used to combine and simplify true/false expressions. It works with binary variables that take only two values, true or false, one or zero. Laws like the complement, distributive, absorption, and De Morgan's theorems let you reduce a long logic expression to a shorter equivalent one, which is central to digital logic and circuit simplification.
Why does x plus x equal x in Boolean algebra?
This is the idempotent law. In Boolean algebra, plus means OR, and repeating a condition does not create a new outcome: if a switch is already on, saying on OR on changes nothing. A common mistake is importing ordinary algebra habits and writing x plus x equals 2x, which is not a Boolean rule.
What do De Morgan's theorems say?
De Morgan's theorems tell you how a negation moves across OR and AND. The complement of x OR y equals NOT x AND NOT y, and the complement of x AND y equals NOT x OR NOT y. In other words, when NOT passes through parentheses, OR and AND switch roles. They are essential when simplifying expressions with negated groups.
How do you simplify a Boolean expression step by step?
Look for shared factors first, then apply the standard laws. For example, AB plus A NOT-B factors into A times the quantity B OR NOT-B. The complement law says B OR NOT-B equals one, and the identity law says A AND one equals A, so the whole expression reduces to A. Factoring plus complement and identity laws handles many textbook simplifications.
What is the absorption law in Boolean algebra?
The absorption law states that x OR x AND y equals x, and x AND the quantity x OR y equals x. It is especially useful when an expression looks longer than it really is, because whole terms can be absorbed and disappear. Spotting absorption opportunities is one of the fastest ways to shorten a Boolean expression.

Need help with a problem?

Upload your question and get a verified, step-by-step solution in seconds.

Open GPAI Solver →