NIMCET, GATE, CUET & CBSE test series are live — start practicing free
syllabuzAI

Set Operations and Laws of Algebra of Sets | NIMCET

Learn union, intersection, difference, complement and symmetric difference of sets, plus the commutative, associative, distributive and De Morgan laws, with NIMCET examples.

5 min read

SP

SHIVAM PRADHAN

Updated 25 October 2026

On this page

Quick answer: The main set operations are union A∪BA \cup B (elements in A or B), intersection A∩BA \cap B (in both), difference A−BA - B (in A but not B), complement A′A' (in U but not A) and symmetric difference AΔB=(A−B)∪(B−A)A \Delta B = (A - B) \cup (B - A). The most tested laws are De Morgan's laws: (A∪B)′=A′∩B′(A \cup B)' = A' \cap B' and (A∩B)′=A′∪B′(A \cap B)' = A' \cup B'.

This article builds on sets, subsets and power sets.

The operations

OperationNotationDefinition
UnionA∪BA \cup B{x:x∈A or x∈B}\{x : x \in A \text{ or } x \in B\}
IntersectionA∩BA \cap B{x:x∈A and x∈B}\{x : x \in A \text{ and } x \in B\}
DifferenceA−BA - B{x:x∈A,x∉B}\{x : x \in A, x \notin B\}
ComplementA′A'{x∈U:x∉A}\{x \in U : x \notin A\}
Symmetric differenceAΔBA \Delta B(A−B)∪(B−A)(A - B) \cup (B - A)

Two sets are disjoint if A∩B=ϕA \cap B = \phi.

A quick example

Let U={1,2,…,8}U = \{1, 2, \ldots, 8\}, A={1,2,3,4}A = \{1, 2, 3, 4\} and B={3,4,5,6}B = \{3, 4, 5, 6\}.

ExpressionResult
A∪BA \cup B{1,2,3,4,5,6}\{1, 2, 3, 4, 5, 6\}
A∩BA \cap B{3,4}\{3, 4\}
A−BA - B{1,2}\{1, 2\}
B−AB - A{5,6}\{5, 6\}
AΔBA \Delta B{1,2,5,6}\{1, 2, 5, 6\}
A′A'{5,6,7,8}\{5, 6, 7, 8\}

Laws of the algebra of sets

LawUnion formIntersection form
IdempotentA∪A=AA \cup A = AA∩A=AA \cap A = A
IdentityA∪ϕ=AA \cup \phi = AA∩U=AA \cap U = A
DominationA∪U=UA \cup U = UA∩ϕ=ϕA \cap \phi = \phi
CommutativeA∪B=B∪AA \cup B = B \cup AA∩B=B∩AA \cap B = B \cap A
Associative(A∪B)∪C=A∪(B∪C)(A \cup B) \cup C = A \cup (B \cup C)(A∩B)∩C=A∩(B∩C)(A \cap B) \cap C = A \cap (B \cap C)
DistributiveA∪(B∩C)=(A∪B)∩(A∪C)A \cup (B \cap C) = (A \cup B) \cap (A \cup C)A∩(B∪C)=(A∩B)∪(A∩C)A \cap (B \cup C) = (A \cap B) \cup (A \cap C)
ComplementA∪A′=UA \cup A' = UA∩A′=ϕA \cap A' = \phi
De Morgan(A∪B)′=A′∩B′(A \cup B)' = A' \cap B'(A∩B)′=A′∪B′(A \cap B)' = A' \cup B'
AbsorptionA∪(A∩B)=AA \cup (A \cap B) = AA∩(A∪B)=AA \cap (A \cup B) = A

