Complement of a set
Fix a universal set and every subset instantly carves into two pieces: the elements inside , and everything left over. That leftover piece is the complement, written , and it is one of the most-used ideas in the whole "Sets" chapter, because once is agreed upon, talking about "everything except " 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 complement splits cleanly into and , 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 and , the complement of is defined as
where: is the fixed universal set for the problem, is the subset whose complement is wanted, and (also written ) collects every element of that fails to belong to . It is nothing more than the familiar set difference , given its own name because it is used so constantly once 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 is the region inside but outside : , since every element of is either in or outside it. , since no element can simultaneously be inside and outside it. — taking the complement twice returns the original set, because "everything outside everything outside " is just again. and , the two extreme cases. for finite sets, which turns complement into a quick tool for counting problems.
De Morgan's laws connect complement to union and intersection:
where: and are subsets of the same universal set , 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
The goal of this derivation is to show, for any two subsets and of a universal set , that the set of elements lying outside is exactly the same set as the elements lying outside and outside at once, so that the single equation can be trusted for every choice of , and , not merely checked on one example.
Step 1. Take any element that belongs to . By the definition of complement, and .
Step 2. Unpack . An element fails to be in a union only if it fails to be in both pieces separately, so and .
Step 3. Since with , the definition of complement gives ; likewise with gives . Having both at once means . This shows every element of also lies in , so .
Step 4. Now run the argument the other way. Take any , so and , which means and . If were in it would have to be in or in , contradicting both facts, so , giving . This shows .
Step 5. With both inclusions established, the two sets contain exactly the same elements, so holds for every , , completing the proof. The mirror argument, swapping every "and" for "or" (and union for intersection) at each step, proves in exactly the same way.
Worked example
Let , and . Verify De Morgan's law for this pair of sets.
Step 1. Compute by combining every element that appears in either set: .
Step 2. Compute by removing these from : .
Step 3. Compute and separately. , and .
Step 4. Compute by keeping only the elements common to both lists: appear in each, so .
Step 5. Compare the two results: and match exactly, confirming for this example, exactly as the derivation guarantees. Answer: , equal to .
Competitive stretch
Using the same , and , check the second law . First, (the elements common to both), so . Next, — the same nine elements. Both sides equal , confirming the intersection form of De Morgan's law too.
Common traps
- Computing without a clearly stated universal set — the complement is meaningless until is fixed, and the same has different complements relative to different .
- 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 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 , just given a shorter name once 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 " is meaningless unless you say everything within what. Without bounds, "not in " could mean every number, every word, every object in the universe — an absurd and useless set. Fixing first turns the question into a well-defined one: the complement is only ever taken relative to the stated in the problem, and the same can have very different complements under two different choices of .
Is complement really the same thing as set difference?
Yes, exactly. by definition — there is no extra rule hiding inside "complement." The reason it gets its own name and symbol is convenience: once is fixed for an entire problem, writing is faster than repeatedly writing , and it makes identities like read more cleanly. If you ever forget what means, just mentally replace it with 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 (, the region covered by either circle) means being outside both circles at once — that is an intersection of the two "outside" regions, giving . Being outside an intersection (, the small overlap) means being outside at least one of the circles — that is a union of "outside" regions, giving . Picturing the Venn diagram, rather than memorising symbols, makes the flip automatic.