Sets, Relations and Functions
JEE Main sets relations and functions: the key points tested in JEE Main maths, explained step by step. Sets, relations and functions form the language of the whole maths syllabus. JEE Main questions here test counting with sets, the properties of a relation (reflexive, symmetric, transitive), the domain and range of a function, and whether a function is one-one, onto or invertible.
What you need to be able to do A
What you need to be able to do for JEE Main, in our own words, based on the NTA syllabus for JEE Main Paper 1 and the NCERT maths books.
- Represent sets in roster and set-builder form and use union, intersection, complement and the counting formula for n(A ∪ B) and n(A ∪ B ∪ C).
- Count subsets, Cartesian products and relations, and test a relation for reflexivity, symmetry and transitivity.
- Find the domain and range of a function and decide whether it is one-one, onto or a bijection.
- Form compositions f∘g and g∘f, and find the inverse of a bijective function.
Sets and relations
A set is a well-defined collection of objects. It can be written in roster form, {2, 4, 6}, or in set-builder form, {x : x is an even natural number, x ≤ 6}. If A has n elements, it has 2ⁿ subsets, so its power set P(A) has 2ⁿ elements.
n(A ∪ B) = n(A) + n(B) − n(A ∩ B)
n(A ∪ B ∪ C) = n(A) + n(B) + n(C) − n(A ∩ B) − n(B ∩ C) − n(C ∩ A) + n(A ∩ B ∩ C)
De Morgan’s laws: (A ∪ B)′ = A′ ∩ B′ and (A ∩ B)′ = A′ ∪ B′. Also A − B = A ∩ B′.
The Cartesian product A × B = {(a, b) : a ∈ A, b ∈ B}. If n(A) = m and n(B) = p, then n(A × B) = mp. A relation from A to B is any subset of A × B, so there are 2ᵐᵖ relations from A to B.
| Property of R on A | Condition | Number of such relations, n(A) = n |
|---|---|---|
| Reflexive | (a, a) ∈ R for every a ∈ A | 2^(n² − n) |
| Symmetric | (a, b) ∈ R ⟹ (b, a) ∈ R | 2^(n(n + 1)/2) |
| Transitive | (a, b), (b, c) ∈ R ⟹ (a, c) ∈ R | no simple formula |
A relation that is reflexive, symmetric and transitive is an equivalence relation. It splits A into disjoint equivalence classes whose union is A.
Solved example. On the set of integers Z, define a R b if a − b is divisible by 3. Reflexive: a − a = 0 is divisible by 3. Symmetric: if 3 divides a − b, it divides b − a = −(a − b). Transitive: if 3 divides a − b and b − c, it divides their sum a − c. So R is an equivalence relation with three classes: numbers leaving remainder 0, 1 and 2 on division by 3.
Functions, composition and inverse
A function f : A → B assigns to every element of A exactly one element of B. A is the domain, B the codomain, and the set of actual images f(A) is the range. To find a domain, exclude values that make a denominator zero, a square root negative or a logarithm argument non-positive.
- One-one (injective): f(x₁) = f(x₂) ⟹ x₁ = x₂. On a graph, every horizontal line meets the curve at most once.
- Onto (surjective): range = codomain.
- Bijective: both one-one and onto. Only bijections have an inverse.
| Functions from A (m elements) to B (n elements) | Number |
|---|---|
| All functions | nᵐ |
| One-one (m ≤ n) | ⁿPₘ = n!/(n − m)! |
| Onto (m ≥ n) | nᵐ − ⁿC₁(n − 1)ᵐ + ⁿC₂(n − 2)ᵐ − … |
| Bijections (m = n) | n! |
The composition (g∘f)(x) = g(f(x)) is defined when the range of f lies in the domain of g. In general g∘f ≠ f∘g, but composition is associative. If f is a bijection, f⁻¹ satisfies f⁻¹(f(x)) = x, and (g∘f)⁻¹ = f⁻¹∘g⁻¹. The graph of f⁻¹ is the mirror image of the graph of f in the line y = x.
Solved example. Find the inverse of f(x) = (2x + 3)/(x − 1), f : R − {1} → R − {2}. Put y = (2x + 3)/(x − 1), so xy − y = 2x + 3, x(y − 2) = y + 3 and x = (y + 3)/(y − 2). Hence f⁻¹(x) = (x + 3)/(x − 2). The value 2 is missing from the range because x = (y + 3)/(y − 2) is undefined at y = 2.
A function is even if f(−x) = f(x) (graph symmetric about the y-axis) and odd if f(−x) = −f(x) (symmetric about the origin).
For “is f one-one?” questions, try two different inputs with the same output (such as x and −x for x²). For onto, solve y = f(x) for x and check that every y in the codomain gives an allowed x. Counting onto functions by inclusion–exclusion is a favourite numerical value question.
Common mistakes in JEE Main sets relations and functions
- Forgetting to subtract n(A ∩ B) once, or adding n(A ∩ B ∩ C) with the wrong sign, in union counting.
- Calling a relation transitive without checking every pair (a, b), (b, c), including pairs such as (1, 2), (2, 1) that force (1, 1).
- Taking the codomain as the range: f(x) = x² from R to R is not onto because negative numbers are never reached.
- Writing the inverse of a function that is not one-one, or forgetting to restrict the domain first.
- n(A ∪ B) = n(A) + n(B) − n(A ∩ B); a set with n elements has 2ⁿ subsets; there are 2ᵐᵖ relations from A to B.
- Equivalence relation = reflexive + symmetric + transitive; its classes partition the set.
- Only bijections are invertible: solve y = f(x) for x, then swap the letters; (g∘f)⁻¹ = f⁻¹∘g⁻¹.
Ready to practise?
A quick test and 2 question sets on JEE Main sets relations and functions in the style of JEE Main questions: 13 parts, 13 marks, with worked solutions.
More topics · JEE Main Maths
- Complex Numbers and Quadratic Equations
- Matrices and Determinants
- Permutations and Combinations
- Binomial Theorem
- Sequences and Series
- Limits, Continuity and Differentiability
- Integral Calculus
- Differential Equations
- Coordinate Geometry: Straight Lines and Circles
- Coordinate Geometry: Conic Sections
- Three-Dimensional Geometry
- Vector Algebra
- Statistics and Probability
- Trigonometry
- Mock test · JEE Main Maths