Also: (A′)′=A(A')' = A, U′=ϕU' = \phi and ϕ′=U\phi' = U.

Useful identities for difference

Identity
A−B=A∩B′A - B = A \cap B'
A−(B∪C)=(A−B)∩(A−C)A - (B \cup C) = (A - B) \cap (A - C)
A−(B∩C)=(A−B)∪(A−C)A - (B \cap C) = (A - B) \cup (A - C)
AΔB=(A∪B)−(A∩B)A \Delta B = (A \cup B) - (A \cap B)

The first identity is the most useful: it turns every difference into an intersection, so the other laws apply directly.

Properties of symmetric difference

  • Commutative: AΔB=BΔAA \Delta B = B \Delta A.
  • Associative: (AΔB)ΔC=AΔ(BΔC)(A \Delta B) \Delta C = A \Delta (B \Delta C).
  • AΔϕ=AA \Delta \phi = A and AΔA=ϕA \Delta A = \phi.
  • n(AΔB)=n(A)+n(B)−2n(A∩B)n(A \Delta B) = n(A) + n(B) - 2n(A \cap B).

Worked examples

Example 1: simplify using laws

Simplify (A∪B)∩(A∪B′)(A \cup B) \cap (A \cup B').

By the distributive law, this is A∪(B∩B′)=A∪ϕ=AA \cup (B \cap B') = A \cup \phi = A.

Example 2: prove a difference identity

Show that A−(A−B)=A∩BA - (A - B) = A \cap B.

Step 1: A−(A−B)=A∩(A∩B′)′A - (A - B) = A \cap (A \cap B')'.

Step 2: By De Morgan, (A∩B′)′=A′∪B(A \cap B')' = A' \cup B.

Step 3: A∩(A′∪B)=(A∩A′)∪(A∩B)=ϕ∪(A∩B)=A∩BA \cap (A' \cup B) = (A \cap A') \cup (A \cap B) = \phi \cup (A \cap B) = A \cap B.

Example 3: symmetric difference count

If n(A)=12n(A) = 12, n(B)=9n(B) = 9 and n(A∩B)=4n(A \cap B) = 4, find n(AΔB)n(A \Delta B).

12+9−2⋅4=1312 + 9 - 2 \cdot 4 = 13.

Example 4: when is A ∪ B = A ∩ B?

This happens only when A=BA = B. If some element were in A but not B, it would be in the union but not the intersection.

Summary table

IdeaKey result
DifferenceA−B=A∩B′A - B = A \cap B'
De MorganComplement swaps ∪ and ∩
Symmetric difference(A∪B)−(A∩B)(A \cup B) - (A \cap B)
Count of AΔBA \Delta Bn(A)+n(B)−2n(A∩B)n(A) + n(B) - 2n(A \cap B)
A∪B=A∩BA \cup B = A \cap BOnly if A=BA = B

Exam tips

  • Replace A−BA - B by A∩B′A \cap B' before simplifying.
  • For identity questions, test with small sets or a Venn diagram to rule out wrong options quickly.
  • Learn De Morgan's laws in words: "the complement of a union is the intersection of complements".

Next, see Venn diagrams and the inclusion-exclusion principle or the NIMCET Set Theory chapter.

Common mistakes

  • Treating A−BA - B and B−AB - A as the same set.
  • Writing (A∪B)′=A′∪B′(A \cup B)' = A' \cup B'; the operation must switch.
  • Forgetting that the complement depends on the universal set.
  • Confusing disjoint sets with equal-size sets.

Frequently Asked Questions

What is De Morgan's law in sets?

(A ∪ B)′ = A′ ∩ B′ and (A ∩ B)′ = A′ ∪ B′. Taking a complement switches union and intersection.

What is the symmetric difference of two sets?

A Δ B is the set of elements in exactly one of A and B. It equals (A − B) ∪ (B − A).

How is A − B written using intersection?

A − B = A ∩ B′.

What does it mean for two sets to be disjoint?

Two sets are disjoint if they have no common element, that is, A ∩ B = φ.

What is the distributive law for sets?

A ∩ (B ∪ C) = (A ∩ B) ∪ (A ∩ C), and A ∪ (B ∩ C) = (A ∪ B) ∩ (A ∪ C).

Concept Check

MEDIUM

Find the volume of the solid generated by revolving the region bounded by y=xy = \sqrt{x}, the x-axis, and x=4x = 4 about the x-axis (Disk Method).

Suggested for you