Intuition
Set difference starts with one set and removes elements that belong to another. A complement uses the same idea after we specify a universal set: the collection of objects under consideration.
From the set of registered students, remove those who have already submitted an assignment. The remaining set contains the registered students who have not submitted it.
Definitions and notation
For sets A and B, the difference contains exactly the elements of A that do not belong to B. For a complement, first fix a universal set U and assume A is a subset of U. The complement of A within U contains the elements of U that are absent from A.
How to use the definitions
- means and .
is the part of that does not reach. Here belongs to it and does not, because lies in as well. A complement is the same idea with the frame playing the part of the second set.
Applications
Practice
Remove from the starting set
Remove 4. The number 8 does not enter the result because it was not in the starting set.
Try it
Let and . What is ?
The order matters
, but .
The two calculations begin with different sets and leave different elements.
Try it
For the same sets and , what is ?
Choose the universe first
Within , the complement of is .
The result contains exactly the elements of this U that are not in the chosen set.
Try it
Fix and let . What is within U?
Try it
Let , and . Find the complement of A within V.
Try it
Which identity holds for every choice of U and A with ?
Complement Swaps the Two Operations
Taking complements turns every union into an intersection and every intersection into a union, over families of any size.
Try it
What is ?
Try it
whenever a universal set containing both has been fixed.
Try it
Let , and . How many elements does have?
What You Learned
- keeps what is in A and not in B; needs a universal set to be fixed first.
- , so a difference obeys the set laws.
Final checkpoint
Try it
Fix with . What is ?
Completion
Lesson complete
Great work! You now know how to:
- Compute a difference and a complement, naming the universal set first
- Rewrite as an intersection
- Apply De Morgan to a family of any size