IIT JEE Mathematics · Chapter 1 of 22
Sets, Relations and Functions
JEE Main · Unit 1 JEE Advanced · Sets, Relations and Functions
Sets
- A set is a well-defined collection. Ways to write: roster {1, 2, 3} or set-builder {x : x ∈ ℕ, x < 4}.
- Subset A ⊆ B; proper subset A ⊂ B. Power set P(A) has 2n elements when n(A) = n.
- Operations: A ∪ B, A ∩ B, A − B = A ∩ B′, symmetric difference A Δ B = (A − B) ∪ (B − A).
n(A ∪ B) = n(A) + n(B) − n(A ∩ B)
n(A ∪ B ∪ C) = Σn(A) − Σn(A ∩ B) + n(A ∩ B ∩ C)
De Morgan: (A ∪ B)′ = A′ ∩ B′, (A ∩ B)′ = A′ ∪ B′
Relations
- A relation from A to B is any subset of A × B. If n(A) = m and n(B) = n, there are 2mn relations.
- On a set A: reflexive (a, a) ∈ R for all a; symmetric (a, b) ∈ R ⇒ (b, a) ∈ R; transitive (a, b), (b, c) ∈ R ⇒ (a, c) ∈ R.
- Equivalence relation = reflexive + symmetric + transitive. It splits A into disjoint equivalence classes.
On a set with n elements: reflexive relations = 2n² − n, symmetric relations = 2n(n+1)/2
Functions
- f : A → B gives every element of A exactly one image. Domain A, co-domain B, range = set of images.
- One-one (injective): f(x₁) = f(x₂) ⇒ x₁ = x₂. Test: strictly monotonic on its domain, or a horizontal line meets the graph at most once.
- Onto (surjective): range = co-domain. Bijective = one-one + onto; only bijections have an inverse.
- Even: f(−x) = f(x) (graph symmetric about the y-axis). Odd: f(−x) = −f(x) (symmetric about the origin). Every f = even part + odd part: f(x) = [f(x) + f(−x)]/2 + [f(x) − f(−x)]/2.
- Composition (g∘f)(x) = g(f(x)) needs range of f ⊆ domain of g. Composition is associative, not commutative.
Number of functions A → B = nm; one-one functions (m ≤ n) = ⁿPₘ; bijections when m = n: n!
Onto functions from m-set to n-set = Σk=0n (−1)k ⁿCₖ (n − k)m
- Special functions to know with graphs: |x|, greatest integer [x], fractional part {x} = x − [x], signum, eˣ, ln x, polynomial and rational functions.
- Periodic: f(x + T) = f(x). Periods: sin, cos → 2π; tan → π; {x} → 1; |sin x| → π. Period of sinⁿx/cosⁿx is π for even n, 2π for odd n.
Example 1
Find the domain of f(x) = √(log₀.₅(x − 1)).
Solution. Need x − 1 > 0 and log₀.₅(x − 1) ≥ 0. Base 0.5 < 1, so log₀.₅ t ≥ 0 ⇔ 0 < t ≤ 1. Hence 0 < x − 1 ≤ 1, i.e. x ∈ (1, 2].
Example 2
How many onto functions are there from a 4-element set to a 3-element set?
Solution. 3⁴ − ³C₁·2⁴ + ³C₂·1⁴ = 81 − 48 + 3 = 36.
Example 3
Is R = {(a, b) : a − b is divisible by 3} on ℤ an equivalence relation?
Solution. a − a = 0 (reflexive); if 3 | a − b then 3 | b − a (symmetric); if 3 | a − b and 3 | b − c then 3 | a − c (transitive). Yes; the classes are the three remainder classes 0, 1, 2 (mod 3).
⚠ Common mistake. For domains, the base of a logarithm must be positive and ≠ 1, and the argument must be strictly positive – students often forget the base condition when x appears in the base.
⚠ Common mistake. Onto depends on the co-domain. f(x) = x² is onto from ℝ to [0, ∞) but not from ℝ to ℝ.
★ Topper tip. For "one-one/onto" questions, sketch the graph first. Most JEE questions are decided in 20 seconds by monotonicity and range.
Practice questions
- Number of symmetric relations on a set with 3 elements.
- Domain of f(x) = 1/√([x]² − [x] − 6), where [·] is the greatest integer function.
- f(x) = (x − 1)/(x + 1), x ≠ −1. Find f⁻¹(x).
- Fundamental period of f(x) = |sin x| + |cos x|.
- If n(A) = 3 and n(B) = 5, number of one-one functions from A to B.
Show answers
- 2⁶ = 64
- [x] < −2 or [x] > 3, i.e. x ∈ (−∞, −2) ∪ [4, ∞)
- (1 + x)/(1 − x), x ≠ 1
- π/2
- ⁵P₃ = 60