Sub topic 2
Subsets, the Universal Set and the Empty Set
This chapter assumes you can read basic set notation such as {1, 2, 3} and x ∈ A. It also assumes you are comfortable with simple arithmetic and linear equations. Here you will learn how one set can sit inside another, what the "whole world" of a problem is, and why a set with nothing in it matters. The Venn diagram work in later chapters rests on these ideas.
Subsets
A set A is a subset of a set B if every element of A is also an element of B. We write this as A ⊆ B.
Take B = {1, 2, 3, 4, 5} and A = {2, 4}. Each element of A (2 and 4) appears in B, so A ⊆ B. Now take C = {2, 6}. The element 6 is not in B, so C ⊄ B. One missing element is enough to break the subset relation.
Proper subsets and equality
A proper subset is a subset that is not equal to the larger set. We write A ⊂ B, which means A ⊆ B and A ≠ B. So B has at least one element that A lacks.
Two sets are equal exactly when each is a subset of the other:
- A = B if and only if A ⊆ B and B ⊆ A.
This is the standard way to prove that two set expressions are equal. You show that each side fits inside the other.
Notation varies between books. Some use ⊂ to mean "subset, possibly equal". CAT questions rarely depend on the difference, but read the wording carefully. "Proper subset" always means strictly smaller.
Properties you can rely on
- Every set is a subset of itself: A ⊆ A.
- Subsets are transitive. If A ⊆ B and B ⊆ C, then A ⊆ C.
- If A ⊆ B, then n(A) ≤ n(B). The reverse does not hold. A smaller count does not imply a subset. {1, 2} has fewer elements than {7, 8, 9}, yet it is not a subset of it.
- If A ⊆ B, then A ∩ B = A and A ∪ B = B. This is useful when a word problem says "all the students who play chess also play carrom".
The last property matters for CAT. A sentence like "everyone who takes Physics also takes Maths" translates to Physics ⊆ Maths. Then the Physics-only-and-not-Maths region of your Venn diagram is empty.
Element versus subset
Beginners often confuse ∈ and ⊆.
- ∈ relates an element to a set: 2 ∈ {1, 2, 3}.
- ⊆ relates a set to a set: {2} ⊆ {1, 2, 3}.
So 2 ⊆ {1, 2, 3} is meaningless, and {2} ∈ {1, 2, 3} is false. The second would only be true if the set {2} were itself one of the members, as in {1, {2}, 3}.
Transitivity lets you read the chain from end to end. Multiples of 12 are a subset of the multiples of 3, and also of U.
The universal set
The universal set, written U (or sometimes ξ or S), is the set of all elements under discussion in a particular problem. Every other set in the problem is a subset of U.
U is not one fixed set. It depends on the context:
- In a problem about 100 students, U is those 100 students.
- In a number-theory question about integers from 1 to 50, U = {1, 2, …, 50}.
- In a survey of 800 households, U is the 800 households, even if some own none of the items surveyed.
Why U matters
The universal set decides what "not in A" means. The complement of A, written A′ or Aᶜ, is U − A. If U changes, the complement changes, even though A does not.
Let A = {2, 4, 6}.
- If U = {1, 2, 3, 4, 5, 6}, then A′ = {1, 3, 5}.
- If U = {1, 2, …, 10}, then A′ = {1, 3, 5, 7, 8, 9, 10}.
The chapter on counting "neither" develops complements fully. For now, remember the rule: you cannot find a complement until you know U.
In word problems, the total in the problem statement is usually n(U). If the problem says "In a class of 80 students", then n(U) = 80. A very common error is to leave out the students who belong to none of the named groups. They are still part of U. They sit in the region outside every circle of the Venn diagram, but inside the surrounding rectangle.
U = set(range(1, 11)) # universal set: 1 to 10
A = {2, 4, 6, 8, 10} # even numbers in U
B = {4, 8} # multiples of 4 in U
print(B <= A) # True: B is a subset of A
print(B < A) # True: B is a proper subset of A
print(A <= B) # False
print(A <= U, B <= U) # True True: every set here sits inside U
print(U - A) # complement of A in U: {1, 3, 5, 7, 9}
print(A & B == B, A | B == A) # True True: A ∩ B = B and A ∪ B = A when B ⊆ AThe last line confirms the two identities from the subset properties above. The <= operator tests "subset or equal", and < tests "proper subset". Python's A.issubset(B) is the same as A <= B.
The empty set
The empty set, written ∅ or { }, is the set with no elements. Its size is 0, so n(∅) = 0.
Three facts about it come up repeatedly.
- ∅ is a subset of every set. For any set A, ∅ ⊆ A. The subset test asks whether you can find an element of ∅ that is missing from A. There are no elements in ∅, so no counterexample exists, and the condition holds automatically.
- ∅ is a proper subset of every non-empty set. ∅ ⊂ A whenever A has at least one element.
- ∅ is unique. There is only one empty set, however you describe it. "Whole numbers between 3 and 4" and "months with 40 days" both describe ∅, so they are the same set.
∅ is not the same as {∅}
The set {∅} is not empty. It has one element, which is the empty set. So n({∅}) = 1, while n(∅) = 0. Likewise, {0} is a set with one element (the number zero), and it is not empty.
empty = set() # correct way to make an empty set
wrong = {} # this is an empty dictionary, not a set
print(type(empty).__name__, type(wrong).__name__) # set dict
print(len(empty)) # 0
print(empty <= {1, 2, 3}) # True: ∅ ⊆ any set
print(len({frozenset()})) # 1: the set {∅} has one elementIn Python, {} creates an empty dictionary. Use set() for the empty set.
Disjoint sets
Two sets are disjoint (or mutually exclusive) if they share no elements, that is, A ∩ B = ∅. In a Venn diagram, disjoint circles do not overlap. In counting terms, the two-set formula then simplifies to n(A ∪ B) = n(A) + n(B), because n(A ∩ B) = 0.
Phrases such as "no student takes both" or "nobody owns both" tell you the intersection is ∅.
Putting the ideas together in a word problem
A school has 120 students. Of these, 70 are in the Music club (M) and 30 are in the Drama club (D). Every Drama club member is also in the Music club.
- U is the 120 students, so n(U) = 120.
- "Every Drama member is also in Music" means D ⊆ M.
- Because D ⊆ M, D ∩ M = D, so n(D ∩ M) = 30. The region "Drama but not Music" is ∅.
- Music only = 70 − 30 = 40.
- n(M ∪ D) = n(M) = 70, and the students in neither club number 120 − 70 = 50.
Phrase the subset condition first, and the diagram nearly draws itself. The subset statement removes one region before you start any arithmetic.
Common errors
| Mistake | Why it is wrong | Correct approach |
|---|---|---|
| Writing 2 ⊆ A for an element | ⊆ compares sets, not elements | Write 2 ∈ A or {2} ⊆ A |
| Believing n(A) ≤ n(B) means A ⊆ B | Size does not imply containment | Check element by element |
| Calling ∅ "not a subset" of a set | ∅ ⊆ A for every A | Treat ∅ as a subset always |
| Treating {∅} as empty | It holds one element | n({∅}) = 1 |
| Ignoring students in no group | They belong to U | Include them as n(U) − n(A ∪ B) |
| Computing a complement without U | A′ depends on U | State U first |
Consistency checks
Once you know about subsets and U, you can test any answer you get.
- Containment check. If A ⊆ B, your count for A cannot exceed your count for B.
- Total check. The counts in all regions, including the outside of the circles, must add up to n(U).
- Non-negativity check. No region can have a negative count. If it does, the numbers given in the problem are inconsistent, or you made an arithmetic slip.
Exercise
Let U = {1, 2, …, 12}, A = {2, 4, 6, 8, 10, 12}, B = {3, 6, 9, 12} and C = {6, 12}. (a) Which of the sets A, B, C is a subset of which? (b) Find C′ in this universal set, and give n(C′). (c) How many elements does the set {∅} have?
Show answer
(a) C ⊆ A and C ⊆ B, because 6 and 12 are in both. A ⊄ B and B ⊄ A, because 2 is in A but not B, and 3 is in B but not A. (b) C′ = U − C = {1, 2, 3, 4, 5, 7, 8, 9, 10, 11}, so n(C′) = 10, which equals 12 − 2. (c) {∅} has exactly one element, the empty set.
Exercise
In a hostel of 200 residents, every resident who owns a laptop (L) also owns a phone (P). 150 own phones, 90 own laptops, and 20 own neither. Find n(P ∪ L), the number who own a phone but no laptop, and check that your answer is consistent.
Show answer
L ⊆ P, so P ∪ L = P and n(P ∪ L) = 150. Neither = 200 − 150 = 50, but the problem says 20, so the data are inconsistent. A hostel of 200 with 150 phone owners has 50 owners of neither device, not 20. The count of phone-only residents would be 150 − 90 = 60, but the total check fails, so the problem cannot be solved as stated. The lesson: after writing L ⊆ P, always run the total check against n(U).