Relations and Functions
Join WhatsApp Channel
Get instant updates, mock tests & exam alerts
Subscribe on YouTube
Watch free video lectures & exam strategy tips
1 Relations and Functions: Basic Ideas (संबंध एवं फलन)
This chapter studies how the elements of one set can be paired with the elements of another. A pairing of this kind is a Relation (संबंध), and a pairing in which each input has exactly one output is a Function (फलन). Everything in the rest of the course, from graphs to calculus, rests on these two ideas.
Cartesian product and relation
The Cartesian product (कार्तीय गुणनफल) of two sets A and B is the set of all ordered pairs whose first member is from A and second member is from B. The order inside a pair matters, so (a, b) and (b, a) are different pairs unless a = b.
Relation (संबंध)
A relation R from a set A to a set B is any subset of A × B. A relation on A is a subset of A × A. If (a, b) ∈ R we write a R b and say that a is related to b.
- Domain (प्रांत) of R is the set of all first members of the pairs in R; range (परिसर) is the set of all second members; codomain (सह-प्रांत) is the whole set B. The range is always a subset of the codomain.
- If n(A) = p and n(B) = q, then A × B has pq elements, and every subset of it is a relation. Hence the number of relations from A to B is 2pq. For a relation on a set with n elements this is 2n².
- A relation can be given by listing pairs (roster form), by a rule such as y = x + 1 (set-builder form), or by an arrow diagram.
Function as a special relation
A function is a relation that is well behaved: it never leaves an input without an output and never gives an input two different outputs.
Function (फलन)
A relation f from A to B is a function if every element of A is related to exactly one element of B. We write f : A → B and y = f(x). Here y is the image of x and x is a pre-image of y.
- The set A is the domain, the set B is the codomain, and the set {f(x) : x ∈ A} is the range. Range ⊆ codomain, but they need not be equal.
- Every function is a relation, but a relation need not be a function. The table below compares them.
| Feature | Relation | Function |
|---|---|---|
| Definition | Any subset of A × B | Subset in which each x ∈ A has exactly one partner |
| Image of an element | None, one or many | Exactly one |
| Number from A to B (n(A) = m, n(B) = n) | 2mn | nm |
| Vertical line test (graph) | A vertical line may cut it any number of times | Every vertical line through the domain cuts it exactly once |
The table shows that a function is a much smaller family than the family of all relations: out of 2mn relations from A to B only nm are functions. To test whether a graph is a function, slide a vertical line across the domain; if it ever meets the curve twice, one input has two outputs and the graph is not a function.
Worked example
Let A = {1, 2, 3, 4, 5, 6} and R = {(x, y) : y = x + 1}. Then R = {(1,2), (2,3), (3,4), (4,5), (5,6)}. Domain = {1, 2, 3, 4, 5}, range = {2, 3, 4, 5, 6}, codomain = A. It is not a function from A to A because 6 has no image, but it is a function from {1, 2, 3, 4, 5} to A.
2 Types of Relations (संबंधों के प्रकार)
Relations on a set are classified by the properties they satisfy. Five types are named in the textbook: the empty and universal relations, and the reflexive, symmetric and transitive relations. Throughout this section R is a relation on a non-empty set A.
Empty and universal relations
Empty relation (रिक्त संबंध): no element of A is related to any element of A, i.e. R = ∅ ⊂ A × A. Universal relation (सार्वत्रिक संबंध): every element is related to every element, i.e. R = A × A.
For example, on A = {1, 2, 3, 4} the relation {(a, b) : a − b = 10} is empty because no two members differ by 10, and the relation {(a, b) : |a − b| ≥ 0} is universal because the absolute value of any difference is at least 0.
Reflexive, symmetric, transitive
- Reflexive (स्वतुल्य): (a, a) ∈ R for every a ∈ A.
- Symmetric (सममित): (a1, a2) ∈ R ⇒ (a2, a1) ∈ R.
- Transitive (संक्रामक): (a1, a2) ∈ R and (a2, a3) ∈ R ⇒ (a1, a3) ∈ R.
- To prove a property you must check it for all elements; to disprove it, one counter-example is enough.
- The empty relation on a non-empty set is not reflexive (the pairs (a, a) are missing) but it is symmetric and transitive, because the conditions "if (a, b) ∈ R then …" are never triggered (vacuously true).
- The universal relation is reflexive, symmetric and transitive.
- Reflexivity looks at pairs (a, a) only; if even one element is not related to itself, R is not reflexive. Symmetric and transitive properties do not require every element to appear in a pair.
- Example on A = {1, 2, 3}: R = {(1,1), (2,2), (1,2), (2,1)} is symmetric and transitive but not reflexive because (3,3) is missing.
The table below applies the three tests to common relations. Read each row left to right: the first column gives the rule and the set, and the other columns say whether the property holds. A "No" in the last column usually comes from a chain a R b, b R c where a R c fails.
| Relation (set) | Reflexive | Symmetric | Transitive |
|---|---|---|---|
| a ≤ b (R) | Yes | No | Yes |
| a < b (R) | No | No | Yes |
| a divides b (N) | Yes | No | Yes |
| a = b (R) | Yes | Yes | Yes |
| a ≠ b (R) | No | Yes | No |
| L1 ⊥ L2 (lines in a plane) | No | Yes | No |
| b = a + 1 (N) | No | No | No |
| a − b divisible by 3 (Z) | Yes | Yes | Yes |
| a · b ≥ 0 (R) | Yes | Yes | No |
| a ≤ b² (R) | No | No | No |
Reasons for the less obvious rows: for a ≠ b, the pairs (1,2) and (2,1) are in R but (1,1) is not, so it is not transitive. For perpendicular lines, L1 ⊥ L2 and L2 ⊥ L3 make L1 parallel to L3, not perpendicular. For a·b ≥ 0, the pairs (1,0) and (0,−1) are in R but (1,−1) is not, since 1·(−1) < 0. For a ≤ b²: a = ½ fails reflexivity since ½ > ¼; (1,2) is in R but (2,1) is not; and (10,4), (4,3) are in R (10 ≤ 16, 4 ≤ 9) but (10,3) is not (10 > 9).
Do not confuse
Symmetric does not mean "a R b and b R a for all pairs"; it means if a R b then b R a. Likewise, a relation can be symmetric and transitive yet fail to be reflexive, so reflexivity can never be deduced from the other two.
3 Equivalence Relations and Equivalence Classes (तुल्यता संबंध)
A relation that is reflexive, symmetric and transitive at the same time groups the elements of a set into classes of "things that are alike in some respect". Such relations are called equivalence relations and they are the most important kind of relation in this chapter.
Equivalence relation (तुल्यता संबंध)
A relation R on a set A is an equivalence relation if it is reflexive, symmetric and transitive.
- Familiar equivalence relations: equality of numbers; similarity and congruence of triangles; parallelism of lines (a line is taken as parallel to itself); "has the same birthday as"; "has the same number of sides" for polygons.
- Not equivalence relations: a ≤ b (not symmetric), "is a brother of", "is perpendicular to" (neither reflexive nor transitive), a ≠ b.
- The empty relation is not an equivalence relation on a non-empty set; the universal relation always is.
Proof pattern
To show that R is an equivalence relation, prove the three properties one after another. Write each proof in the same three-line form: start from the given pair(s), use the defining rule, conclude the required pair.
Worked example 1: congruence modulo 3
- Let R = {(a, b) : a − b is divisible by 3} on Z.
- Reflexive: a − a = 0 = 3 × 0, so (a, a) ∈ R.
- Symmetric: if a − b = 3k, then b − a = 3(−k), so (b, a) ∈ R.
- Transitive: if a − b = 3k and b − c = 3l, adding gives a − c = 3(k + l), so (a, c) ∈ R.
- Hence R is an equivalence relation.
Now let us see what an equivalence relation does to the set. The next figure shows the relation of Worked example 1. Each integer belongs to exactly one box, and two integers are related exactly when they sit in the same box.
Figure 3: The relation "a − b is divisible by 3" splits Z into three disjoint equivalence classes, according to the remainder 0, 1 or 2 on division by 3. Any two numbers in the same box are related; numbers in different boxes are not.
The picture illustrates a general fact: an equivalence relation partitions its set into subsets, called equivalence classes (तुल्यता वर्ग), such that all elements inside a class are related to one another, elements of different classes are not related, and the classes together make up the whole set. The class of a is written [a] = {x ∈ A : x R a}. Two classes are either identical or disjoint. (The textbook meets this idea through examples; the term "equivalence class" is standard.)
Worked example 2: |a − b| even
- Let A = {1, 2, 3, 4, 5} and R = {(a, b) : |a − b| is even}.
- Reflexive: |a − a| = 0 is even. Symmetric: |a − b| = |b − a|. Transitive: if a − b and b − c are even, a − c = (a − b) + (b − c) is even.
- So R is an equivalence relation. The odd numbers {1, 3, 5} are all related to one another, the even numbers {2, 4} are all related to one another, and no odd number is related to an even number. The two classes are {1, 3, 5} and {2, 4}.
Worked example 3: same distance from the origin
- Let R = {(P, Q) : OP = OQ} on the set of points of the plane, O being the origin.
- OP = OP gives reflexivity; OP = OQ ⇒ OQ = OP gives symmetry; OP = OQ and OQ = OR give OP = OR, which is transitivity. So R is an equivalence relation.
- The class of a point P (≠ O) is the set of all points at the same distance OP from O, i.e. the circle with centre O passing through P; the class of O is {O}.
Worked example 4: a relation that is none of the three
- Let R = {(a, b) : a ≤ b³} on R.
- Not reflexive: take a = ½; then ½ ≤ (½)³ = 1/8 is false.
- Not symmetric: (1, 2) ∈ R since 1 ≤ 8, but (2, 1) ∉ R since 2 > 1.
- Not transitive: (3, 3/2) ∈ R as 3 ≤ 27/8, and (3/2, 6/5) ∈ R as 3/2 ≤ 216/125, but (3, 6/5) ∉ R since 6/5 cubed is 216/125 < 3.
4 Counting Relations on a Finite Set (Extra practice)
Many examination questions ask how many relations of a given type exist on a small set. The counts below are not stated in the textbook, but they follow directly from the definitions and are very useful for multiple-choice questions. The idea is to view a relation on an n-element set as a choice, for each of the n² ordered pairs, of "in" or "out".
- All relations: n² ordered pairs, each in or out, so 2n².
- Reflexive: the n pairs (a, a) must be in; the other n² − n pairs are free, so 2n²−n.
- Symmetric: the n diagonal pairs are free and each of the n(n−1)/2 unordered pairs {a, b} is in (both orders) or out, so 2n + n(n−1)/2 = 2n(n+1)/2.
- Reflexive and symmetric: the diagonal is fixed and only the n(n−1)/2 unordered pairs are free, so 2n(n−1)/2.
- Equivalence relations: the number of ways to partition the set into classes, the Bell numbers 1, 2, 5, 15, 52 for n = 1, 2, 3, 4, 5.
The next table gives the numbers for n = 3, which are easy to check by listing.
| Type of relation on a 3-element set | Formula | Count |
|---|---|---|
| All relations | 29 | 512 |
| Reflexive | 26 | 64 |
| Symmetric | 26 | 64 |
| Reflexive and symmetric | 23 | 8 |
| Equivalence | Bell number | 5 |
The five equivalence relations on {1, 2, 3} correspond to the five partitions: {1}{2}{3} (the identity relation, with 3 pairs), the three partitions with one pair and one single, e.g. {1,2}{3} (5 pairs each), and {1,2,3} (the universal relation, 9 pairs).
Worked example: smallest equivalence relation containing a given relation
On A = {1, 2, 3} let R = {(1,2), (2,3)}. For an equivalence relation containing R we need 1 ~ 2 and 2 ~ 3, so 1, 2, 3 all lie in one class; hence the smallest such relation is the universal relation with 9 pairs. Since R has 2 pairs, 9 − 2 = 7 pairs must be added.
Similarly, the divisibility relation on {1, 2, 3, 4, 5, 6} (b divisible by a) has 6 + 3 + 2 + 1 + 1 + 1 = 14 pairs; 6 of them are (a, a) and the other 8 have no reverse in R, so 8 pairs must be added to make it symmetric.
5 Types of Functions: One-One, Onto, Bijective (फलनों के प्रकार)
Functions are classified by how they treat distinct inputs and by how much of the codomain they cover. These two questions give the ideas of one-one and onto, and a function that passes both tests is a bijection. These properties decide whether a function can be reversed.
One-one (injective) function (एकैकी फलन)
f : X → Y is one-one if distinct elements of X have distinct images: x1 ≠ x2 ⇒ f(x1) ≠ f(x2). Equivalent form used in proofs: f(x1) = f(x2) ⇒ x1 = x2. A function that is not one-one is called many-one (बहु-एक).
Onto (surjective) function (आच्छादक फलन)
f : X → Y is onto if every element of Y is the image of at least one element of X, i.e. range of f = codomain Y. A function that is not onto is called into.
Bijective function (एकैकी आच्छादक फलन)
f : X → Y is bijective if it is both one-one and onto.
Look at the four mapping diagrams in the next figure. Each oval is a set and each arrow joins an input to its image. A one-one function has at most one arrow arriving at every point of Y; an onto function has at least one arrow arriving at every point of Y.
Figure 1: Four functions from X (left oval) to Y (right oval). In (a) distinct inputs have distinct outputs but d is never hit. In (b) every element of Y is hit but a is hit twice. In (c) each element of Y is hit exactly once. In (d) a is hit twice and c is never hit.
Reading the figure: in (a) no two arrows end at the same point, so the function is one-one, but d receives no arrow, so it is not onto. In (b) every element of Y receives an arrow (onto) but a receives two (many-one). In (c) every element of Y receives exactly one arrow, so the function is a bijection. In (d) a receives two arrows and c none, so the function is neither one-one nor onto. Note that the same rule can be onto or not depending on the codomain chosen, because the codomain is part of the definition of the function.
How to prove or disprove
- One-one: assume f(x1) = f(x2) for x1, x2 in the domain and show that x1 = x2. To disprove, exhibit two different inputs with the same output.
- Onto: take any y in the codomain, solve y = f(x) for x, and check that this x lies in the domain. To disprove, exhibit one y in the codomain for which the equation has no solution in the domain.
- A function that is strictly increasing or strictly decreasing on its domain is one-one.
- Always check the domain and codomain: f(x) = x² is one-one on [0, ∞) but not on R, and onto [0, ∞) but not onto R.
Worked example 1: f(x) = 3 − 4x on R
- One-one: 3 − 4x1 = 3 − 4x2 ⇒ −4x1 = −4x2 ⇒ x1 = x2.
- Onto: for any real y, x = (3 − y)/4 is real and f(x) = 3 − (3 − y) = y.
- So f : R → R is bijective.
Worked example 2: f(n) = n + 1 if n is odd, n − 1 if n is even (f : N → N)
- One-one: an odd n gives the even number n + 1 and an even n gives the odd number n − 1, so inputs of different parity have outputs of different parity. Two odd inputs with equal outputs satisfy n1 + 1 = n2 + 1, and two even inputs satisfy n1 − 1 = n2 − 1; in both cases n1 = n2.
- Onto: an even m is the image of the odd number m − 1; an odd m is the image of the even number m + 1.
- So f is bijective; indeed it just swaps 1 and 2, 3 and 4, 5 and 6, and so on.
Worked example 3: f(1) = f(2) = 1 and f(x) = x − 1 for x > 2 (f : N → N)
Onto: every natural number m is the image of m + 1 when m + 1 > 2, and 1 = f(1). One-one fails because f(1) = f(2) = 1. So f is onto but not one-one.
6 Graphical Tests and Standard Functions (आलेख द्वारा परीक्षण)
Graphs give a quick visual test for both properties. A horizontal line drawn at height c, with c in the codomain, shows how many inputs map to c. The figure below applies this to two familiar curves.
Figure 2: The horizontal line test. A horizontal line (dashed red) is drawn at a height in the codomain. For y = x² on R the line y = 4 meets the curve twice, so the function is many-one, and no line below the x-axis meets it at all, so it is not onto R. For y = x³ every horizontal line meets the curve exactly once, so it is a bijection from R to R.
In the left panel the horizontal line y = 4 meets y = x² at x = −2 and x = 2: two different inputs give the same output, so f is many-one. In the right panel the line y = 3 meets y = x³ at the single point x = 31/3 ≈ 1.44; the same is true for every horizontal line, so x³ is one-one and onto R.
Horizontal line test
f is one-one if and only if no horizontal line meets its graph more than once. f is onto its codomain if and only if every horizontal line y = c with c in the codomain meets the graph at least once.
The table lists standard functions together with the domain and codomain that matter. Always read the pair (domain, codomain) with the rule, since changing either can change the answer.
| Function (domain → codomain) | One-one | Onto | Bijective |
|---|---|---|---|
| 2x + 3 (R → R) | Yes | Yes | Yes |
| x² (R → R) | No | No | No |
| x² (R → [0, ∞)) | No | Yes | No |
| x² ([0, ∞) → [0, ∞)) | Yes | Yes | Yes |
| x³ (R → R) | Yes | Yes | Yes |
| |x| (R → R) | No | No | No |
| sin x (R → R) | No | No | No |
| sin x (R → [−1, 1]) | No | Yes | No |
| ex (R → R) | Yes | No | No |
| x² (N → N) | Yes | No | No |
| 2x (N → N) | Yes | No | No |
| x² (Z → Z) | No | No | No |
From the table, notice three patterns. First, restricting the domain (x² on [0, ∞)) can turn a many-one function into a one-one function. Second, restricting the codomain to the range (sin x to [−1, 1]) turns an into function into an onto function. Third, on N a function can be one-one and still miss values (x², 2x), which can never happen for a function from a finite set to itself (see the next section).
Worked example: range of f(x) = x² / (1 + x²)
Put y = x²/(1 + x²). Then x² = y/(1 − y), which has a real solution only if y/(1 − y) ≥ 0, i.e. 0 ≤ y < 1. So the range is [0, 1). Hence f : R → R is neither one-one (f(1) = f(−1)) nor onto R; it is onto [0, 1).
7 Functions on Finite Sets and Counting Functions (परिमित समुच्चय)
When the sets are finite, one-one and onto are controlled by simple counting. This gives a useful shortcut and also tells us how many functions of each type exist.
Finite-set result (from the textbook summary)
If X is a finite set, then a function f : X → X is one-one if and only if it is onto.
- Why it works: if f is one-one, the n elements of X have n distinct images, which fill all n elements of X, so f is onto. If f is onto, the n elements must supply n different images, so no two can share an image, and f is one-one. Hence if f is not one-one then it is not onto either.
- The result fails for infinite sets: f(x) = 2x on N is one-one but not onto, and the function of Worked example 3 earlier is onto but not one-one.
- More generally, for finite A and B: a one-one function A → B needs n(A) ≤ n(B); an onto function needs n(A) ≥ n(B); a bijection needs n(A) = n(B).
Number of functions
Let n(A) = m and n(B) = n. Each of the m inputs has n independent choices of image, which gives the counts below. One-one functions use up distinct images, so the choices fall by one each time.
- All functions A → B: nm.
- One-one functions (m ≤ n): n(n − 1)(n − 2) … (n − m + 1) = n!/(n − m)!.
- Bijections (m = n): n!.
- Onto functions (m ≥ n): nm − C(n,1)(n − 1)m + C(n,2)(n − 2)m − … (inclusion–exclusion; extra, not in the textbook).
| (m, n) | All | One-one | Onto |
|---|---|---|---|
| (3, 3) | 27 | 6 | 6 |
| (3, 5) | 125 | 60 | 0 |
| (4, 3) | 81 | 0 | 36 |
Each row can be checked by hand. For (3, 5) there are 5 × 4 × 3 = 60 one-one functions and no onto function because three inputs cannot cover five outputs. For (4, 3) there is no one-one function, and the onto count is 81 − 3 × 16 + 3 × 1 = 36.
8 Composition of Functions (फलनों का संयोजन) (Beyond syllabus)
This section and the next two are in the NCERT book but are not part of the CBSE 2026-27 syllabus, which lists only types of relations and one-one and onto functions. They are included for completeness and because they appear in many competitive examinations.
Composition means doing one function after another. If the output of f is used as the input of g, the two functions combine into a single new function.
Composite function (संयुक्त फलन)
Let f : A → B and g : B → C. The composition of f and g is the function g ∘ f : A → C defined by (g ∘ f)(x) = g(f(x)) for all x ∈ A. For general real functions the composite exists only where the range of f lies inside the domain of g.
Figure 4: The composite function g ∘ f first applies f (A to B) and then g (B to C). It is the single function from A to C that skips the middle step, with (g ∘ f)(x) = g(f(x)). For this to make sense, the range of f must lie inside the domain of g.
The diagram shows the two steps (blue) and the shortcut g ∘ f (red). Note the order: in g ∘ f the function written nearest to x is applied first.
- Not commutative: in general g ∘ f ≠ f ∘ g. For f(x) = x² and g(x) = x + 1: (g ∘ f)(x) = x² + 1 but (f ∘ g)(x) = (x + 1)².
- Associative: for f : A → B, g : B → C, h : C → D, we have h ∘ (g ∘ f) = (h ∘ g) ∘ f. (Proof: both send x to h(g(f(x))).)
- Identity function (तत्समक फलन) IA(x) = x on A satisfies f ∘ IA = f and IB ∘ f = f for f : A → B.
- If f and g are both one-one, so is g ∘ f; if f and g are both onto, so is g ∘ f; hence the composite of two bijections is a bijection.
- Conversely (extra): if g ∘ f is one-one then f is one-one; if g ∘ f is onto then g is onto.
Worked example: repeated composition
Let f(x) = (x − 1)/(x + 1). Then f(f(x)) = [(x−1)/(x+1) − 1] / [(x−1)/(x+1) + 1] = (−2)/(2x) = −1/x. Applying this twice, f4(x) = −1/(−1/x) = x. So the fourth composite is the identity and fn repeats with period 4: f2025 = f1 because 2025 leaves remainder 1 on division by 4.
9 Invertible Functions (प्रतिलोम फलन) (Beyond syllabus)
A function is invertible when its action can be undone. The inverse takes each output back to the unique input that produced it. This section is beyond the CBSE 2026-27 syllabus but is part of the NCERT book.
Invertible function (व्युत्क्रमणीय फलन)
f : X → Y is invertible if there is a function g : Y → X such that g ∘ f = IX and f ∘ g = IY. Then g is called the inverse of f and is written f−1. The inverse, if it exists, is unique.
Theorem
A function f : X → Y is invertible if and only if it is one-one and onto (bijective).
- Why bijective is needed: to send every y back to one x, each y must have a pre-image (onto) and only one (one-one).
- Method to find f−1: write y = f(x), solve for x in terms of y, then replace y by x. Always check that the resulting formula lands in the correct domain.
- (f−1)−1 = f. If f and g are invertible, g ∘ f is invertible and (g ∘ f)−1 = f−1 ∘ g−1 (reverse order, like removing socks and shoes).
- The graphs of f and f−1 are reflections of each other in the line y = x, and the domain of f−1 is the range of f.
- Self-inverse functions satisfy f = f−1, e.g. f(x) = x and f(x) = 1/x on R minus {0}.
The graph below shows an invertible function and its inverse. We restrict x² to [0, ∞), where it is one-one and onto [0, ∞), so its inverse is the square root.
Figure 5: The function f(x) = x² on [0, ∞) (blue) and its inverse f−1(x) = √x (red) are mirror images in the dashed line y = x. A point (a, b) on the graph of f corresponds to the point (b, a) on the graph of its inverse, as the pair (1.2, 1.44) and (1.44, 1.2) shows.
The blue and red curves are mirror images in the grey dashed line. If you fold the page along y = x, they coincide. Without the restriction to [0, ∞) the function x² is many-one and has no inverse.
Worked example 1
f : R → R, f(x) = 2x + 3 is a bijection. From y = 2x + 3 we get x = (y − 3)/2, so f−1(y) = (y − 3)/2.
Worked example 2
f : R+ → [4, ∞), f(x) = x² + 4. It is one-one on x > 0 and onto [4, ∞) (for y ≥ 4, x = √(y − 4) ≥ 0 works). Hence f−1(y) = √(y − 4). (R+ here means non-negative reals, so that 4 itself is attained.)
Worked example 3
f : R − {2} → R − {1}, f(x) = (x + 1)/(x − 2). From y(x − 2) = x + 1 we get x(y − 1) = 2y + 1, so f−1(y) = (2y + 1)/(y − 1). Check: f−1(4) = 9/3 = 3 and f(3) = 4/1 = 4.
10 Binary Operations (द्विआधारी संक्रियाएँ) (Beyond syllabus)
A binary operation combines two elements of a set into one element of the same set, as addition and multiplication do for numbers. This topic is in earlier editions of the NCERT book and is outside the CBSE 2026-27 syllabus; it is included here for completeness.
Binary operation (द्विआधारी संक्रिया)
A binary operation * on a set A is a function * : A × A → A. We write a * b for the image of (a, b). The requirement that a * b is in A is called closure.
- Commutative (क्रमविनिमेय): a * b = b * a for all a, b ∈ A.
- Associative (सहचारी): (a * b) * c = a * (b * c) for all a, b, c ∈ A.
- Identity element (तत्समक अवयव): e ∈ A with a * e = e * a = a for all a. It is unique when it exists.
- Inverse (प्रतिलोम अवयव): given the identity e, an element b is the inverse of a if a * b = b * a = e. It exists only if the identity exists.
Whether an operation is binary depends on the set, as shown in the table. An operation fails to be binary exactly when some pair of elements gives a result outside the set.
| Operation | Set | Binary? | Reason |
|---|---|---|---|
| Addition | N | Yes | sum of naturals is natural |
| Subtraction | N | No | 2 − 5 ∉ N |
| Division | N | No | 1 ÷ 2 ∉ N |
| Division | R minus {0} | Yes | quotient is non-zero real |
| Multiplication | Z | Yes | product of integers is an integer |
A finite binary operation can be written in a composition table. The table below is addition modulo 3 on {0, 1, 2}; the remainder after adding and dividing by 3 is written. The row of 0 repeats the column heads, so 0 is the identity; every row contains 0 exactly once, so each element has an inverse (1 and 2 are inverses of each other, 0 is its own inverse).
| +3 | 0 | 1 | 2 |
|---|---|---|---|
| 0 | 0 | 1 | 2 |
| 1 | 1 | 2 | 0 |
| 2 | 2 | 0 | 1 |
Worked example
Define a * b = a + b − ab on R minus {1}. It is closed because a + b − ab = 1 means (1 − a)(1 − b) = 0, impossible for a, b ≠ 1. It is commutative. The identity is 0 since a * 0 = a. The inverse of a solves a + b − ab = 0, giving b = a/(a − 1); for instance the inverse of 3 is 3/2.
Counting (extra): on an n-element set there are nn² binary operations, of which nn(n+1)/2 are commutative.
11 Formula Sheet and Common Mistakes
This final section collects the main definitions and counts of the chapter in one table, followed by the mistakes that cost the most marks.
| Item | Statement |
|---|---|
| Relation | Subset of A × B; number = 2mn |
| Function | Each x has exactly one image; number = nm |
| Reflexive | (a, a) ∈ R for all a |
| Symmetric | (a, b) ∈ R ⇒ (b, a) ∈ R |
| Transitive | (a, b), (b, c) ∈ R ⇒ (a, c) ∈ R |
| Equivalence | Reflexive + symmetric + transitive |
| Reflexive relations on n elements | 2n²−n |
| Symmetric relations on n elements | 2n(n+1)/2 |
| One-one | f(x1) = f(x2) ⇒ x1 = x2 |
| Onto | Range = codomain |
| One-one functions, m ≤ n | n!/(n − m)! |
| Bijections on n elements | n! |
| Finite X | f : X → X one-one ⇔ onto |
| Composition | (g ∘ f)(x) = g(f(x)) (Beyond syllabus) |
| Inverse | exists ⇔ bijective; (g ∘ f)−1 = f−1 ∘ g−1 (Beyond syllabus) |
Common mistakes
- Calling a relation reflexive after checking only a few elements; the property must hold for every element of the set.
- Assuming that a symmetric and transitive relation is automatically reflexive. The relation {(1,1), (2,2), (1,2), (2,1)} on {1,2,3} is a counter-example.
- Proving transitivity with specific numbers. Use letters and the defining rule, or give one explicit counter-example to disprove.
- Forgetting that the domain and codomain are part of the function: x² is not one-one on R but is one-one on [0, ∞).
- Testing "onto" by looking at the formula only. Solve y = f(x) and check that x lies in the domain.
- Writing g ∘ f when f ∘ g is meant: in g ∘ f, f acts first.
- Using the finite-set shortcut (one-one ⇔ onto) for infinite sets such as N or Z.
12 Quick Revision
A one-glance recap of the most important formulas, facts and rules of this chapter, handy for the last revision before the exam.
13 MCQ Practice (20 Questions)
These are 20 high-difficulty questions on "Relations and Functions", mixing numerical, conceptual, statement-based and assertion-reason items. Tap an option to see the correct answer and the reasoning at once.
Q1. Let A = {1, 2, 3}. Consider the statements:
I. The number of reflexive relations on A is 64.
II. The number of equivalence relations on A is 6.
III. The number of symmetric relations on A that contain the pair (1, 2) is 32.
Q2. The number of equivalence relations that can be defined on the set {1, 2, 3, 4} is:
Q3. On Z, define aRb iff a² − b² is divisible by 7. The number of distinct equivalence classes of R is:
Q4. Assertion (A): The relation R = {(1, 2), (2, 1)} on the set {1, 2, 3} is symmetric but not transitive.
Reason (R): (1, 2) ∈ R and (2, 1) ∈ R, but (1, 1) ∉ R.
Q5. The number of onto functions from the set {1, 2, 3, 4} to the set {a, b, c} is:
Q6. The number of one-one functions from a set with 3 elements to a set with 5 elements is:
Q7. Let f : R → B be defined by f(x) = x² / (1 + x²). The set B for which f is onto is:
Q8. Consider the statements about functions:
I. f : R → R, f(x) = x³ − x is one-one.
II. f : R → [−1, 1], f(x) = sin x is onto but not one-one.
III. f : R → R, f(x) = ex is one-one but not onto.
Q9. If f(x) = (x − 1)/(x + 1), then the composite f∘f∘…∘f (f taken 2025 times) equals:
Q10. Let f : R − {2} → R − {1} be given by f(x) = (x + 1)/(x − 2). Then f−1(3) + f−1(−1) equals:
Q11. On R − {1}, a binary operation * is defined by a * b = a + b − ab. The inverse of the element 3 under * is:
Q12. Let R = {(a, b) : b is divisible by a} on A = {1, 2, 3, 4, 5, 6}. The minimum number of ordered pairs that must be added to R to make it symmetric is:
Q13. On A = {1, 2, 3}, R = {(1, 2), (2, 3)}. The least number of ordered pairs to be added to R so that it becomes an equivalence relation is:
Q14. Let f(x) = x² − 4x + 5. If f : [a, ∞) → [b, ∞) is a bijection with the smallest possible a, then a + b equals:
Q15. Let A have 3 elements and B have 4 elements. Consider the statements:
I. The number of one-one functions from A to B is 24.
II. The total number of functions from A to B is 64.
III. No function from A to B is onto.
Q16. Let R = {(a, b) : ab ≥ 0} on the set of real numbers. Which statement is correct?
Q17. The set B for which f : R → B, f(x) = sin x + cos x, is onto is:
Q18. On Z let aRb iff a − b is divisible by 5. The sum of all integers in the equivalence class of 3 that lie between −10 and 10 (inclusive) is:
Q19. Assertion (A): The function f : R → R, f(x) = |x|, is neither one-one nor onto.
Reason (R): f(−1) = f(1) and the range of f is R.
Q20. Assertion (A): The function f : R → R, f(x) = x², has an inverse.
Reason (R): A function is invertible if and only if it is one-one and onto.
Join WhatsApp Channel
Get instant updates, mock tests & exam alerts
Subscribe on YouTube
Watch free video lectures & exam strategy tips
| Category | JAC Resources |
|---|---|
| Practice Set | View Practice Set → |
| PYQ (Previous Year Papers) | View PYQ → |
| Notes | View Notes → |
| Syllabus | View Syllabus → |
| Admit Card | View Admit Card → |
| Exam Date | View Exam Date → |












