Sets, Relations & Functions
Foundational chapter for JEE covering set theory, types of relations, function classification, composition, inverse functions, and special functions — the building blocks of higher mathematics.
Types of sets, set operations, Venn diagrams, De Morgan's laws, and cardinality — essential for JEE problem solving across all chapters.
Important types:
- Empty set $\emptyset$ — contains no elements. $|\emptyset| = 0$.
- Finite set — has a definite number of elements. Infinite set — otherwise.
- Subset: $A \subseteq B$ if every element of $A$ is in $B$. Proper subset: $A \subset B$ if $A \subseteq B$ and $A \neq B$.
- Power set: $\mathcal{P}(A)$ is the set of all subsets of $A$. If $|A| = n$, then $|\mathcal{P}(A)| = 2^n$.
Intersection: $A \cap B = \{x : x \in A \text{ and } x \in B\}$
Difference: $A - B = \{x : x \in A \text{ and } x \notin B\}$
Complement: $A' = U - A$ where $U$ is the universal set.
Symmetric Difference: $A \triangle B = (A - B) \cup (B - A)$
JEE Trick: To find complement of a union, take intersection of complements (and vice versa). This extends to any finite number of sets.
For three sets: $|A \cup B \cup C| = |A| + |B| + |C| - |A \cap B| - |B \cap C| - |A \cap C| + |A \cap B \cap C|$
JEE Shortcut: In Venn diagram problems, always start filling from the innermost region outward.
Types of relations — reflexive, symmetric, transitive, equivalence relations, and equivalence classes. Key for JEE Advanced.
Properties of relations on a set $A$:
- Reflexive: $(a, a) \in R$ for all $a \in A$
- Symmetric: $(a, b) \in R \Rightarrow (b, a) \in R$
- Transitive: $(a, b) \in R$ and $(b, c) \in R \Rightarrow (a, c) \in R$
- Anti-symmetric: $(a, b) \in R$ and $(b, a) \in R \Rightarrow a = b$
Number of reflexive relations on $A$ with $|A| = n$: $2^{n^2 - n}$.
Number of symmetric relations on $A$: $2^{\frac{n(n+1)}{2}}$.
Symmetric: If $3 | (a-b)$, then $3 | (b-a)$. Yes.
Transitive: If $3 | (a-b)$ and $3 | (b-c)$, then $3 | ((a-b)+(b-c)) = 3 | (a-c)$. Yes.
So $R$ is an equivalence relation. Equivalence classes: $[0] = \{\ldots,-3,0,3,6,\ldots\}$, $[1] = \{\ldots,-2,1,4,7,\ldots\}$, $[2] = \{\ldots,-1,2,5,8,\ldots\}$.
Domain, range, types of functions (injective, surjective, bijective), composition, and inverse functions.
- Injective (One-one): $f(a_1) = f(a_2) \Rightarrow a_1 = a_2$. Horizontal line test — each $y$-value hit at most once.
- Surjective (Onto): For every $b \in B$, there exists $a \in A$ with $f(a) = b$. Range $= $ codomain.
- Bijective: Both injective and surjective. Has a unique inverse.
Total functions: $n^m$
Injective functions (if $m \leq n$): $n \cdot (n-1) \cdots (n-m+1) = \frac{n!}{(n-m)!}$
Surjective functions: $\sum_{k=0}^{n} (-1)^k \binom{n}{k}(n-k)^m$
Note: $g \circ f \neq f \circ g$ in general. Composition is associative: $h \circ (g \circ f) = (h \circ g) \circ f$.
Key facts: $(f^{-1})^{-1} = f$; $(g \circ f)^{-1} = f^{-1} \circ g^{-1}$; graph of $f^{-1}$ is the reflection of graph of $f$ about $y = x$.
So $f^{-1}(x) = \frac{x+3}{x-2}$. Notice $f^{-1} = f$ — this is an involution.
Floor, ceiling, fractional part, signum, and greatest integer functions — frequently tested in JEE Mains and Advanced.
Ceiling: $\lceil x \rceil$ = least integer $\geq x$.
Fractional Part: $\{x\} = x - \lfloor x \rfloor$, so $0 \leq \{x\} < 1$.
$[x] + [-x] = \begin{cases} 0 & \text{if } x \in \mathbb{Z} \\ -1 & \text{if } x \notin \mathbb{Z} \end{cases}$
$\{x\} + \{-x\} = \begin{cases} 0 & \text{if } x \in \mathbb{Z} \\ 1 & \text{if } x \notin \mathbb{Z} \end{cases}$
JEE Trick: $[x] \leq x < [x] + 1$. For solving $[f(x)] = k$, convert to $k \leq f(x) < k+1$.
Useful identity: $x = |x| \cdot \text{sgn}(x)$.
JEE Trap: Students often forget that $[x] \leq x$ by definition. The domain is the empty set.
Graph transformations — shifts, reflections, scaling — and recognising standard function graphs. Critical for JEE Advanced curve-based problems.
$y = f(x - a)$: shift right by $a$ units
$y = f(x) + b$: shift up by $b$ units
$y = -f(x)$: reflect about $x$-axis
$y = f(-x)$: reflect about $y$-axis
$y = |f(x)|$: take the part below $x$-axis, reflect it above
$y = f(|x|)$: keep the right half, mirror it to the left
Odd: $f(-x) = -f(x)$ — symmetric about origin.
Trick: Every function $f$ can be written as $f(x) = \frac{f(x)+f(-x)}{2} + \frac{f(x)-f(-x)}{2}$ (even + odd parts).
- Always apply Inclusion-Exclusion for counting problems with sets — start from the innermost region in Venn diagrams.
- For equivalence relations, verify all three properties (reflexive, symmetric, transitive) independently — missing one means it is not an equivalence relation.
- Number of onto functions from $m$ to $n$: use the formula with inclusion-exclusion — this connects to Stirling numbers and is a JEE Advanced favourite.
- $[x] + [-x]$ equals $0$ if $x$ is an integer, $-1$ otherwise — a common trap in JEE.
- The graph of $y = f(|x|)$ is always symmetric about the $y$-axis regardless of $f$.