Set Theory for UP Police Constable — Union, Intersection & Venn Diagrams

intermediate 14 min read

Concept

A set is a well-defined collection of distinct objects. "Well-defined" means there is no ambiguity — either an element belongs to the set or it does not. A group of tall students is not a set (subjective). A group of students who scored above 60 marks is a set (objective).

Think of a set like a closed boundary drawn on paper. Everything inside the boundary belongs to the set. The moment you draw two such boundaries, you can ask: what is inside both? What is inside either one? That is the entire game of set theory at this exam level.

Here is the everyday analogy that makes this stick. Imagine two WhatsApp groups in a colony: Group A has residents who own a car, Group B has residents who own a bike. Some residents appear in both groups — they own both. Now if someone asks "how many unique residents are on these lists?" you cannot just add the two counts, because you would double-count the people in both groups. You subtract the overlap once. That subtraction is the inclusion-exclusion principle, and it is the one formula UP Police Constable sets questions on.

The notation to know:


Deep Dive

The Core Formula — Inclusion-Exclusion for Two Sets

n(AB)=n(A)+n(B)n(AB)n(A \cup B) = n(A) + n(B) - n(A \cap B)

Why do you subtract the intersection? Because every element in A ∩ B gets counted once in n(A) and once again in n(B). So n(A) + n(B) overcounts the overlap by exactly one. You subtract it once to correct that.

This is the only derivation worth memorising at this level. Everything else is a rearrangement of this one identity.

The Four Rearrangements You Must Know

The exam rarely gives you exactly what you need. It gives you three out of four quantities and asks for the fourth. Here are all four forms:

  1. Find union: n(A ∪ B) = n(A) + n(B) − n(A ∩ B)
  2. Find intersection: n(A ∩ B) = n(A) + n(B) − n(A ∪ B)
  3. Find n(A) only (A but not B): n(A) − n(A ∩ B)
  4. Find neither: n(U) − n(A ∪ B)

Rearrangement 4 is the most frequently tested trap. The question gives you a class of 40 students, tells you how many play cricket and tennis, and asks "how many play neither?" You first find the union (those who play at least one), then subtract from the total.

Venn Diagram Labelling — The Mechanic That Never Fails

Draw two overlapping circles. Label three regions:

Always fill Region II first (the intersection, which is usually given). Then fill Region I and III. Sum of all four regions = n(U).

This labelling approach turns every set-theory question into a fill-in-the-blank exercise. You stop thinking in abstract formulas and start reading numbers off a diagram.

Three-Set Formula (Rare but Possible)

For completeness — if a question ever involves three sets A, B, C:

n(ABC)=n(A)+n(B)+n(C)n(AB)n(BC)n(AC)+n(ABC)n(A \cup B \cup C) = n(A) + n(B) + n(C) - n(A \cap B) - n(B \cap C) - n(A \cap C) + n(A \cap B \cap C)

UP Police Constable has not tested three-set problems in recent years based on available PYQs, so do not spend time here if you are short on prep time. Know the formula exists; master the two-set version cold.

Subset vs Proper Subset

A set P is a subset of Q (written P ⊆ Q) if every element of P is also in Q. A set P is a proper subset (P ⊂ Q) if P is a subset of Q but P ≠ Q.

The number of subsets of a set with n elements is 2ⁿ. This fact appears occasionally in definition-type MCQs. For a set with 3 elements: 2³ = 8 subsets.


Memory Tricks & Shortcuts

patternThe Subtraction Reflex

Every time a set question gives you n(A), n(B), and n(A ∩ B) and asks for n(A ∪ B), your hand should automatically write: Add the two, subtract the overlap. No thinking required.

Pattern: n(A ∪ B) = n(A) + n(B) − n(A ∩ B)

Micro-example: n(A) = 28, n(B) = 35, n(A ∩ B) = 12 → 28 + 35 − 12 = 51. Done.

Standard method (re-reading question + setting up from scratch): 40 seconds. This reflex: 8 seconds. The formula fires before you finish reading the last number.

patternNeither = Total Minus Union

"Neither" questions add a final step that many candidates miss. They find the union and then stop — that gives "at least one", not "neither".

Rule: Neither = n(U) − n(A ∪ B)

Micro-example: Class of 40, cricket = 15, tennis = 15, both = 5. Union = 15 + 15 − 5 = 25. Neither = 40 − 25 = 15.

Without this explicit reflex, candidates write 25 and pick the wrong option. With it: two-step, under 15 seconds.

patternFill the Venn First, Formula Second

If you are confused about what is being asked, skip straight to drawing the Venn diagram and labelling the three inner regions with actual numbers.

Region II (intersection) = given. Region I = n(A) − Region II. Region III = n(B) − Region II.

Sum of Region I + II + III = n(A ∪ B).

This converts a formula problem into a counting problem. Candidates who draw the Venn diagram make near-zero errors. Candidates who try to hold everything in their head make frequent sign errors. Drawing takes 10 extra seconds but saves 30 seconds of re-checking.

substitutionIntersection from Union — The Reverse Gear

Sometimes the question gives you n(A ∪ B) and asks for n(A ∩ B). Use the same formula in reverse:

n(A ∩ B) = n(A) + n(B) − n(A ∪ B)

Micro-example: n(A) = 30, n(B) = 25, n(A ∪ B) = 45 → intersection = 30 + 25 − 45 = 10.

Standard approach (re-deriving the formula from scratch): 5 steps. Reverse substitution: 1 step. Most candidates do not recognise when to use the reverse gear and waste 30+ seconds.


Fast-Solving Framework

Read the question and identify which of the four quantities is missing: union, intersection, "only A", or "neither".

