Complement of a set

Fix a universal set UU and every subset AA instantly carves UU into two pieces: the elements inside AA, and everything left over. That leftover piece is the complement, written A′A', and it is one of the most-used ideas in the whole "Sets" chapter, because once UU is agreed upon, talking about "everything except AA" becomes a single symbol instead of a clumsy sentence. This article — the closing topic of Unit I's "Sets" chapter — builds the complement from the set difference you already know, collects the handful of properties every question expects you to quote on sight, and proves De Morgan's laws, which tell you exactly what happens to a complement when it meets a union or an intersection. The same reasoning resurfaces later whenever set language describes combinations of events, so the goal here is fluency, not just recognition.

The core insight

The complement A′=U−AA' = U - A splits UU cleanly into AA and A′A', and De Morgan's laws say a complement distributed over a union or intersection flips that operation to the other one.

The core idea

Given a universal set UU and A⊆UA \subseteq U, the complement of AA is defined as

A′=U−A={x∈U:x∉A}A' = U - A = \{x \in U : x \notin A\}

where: UU is the fixed universal set for the problem, AA is the subset whose complement is wanted, and A′A' (also written AcA^c) collects every element of UU that fails to belong to AA. It is nothing more than the familiar set difference U−AU - A, given its own name because it is used so constantly once UU has been fixed for a question. A short list of properties follows directly from this definition, and each is easy to see on a Venn diagram where A′A' is the region inside UU but outside AA: A∪A′=UA \cup A' = U, since every element of UU is either in AA or outside it. A∩A′=∅A \cap A' = \varnothing, since no element can simultaneously be inside AA and outside it. (A′)′=A(A')' = A — taking the complement twice returns the original set, because "everything outside everything outside AA" is just AA again. U′=∅U' = \varnothing and ∅′=U\varnothing' = U, the two extreme cases. n(A)+n(A′)=n(U)n(A) + n(A') = n(U) for finite sets, which turns complement into a quick tool for counting problems.

Figure
A rectangle for the universal set with a circle for set A inside it and the region outside the circle shaded to mark the complement of A
U A A prime shaded region outside A A union A prime equals U, and A intersection A prime is empty

De Morgan's laws connect complement to union and intersection:

(A∪B)′=A′∩B′(A \cup B)' = A' \cap B'
(A∩B)′=A′∪B′(A \cap B)' = A' \cup B'

where: AA and BB are subsets of the same universal set UU, and both statements say that when a complement is pushed inward past a union or intersection sign, that operation flips to the other one. In words, the complement of a union is the intersection of the complements, and the complement of an intersection is the union of the complements.

Derivation of De Morgan's law (A∪B)′=A′∩B′(A \cup B)' = A' \cap B'

Derivation ADe Morgan's law for the complement of a union

The goal of this derivation is to show, for any two subsets AA and BB of a universal set UU, that the set of elements lying outside A∪BA \cup B is exactly the same set as the elements lying outside AA and outside BB at once, so that the single equation (A∪B)′=A′∩B′(A \cup B)' = A' \cap B' can be trusted for every choice of AA, BB and UU, not merely checked on one example.

Step 1. Take any element xx that belongs to (A∪B)′(A \cup B)'. By the definition of complement, x∈Ux \in U and x∉A∪Bx \notin A \cup B.

Step 2. Unpack x∉A∪Bx \notin A \cup B. An element fails to be in a union only if it fails to be in both pieces separately, so x∉Ax \notin A and x∉Bx \notin B.

Step 3. Since x∈Ux \in U with x∉Ax \notin A, the definition of complement gives x∈A′x \in A'; likewise x∈Ux \in U with x∉Bx \notin B gives x∈B′x \in B'. Having both at once means x∈A′∩B′x \in A' \cap B'. This shows every element of (A∪B)′(A \cup B)' also lies in A′∩B′A' \cap B', so (A∪B)′⊆A′∩B′(A \cup B)' \subseteq A' \cap B'.

Step 4. Now run the argument the other way. Take any x∈A′∩B′x \in A' \cap B', so x∈A′x \in A' and x∈B′x \in B', which means x∉Ax \notin A and x∉Bx \notin B. If xx were in A∪BA \cup B it would have to be in AA or in BB, contradicting both facts, so x∉A∪Bx \notin A \cup B, giving x∈(A∪B)′x \in (A \cup B)'. This shows A′∩B′⊆(A∪B)′A' \cap B' \subseteq (A \cup B)'.

Step 5. With both inclusions established, the two sets contain exactly the same elements, so (A∪B)′=A′∩B′(A \cup B)' = A' \cap B' holds for every AA, B⊆UB \subseteq U, completing the proof. The mirror argument, swapping every "and" for "or" (and union for intersection) at each step, proves (A∩B)′=A′∪B′(A \cap B)' = A' \cup B' in exactly the same way.

Worked example

Let U={1,2,…,12}U = \{1,2,\dots,12\}, A={1,2,3,4,5,6}A = \{1,2,3,4,5,6\} and B={4,5,6,7,8,9}B = \{4,5,6,7,8,9\}. Verify De Morgan's law (A∪B)′=A′∩B′(A \cup B)' = A' \cap B' for this pair of sets.

Step 1. Compute A∪BA \cup B by combining every element that appears in either set: A∪B={1,2,3,4,5,6,7,8,9}A \cup B = \{1,2,3,4,5,6,7,8,9\}.

Step 2. Compute (A∪B)′(A \cup B)' by removing these from U={1,…,12}U = \{1,\dots,12\}: (A∪B)′={10,11,12}(A \cup B)' = \{10, 11, 12\}.

Step 3. Compute A′A' and B′B' separately. A′=U−A={7,8,9,10,11,12}A' = U - A = \{7,8,9,10,11,12\}, and B′=U−B={1,2,3,10,11,12}B' = U - B = \{1,2,3,10,11,12\}.

Step 4. Compute A′∩B′A' \cap B' by keeping only the elements common to both lists: 10,11,1210, 11, 12 appear in each, so A′∩B′={10,11,12}A' \cap B' = \{10,11,12\}.

Step 5. Compare the two results: (A∪B)′={10,11,12}(A \cup B)' = \{10,11,12\} and A′∩B′={10,11,12}A' \cap B' = \{10,11,12\} match exactly, confirming (A∪B)′=A′∩B′(A \cup B)' = A' \cap B' for this example, exactly as the derivation guarantees. Answer: A′∩B′={10,11,12}A' \cap B' = \{10, 11, 12\}, equal to (A∪B)′(A \cup B)'.

Competitive stretch

Using the same UU, AA and BB, check the second law (A∩B)′=A′∪B′(A \cap B)' = A' \cup B'. First, A∩B={4,5,6}A \cap B = \{4,5,6\} (the elements common to both), so (A∩B)′=U−{4,5,6}={1,2,3,7,8,9,10,11,12}(A \cap B)' = U - \{4,5,6\} = \{1,2,3,7,8,9,10,11,12\}. Next, A′∪B′={7,8,9,10,11,12}∪{1,2,3,10,11,12}={1,2,3,7,8,9,10,11,12}A' \cup B' = \{7,8,9,10,11,12\} \cup \{1,2,3,10,11,12\} = \{1,2,3,7,8,9,10,11,12\} — the same nine elements. Both sides equal {1,2,3,7,8,9,10,11,12}\{1,2,3,7,8,9,10,11,12\}, confirming the intersection form of De Morgan's law too.

Common traps

  • Computing A′A' without a clearly stated universal set — the complement is meaningless until UU is fixed, and the same AA has different complements relative to different UU.
  • Mixing up the two De Morgan's laws — the operation always flips (union becomes intersection, and vice versa) once the complement is pushed through.
  • Forgetting (A′)′=A(A')' = A and treating a double complement as some new set instead of the original one.
  • Thinking complement is a different operation from set difference — it is exactly U−AU - A, just given a shorter name once UU is fixed.
  • Quoting De Morgan's law from memory in only one direction without checking which operation, union or intersection, the actual problem is distributing a complement over.

Ask the tutor: Want to verify De Morgan's laws on a set of your own, or check a complement calculation relative to a given universal set?

Why do we even need a universal set to define a complement?

Because "everything not in AA" is meaningless unless you say everything within what. Without bounds, "not in AA" could mean every number, every word, every object in the universe — an absurd and useless set. Fixing UU first turns the question into a well-defined one: the complement is only ever taken relative to the UU stated in the problem, and the same AA can have very different complements under two different choices of UU.

Is complement really the same thing as set difference?

Yes, exactly. A′=U−AA' = U - A by definition — there is no extra rule hiding inside "complement." The reason it gets its own name and symbol is convenience: once UU is fixed for an entire problem, writing A′A' is faster than repeatedly writing U−AU - A, and it makes identities like A∪A′=UA \cup A' = U read more cleanly. If you ever forget what A′A' means, just mentally replace it with U−AU - A and proceed as usual.

How do I remember which way De Morgan's law flips the operation?

Think of the complement as "outside." Being outside a union (A∪BA \cup B, the region covered by either circle) means being outside both circles at once — that is an intersection of the two "outside" regions, giving (A∪B)′=A′∩B′(A \cup B)' = A' \cap B'. Being outside an intersection (A∩BA \cap B, the small overlap) means being outside at least one of the circles — that is a union of "outside" regions, giving (A∩B)′=A′∪B′(A \cap B)' = A' \cup B'. Picturing the Venn diagram, rather than memorising symbols, makes the flip automatic.

Before this

Where this leads