Q.If A = {3, 6, 9, 12, 15, 18, 21}, B = { 4, 8, 12, 16, 20 }, C = { 2, 4, 6, 8, 10, 12, 14, 16 }, D = {5, 10, 15, 20 }; find
🔒You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.
🔒 Start your 14-day free trial to unlock the full solution →Concept understanding — Set Difference
Set Difference
The idea in plain words
Imagine two groups of students: those who play cricket (A) and those who play football (B). The set difference A−B (also written A∖B) answers one specific question: "Who plays cricket but NOT football?" You start with everything in A, then remove whatever also happens to be in B.
Set difference is a one-way street: A−B keeps only what's uniquely in A. It has nothing to do with what's uniquely in B.
The precise definition
For two sets A and B:
A−B={x∣x∈A and x∈/B}
Read as: "the set of all x such that x is in A but x is not in B."
Worked example
Let:
A={1,2,3,4,5},B={3,4,5,6,7}
Step 1: Go through each element of A.
Step 2: Keep it only if it is NOT also in B.
- 1∈A, 1∈/B → keep
- 2∈A, 2∈/B → keep
- 3∈A, 3∈B → remove
- 4∈A, 4∈B → remove
- 5∈A, 5∈B → remove
A−B={1,2}
Now compute the other direction:
B−A={6,7}
Notice A−B=B−A — set difference is not commutative.
Key properties
| Property | Statement |
|---|---|
| Not commutative | A−B=B−A in general |
| Difference with itself | A−A=∅ |
| Difference with empty set | A−∅=A, and ∅−A=∅ |
| Difference with universal set | U−A=Ac (the complement of A) |
| Disjoint sets | If A∩B=∅, then A−B=A |
The last property is worth pausing on: if two sets share nothing in common, subtracting one from the other changes nothing — there was nothing to remove.
Set difference vs. complement — the classic mix-up
Students frequently confuse A−B with Ac (complement of A). The difference is what you're comparing against:
- Complement Ac is always relative to the universal set U: everything outside A.
- Difference A−B is relative to whatever second set you name: everything in A that isn't in B.
In fact, complement is just a special case: Ac=U−A.
Set difference vs. symmetric difference …
Why this formula?
Let's break down the definition of a set — not as a formula to memorise, but as a fundamental idea that underpins all of mathematics.
1. What is a Set? (The Core Idea)
A set is a well-defined collection of distinct objects.
The "why" here is about clarity and precision — we need to know exactly what belongs and what does not.
- Well-defined: For any object, we can say yes or no — no ambiguity.
- Distinct: No duplicates — each object appears only once.
Why? Because if we couldn't decide membership, we couldn't do any logical operations. Sets are the building blocks of all mathematical structures.
2. The Key "Formula": Set-Builder Notation
The most common way to define a set is:
S={x∣P(x)}
This reads: "S is the set of all objects x such that property P(x) is true."
Why does this work?
- x is a placeholder for any object.
- P(x) is a logical condition (a predicate) that is either true or false for each x.
- The vertical bar ∣ means "such that".
Example:
A={n∣n∈N,n is even}
Here, P(n) is "n is a natural number and n is even".
Only those n that satisfy both conditions are included.
Why this form? It avoids listing infinitely many elements. It gives a rule — a decision procedure — for membership.
3. The Two Fundamental Properties (Axioms)
Every set definition relies on two intuitive truths:
(a) Extensionality — Two sets are equal if they have the same elements.
A=B⟺(∀x)(x∈A⟺x∈B)
Why? A set is completely determined by its members. There is no other hidden property.
If you know what's inside, you know the set.
(b) Membership — The only relation is ∈ (belongs to).
x∈Sorx∈/S
Why? Because a set is just a container. The only question we can ask is: "Is this object inside?"
4. Why Can't We Just List Everything?
For small sets, listing works:
{1,2,3}
But for infinite sets (like all natural numbers), listing is impossible.
Set-builder notation solves this by giving a rule instead of a list.
Example:
N={n∣n is a positive integer}
This is not a formula to memorise — it's a definition by property.
5. The "Empty Set" — Why It Exists
The empty set ∅ (or {}) is the set with no elements. …
Set difference X−Y = elements of X that are NOT in Y. Using A={3,6,9,12,15,18,21}, B={4,8,12,16,20}, C={2,4,6,8,10,12,14,16}, D={5,10,15,20}:
- A−B: remove 12 -> {3,6,9,15,18,21}
- A−C: remove 6,12 -> {3,9,15,18,21}
- A−D: remove 15 -> {3,6,9,12,18,21}
- B−A: remove 12 -> {4,8,16,20}
- C−A: remove 6,12 -> {2,4,8,10,14,16}
- D−A: remove 15 -> {5,10,20}
- B−C: remove 4,8,12,16 (all in C); 20∈/C, so it stays -> {20}
- B−D: remove 20 -> {4,8,12,16}
- C−B: remove 4,8,12,16 -> {2,6,10,14}
- D−B: remove 20 -> {5,10,15} (xi) C−D: remove 10 -> {2,4,6,8,12,14,16} …
Set difference X−Y means "all elements that are in X but not in Y." We check each element of the first set against the second set and keep only those that don't appear there. The results for all twelve parts are below.
Set difference is not symmetric -- A−B is generally not the same as B−A. For each pair, take the first set, go through its elements, and keep only those NOT present in the second set.
Given: A={3,6,9,12,15,18,21}, B={4,8,12,16,20}, C={2,4,6,8,10,12,14,16}, D={5,10,15,20}.
(i) A−B: Only 12 from A is also in B. Remove it: {3,6,9,15,18,21}
(ii) A−C: 6 and 12 from A are in C. Remove them: {3,9,15,18,21}
(iii) A−D: Only 15 from A is in D. Remove it: {3,6,9,12,18,21}
(iv) B−A: Only 12 from B is in A. Remove it: {4,8,16,20}
(v) C−A: 6 and 12 from C are in A. Remove them: {2,4,8,10,14,16}
(vi) D−A: Only 15 from D is in A. Remove it: {5,10,20}
(vii) B−C: From B={4,8,12,16,20}, the elements 4,8,12,16 are all in C, but 20 is NOT in C (C's largest element is 16). Remove only 4,8,12,16: {20}
(viii) B−D: Only 20 from B is in D. Remove it: {4,8,12,16}
(ix) C−B: 4,8,12,16 from C are in B. Remove them: {2,6,10,14}
(x) D−B: Only 20 from D is in B. Remove it: {5,10,15} …
Set Difference Method
Method Name: Set Difference (Relative Complement) — Finding elements present in one set but not in another.
Concept First (Why)
The difference A−B (also written A∖B) means:
Take all elements of A, and remove any that also appear in B.
So A−B={x∣x∈A and x∈/B}.
Steps for Any Set Difference
- List all elements of the first set.
- Cross out any element that also appears in the second set.
- Write the remaining elements as the answer.
Solutions
(i) A−B
A={3,6,9,12,15,18,21}, B={4,8,12,16,20}
- Common element: 12 (present in both)
- Remove 12 from A
Answer: {3,6,9,15,18,21}
(ii) A−C
C={2,4,6,8,10,12,14,16}
- Common elements: 6, 12
- Remove these from A
Answer: {3,9,15,18,21}
(iii) A−D
D={5,10,15,20}
- Common element: 15
- Remove 15 from A
Answer: {3,6,9,12,18,21}
(iv) B−A
B={4,8,12,16,20}, A={3,6,9,12,15,18,21}
- Common element: 12
- Remove 12 from B
Answer: {4,8,16,20}
(v) C−A
C={2,4,6,8,10,12,14,16}, A={3,6,9,12,15,18,21}
- Common elements: 6, 12
- Remove these from C
Answer: {2,4,8,10,14,16}
(vi) D−A
D={5,10,15,20}, A={3,6,9,12,15,18,21}
- Common element: 15
- Remove 15 from D
Answer: {5,10,20}
(vii) B−C
B={4,8,12,16,20}, C={2,4,6,8,10,12,14,16}
- Common elements: 4, 8, 12, 16
- Remove these from B
Answer: {20}
(viii) B−D
D={5,10,15,20}
- Common element: 20
- Remove 20 from B …
Here is a concept-first breakdown of the common mistakes students make with Set Difference (also called Set Membership subtraction), using your given sets.
Core Concept (The "Why")
The difference A−B (also written A∖B) means: Start with all the elements in set A, then remove any element that also appears in set B. You are left with only the elements that are exclusively in A.
Common Mistake #1: Confusing the Order (A – B vs B – A)
- The Error: Students think A−B is the same as B−A. They swap the "starting set" and the "removing set."
- Example from your question:
- A−B: Start with A = {3, 6, 9, 12, 15, 18, 21}. Remove any number that is also in B (12 is in both). Result: {3, 6, 9, 15, 18, 21}.
- B−A: Start with B = {4, 8, 12, 16, 20}. Remove any number that is also in A (12 is in both). Result: {4, 8, 16, 20}.
- Notice: The results are completely different sets.
- How to Avoid: Read the operation aloud. Say to yourself: "A minus B means 'take A, throw away anything that belongs to B'." The first letter is your "home base."
Common Mistake #2: Forgetting to Remove All Common Elements
- The Error: A student correctly identifies that 12 is common between A and B, but they forget to check if other numbers are also common. They only remove one element.
- Example: For C−D:
- C = {2, 4, 6, 8, 10, 12, 14, 16}
- D = {5, 10, 15, 20}
- A hasty student might only see "10" is common and write {2, 4, 6, 8, 12, 14, 16}. But they missed that 20 is not in C, so it's fine. However, the real danger is when multiple overlaps exist.
- How to Avoid: Use a systematic check. For every element in the first set, ask: "Is this number present in the second set?" If yes, cross it out. Do not assume only one match exists.
Common Mistake #3: Including Elements from the Second Set
- The Error: Students treat A−B like a union or a subtraction of numbers. They accidentally include elements from B that are not in A.
- Example: For A−D:
- A = {3, 6, 9, 12, 15, 18, 21}
- D = {5, 10, 15, 20}
- A student might incorrectly write {3, 6, 9, 12, 18, 21, 5, 10, 20} (keeping 15 removed, but adding 5, 10, 20 from D).
- How to Avoid: Remember the definition. You are only allowed to keep elements that were originally in the first set. The second set is just a "filter" to remove things; you never add anything from it.
Common Mistake #4: Misidentifying the Result as "Empty Set" When It Isn't
- The Error: Students see a common element and panic, thinking the whole set disappears.
- Example: For B−C:
- B = {4, 8, 12, 16, 20}
- C = {2, 4, 6, 8, 10, 12, 14, 16}
- Common elements: 4, 8, 12, 16. Remove them from B. Result: {20}. Many students write ∅ (empty set) because they think "everything is common." …
- COMEDK 2026Set 2026-A1 markMCQQ.Let A and B be two subsets of ξ={1,2,3,−−−−−−−,44,45} such that A={x:x is divisible by 3 and 4} B={x:x is a perfect square number } Then n(B−A) equals (A) 2 (B) 9 (C) 5 (D) 1
›Reveal solutionSolution
The problem asks for the number of perfect squares (set B) that are NOT divisible by both 3 and 4 (set A). We find B = {1,4,9,16,25,36} within 1–45, and A = {12,24,36}. Removing the overlap (36) leaves 5 elements, so n(B−A) = 5.
Concept & Intuition
We have two sets defined on the universal set ξ = {1,2,…,45}.
- Set A: numbers divisible by both 3 and 4. Since 3 and 4 are coprime, “divisible by both” means divisible by their product, 12. So A = multiples of 12 up to 45.
- Set B: perfect squares from 1² up to the largest square ≤ 45. We want the number of elements in B that are not in A — that is, the perfect squares that are not multiples of 12. This is simply the size of B minus the size of the intersection A∩B.
Step-by-step solution
-
Find set B (perfect squares ≤ 45)
The squares are:
1² = 1, 2² = 4, 3² = 9, 4² = 16, 5² = 25, 6² = 36, 7² = 49 (too big).
So B = {1, 4, 9, 16, 25, 36}.
Hence n(B)=6.
-
Find set A (multiples of 12 up to 45)
Multiples of 12: 12, 24, 36, 48 (too big).
So A = {12, 24, 36}.
Hence n(A)=3.
-
Find the intersection A ∩ B
Look for numbers that are in both lists: the only common element is 36. …
- COMEDK 2024Set 2024-A1 markMCQQ.
[!FORMULA] Let A and B be two sets then A−(A∩B) is equal to
(A) (A∩B)′ (B) ∅ (C) A−B (D) B−A›Reveal solutionSolution
The expression A−(A∩B) simplifies to the set of elements in A that are not in B, which is exactly A−B. The correct option is (C).
The key idea is to understand what each set operation means in plain English.
- A−(A∩B) means: take all elements of A, and remove those that are also in B (since A∩B is the overlap).
- That’s exactly the definition of A−B: elements in A but not in B.
So the answer should be A−B. Let’s verify step by step.
- Write the definition of set difference For any sets X and Y,
X−Y={x∣x∈X and x∈/Y}.
So A−(A∩B)={x∣x∈A and x∈/(A∩B)}.
-
Interpret the condition x∈/(A∩B)
x∈A∩B means x∈A and x∈B.
So x∈/(A∩B) means it is not true that both hold. That is: either x∈/A or x∈/B (or both).
But we already know x∈A from the first condition. So the only way x∈/(A∩B) can be true is if x∈/B.
-
Combine the conditions
Therefore,
x∈A and x∈/B.
That is exactly the definition of A−B.
- Check the options
- (A) (A∩B)′ is the complement of the intersection — this includes elements outside A∩B, even those not in A. So it’s too large. …
- COMEDK 2021Set 2021-B1 markMCQQ.If P={x:x<3,x∈N}, Q={x:x≤2,x∈W}. Then (P∪Q)−(P∩Q)= (A) {1,2} (B) {2} (C) {0} (D) {1}
›Reveal solutionSolution
(P∪Q)−(P∩Q)={0}.
P={x:x<3,x∈N}={1,2} (natural numbers start at 1).
Q={x:x≤2,x∈W}={0,1,2} (whole numbers include 0).
Then P∪Q={0,1,2} and P∩Q={1,2}. …
🎓Unlock everything free for 14 days
- ✓Full step-by-step solutions
- ✓Concept-first explanations
- ✓Methods, shortcuts & mistakes
- ✓PYQ mapping + timed mock tests
Full access for 14 days. No credit card required.