Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools


Venn Diagrams: Two Sets Laws and Complex Identities


Visual proofs — both diagrams should highlight the same regions

Jump to
IdentityA ∪ A = A
A ∪ A
UAB
=
A
UAB
✓ Regions match — identity holds
Theme
ColorOpacity0.85
1 / 26
Explanation

Idempotent (Union)

A ∪ A = A

Definition

Uniting a set with itself yields the same set.







Key Terms


  • Set identity — an equation between two set expressions that holds for all sets
  • Idempotent lawAA=AA \cup A = A, AA=AA \cap A = A
  • Commutative lawAB=BAA \cup B = B \cup A, AB=BAA \cap B = B \cap A
  • Identity element\emptyset for union, UU for intersection
  • AnnihilatorUU for union, \emptyset for intersection
  • Complement lawAA=UA \cup A' = U, AA=A \cap A' = \emptyset
  • Double complement(A)=A(A')' = A
  • De Morgan's laws(AB)=AB(A \cup B)' = A' \cap B', (AB)=AB(A \cap B)' = A' \cup B'
  • Absorption lawA(AB)=AA \cup (A \cap B) = A, A(AB)=AA \cap (A \cup B) = A
  • Visual proof — two diagrams shading the same regions confirm an identity


Getting Started with the Explorer

Open the explorer and you'll see two miniature Venn diagrams side by side, separated by an equals sign. The left diagram shades the regions for the left-hand side of an identity; the right diagram shades the regions for the right-hand side. When the two shaded patterns match, the identity holds — and a green badge below the diagrams confirms it.

The current identity is shown as a badge above the diagrams (e.g. AA=AA \cup A = A). Each side has a label showing the specific expression it represents. The first identity loads automatically, so you can start interacting immediately.

The interface has three control areas: the category tabs at the top, the formula buttons below them, and the Jump to dropdown on the right. Underneath the diagrams are theme controls and a Previous/Next navigation strip with a counter showing your position among the 27 identities.

Navigating Category Tabs

The eight category tabs group the 27 laws by structural type:

Idempotent — laws where combining a set with itself returns the set
Commutative — order does not matter for union or intersection
Identity & Annihilation — special roles of \emptyset and UU
Complement — laws involving AA', including the double complement
De Morgan's Laws — the two complement-distribution laws
AbsorptionAA absorbs ABA \cap B in a union, and ABA \cup B in an intersection
Difference — equivalent forms for ABA \setminus B and the symmetric difference
Compound Complements — complements of mixed expressions like (AB)(A \cup B')'

Click a tab to switch the row of formula buttons below it. The current identity stays selected across tab switches, so you can browse other groups without losing context.

Selecting an Identity

Two ways to pick a law. The formula buttons under the active tab display every identity in that category — each button shows the full equation (e.g. AA=AA \cup A = A, (AB)=AB(A \cup B)' = A' \cap B'). Click any one to load it into the diagrams.

The Jump to dropdown lists all 27 identities across every category in a single menu, grouped by tab. Useful when you know the formula but not which group it belongs to.

When you select an identity, four things update simultaneously:

• The badge above the diagrams shows the new equation
• The left diagram re-shades for the new LHS expression
• The right diagram re-shades for the new RHS expression
• The match indicator below confirms whether the two patterns agree

Reading the Side-by-Side Proof

Each side of the equals sign is a complete two-circle Venn diagram with four disjoint regions: outside both, only in AA, only in BB, and the intersection. The shaded combination of these four regions represents the set described by the expression.

A set identity asserts that the LHS and RHS pick out the same regions. The explorer evaluates both expressions on all four combinations of AA and BB membership and shades the diagrams accordingly. If the same regions are shaded on both sides, the two set expressions are equal as sets — that is the geometric content of the identity.

For example, selecting (AB)=AB(A \cup B)' = A' \cap B' produces two diagrams that each shade only the region outside both circles. The visual match is the proof.

The Match Indicator

Below the two diagrams, a colored badge reports whether the regions agree:

Green badge with a checkmark — the two predicates produce the same truth value on all four membership combinations, meaning the identity holds for any choice of AA and BB
Red badge with a cross — the regions differ, meaning the equation is not a valid identity

For every law in the explorer's catalog, the badge is green — the catalog only includes valid identities. The match indicator is a verification, not a test of the user's input. Its purpose is to make the equality between LHS and RHS visible: the equation is true because the two shaded patterns are identical, not just because a textbook says so.

This turns the explorer into a tool for visual reasoning rather than rote memorization.

Theme Controls and Navigation

The Theme panel below the diagrams customizes shading appearance:

Color picker — change the hue of the shaded regions
Opacity slider — adjust transparency from 1.001.00 (opaque) to 0.000.00 (invisible), with the current value shown next to the slider
Reset — restore the default blue at 0.850.85 opacity

Theme changes persist across identity selections, so adjustments apply to every law you visit afterward.

The navigation strip at the bottom has Previous and Next buttons that cycle through all 27 identities in the order defined by the category groups, with a counter showing position. Navigation wraps around — pressing Previous on the first identity jumps to the last. The active tab and active formula button update automatically as you advance, so you always know where you are in the catalog.

What is a Set Identity?

A set identity is an equation between two set expressions that holds for every possible choice of the sets involved. The equation AB=BAA \cup B = B \cup A is an identity because it is true regardless of what AA and BB are. By contrast, AB=AA \cup B = A is not an identity — it holds only when BAB \subseteq A.

Set identities form the algebraic backbone of set theory. They let expressions be rewritten without changing their meaning, much like algebraic identities for numbers (a+b=b+aa + b = b + a, a(b+c)=ab+aca(b + c) = ab + ac). Skilled use of set identities is what turns set-theoretic reasoning from case-by-case argument into mechanical manipulation.

For the full algebraic catalog, including identities involving three or more sets, see set laws and identities.

Why Do Visual Proofs Work?

A two-circle Venn diagram divides the universe into four mutually exclusive regions, and every two-set expression assigns each region one of two states: in or out. Two expressions are equal as sets if and only if they assign the same state to every region.

This means a set identity in two variables can be verified by checking just four cases — the four possible combinations of "is in AA" and "is in BB". The explorer performs this check by evaluating each expression on all four combinations and shading the regions where the result is true. If the two diagrams match, the identity is verified.

This is not just a heuristic — it is a complete decision procedure for two-set identities. For identities involving more sets, the same principle applies with more regions (2n2^n for nn sets), but the visual approach becomes harder to read past three sets. See venn diagrams for the multi-set generalization.

De Morgan's Laws and Their Mirrors

Two of the most-used identities are De Morgan's laws:

(AB)=AB(A \cup B)' = A' \cap B'


(AB)=AB(A \cap B)' = A' \cup B'


The complement of a union equals the intersection of the complements; the complement of an intersection equals the union of the complements. Each law converts a complement of a combined set into a combination of complements.

The Compound Complements category in the explorer derives several mirrored identities from De Morgan's plus the double-complement law (A)=A(A')' = A. For example, (AB)=AB(A \cap B')' = A' \cup B — useful in propositional logic, where it corresponds to the implication ABA \to B. Each of the four compound complements has a matching dual obtained by swapping AA and BB or by complementing both sides.

For the algebraic proofs and the general nn-set form, see De Morgan's laws.

Related Concepts and Tools

Two-Set Basic Identities — the companion explorer for shading individual operations (union, intersection, complement, differences) rather than identity equations.

Set Operations — formal definitions of union, intersection, complement, difference, and symmetric difference.

Venn Diagrams — overview of one-set, two-set, and three-set diagrams.

De Morgan's Laws — algebraic proofs and the nn-set generalization.

Set Laws and Identities — the full algebraic catalog of laws on sets.

Three-Set Venn Diagram — extends visual proof techniques to three overlapping sets.

Set Theory Definitions — glossary of foundational terms used throughout set algebra.