What this unit covers
This unit builds the language the rest of mathematics is written in. It starts with sets – how to describe them, how to combine them, and how to count elements in unions and intersections. It then pairs elements of two sets to form Cartesian products and relations, studies the properties a relation can have (reflexive, symmetric, transitive, equivalence), and treats a function as a special kind of relation. The second half is about functions: domain and range, the standard real functions, one-one and onto functions and how to count them, even and odd functions, composition and inverses.
JEE Main lists sets and their representation, union, intersection and complement with their algebraic properties, the power set, types of relations, equivalence relations, one-one, into and onto functions and composition of functions. JEE Advanced goes further, into practical counting problems, special functions such as the greatest integer function, even and odd functions and invertible functions. CUET UG concentrates on the types of relations and on one-one and onto functions. These notes are written to JEE Advanced depth and cover everything the other two ask. Inverse trigonometric functions are taught in the Trigonometry unit, and limits and continuity of functions in Limits, continuity and differentiability.
How to use these notes: read sections 1–4 once, then do every worked example yourself before looking at the solution. Sections 6–9 (domain, range, types of functions and inverses) carry most of the marks in JEE – keep the checklist in section 6 and the counting formulas in section 8 at your fingertips.
1. Sets and how to describe them
A set is a well-defined collection of distinct objects. "Well-defined" means that for any object we can say definitely whether it belongs to the collection. "The vowels of the English alphabet" is a set; "the good cricketers of India" is not, because "good" is a matter of opinion. The objects are called elements or members. We write a ∈ A for "a belongs to A" and a ∉ A for "a does not belong to A".
1.1 Two ways to write a set
- Roster (tabular) form – list the elements inside braces: A = {1, 2, 3, 4, 6, 12}. Order does not matter and repeated elements are written once, so {1, 2, 2, 3} = {3, 1, 2}.
- Set-builder form – state the property every element has: A = {x : x is a positive integer that divides 12}. The colon is read "such that".
Standard sets used throughout: N (natural numbers 1, 2, 3, …), Z (integers), Q (rational numbers), R (real numbers) and C (complex numbers). Z+ denotes the positive integers.
1.2 Kinds of sets
| Term | Meaning | Example |
|---|---|---|
| Empty (null, void) set | Has no element; written ∅ or { } | {x ∈ R : x2 = −1} |
| Singleton set | Has exactly one element | {0} |
| Finite set | Empty, or its elements can be counted and the counting ends | {x : x is a prime less than 20} |
| Infinite set | Not finite | N, the set of points on a line |
| Equal sets | Exactly the same elements | {1, 2} = {2, 1} |
| Equivalent sets | Same number of elements, n(A) = n(B) | {a, b, c} and {1, 2, 3} |
| Universal set U | The set containing all elements under discussion | R when working with real functions |
n(A) denotes the number of elements of a finite set A (its cardinality). Note that {0} and {∅} are not empty: each has one element.
1.3 Subsets and the power set
A is a subset of B, written A ⊆ B, if every element of A is an element of B. A is a proper subset of B, written A ⊂ B, if A ⊆ B and A ≠ B. Two consequences are used constantly:
- ∅ ⊆ A and A ⊆ A for every set A.
- A = B exactly when A ⊆ B and B ⊆ A. This is the standard way to prove two sets are equal.
The power set P(A) is the set of all subsets of A. If n(A) = n, each element is either in or out of a subset, so
- number of subsets of A = n(P(A)) = 2n
- number of proper subsets = 2n − 1
- number of non-empty proper subsets = 2n − 2
For example, A = {1, 2} gives P(A) = {∅, {1}, {2}, {1, 2}}, with 22 = 4 elements. Elements of P(A) are sets, so {1} ∈ P(A) while 1 ∉ P(A).
1.4 Intervals as subsets of R
For real numbers a < b: the open interval (a, b) = {x : a < x < b}; the closed interval [a, b] = {x : a ≤ x ≤ b}; the half-open intervals [a, b) and (a, b]; and the infinite intervals such as [a, ∞) = {x : x ≥ a} and (−∞, b) = {x : x < b}. A square bracket includes the end point; a round bracket excludes it. Infinity is never included. These are the sets in which domains and ranges are written.
Worked example 1 (easy). A set A has 3 elements. How many elements does P(P(A)) have? Which of these are true: ∅ ∈ P(A), ∅ ⊆ P(A), {∅} ⊆ P(A)?
Solution. n(P(A)) = 23 = 8, so n(P(P(A))) = 28 = 256. The empty set is a subset of A, so ∅ ∈ P(A) is true. The empty set is a subset of every set, so ∅ ⊆ P(A) is true. The only element of {∅} is ∅, which belongs to P(A), so {∅} ⊆ P(A) is also true. All three are true.
Exam point: questions that mix ∈ and ⊆ are a favourite. Ask "is the thing on the left an element, or a collection of elements?" An element goes with ∈; a set whose every element lies in the right-hand set goes with ⊆.
2. Operations on sets and their laws
Let A and B be subsets of a universal set U.
| Operation | Definition | Read as |
|---|---|---|
| Union A ∪ B | {x : x ∈ A or x ∈ B} | in A or B (or both) |
| Intersection A ∩ B | {x : x ∈ A and x ∈ B} | in both |
| Difference A − B | {x : x ∈ A and x ∉ B} | in A but not in B |
| Complement A′ | U − A = {x ∈ U : x ∉ A} | not in A |
| Symmetric difference A Δ B | (A − B) ∪ (B − A) | in exactly one of A, B |
Sets with A ∩ B = ∅ are disjoint. Useful identities: A − B = A ∩ B′, and A Δ B = (A ∪ B) − (A ∩ B). The three sets A − B, A ∩ B and B − A are pairwise disjoint and their union is A ∪ B; drawing them as the three regions of a Venn diagram makes most counting problems routine.
2.1 Algebraic laws
For all subsets A, B, C of U:
| Law | Union form | Intersection form |
|---|---|---|
| Idempotent | A ∪ A = A | A ∩ A = A |
| Identity | A ∪ ∅ = A | A ∩ U = A |
| Domination | A ∪ U = U | A ∩ ∅ = ∅ |
| Commutative | A ∪ B = B ∪ A | A ∩ B = B ∩ A |
| Associative | (A ∪ B) ∪ C = A ∪ (B ∪ C) | (A ∩ B) ∩ C = A ∩ (B ∩ C) |
| Distributive | A ∪ (B ∩ C) = (A ∪ B) ∩ (A ∪ C) | A ∩ (B ∪ C) = (A ∩ B) ∪ (A ∩ C) |
| De Morgan | (A ∪ B)′ = A′ ∩ B′ | (A ∩ B)′ = A′ ∪ B′ |
| Complement | A ∪ A′ = U | A ∩ A′ = ∅ |
| Absorption | A ∪ (A ∩ B) = A | A ∩ (A ∪ B) = A |
Also (A′)′ = A, U′ = ∅ and ∅′ = U. De Morgan's laws work for differences too: A − (B ∪ C) = (A − B) ∩ (A − C) and A − (B ∩ C) = (A − B) ∪ (A − C). Each law is proved by showing each side is a subset of the other, or by checking every region of a Venn diagram.
The symmetric difference is commutative and associative, A Δ ∅ = A and A Δ A = ∅. Intersection distributes over it: A ∩ (B Δ C) = (A ∩ B) Δ (A ∩ C).
Exam point: JEE likes to ask which of several set identities is false. The quickest test is a small concrete example – take U = {1, 2, 3, 4} and choose A, B, C to break the identity. One counterexample settles it; a proof is never needed in an MCQ.
3. Counting with unions and intersections
For finite sets the inclusion–exclusion principle gives:
- 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)
and, from these:
- n(A − B) = n(A) − n(A ∩ B)
- n(A Δ B) = n(A) + n(B) − 2n(A ∩ B)
- n(A′ ∩ B′) = n(U) − n(A ∪ B) (neither A nor B), by De Morgan
- if A and B are disjoint, n(A ∪ B) = n(A) + n(B)
For three sets, write a = Σn(A) (sum of the three single counts), b = Σn(A ∩ B) (sum of the three pairwise counts) and c = n(A ∩ B ∩ C). Then the number of elements in exactly one set is a − 2b + 3c, and the number in exactly two sets is b − 3c.
Worked example 2 (JEE Main level). In a group of 60 students, 25 like tea, 26 like coffee and 26 like juice; 9 like tea and coffee, 11 like tea and juice, 8 like coffee and juice, and 3 like all three. How many like none of the three? How many like exactly one?
Solution. Let T, C, J be the three sets.
n(T ∪ C ∪ J) = 25 + 26 + 26 − 9 − 11 − 8 + 3 = 52.
None of the three: 60 − 52 = 8.
Exactly one: a = 77, b = 28, c = 3, so a − 2b + 3c = 77 − 56 + 9 = 30.
Check with the Venn regions: tea only = 25 − 9 − 11 + 3 = 8, coffee only = 26 − 9 − 8 + 3 = 12, juice only = 26 − 11 − 8 + 3 = 10, total 8 + 12 + 10 = 30.
Exam point: in survey problems, fill the Venn diagram from the centre outwards – all three first, then the "exactly two" regions, then the "only" regions. Many wrong answers come from subtracting the pairwise numbers without first removing the triple overlap.
Questions sometimes give a range rather than a value: "if 70% like A and 80% like B, what is the least possible percentage who like both?" From n(A ∪ B) ≤ 100%, n(A ∩ B) = n(A) + n(B) − n(A ∪ B) ≥ 70 + 80 − 100 = 50%. The largest possible overlap is the smaller of the two, 70%.
4. Ordered pairs, Cartesian products and relations
4.1 Cartesian product
An ordered pair (a, b) has a first and a second entry, so (a, b) = (c, d) exactly when a = c and b = d; in general (a, b) ≠ (b, a). The Cartesian product of non-empty sets A and B is
A × B = {(a, b) : a ∈ A, b ∈ B}.
If n(A) = p and n(B) = q, then n(A × B) = pq. If either set is empty, A × B = ∅. A × B ≠ B × A unless A = B (or one of them is empty). R × R is the coordinate plane, and A × A × A = {(a, b, c) : a, b, c ∈ A} is the set of ordered triples.
Properties worth remembering:
- A × (B ∪ C) = (A × B) ∪ (A × C)
- A × (B ∩ C) = (A × B) ∩ (A × C)
- A × (B − C) = (A × B) − (A × C)
- (A × B) ∩ (C × D) = (A ∩ C) × (B ∩ D)
- if A ⊆ B, then A × C ⊆ B × C
4.2 Relations
A relation R from A to B is any subset of A × B. If (a, b) ∈ R we write a R b and call b the image of a under R. The domain of R is the set of first entries, the range is the set of second entries actually used, and the codomain is the whole of B. The range is always a subset of the codomain.
Because a relation is just a subset of A × B, and A × B has pq elements, the number of relations from A to B is 2pq. A relation from A to A is called a relation on A; a set with n elements carries 2n2 relations.
The inverse relation is R−1 = {(b, a) : (a, b) ∈ R}, a relation from B to A. Its domain is the range of R and its range is the domain of R.
Worked example 3. Let A = {1, 2, 3, 4} and R = {(a, b) : a, b ∈ A, b = a + 1}. Write R, its domain, range and inverse, and find how many relations there are from A to B = {x, y, z}.
Solution. R = {(1, 2), (2, 3), (3, 4)}. Domain {1, 2, 3}; range {2, 3, 4}; codomain A. R−1 = {(2, 1), (3, 2), (4, 3)}. Since n(A × B) = 4 × 3 = 12, there are 212 = 4096 relations from A to B.
5. Types of relations and equivalence relations
Let R be a relation on a set A.
| Type | Condition |
|---|---|
| Empty (void) relation | R = ∅: no element is related to any element |
| Universal relation | R = A × A: every element is related to every element |
| Identity relation | R = {(a, a) : a ∈ A} |
| Reflexive | (a, a) ∈ R for every a ∈ A |
| Symmetric | (a, b) ∈ R implies (b, a) ∈ R |
| Antisymmetric | (a, b) ∈ R and (b, a) ∈ R imply a = b |
| Transitive | (a, b) ∈ R and (b, c) ∈ R imply (a, c) ∈ R |
| Equivalence relation | Reflexive, symmetric and transitive together |
Points that catch students:
- Reflexive needs every (a, a). On A = {1, 2, 3}, R = {(1, 1), (2, 2)} is not reflexive because (3, 3) is missing.
- Symmetric and transitive are "if … then" conditions. When the "if" part never happens, the condition holds automatically. So the empty relation on a non-empty set is symmetric and transitive but not reflexive, and {(1, 1)} on {1, 2} is symmetric and transitive but not reflexive.
- Symmetric and antisymmetric are not opposites: the identity relation is both, and some relations are neither.
- The identity relation and the universal relation are both equivalence relations.
Standard examples: "is congruent to" on triangles, "is parallel to or coincident with" on lines, and "a − b is divisible by m" on Z are equivalence relations. "≤" on R is reflexive, antisymmetric and transitive but not symmetric. "Is perpendicular to" on lines in a plane is symmetric only. "|a − b| ≤ 1" on R is reflexive and symmetric but not transitive, since 0 R 1 and 1 R 2 but 0 is not related to 2.
5.1 Equivalence classes and partitions
If R is an equivalence relation on A, the equivalence class of a is [a] = {x ∈ A : x R a}. Any two classes are either identical or disjoint, and together they cover A, so the classes form a partition of A (a split of A into non-empty, pairwise disjoint subsets whose union is A). Conversely every partition of A defines an equivalence relation: "x R y when x and y lie in the same block". So counting equivalence relations on A is the same as counting partitions of A. A set of 3 elements has 5 partitions, and a set of 4 elements has 15.
Worked example 4 (JEE Main level). On Z define a R b when a − b is divisible by 3. Show that R is an equivalence relation and find its classes.
Solution. Reflexive: a − a = 0 = 3 × 0. Symmetric: if a − b = 3k, then b − a = 3(−k). Transitive: if a − b = 3k and b − c = 3m, then a − c = 3(k + m). So R is an equivalence relation. The classes are [0] = {…, −3, 0, 3, 6, …}, [1] = {…, −2, 1, 4, 7, …} and [2] = {…, −1, 2, 5, 8, …}: three disjoint classes, given by the remainder on division by 3, whose union is Z.
5.2 Counting relations with a property
For a set A with n elements there are n2 ordered pairs: n "diagonal" pairs (a, a) and n2 − n off-diagonal pairs, which fall into n(n − 1)/2 unordered couples {(a, b), (b, a)}.
| Relations on an n-element set | Number | Reason |
|---|---|---|
| All relations | 2n2 | each pair in or out |
| Reflexive | 2n2 − n | diagonal forced in; off-diagonal free |
| Symmetric | 2n(n+1)/2 | diagonal free; each couple in or out together |
| Reflexive and symmetric | 2n(n−1)/2 | diagonal forced; each couple in or out together |
| Antisymmetric | 2n × 3n(n−1)/2 | diagonal free; each couple: neither, first only, or second only |
For n = 3: 512 relations in all, 64 reflexive, 64 symmetric, 8 reflexive and symmetric, 216 antisymmetric, and 5 equivalence relations. There is no simple closed formula for transitive relations; JEE questions on transitivity are about checking, not counting.
Exam point: a common question asks for the smallest relation containing given pairs that is an equivalence relation, or how many equivalence relations contain a given pair. Think in partitions: on {1, 2, 3}, the equivalence relations containing (1, 2) are those whose partition puts 1 and 2 in the same block – {1, 2}{3} and {1, 2, 3} – so there are exactly 2.
6. Functions: definition, domain and range
A function (or map) f from A to B, written f : A → B, is a relation from A to B in which every element of A has exactly one image in B. A is the domain, B the codomain, and the set of images actually taken, f(A) = {f(x) : x ∈ A}, is the range. The range is a subset of the codomain.
Two failures stop a relation from being a function: an element of A with no image, or an element of A with two or more images. Several elements may share one image – that is allowed. On a graph, a curve is the graph of a function of x when every vertical line through a point of the domain meets it exactly once (the vertical line test).
If n(A) = m and n(B) = n, each of the m elements can choose its image in n ways, so the number of functions from A to B is nm.
Two functions are equal when they have the same domain, the same codomain and f(x) = g(x) for every x. So f(x) = x and g(x) = x2/x are not equal: g is not defined at 0.
6.1 Finding the domain of a real function
When a real function is given only by a formula, its domain is taken to be the largest subset of R on which the formula gives a real value. Collect every condition and intersect them:
| Expression | Condition |
|---|---|
| p(x)/q(x) | q(x) ≠ 0 |
| √(g(x)), any even root | g(x) ≥ 0 |
| 1/√(g(x)) | g(x) > 0 |
| loga g(x) | g(x) > 0, with base a > 0 and a ≠ 1 (if the base depends on x, apply both to it) |
| sin−1 g(x) or cos−1 g(x) | −1 ≤ g(x) ≤ 1 |
| tan x, sec x | x ≠ (2k + 1)π/2, k ∈ Z |
| cot x, cosec x | x ≠ kπ, k ∈ Z |
Worked example 5 (JEE Main level). Find the domain of f(x) = √(log10((5x − x2)/4)).
Solution. Two conditions. The logarithm needs (5x − x2)/4 > 0, which is 0 < x < 5. The square root needs log10((5x − x2)/4) ≥ 0, that is (5x − x2)/4 ≥ 1, so 5x − x2 ≥ 4, so x2 − 5x + 4 ≤ 0, so (x − 1)(x − 4) ≤ 0, giving 1 ≤ x ≤ 4. This lies inside (0, 5), so the domain is [1, 4].
6.2 Finding the range
There is no single method; choose by the form of the function.
- Solve for x. Put y = f(x), make x the subject, and find the y for which a real x exists in the domain. Works well for f(x) = (ax + b)/(cx + d).
- Discriminant method. For y = (quadratic)/(quadratic), clear denominators to get a quadratic in x; real x requires discriminant ≥ 0. Check separately the value of y that makes the leading coefficient zero, and any x the original function excludes.
- Completing the square or known bounds. x2 ≥ 0, −1 ≤ sin x ≤ 1, ax > 0, the AM–GM inequality x + 1/x ≥ 2 for x > 0.
- Monotonicity. A continuous increasing function on [a, b] has range [f(a), f(b)]. (Derivatives are developed in the calculus units.)
Worked example 6 (JEE Advanced level). Find the range of f(x) = (x2 − x + 1)/(x2 + x + 1), x ∈ R.
Solution. The denominator x2 + x + 1 has discriminant 1 − 4 < 0, so it is never zero and the domain is R. Put y = f(x):
y(x2 + x + 1) = x2 − x + 1, so (y − 1)x2 + (y + 1)x + (y − 1) = 0.
If y = 1 this becomes 2x = 0, so x = 0 gives y = 1 – that value is attained. If y ≠ 1, real x needs discriminant ≥ 0:
(y + 1)2 − 4(y − 1)2 ≥ 0, which factorises as (y + 1 − 2y + 2)(y + 1 + 2y − 2) ≥ 0, that is (3 − y)(3y − 1) ≥ 0, so 1/3 ≤ y ≤ 3.
Range = [1/3, 3]. Check: f(1) = 1/3 and f(−1) = 3.
Exam point: in the discriminant method always ask two extra questions – is the value of y that kills the x2 term actually attained, and does any boundary value of y come from an x outside the domain? Missing either gives a wrong interval end.
7. Standard real functions
Know the domain, range and graph of each. In the table, "abs" is used for the modulus to keep it readable.
| Function | Rule | Domain | Range |
|---|---|---|---|
| Identity | f(x) = x | R | R |
| Constant | f(x) = c | R | {c} |
| Polynomial | a0 + a1x + … + anxn | R | depends on degree; all of R for odd degree |
| Rational | p(x)/q(x) | R minus zeros of q | depends |
| Modulus | abs(x) = x for x ≥ 0, −x for x < 0 | R | [0, ∞) |
| Signum | sgn x = 1, 0, −1 for x > 0, x = 0, x < 0 | R | {−1, 0, 1} |
| Greatest integer | [x] = greatest integer ≤ x | R | Z |
| Fractional part | {x} = x − [x] | R | [0, 1) |
| Exponential | ax, a > 0, a ≠ 1 | R | (0, ∞) |
| Logarithmic | loga x, a > 0, a ≠ 1 | (0, ∞) | R |
| Square root | √x | [0, ∞) | [0, ∞) |
| Reciprocal | 1/x | R minus {0} | R minus {0} |
| sin x, cos x | R | [−1, 1] | |
| tan x | R minus odd multiples of π/2 | R |
The modulus satisfies |x| = √(x2), |xy| = |x||y|, |x + y| ≤ |x| + |y| (the triangle inequality, with equality when xy ≥ 0), and |x| < a (a > 0) means −a < x < a. For x ≠ 0, sgn x = |x|/x.
Greatest integer function. [x] is the integer n with n ≤ x < n + 1; so [2.7] = 2, [−2.7] = −3, [5] = 5. Its graph is a staircase, constant on each [n, n + 1). Properties:
- x − 1 < [x] ≤ x
- [x + n] = [x] + n for every integer n
- [x] + [−x] = 0 if x is an integer, and −1 otherwise
- [x] ≥ n exactly when x ≥ n; [x] < n exactly when x < n (n an integer)
Fractional part. {x} = x − [x] lies in [0, 1); {2.7} = 0.7, {−2.7} = 0.3. It is periodic with period 1. (Some books use (x) or frac(x); read the question's notation.)
Worked example 7. Solve [x]2 − 5[x] + 6 = 0.
Solution. Treat [x] as an unknown integer t: t2 − 5t + 6 = 0 gives t = 2 or t = 3. [x] = 2 means 2 ≤ x < 3 and [x] = 3 means 3 ≤ x < 4. The solution set is [2, 4).
Exam point: [−x] is not −[x]. For x = 2.3, [−2.3] = −3 but −[2.3] = −2. Equations and domains involving [x] are solved by first finding the allowed integer values of [x], then turning each into an interval.
8. One-one, onto and their counts
8.1 Definitions and tests
Let f : A → B.
- One-one (injective): different inputs give different outputs; f(x1) = f(x2) implies x1 = x2. Otherwise f is many-one.
- Onto (surjective): every element of B is an image; range = codomain. Otherwise f is into (range is a proper subset of the codomain).
- Bijective: one-one and onto.
Ways to test:
- Algebraic: assume f(x1) = f(x2) and try to deduce x1 = x2.
- Horizontal line test: f is one-one if every horizontal line meets the graph at most once.
- Monotonicity: a function that is strictly increasing or strictly decreasing on its domain is one-one. A continuous function that turns back (has a local maximum or minimum inside the domain) is many-one.
- Onto: find the range and compare it with the codomain.
Examples on R → R: f(x) = 2x + 3 is bijective; f(x) = x2 is neither (f(−1) = f(1), and −1 is not an image); f(x) = x3 is bijective; f(x) = ex is one-one but into (range (0, ∞)). Restricting the domain or codomain changes the answer: x2 from [0, ∞) to [0, ∞) is bijective.
For finite sets: if f : A → B is one-one then n(A) ≤ n(B); if onto then n(A) ≥ n(B). If n(A) = n(B) and A, B are finite, then f is one-one exactly when it is onto.
8.2 Counting functions between finite sets
Let n(A) = m and n(B) = n.
| Functions from A to B | Number |
|---|---|
| All functions | nm |
| One-one (m ≤ n) | n(n − 1)(n − 2)…(n − m + 1) = nPm; zero if m > n |
| Bijections (m = n) | n! |
| Onto (m ≥ n) | nm − nC1(n − 1)m + nC2(n − 2)m − … (alternating sum up to the (n − 1) term) |
| Many-one | nm − (number of one-one) |
| Into | nm − (number of onto) |
The onto formula is inclusion–exclusion: from all nm functions remove those missing at least one element of B. For n = 2 it gives 2m − 2; for n = 3 it gives 3m − 3 × 2m + 3.
Worked example 8 (JEE Main level). A = {1, 2, 3, 4, 5}, B = {a, b, c}. How many functions from A to B are onto? How many are into?
Solution. All functions: 35 = 243. Onto: 243 − 3 × 25 + 3 × 15 = 243 − 96 + 3 = 150. Into: 243 − 150 = 93. (No function from A to B is one-one, since 5 > 3.)
9. Even, odd and periodic functions
Let the domain D be symmetric about 0 (x ∈ D implies −x ∈ D).
- Even: f(−x) = f(x) for all x in D; the graph is symmetric about the y-axis. Examples: x2, |x|, cos x.
- Odd: f(−x) = −f(x) for all x in D; the graph is symmetric about the origin, and if 0 ∈ D then f(0) = 0. Examples: x3, sin x, tan x, sgn x.
Most functions are neither (for example x + 1 or ex). The only function that is both even and odd on a symmetric domain is f(x) = 0. Every function on a symmetric domain splits uniquely as
f(x) = [f(x) + f(−x)]/2 + [f(x) − f(−x)]/2,
the first part even and the second odd. For f(x) = ex these are cosh x = (ex + e−x)/2 and sinh x = (ex − e−x)/2.
Combination rules: even × even and odd × odd are even; even × odd is odd; the sum of two odd functions is odd and of two even functions is even. If g is even, f∘g is even; if both f and g are odd, f∘g is odd.
A useful odd function: f(x) = log(x + √(x2 + 1)). Here f(−x) = log(√(x2 + 1) − x), and multiplying and dividing by √(x2 + 1) + x gives log(1/(x + √(x2 + 1))) = −f(x).
A function is periodic with period T > 0 if f(x + T) = f(x) for every x in the domain; the smallest such T is the fundamental period. sin x and cos x have period 2π; tan x and |sin x| have period π; {x} has period 1. If f has period T, then f(ax + b) (a > 0) has period T/a.
10. Algebra and composition of functions
For f : D1 → R and g : D2 → R, the functions f + g, f − g and fg are defined on D1 ∩ D2 by adding, subtracting or multiplying values, and f/g on D1 ∩ D2 with the points where g(x) = 0 removed. A scalar multiple cf has the domain of f.
The composition g∘f ("g after f") is (g∘f)(x) = g(f(x)). It is defined at x when x is in the domain of f and f(x) is in the domain of g. Facts:
- Composition is associative: h∘(g∘f) = (h∘g)∘f.
- It is not commutative in general. With f(x) = x + 1 and g(x) = x2: (g∘f)(x) = (x + 1)2 but (f∘g)(x) = x2 + 1.
- If f and g are both one-one, g∘f is one-one; if both are onto, g∘f is onto; so the composition of bijections is a bijection.
- If g∘f is one-one, then f must be one-one; if g∘f is onto, then g must be onto.
Worked example 9 (JEE Advanced level). Let f(x) = 1/(1 − x). Find f∘f and f∘f∘f, with their domains.
Solution. f is defined for x ≠ 1. For f(f(x)) we need x ≠ 1 and f(x) ≠ 1; f(x) is never 0, and f(x) = 1 only at x = 0, so we need x ≠ 0, 1. Then
f(f(x)) = 1/(1 − 1/(1 − x)) = (1 − x)/(1 − x − 1) = (1 − x)/(−x) = (x − 1)/x.
For the third application we also need f(f(x)) ≠ 1, but (x − 1)/x = 1 has no solution, so the domain stays R − {0, 1}:
f(f(f(x))) = 1/(1 − (x − 1)/x) = 1/(1/x) = x, for x ≠ 0, 1.
So applying f three times returns every allowed x to itself. It follows that f applied 3k times is the identity on R − {0, 1}, and f applied 3k + 1 times is f.
11. Invertible functions
A function f : A → B is invertible if there is a function g : B → A with g(f(x)) = x for all x in A and f(g(y)) = y for all y in B. Then g is unique and is written f−1.
f is invertible exactly when f is a bijection. If f is not one-one, some y comes from two x's and cannot be sent back to both; if f is not onto, some y in B has nowhere to go.
To find f−1:
- Check that f is one-one and onto (restrict the domain or codomain if needed).
- Write y = f(x) and solve for x in terms of y, choosing the branch that lies in the original domain.
- Swap the letters: f−1(x) = that expression. Its domain is the range of f.
Properties:
- (f−1)−1 = f, and (g∘f)−1 = f−1∘g−1 (reverse order, like putting on socks then shoes).
- The graph of f−1 is the reflection of the graph of f in the line y = x.
- If f is strictly increasing, the solutions of f(x) = f−1(x) are exactly the solutions of f(x) = x. (This can fail for decreasing functions.)
- f is self-inverse when f∘f is the identity, so f−1 = f. Example: f(x) = (ax + b)/(cx − a), with a2 + bc ≠ 0, on R − {a/c} when c ≠ 0.
Worked example 10 (JEE Advanced level). Let f : [2, ∞) → [1, ∞), f(x) = x2 − 4x + 5. Show that f is invertible, find f−1, and solve f(x) = f−1(x).
Solution. f(x) = (x − 2)2 + 1. On [2, ∞), x − 2 ≥ 0 and increases with x, so f is strictly increasing and therefore one-one. Its least value is f(2) = 1 and it grows without bound, so its range is [1, ∞): f is onto. Hence f is invertible.
Put y = (x − 2)2 + 1. Then (x − 2)2 = y − 1 and, because x − 2 ≥ 0, x − 2 = +√(y − 1). So f−1(x) = 2 + √(x − 1), x ≥ 1.
Since f is increasing, f(x) = f−1(x) reduces to f(x) = x: x2 − 4x + 5 = x, so x2 − 5x + 5 = 0, x = (5 ± √5)/2. The root (5 − √5)/2 ≈ 1.38 is not in [2, ∞). The only solution is x = (5 + √5)/2 (about 3.618). Check: f−1(3.618) = 2 + √2.618 ≈ 2 + 1.618 = 3.618.
Exam point: a function is never "invertible" on its own – it is invertible as a map from a stated domain to a stated codomain. If a question says f : R → R and f is not onto R, the answer is "not invertible", even when a formula for x can be written.
12. A note on simple functional equations
JEE Advanced sometimes defines a function by a property instead of a formula. Standard moves are to substitute convenient values (x = 0, y = 0, y = x, y = −x) and to compare.
- If f(x + y) = f(x) + f(y) for all real x, y: putting x = y = 0 gives f(0) = 0; putting y = −x gives f(−x) = −f(x), so f is odd; and by induction f(nx) = nf(x) for every natural number n. If f is also continuous, then f(x) = kx with k = f(1).
- If f(xy) = f(x) + f(y) for x, y > 0, then f(1) = 0 and f(1/x) = −f(x); the logarithm functions satisfy it.
- If f(x + y) = f(x)f(y) and f is not identically zero, then f(0) = 1 and f(x) > 0 for all x, because f(x) = f(x/2)2 and f(x) cannot be 0 (else f would vanish everywhere).
13. Common mistakes
- Writing 1 ∈ P(A) instead of {1} ∈ P(A); the elements of a power set are sets.
- Treating {∅} or {0} as the empty set; each has one element.
- Calling the empty relation on a non-empty set reflexive. It is symmetric and transitive (vacuously) but not reflexive.
- Thinking "not symmetric" means "antisymmetric". They are independent properties.
- Giving the domain of a log or root by solving only one of its conditions, or forgetting that a denominator inside a root must also be non-zero.
- Taking [−x] = −[x]; the two differ by 1 whenever x is not an integer.
- Saying a function is onto without stating the codomain. Onto-ness depends on the codomain; one-one-ness depends on the domain.
- Writing (g∘f)−1 = g−1∘f−1; the order reverses.
- In the discriminant method, accepting an end value of the range without checking that it is attained by an x in the domain.
14. Quick revision
| Fact | Formula or value |
|---|---|
| Subsets of an n-element set | 2n; proper subsets 2n − 1 |
| Union of two sets | n(A ∪ B) = n(A) + n(B) − n(A ∩ B) |
| Union of three sets | Σn(A) − Σn(A ∩ B) + n(A ∩ B ∩ C) |
| Exactly one of three | Σn(A) − 2Σn(A ∩ B) + 3n(A ∩ B ∩ C) |
| Symmetric difference count | n(A) + n(B) − 2n(A ∩ B) |
| De Morgan | (A ∪ B)′ = A′ ∩ B′; (A ∩ B)′ = A′ ∪ B′ |
| Difference | A − B = A ∩ B′ |
| Cartesian product | n(A × B) = n(A) × n(B) |
| Relations from A (m) to B (n) | 2mn |
| Reflexive relations on n elements | 2n2 − n |
| Symmetric relations on n elements | 2n(n+1)/2 |
| Equivalence relations | correspond to partitions: 5 on 3 elements, 15 on 4 |
| Equivalence relation | reflexive + symmetric + transitive |
| Functions from A (m) to B (n) | nm |
| One-one functions (m ≤ n) | nPm |
| Onto functions to 3 elements | 3m − 3 × 2m + 3 |
| Onto functions to 2 elements | 2m − 2 |
| Invertible | exactly when bijective |
| Inverse of a composition | (g∘f)−1 = f−1∘g−1 |
| Graph of f−1 | reflection of graph of f in y = x |
| Greatest integer bounds | x − 1 < [x] ≤ x |
| [x] + [−x] | 0 for integer x, −1 otherwise |
| Fractional part | {x} = x − [x], range [0, 1), period 1 |
| Even and odd parts | [f(x) ± f(−x)]/2 |
| Domain of loga g(x) | g(x) > 0, a > 0, a ≠ 1 |
| Range of ax | (0, ∞) |
15. Practice questions
- Let A = {1, 2, 3, 4} and B = {p, q, r}. The number of relations from A to B is ____ (numerical value).
- Set A has m elements and set B has n elements. A has 56 more subsets than B. The value of m + n is ____ (numerical value).
- In a class of 60, 25 study French, 26 study German and 26 study Spanish; 9 study French and German, 11 French and Spanish, 8 German and Spanish, and 3 all three. The number who study exactly one of the three is ____ (numerical value).
- On A = {1, 2, 3}, R = {(1, 1), (2, 2), (3, 3), (1, 2), (2, 3)} is: (a) an equivalence relation (b) reflexive and transitive but not symmetric (c) reflexive but neither symmetric nor transitive (d) symmetric and transitive but not reflexive
- On R, define a R b when the modulus of a − b is at most 1. Then R is: (a) an equivalence relation (b) reflexive and symmetric but not transitive (c) reflexive and transitive but not symmetric (d) symmetric and transitive but not reflexive
- The number of equivalence relations on {1, 2, 3} that contain the pair (1, 2) is: (a) 1 (b) 2 (c) 3 (d) 5
- The domain of f(x) = 1/√([x]2 − [x] − 6), where [x] is the greatest integer function, is: (a) (−∞, −2) ∪ [4, ∞) (b) (−∞, −2] ∪ [3, ∞) (c) (−∞, −3) ∪ (3, ∞) (d) [−2, 4)
- The range of f(x) = x/(1 + x2), x ∈ R, is: (a) [−1, 1] (b) [−1/2, 1/2] (c) [0, 1/2] (d) R
- The number of onto functions from {1, 2, 3, 4} to {a, b, c} is ____ (numerical value).
- f : R → R is defined by f(x) = x times the modulus of x. Then f is: (a) one-one but not onto (b) onto but not one-one (c) one-one and onto (d) neither one-one nor onto
- If f(x) = (3x + 4)/(5x − 3), x ≠ 3/5, then f(f(2)) is ____ (numerical value).
- Which function is odd? (a) f(x) = x2 + cos x (b) f(x) = log(x + √(x2 + 1)) (c) f(x) = ex + x (d) f(x) = [x]
- f : [−1, ∞) → [−1, ∞) is given by f(x) = x2 + 2x. Then f−1(8) is ____ (numerical value).
Answers
- 4096 – n(A × B) = 12, so there are 212 relations.
- 9 – 2m − 2n = 56 = 64 − 8 = 26 − 23, so m = 6, n = 3 (the only powers of 2 differing by 56).
- 30 – Σ singles = 77, Σ pairs = 28, all three = 3; exactly one = 77 − 56 + 9 = 30.
- (c) – all (a, a) are present, but (2, 1) is missing, and (1, 2), (2, 3) are present without (1, 3).
- (b) – the modulus of a − a is 0 and the condition is symmetric in a and b, but 0 R 1 and 1 R 2 while 0 and 2 are not related.
- (b) – the partitions with 1 and 2 together are {1, 2}{3} and {1, 2, 3}.
- (a) – ([x] − 3)([x] + 2) > 0 needs [x] ≥ 4 (so x ≥ 4) or [x] ≤ −3 (so x < −2).
- (b) – y(1 + x2) = x gives yx2 − x + y = 0; for y ≠ 0, 1 − 4y2 ≥ 0; y = 0 is attained at x = 0; f(1) = 1/2, f(−1) = −1/2.
- 36 – 34 − 3 × 24 + 3 = 81 − 48 + 3 = 36.
- (c) – f(x) = x2 for x ≥ 0 and −x2 for x < 0 is strictly increasing with range R.
- 2 – f is of the form (ax + b)/(cx − a) with a2 + bc = 9 + 20 ≠ 0, so f∘f is the identity; directly, f(2) = 10/7 and f(10/7) = (58/7)/(29/7) = 2.
- (b) – f(−x) = log(√(x2 + 1) − x) = −log(x + √(x2 + 1)) = −f(x).
- 2 – f(x) = (x + 1)2 − 1 is a bijection here, f−1(x) = −1 + √(x + 1), and f−1(8) = −1 + 3 = 2 (check: f(2) = 8).
Next step: practise this unit in the EduAlx question bank for your exam (JEE Main, JEE Advanced or CUET UG – choose Mathematics) and try the full-length practice papers; then move to the next unit, Complex numbers and quadratic equations. EduAlx is not affiliated with NTA or the IITs.
References
- National Testing Agency, JEE (Main) syllabus, Mathematics Unit 1: Sets, relations and functions.
- JEE (Advanced) syllabus, Mathematics: Sets, relations and functions, published by the organising IIT.
- National Testing Agency, CUET (UG) Mathematics syllabus: Relations and functions.
- NCERT Mathematics Textbook for Class XI, chapter 1 (Sets) and chapter 2 (Relations and Functions).
- NCERT Mathematics Textbook for Class XII, Part I, chapter 1 (Relations and Functions).
- P.R. Halmos, Naive Set Theory, Springer (sets, relations, functions, equivalence relations and partitions).
- K.H. Rosen, Discrete Mathematics and Its Applications, McGraw-Hill (counting relations and onto functions by inclusion–exclusion).