- 1. What is a set?
- 2. Two ways to write a set
- 3. Empty, finite and infinite sets
- 4. Equal sets and subsets
- 5. Number sets and intervals
- 6. Universal set and Venn diagrams
- 7. Union: putting sets together
- 8. Intersection: what sets share
- 9. Difference: A minus B
- 10. Complement and De Morgan's laws
- Review
9 of 10·NCERT §1.9.3·4 min
Difference: A minus B
The big idea\( A - B \) is what is left of \( A \) after you throw out everything that is also in \( B \).
In simple words
You have a list of songs you like. Cross out every song your friend also likes. What is left are the songs only you like. That is "your list minus her list". If she does the same with her list, she gets a different answer: the songs only she likes.
Difference of two sets
The difference of sets \( A \) and \( B \), in that order, is the set of elements that belong to \( A \) but not to \( B \). It is written \( A - B \) and read "\( A \) minus \( B \)".
\[ A - B = \{\, x : x \in A \text{ and } x \notin B \,\} \]In a Venn diagram, \( A - B \) is the part of circle \( A \) that lies outside circle \( B \): a crescent, with the overlap left unshaded.
Worked example 1
Let \( A = \{1, 3, 5, 7\} \) and \( B = \{5, 7, 9, 11\} \). Find \( A - B \) and \( B - A \).
- \( A - B \): go through \( A \) and keep the elements not in \( B \). 1 stays, 3 stays, 5 goes, 7 goes. So \( A - B = \{1, 3\} \).
- \( B - A \): go through \( B \) and keep the elements not in \( A \). So \( B - A = \{9, 11\} \).
- \( A - B \ne B - A \).
That last line matters. Like subtraction of numbers (\( 7 - 3 \ne 3 - 7 \)), set difference is not commutative: the order changes the answer.
Worked example 2
Let \( V = \{a, e, i, o, u\} \) and \( L = \{a, b, c, d, e\} \).
- \( V - L = \{i, o, u\} \): the vowels that are not among the first five letters.
- \( L - V = \{b, c, d\} \): the first five letters that are not vowels.
Try it: start with Worked example 1, then flip the order, then tap "Three pieces".
Three pieces that never overlap
Draw two overlapping circles \( A \) and \( B \). They cut the area into three pieces:
- \( A - B \): only in \( A \),
- \( A \cap B \): in both,
- \( B - A \): only in \( B \).
No element can be in two of these at once, so the three sets are mutually disjoint: the intersection of any two of them is \( \phi \). Together they make up all of \( A \cup B \).
In the first example: \( A - B = \{1, 3\} \), \( A \cap B = \{5, 7\} \), \( B - A = \{9, 11\} \). They share nothing, and joined they give \( \{1, 3, 5, 7, 9, 11\} = A \cup B \).
Two useful facts follow:
\[ A = (A - B) \cup (A \cap B), \qquad A \cup B = A \cup (B - A) \]Don't mix these up
- \( A - B \ne B - A \) in general. Order matters.
- \( A - B \) only ever contains elements of \( A \). Nothing from \( B \) can appear in it.
- If \( A \subset B \), then \( A - B = \phi \): nothing in \( A \) escapes \( B \).
- If \( A \) and \( B \) are disjoint, then \( A - B = A \): nothing gets thrown out.
Try it. Let \( A = \{2, 4, 6, 8, 10, 12\} \), \( B = \{3, 6, 9, 12\} \), \( C = \{1, 3, 5\} \). Find (a) \( A - B \) (b) \( B - A \) (c) \( A - C \) (d) \( \mathbf{R} - \mathbf{Q} \).
Answer
- Difference \( A - B \)
- Elements in \( A \) but not in \( B \); read "\( A \) minus \( B \)".
- Not commutative
- Swapping the order changes the answer: \( A - B \ne B - A \).
- Mutually disjoint
- A group of sets where no two share an element.
Words to know
\( X = \{p, q, r, s\} \) and \( Y = \{r, s, t\} \). What is \( Y - X \)?
- \( \{p, q\} \)
- \( \{t\} \)
- \( \{r, s\} \)
If \( A \subset B \), what is \( A - B \)?
- \( A \)
- \( B - A \)
- \( \phi \)
Which three sets are mutually disjoint for any \( A \) and \( B \)?
- \( A - B,\ A \cap B,\ B - A \)
- \( A,\ B,\ A \cup B \)
- \( A,\ A \cap B,\ B \)
Picture and video credits