girgit.org

Relations and Functions

Review: Relations and Functions

The chapter in one lineRelations are sorted by three tests (reflexive, symmetric, transitive), and passing all three makes an equivalence relation that splits a set into classes; functions are sorted by whether outputs are never shared (one-one) and never missed (onto), and only functions that are both can be run backwards.

Summary

Read the summary · 12 points
  1. A relation R in a set A is any subset of A × A; (a, b) ∈ R is written a R b. A set with n elements has \( 2^{n^2} \) relations in it, and there are \( 2^{mn} \) relations from an m-set to an n-set.
  2. The empty relation (R = \( \phi \)) and the universal relation (R = A × A) are the two trivial relations.
  3. R is reflexive if (a, a) ∈ R for every a; symmetric if (a, b) ∈ R gives (b, a) ∈ R; transitive if (a, b) and (b, c) in R give (a, c) ∈ R. One counterexample disproves a property; proving one needs a general argument.
  4. An equivalence relation is reflexive, symmetric and transitive. Examples: equality, congruence and similarity of triangles, "n divides a − b" in \( \mathbf{Z} \), "same output under f".
  5. The three properties are independent. In particular, symmetric and transitive do not give reflexive: an element related to nothing breaks the "proof" (example: {(1, 1), (2, 2), (1, 2), (2, 1)} in {1, 2, 3}).
  6. The equivalence class [a] is the set of elements related to a. The classes form a partition: they don't overlap and together fill the set; [a] = [b] exactly when a R b. Every partition comes from an equivalence relation, so {1, 2, 3} has 5 equivalence relations.
  7. JEE counting: reflexive relations \( 2^{n^2 - n} \), symmetric \( 2^{n(n+1)/2} \), reflexive and symmetric \( 2^{n(n-1)/2} \). For "how many relations containing these pairs", build the smallest one and test each addition.
  8. f : X → Y is one-one (injective) if \( f(x_1) = f(x_2) \) gives \( x_1 = x_2 \); otherwise many-one. On a graph: no horizontal line cuts it more than once.
  9. f is onto (surjective) if every y in Y is f(x) for some x, that is, range = co-domain; otherwise it is into. Prove onto by solving f(x) = y and checking x lies in the domain.
  10. Bijective means one-one and onto. For a finite set X, f : X → X is one-one exactly when it is onto; for infinite sets this fails (n + 1 on \( \mathbf{N} \) is one-one, not onto).
  11. Counting from an m-set to an n-set: \( n^m \) functions, \( ^n\text{P}_m \) one-one, \( n! \) bijections when m = n, \( 2^m - 2 \) onto a 2-set; general onto counts by inclusion-exclusion (36 from a 4-set onto a 3-set).
  12. Composition: \( (g \circ f)(x) = g(f(x)) \), f first; usually \( g \circ f \neq f \circ g \). f is invertible (some g has \( g \circ f = I_X \), \( f \circ g = I_Y \)) exactly when f is bijective; find \( f^{-1} \) by solving y = f(x) for x, and \( (g \circ f)^{-1} = f^{-1} \circ g^{-1} \).

Common questions

Why is the empty relation symmetric and transitive but not reflexive?

Symmetric and transitive are "if, then" rules: if (a, b) is there, then something else must be. With no pairs, the "if" never happens, so nothing is demanded and the rules are satisfied. Reflexive is a direct demand that every (a, a) be present, and the empty relation has none of them (as long as the set is not empty).

What is wrong with "a R b, so b R a, so a R a"?

It only works for an element a that is related to at least one b. If some element is related to nothing, the chain never starts, and that element can fail to be related to itself. So symmetric and transitive relations need not be reflexive; you must check reflexivity separately.

What is the difference between range and co-domain?

The co-domain is the set you declare after the arrow in f : X → Y: the outputs that are allowed. The range is the set of outputs that actually turn up. They are equal exactly when f is onto. The same formula can be onto or not depending on the co-domain you choose, such as x² onto [0, ∞) but not onto \( \mathbf{R} \).

How do I prove a function is one-one or onto in an exam?

One-one: start with \( f(x_1) = f(x_2) \) and use algebra to reach \( x_1 = x_2 \). Many-one: give two different inputs with the same output. Onto: take any y in the co-domain, solve f(x) = y for x, and show this x lies in the domain. Not onto: name one y that is never reached and say why.

Is "into" the opposite of "onto"?

Yes, in the way JEE uses it: an into function is one that is not onto, so some element of the co-domain is left out. NCERT just says "not onto". A function can be one-one into (n + 1 on \( \mathbf{N} \)), many-one into (x² on \( \mathbf{R} \)), and so on.

Does gof mean g first or f first?

f first. \( g \circ f(x) = g(f(x)) \): the function written next to x acts first, and g works on its output. A quick check: for f(x) = x + 1 and g(x) = 2x, \( g \circ f(3) = g(4) = 8 \), while \( f \circ g(3) = f(6) = 7 \).

Is \( f^{-1}(x) \) the same as \( \frac{1}{f(x)} \)?

No. \( f^{-1} \) is the function that undoes f: \( f^{-1}(y) \) is the input that f sends to y. For f(x) = 2x + 3, \( f^{-1}(x) = \frac{x - 3}{2} \), but \( \frac{1}{f(x)} = \frac{1}{2x + 3} \). They are completely different.

What happened to binary operations?

Older editions ended this chapter with a section on binary operations (such as + and × as rules that combine two elements of a set). It was removed in the 2023-24 rationalised syllabus, and it is not in the current JEE Main syllabus either, so you can skip it. The current chapter stops at composition and invertible functions, which lead straight into inverse trigonometric functions in Chapter 2.

Practice

Five more questions across the whole chapter.

1

In {1, 2, 3, 4}, R = {(a, b) : a + b is odd}. Which is true?

  1. R is an equivalence relation
  2. R is symmetric only
  3. R is transitive only

2

R = {(a, b) : 6 divides a − b} in \( \mathbf{Z} \). How many different equivalence classes does R have?

  1. 2
  2. 6
  3. Infinitely many

3

f : \( \mathbf{R} \to \mathbf{R} \), f(x) = |x| + x. What type is f?

  1. bijective
  2. many-one onto
  3. neither one-one nor onto

4

How many onto functions are there from {1, 2, 3} to {a, b}?

  1. 8
  2. 6
  3. 0

5

f : \( \mathbf{R} \to \mathbf{R} \), f(x) = 4 − 3x. What is \( (f^{-1} \circ f)(10) \) and what is \( f^{-1}(x) \)?

  1. 10, and \( \frac{4 - x}{3} \)
  2. −26, and \( \frac{4 - x}{3} \)
  3. 10, and \( \frac{1}{4 - 3x} \)

About this chapter

Written by girgit in our own words. It follows the structure and section numbers of the NCERT textbook (NCERT Mathematics Part I, Class 12, Chapter 1 (2023-24 rationalised)) so you can read it alongside your book. Where the textbook is out of date or mistaken, a "Textbook check" says so and tells you what to write in the exam. girgit is not affiliated with or endorsed by NCERT. Past questions: NEET (UG), National Testing Agency; explanations ours.

Text and interactives © 2026 girgit.org. All rights reserved. Pictures and videos credited on this page belong to their owners and keep their own licences.

Cite this chapter

girgit. (2026). Relations and Functions. In Maths, Class 12. https://girgit.org/maths/class-12/relations-and-functions/

Picture and video credits