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}
Showing the 12 most recent of 17 on this concept.
- CBSE 2026Set ANNUAL1 markMCQQ.If A={2,3,4}, B={4,5,6}, then the value of A−B is —(a) {3,4}(b) {2,3}(c) {5,6}(d) {3,4,5}
›Reveal solutionSolution
A−B={2,3}, option (b).
The set difference A−B consists of all elements that belong to A but do NOT belong to B.
Here A={2,3,4} and B={4,5,6}. Check each element of A:
- 2∈A, 2∈/B → keep
- 3∈A, 3∈/B → keep
- 4∈A, 4∈B → remove
So A−B={2,3}.
✓Final answerThe correct option is (b) {2,3}.
- CBSE 2025Set ANNUAL1 markMCQQ.Given U={1,2,…,15}, A={1,2,3,5,15}, B={2,4,6,8,10,12,14}, C={2,3,5,7,11,13}. A−B=(a) {1,2,3,5}(b) {1,3,5,15}(c) {2}(d) {2,3,5,15}
›Reveal solutionSolution
A−B={1,3,5,15}, i.e., the elements of A that are not in B.
Given A={1,2,3,5,15} and B={2,4,6,8,10,12,14}.
A−B={x∈A:x∈/B}. Checking each element of A: 1∈/B (keep), 2∈B (remove), 3∈/B (keep), 5∈/B (keep), 15∈/B (keep).
So A−B={1,3,5,15}.
✓Final answerThe correct option is (b) {1,3,5,15}.
- CBSE 2025Set ANNUAL1 markMCQQ.Given U={1,2,…,15}, A={1,2,3,5,15}, B={2,4,6,8,10,12,14}, C={2,3,5,7,11,13}. B−C=(a) {4,6,8,10,12,14}(b) {3,5,7,11,13}(c) {2}(d) {4,6,13}
›Reveal solutionSolution
B−C={4,6,8,10,12,14}.
Given B={2,4,6,8,10,12,14} and C={2,3,5,7,11,13}.
B−C keeps elements of B not in C: only 2∈C, so it is removed. The rest, {4,6,8,10,12,14}, remain.
✓Final answerThe correct option is (a) {4,6,8,10,12,14}.
- CBSE 2025Set ANNUAL1 markMCQQ.Given U={1,2,…,15}, A={1,2,3,5,15}, B={2,4,6,8,10,12,14}, C={2,3,5,7,11,13}. C−A=(a) {1,2,3,5}(b) {1,2,7,11,13}(c) {3,7,11,13}(d) {7,11,13}
›Reveal solutionSolution
C−A={7,11,13}.
Given C={2,3,5,7,11,13} and A={1,2,3,5,15}.
C−A keeps elements of C not in A: 2,3,5∈A (removed); 7,11,13∈/A (kept).
So C−A={7,11,13}.
✓Final answerThe correct option is (d) {7,11,13}.
- CBSE 2025Set ANNUAL1 markMCQQ.Given U={1,2,…,15}, A={1,2,3,5,15}, B={2,4,6,8,10,12,14}, C={2,3,5,7,11,13}. B−A=(a) {4,6,8,10,12,14}(b) {1,3,5,15}(c) {4,6,15}(d) ϕ
›Reveal solutionSolution
B−A={4,6,8,10,12,14}.
Given B={2,4,6,8,10,12,14} and A={1,2,3,5,15}.
B−A keeps elements of B not in A: only 2∈A (removed). The rest remain: {4,6,8,10,12,14}.
✓Final answerThe correct option is (a) {4,6,8,10,12,14}.
- CBSE 2025Set ANNUAL1 markMCQQ.Given U={1,2,…,15}, A={1,2,3,5,15}, B={2,4,6,8,10,12,14}, C={2,3,5,7,11,13}. C−B=(a) {3,5,7,13}(b) {3,5,7,2,13}(c) {3,5,7,11,13}(d) ϕ
›Reveal solutionSolution
C−B={3,5,7,11,13}.
Given C={2,3,5,7,11,13} and B={2,4,6,8,10,12,14}.
C−B keeps elements of C not in B: only 2∈B (removed). The rest remain: {3,5,7,11,13}.
✓Final answerThe correct option is (c) {3,5,7,11,13}.
- CBSE 2025Set ANNUAL1 markMCQQ.Given U={1,2,…,15}, A={1,2,3,5,15}, B={2,4,6,8,10,12,14}, C={2,3,5,7,11,13}. A−C=(a) {2,3,5}(b) {1,2,3,5}(c) {1,5,15}(d) {1,15}
›Reveal solutionSolution
A−C={1,15}.
Given A={1,2,3,5,15} and C={2,3,5,7,11,13}.
A−C keeps elements of A not in C: 2,3,5∈C (removed); 1,15∈/C (kept).
So A−C={1,15}.
✓Final answerThe correct option is (d) {1,15}.
- CBSE 2025Set ANNUAL1 markMCQQ.If A = {1, 3, 4, 5, 6}, B = {2, 4, 6, 7, 8}, then A − B is:(a) {-1, -1, -2, -2, -2}(b) {1, 3, 5}(c) {2, 7, 8}(d) None of these
›Reveal solutionSolution
A−B contains exactly the elements of A that do not belong to B.
Given A={1,3,4,5,6} and B={2,4,6,7,8}.
By definition, A−B={x:x∈A and x∈/B}.
Check each element of A:
- 1∈/B → keep
- 3∈/B → keep
- 4∈B → remove
- 5∈/B → keep
- 6∈B → remove
So A−B={1,3,5}.
✓Final answerA−B={1,3,5} — option (b).
- CBSE 2024Set ANNUAL1 markMCQQ.Let U = {1, 2, 3, 4, 5, 6, 7, 8, 9}; A = {1, 2, 3, 4}, B = {2, 4, 6, 8} and C = {3, 4, 5, 6}, find (B - C):(a) {1, 3, 4, 5, 6, 7, 9}(b) {1, 4, 7, 8, 9}(c) {3, 4, 6, 8}(d) {2, 4, 5, 6, 7, 8}
›Reveal solutionSolution
B−C={2,8}, and its complement in U is {1,3,4,5,6,7,9}, matching option (a).
Given U={1,2,…,9}, A={1,2,3,4}, B={2,4,6,8}, C={3,4,5,6}.
Step 1: Compute B−C (elements of B not in C).
B−C={2,8} (4 and 6 are removed since they also lie in C).
Note on the question as printed: none of the four printed options equals {2,8} itself — they are all 7-element sets. This is a common typesetting slip in these papers (a missing prime), and every option is exactly consistent with the complement (B−C)′ instead, so that is what we solve.
Step 2: Complement (B−C)′ with respect to U.
(B−C)′=U−{2,8}={1,3,4,5,6,7,9}.
✓Final answer(B−C)′={1,3,4,5,6,7,9} — option (a). (Note: B−C itself is {2,8}; the options given match the complement.)
- CBSE 2023Set ANNUAL1 markQ.If R is the set of real numbers and Q is the set of rational numbers, then what is R – Q?
›Reveal solutionSolution
R−Q is the set of all irrational numbers.
The real numbers R are partitioned into rationals Q and irrationals. Removing all rational numbers from R leaves exactly the numbers that cannot be expressed as p/q — the irrationals (e.g. 2,π).
✓Final answerR−Q is the set of irrational numbers.
- CBSE 2023Set ANNUAL1 markMCQQ.If A, B and C are non-empty subsets of a set then (A−B)∪(B−A) equals(a) (A∩B)∪(A∪B)(b) (A∪B)−(A∩B)(c) A−(A∩B)(d) (A∪B)−B
›Reveal solutionSolution
(A−B)∪(B−A)=(A∪B)−(A∩B); option (b).
(A−B)∪(B−A) collects elements in exactly one of A,B — the symmetric difference. Equivalently it is everything in A∪B that is not common to both, i.e. (A∪B)−(A∩B) (NCERT Class 11 Sets).
✓Final answer(b) (A∪B)−(A∩B).
- CBSE 2022Set TERM11 markMCQQ.If A={1,2,3,4,5,6} and B={2,4,6,8} then B−A will be(a) {8}(b) {2,4,6}(c) {2,4,6,8}(d) none of these
›Reveal solutionSolution
B−A keeps only the elements of B that are absent from A.
A={1,2,3,4,5,6}, B={2,4,6,8}. Check each element of B against A: 2∈A (drop), 4∈A (drop), 6∈A (drop), 8∈/A (keep). So B−A={8}.
✓Final answer(a) {8}.
🎓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.