Q.Let A = { 1, 2, 3, 4, 5, 6}, B = { 2, 4, 6, 8 }. Find A – B and B – A
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
A−B only keeps the "A-only" region. If you want both one-sided regions together (everything in exactly one of the two sets), that's the symmetric difference A△B=(A−B)∪(B−A) — a different, related, but distinct operation.
Why it matters
Set difference shows up constantly in exam problems: "find the elements in A but not in B," Venn-diagram shading questions, and as a building block for symmetric difference and complement. Getting the direction right (A−B vs. B−A) is the single most common source of lost marks.
Takeaway
A−B keeps only what's uniquely in A, throwing away anything shared with B. Always check which set you're subtracting from — the direction changes the answer.
This topic regularly comes up in searches like "set difference formula A minus B" and "set difference vs complement class 11 maths," both grounded in the Sets chapter of the NCERT/CBSE Class 11 Mathematics syllabus. Getting the direction of subtraction right is a classic source of lost marks in board exams and a frequent JEE Main conceptual question.
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.
∅={x∣x=x}
Why is this allowed?
Because the condition x=x is always false — no object satisfies it.
This is a logical necessity: if we can define a set by a property, we must allow the possibility that nothing satisfies it.
Key insight: The empty set is not "nothing" — it's a set that contains nothing. It's a mathematical object.
6. Summary: The "Why" Behind the Definition
| Concept | Why it's defined this way |
|---|---|
| Set | To have a precise, unambiguous collection — no guesswork. |
| Set-builder | To define infinite or complex sets without listing. |
| Membership (∈) | The only question that matters — is it inside or not? |
| Empty set | Logical completeness — a property may have no objects. |
Final takeaway: The definition of a set is not a formula to plug numbers into. It's a logical framework for saying: "These objects, and only these, belong here." Every formula you see later (union, intersection, complement) builds on this single idea.
Concept: Set Membership — the difference A−B contains elements that are in A but not in B.
Step 1: List A={1,2,3,4,5,6} and B={2,4,6,8}.
Step 2: For A−B, take every element of A and remove those that also appear in B.
Remove 2,4,6 from A. Remaining: {1,3,5}.
Step 3: For B−A, take every element of B and remove those that also appear in A.
Remove 2,4,6 from B. Remaining: {8}.
A−B={1,3,5} and B−A={8}.
Set difference A−B keeps everything in A that is not in B; B−A keeps everything in B that is not in A. For the given sets, A−B={1,3,5} and B−A={8}.
The idea behind set difference is simple: you start with one set and remove any elements that also appear in the other set. Think of it like a filter — only the elements that belong exclusively to the first set survive.
For A−B, we take set A and delete every element that also lives in B. For B−A, we do the reverse: start with B and remove anything that is also in A.
Let’s work through it step by step.
-
List the elements of A and B clearly.
A={1,2,3,4,5,6}
B={2,4,6,8}
-
Find A−B.
Go through each element of A:
- 1 is in A but not in B → keep it.
- 2 is in A and also in B → remove it.
- 3 is in A but not in B → keep it.
- 4 is in A and also in B → remove it.
- 5 is in A but not in B → keep it.
- 6 is in A and also in B → remove it. So the survivors are {1,3,5}. Hence A−B={1,3,5}.
-
Find B−A.
Now go through each element of B:
- 2 is in B and also in A → remove it.
- 4 is in B and also in A → remove it.
- 6 is in B and also in A → remove it.
- 8 is in B but not in A → keep it. Only 8 remains. Hence B−A={8}.
A common mistake is to think A−B and B−A are the same thing, or that they always have the same number of elements. They are completely different sets — A−B removes elements of B from A, while B−A removes elements of A from B. Here, A−B has three elements and B−A has just one.
Notice that A−B and B−A are always disjoint (they share no elements). Also, the union (A−B)∪(B−A) is called the symmetric difference of A and B, often written A△B. In this problem, A△B={1,3,5,8}.
The set A−B is {1,3,5} and the set B−A is {8}.
Method: Set Difference (Subtraction) Method
Concept First
The set difference A−B (also written A∖B) means:
"All elements that are in A but not in B."
Think of it as removing from A any element that also appears in B.
Steps for A−B
Step 1: List all elements of A
A={1,2,3,4,5,6}
Step 2: Identify which elements of A are also in B
B={2,4,6,8}
Common elements: 2,4,6
Step 3: Remove those common elements from A
A−B={1,3,5}
Answer: A−B={1,3,5}
Steps for B−A
Step 1: List all elements of B
B={2,4,6,8}
Step 2: Identify which elements of B are also in A
A={1,2,3,4,5,6}
Common elements: 2,4,6
Step 3: Remove those common elements from B
B−A={8}
Answer: B−A={8}
Key Exam Tip
- A−B and B−A are different — they are not the same operation.
- The result is always a subset of the first set (the one before the minus sign).
- If no elements are common, A−B=A and B−A=B.
Common Mistakes in Set Membership & Set Difference
Mistake 1: Confusing the Order of Subtraction
The error: Students often think A−B and B−A give the same result, or they swap the sets.
Why it happens: The notation A−B looks like regular subtraction, but in sets, order matters completely.
How to avoid: Always read A−B as "elements in A that are NOT in B".
- A−B = take everything from A, remove anything that also appears in B
- B−A = take everything from B, remove anything that also appears in A
Correct solution:
A={1,2,3,4,5,6}, B={2,4,6,8}
- A−B={1,3,5} (remove 2, 4, 6 from A)
- B−A={8} (remove 2, 4, 6 from B)
Mistake 2: Including Elements from the Second Set That Aren't in the First
The error: In A−B, students write {1,3,5,8} — they include 8 because it's in B.
Why it happens: They think "subtract B" means remove everything that B contains, even if it wasn't in A to begin with.
How to avoid: Remember: You can only remove what is already present.
- A−B only looks at elements of A. If an element (like 8) is not in A, it never enters the picture.
Mistake 3: Forgetting That Repetition Doesn't Matter
The error: Writing A−B={1,1,3,5} or similar duplicates.
Why it happens: Students treat sets like lists with multiplicity.
How to avoid: Sets contain unique elements. Always write the result without repetition.
- A−B={1,3,5} — clean and simple.
Mistake 4: Confusing Set Difference with Complement
The error: Thinking A−B means "everything not in B" (the complement of B).
Why it happens: The minus sign looks like "not" in some contexts.
How to avoid:
- Complement of B (written B′ or B) depends on a universal set.
- Set difference A−B only removes elements of B from A — it doesn't care about anything outside A.
Quick Checklist to Avoid Mistakes
| Step | What to do |
|---|---|
| 1 | Write down the first set completely |
| 2 | Cross out any element that also appears in the second set |
| 3 | List the remaining elements once each |
| 4 | Double-check: Did you accidentally add anything from the second set? |
Final correct answers:
- A−B={1,3,5}
- B−A={8}
- 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.
So A∩B={36} and n(A∩B)=1.
-
Compute n(B − A)
By definition, B−A=B∖A means elements in B but not in A.
n(B−A)=n(B)−n(A∩B)=6−1=5.
TipA common mistake is to think “divisible by 3 and 4” means divisible by 3 or 4. The word “and” in set definitions means both conditions must hold simultaneously — hence LCM = 12.
Watch outDon’t forget that 36 is both a perfect square and a multiple of 12. It must be removed from B when counting B−A.
✓Final answerThe correct option is (C).
ANSWER: C
- 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.
- (B) ∅ would only happen if A⊆B, which is not generally true.
- (C) A−B matches our result.
- (D) B−A is the opposite: elements in B but not in A.
TipA quick Venn-diagram check: shade A, then remove the overlapping part with B. What remains is the part of A that doesn’t touch B — that’s A−B.
Watch outA common mistake is to think A−(A∩B) equals A itself. But removing the overlap with B does remove something unless A and B are disjoint. Always test with a small example, e.g., A={1,2,3}, B={2,3,4} gives A−(A∩B)={1}, which is indeed A−B.
✓Final answerThe correct option is (C).
ANSWER: C
- 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}.
(P∪Q)−(P∩Q)={0,1,2}−{1,2}={0}.
✓Final answerThe correct option is (C) — {0}
🎓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.