Step 1 — Extract: note down n(A), n(B), n(A ∩ B), n(U) from the question. Circle what is missing.

Step 2 — If asked for union: n(A) + n(B) − n(A ∩ B). Done.

Step 3 — If asked for intersection: n(A) + n(B) − n(A ∪ B). Done.

Step 4 — If asked for "neither": First compute union (Step 2), then subtract from n(U).

Step 5 — If asked for "only A" or "only B": Subtract intersection from the respective set's count.

Decision rule: Any question with the words "at least one" is asking for the union. Any question with "neither" or "none of the above" is asking for n(U) − union. Do not confuse these two.

Cross-check: Region I + Region II + Region III + Neither must equal n(U). If it does not, you made an arithmetic error.


Solved PYQs

Why this question: This is the cleanest, most direct test of the inclusion-exclusion formula. No tricks, no extra steps — just the base formula.

Previous Year Questionपिछले वर्ष का प्रश्न2026
If A and B are two sets where the number of elements in set A is 28, the number of elements in set B is 35, and the number of elements common to both sets A and B is 12, determine n(A ∪ B).
यदि A और B दो समुच्चय हैं, जहाँ समुच्चय A में तत्वों की संख्या 28 है, समुच्चय B में तत्वों की संख्या 35 है, और दोनों समुच्चयों A और B में उभयनिष्ठ तत्वों की संख्या 12 है, तो n(A ∪ B) ज्ञात कीजिए।
  1. 50
  2. 36
  3. 51
  4. 27
  1. 51
  2. 50
  3. 27
  4. 36
Solutionसमाधान
n(A∪B) = n(A) + n(B) − n(A∩B) = 28 + 35 − 12 = 51.

Solving path: n(A) = 28, n(B) = 35, n(A ∩ B) = 12. Apply: 28 + 35 − 12 = 51. The correct answer is option (c). Do not add 28 + 35 = 63 and stop there — that is the most common wrong answer.


Why this question: The word "at least one" is code for "find the union". This question tests whether you recognise that trigger word.

Previous Year Questionपिछले वर्ष का प्रश्न2024
Based on a survey of 200 students, 140 students like cold drinks, 120 students like milkshakes, and 80 students like both. How many students like at least one of the drinks?
200 छात्रों के सर्वेक्षण के आधार पर, 140 छात्रों को कोल्ड ड्रिंक्स पसंद हैं, 120 छात्रों को मिल्कशेक पसंद है, और 80 छात्रों को दोनों पसंद हैं। कितने छात्रों को कम से कम एक पेय पसंद है?
  1. 75
  2. 180
  3. 200
  4. 140
  1. 200
  2. 140
  3. 180
  4. 75
Solutionसमाधान
Using inclusion-exclusion: n(A∪B) = n(A) + n(B) - n(A∩B) = 140 + 120 - 80 = 180.

Solving path: n(cold drinks) = 140, n(milkshakes) = 120, n(both) = 80. "At least one" = union = 140 + 120 − 80 = 180. The total surveyed (200) is irrelevant here because the question asks only for the union, not "neither". Do not subtract 180 from 200 — that would answer a different question. Answer: 180.


Why this question: Another direct union question, but with smaller numbers to confirm the formula works the same way regardless of scale.

Previous Year Questionपिछले वर्ष का प्रश्न2024
If A and B are two sets such that number of elements in A is 20, number of elements in B is 18 and number of elements in both A and B is 10, find n(A∪B).
यदि A और B दो समुच्चय इस प्रकार हैं कि A में तत्वों की संख्या 20 है, B में तत्वों की संख्या 18 है और A और B दोनों में तत्वों की संख्या 10 है, तो n(A∪B) ज्ञात कीजिए।
  1. 48
  2. 28
  3. 18
  4. 38
  1. 38
  2. 48
  3. 18
  4. 28
Solutionसमाधान
n(A∪B) = n(A) + n(B) - n(A∩B) = 20 + 18 - 10 = 28.

Solving path: n(A) = 20, n(B) = 18, n(A ∩ B) = 10. Union = 20 + 18 − 10 = 28. Answer: 28. The trap option here is 38 (forgetting to subtract the intersection) — that is what happens when you just add 20 + 18.


Why this question: This is the "neither" variant. It requires a two-step process and is where the most marks are lost in set theory.

Previous Year Questionपिछले वर्ष का प्रश्न2024
40 छात्रों की एक कक्षा में, 15 छात्र क्रिकेट खेलते हैं और 15 छात्र टेनिस खेलते हैं, और 5 छात्र दोनों खेल खेलते हैं। तो दोनों में से कोई भी खेल नहीं खेलने वाले छात्रों की संख्या है:
40 छात्रों की एक कक्षा में, 15 छात्र क्रिकेट खेलते हैं और 15 छात्र टेनिस खेलते हैं, और 5 छात्र दोनों खेल खेलते हैं। तो दोनों में से कोई भी खेल नहीं खेलने वाले छात्रों की संख्या है:
  1. 10
  2. 15
  3. 35
  4. 25
  1. 25
  2. 35
  3. 15
  4. 10
Solutionसमाधान
Students playing at least one game = 15 + 15 - 5 = 25. Students playing neither = 40 - 25 = 15.

Solving path: Total students = 40. Cricket = 15, Tennis = 15, Both = 5. Step 1 — at least one sport: 15 + 15 − 5 = 25. Step 2 — neither: 40 − 25 = 15. Answer: 15. The wrong answer candidates write is 25 — they solve Step 1 correctly but confuse "at least one" with the question being answered. The question asks for "neither", so you must do Step 2.


Common Mistakes


Related Topics

Practice on SarkariRise

Sign up + get 3 free mocks →