Module 58: Sets, relations and functions · Lesson 58.2 · about 25 min
Sets, relations and functions: question types and traps
Every way JEE, KEAM and COMEDK ask about sets, relations and functions: Venn counting, counting relations and functions, testing relation properties, domain and range, composition and inverse, greatest-integer and fractional-part functions, and functional equations, each with a method and its trap.
Maths · Class 11 and 12 · about 25 minutes. Read Sets, relations and functions first. Here are the question types, worked examples and practice.
The question types
Worked examples
Example 1 (level 2, Venn). In a class of 60, 35 take Physics, 30 Chemistry and 12 both. How many take neither? Solution. n(P ∪ C) = 35 + 30 − 12 = 53, so 7 take neither.
Example 2 (level 3, counting functions). How many onto functions are there from {1, 2, 3, 4} to {a, b, c}? Solution. 3⁴ − 3·2⁴ + 3·1⁴ = 81 − 48 + 3 = 36.
Example 3 (level 3, range). Find the range of f(x) = x/(x² + 1). Solution. y(x² + 1) = x ⇒ yx² − x + y = 0. For real x (y ≠ 0): D = 1 − 4y² ≥ 0 ⇒ −½ ≤ y ≤ ½; y = 0 occurs at x = 0. Range [−½, ½].
Example 4 (level 4, equivalence). On ℤ, define a R b if a − b is divisible by 5. Is R an equivalence relation, and how many classes are there? Solution. a − a = 0 (reflexive); a − b divisible ⇒ b − a divisible (symmetric); a − b and b − c divisible ⇒ a − c divisible (transitive). Yes, with 5 classes (remainders 0 to 4).
Example 5 (level 5, functional equation). f is continuous and f(x + y) = f(x) + f(y) for all real x, y, with f(1) = 3. Find f(x). Solution. x = y = 0 gives f(0) = 0; then f(n) = 3n for integers, f(p/q) = 3p/q for rationals, and continuity extends it: f(x) = 3x.
”[−x] = −[x].” Only for integers. [−2.3] = −3 but −[2.3] = −2. In general [x] + [−x] = −1 when x is not an integer.
- One-one test
- f(a) = f(b) ⇒ a = b, or f strictly increasing or decreasing
- Onto test
- range equals codomain
- Physical meaning
- A function is a machine with one output per input; one-one means no two inputs share an output, onto means every possible output is used.
Practise
- Venn questions: fill from the centre out; use inclusion-exclusion.
- Relations on n elements: 2^(n²) in all, 2^(n² − n) reflexive, 2^(n(n+1)/2) symmetric.
- Onto functions m → n: Σ(−1)ᵏC(n, k)(n − k)ᵐ.
- Range: solve for x and require it to be real (often a discriminant ≥ 0).
- [−x] = −[x] − 1 for non-integers; {x} has period 1.
- Functional equations: substitute 0, −x and equal values first.
Check yourself
Sources
- JEE Main and JEE Advanced 2026 syllabi: Sets, relations and functions; question patterns studied from published papers (no questions copied)
Your ticks stay in this browser. Save them as a file on the course home.
Updated 2026-11-22. Syllabus and exam patterns follow the official notices checked on 2026-11-22; they can change every year, so check the official exam website. All questions are original fibub work, not copied from past papers or books. Nothing you do here is sent anywhere.