Confirming your payment

Skip to content

Opening your dashboard

Class 12 Maths Ch 1 Ex 1.2: Relation and Functions Solutions

12 questions from Exercise 1.2 of Class 12 Maths Chapter 1, Relation and Functions, each solved step by step. Free to read, CBSE 2026-27.

Ex 1.2 solutions

12 questions with solutions

1–5 marks · Easy difficulty

The first 9 solutions are on this page. This chapter is a long one, so the rest open on their own page to keep this one quick to load.

  1. 1

    Exercise 1.2 Question 1

    Show that the function f:R∗→R∗f : \mathbb{R}^* \to \mathbb{R}^* defined by f(x)=1xf(x) = \dfrac{1}{x} is one-one and onto, where R∗\mathbb{R}^* is the set of all non-zero real numbers. Is the result true, if the domain R∗\mathbb{R}^* is replaced by N\mathbb{N} with co-domain being same as R∗\mathbb{R}^*?

    Easy
    3 marks
    Solve with AI
    Written solution

    Part 1: f:R∗→R∗f : \mathbb{R}^* \to \mathbb{R}^* given by f(x)=1xf(x) = \dfrac{1}{x}

    ff is one-one. Let x1,x2∈R∗x_1, x_2 \in \mathbb{R}^* with f(x1)=f(x2)f(x_1) = f(x_2). Then

    1x1=1x2\frac{1}{x_1} = \frac{1}{x_2}

    Cross-multiplying gives x2=x1x_2 = x_1. So equal images force equal inputs, and ff is one-one.

    ff is onto. Let yy be any element of the co-domain R∗\mathbb{R}^*. Since y≠0y \neq 0, the number x=1yx = \dfrac{1}{y} is a real number, and it is non-zero, so x∈R∗x \in \mathbb{R}^*. For this xx,

    f(x)=1x=1 1/y =yf(x) = \frac{1}{x} = \frac{1}{\,1/y\,} = y

    So every element of the co-domain is an image of some element of the domain, and ff is onto.

    Hence f:R∗→R∗f : \mathbb{R}^* \to \mathbb{R}^* is one-one and onto, that is, a bijection.

    Part 2: the domain replaced by N\mathbb{N}, the co-domain still R∗\mathbb{R}^*

    Call the original function f1f_1 and the new function f2:N→R∗f_2 : \mathbb{N} \to \mathbb{R}^*, f2(n)=1nf_2(n) = \dfrac{1}{n}.

    f2f_2 is still one-one. If f2(n1)=f2(n2)f_2(n_1) = f_2(n_2), then 1n1=1n2\dfrac{1}{n_1} = \dfrac{1}{n_2}, which gives n1=n2n_1 = n_2.

    f2f_2 is not onto. To show a function is not onto we must point to one element of the co-domain that is the image of nothing in the domain. Take 2∈R∗2 \in \mathbb{R}^*. If 22 had a pre-image, there would be a natural number nn with

    1n=2⟹n=12\frac{1}{n} = 2 \quad \Longrightarrow \quad n = \frac{1}{2}

    and 12\dfrac{1}{2} is not a natural number. So no element of N\mathbb{N} is sent to 22, and 22 has no pre-image under f2f_2.

    Indeed the whole range of f2f_2 is {1,12,13,14,…}\left\{1, \dfrac{1}{2}, \dfrac{1}{3}, \dfrac{1}{4}, \ldots\right\}, a small part of R∗\mathbb{R}^*; every other non-zero real number, such as 22, −1-1 or 23\dfrac{2}{3}, is missed.

    Conclusion. The result is not true when the domain is replaced by N\mathbb{N}. With domain N\mathbb{N} and co-domain R∗\mathbb{R}^* the function is one-one but not onto, so it is not a bijection.

    A single set of axes with x from -4 to 4 and y from -4 to 4, showing both branches of the hyperbola y = 1/x as

  2. 2

    Exercise 1.2 Question 2

    Check the injectivity and surjectivity of the following functions:

    (i) f:N→Nf : \mathbb{N} \to \mathbb{N} given by f(x)=x2f(x) = x^2

    (ii) f:Z→Zf : \mathbb{Z} \to \mathbb{Z} given by f(x)=x2f(x) = x^2

    (iii) f:R→Rf : \mathbb{R} \to \mathbb{R} given by f(x)=x2f(x) = x^2

    (iv) f:N→Nf : \mathbb{N} \to \mathbb{N} given by f(x)=x3f(x) = x^3

    (v) f:Z→Zf : \mathbb{Z} \to \mathbb{Z} given by f(x)=x3f(x) = x^3

    Easy
    5 marks
    Solve with AI
    Written solution

    Throughout, injective means one-one and surjective means onto. The squaring rule and the cubing rule behave differently, and the same rule behaves differently on N\mathbb{N} and on Z\mathbb{Z}, so each part must be checked separately.

    (i) f:N→Nf : \mathbb{N} \to \mathbb{N}, f(x)=x2f(x) = x^2

    Injective. Let x1,x2∈Nx_1, x_2 \in \mathbb{N} with x12=x22x_1^2 = x_2^2. Then (x1−x2)(x1+x2)=0(x_1 - x_2)(x_1 + x_2) = 0. Since x1x_1 and x2x_2 are natural numbers, x1+x2>0x_1 + x_2 > 0, so the other factor must vanish: x1=x2x_1 = x_2. Hence ff is injective.

    Not surjective. Take 33 in the co-domain N\mathbb{N}. There is no natural number xx with x2=3x^2 = 3, because 12=1<31^2 = 1 < 3 and 22=4>32^2 = 4 > 3, and x2x^2 increases as xx increases. So 33 has no pre-image.

    ff is injective but not surjective.

    (ii) f:Z→Zf : \mathbb{Z} \to \mathbb{Z}, f(x)=x2f(x) = x^2

    Not injective. Now the domain contains negative integers, and f(−1)=1=f(1)f(-1) = 1 = f(1) while −1≠1-1 \neq 1. Two different inputs share an image.

    Not surjective. Take 3∈Z3 \in \mathbb{Z}. No integer squares to 33. (A negative target such as −4-4 fails too, since a square is never negative.)

    ff is neither injective nor surjective.

    (iii) f:R→Rf : \mathbb{R} \to \mathbb{R}, f(x)=x2f(x) = x^2

    Not injective. f(−2)=4=f(2)f(-2) = 4 = f(2) but −2≠2-2 \neq 2.

    Not surjective. Take −3∈R-3 \in \mathbb{R}. For every real xx we have x2≥0x^2 \geq 0, so x2=−3x^2 = -3 has no real solution and −3-3 has no pre-image.

    ff is neither injective nor surjective.

    gr x2

    The dashed line in the picture is the horizontal line test: on R\mathbb{R} the line y=4y = 4 meets the curve twice, at x=−2x = -2 and x=2x = 2, which is exactly the failure of injectivity in (ii) and (iii); the whole lower half-plane is untouched by the curve, which is the failure of surjectivity.

    (iv) f:N→Nf : \mathbb{N} \to \mathbb{N}, f(x)=x3f(x) = x^3

    Injective. If x13=x23x_1^3 = x_2^3, then taking cube roots (cubing is strictly increasing, so it is reversible) gives x1=x2x_1 = x_2. Hence ff is injective.

    Not surjective. Take 22 in the co-domain N\mathbb{N}. Since 13=1<21^3 = 1 < 2 and 23=8>22^3 = 8 > 2, no natural number cubes to 22.

    ff is injective but not surjective.

    (v) f:Z→Zf : \mathbb{Z} \to \mathbb{Z}, f(x)=x3f(x) = x^3

    Injective. Again x13=x23x_1^3 = x_2^3 gives x1=x2x_1 = x_2. Unlike squaring, cubing keeps the sign, so −1-1 and 11 are no longer a problem: (−1)3=−1(-1)^3 = -1 and 13=11^3 = 1 are different.

    Not surjective. Take 2∈Z2 \in \mathbb{Z}. No integer cubes to 22: the cubes near it are 11 and 88.

    ff is injective but not surjective.

    gr x3

    A horizontal line meets the cubic exactly once, which is why cubing is one-one on every one of these domains.

    The five verdicts together:

    PartFunctionInjective?Surjective?
    (i)x2x^2 on N\mathbb{N}YesNo (33 is missed)
    (ii)x2x^2 on Z\mathbb{Z}No (f(−1)=f(1)f(-1) = f(1))No (33 is missed)
    (iii)x2x^2 on R\mathbb{R}No (f(−2)=f(2)f(-2) = f(2))No (−3-3 is missed)
    (iv)x3x^3 on N\mathbb{N}YesNo (22 is missed)
    (v)x3x^3 on Z\mathbb{Z}YesNo (22 is missed)

    None of the five is a bijection.

  3. 3

    Exercise 1.2 Question 3

    Prove that the Greatest Integer Function f:R→Rf : \mathbb{R} \to \mathbb{R}, given by f(x)=[x]f(x) = [x], is neither one-one nor onto, where [x][x] denotes the greatest integer less than or equal to xx.

    Easy
    3 marks
    Solve with AI
    Written solution

    ff is not one-one.

    Take x1=1.2x_1 = 1.2 and x2=1.9x_2 = 1.9. The greatest integer less than or equal to each of them is 11, so

    f(1.2)=[1.2]=1andf(1.9)=[1.9]=1f(1.2) = [1.2] = 1 \qquad \text{and} \qquad f(1.9) = [1.9] = 1

    Thus f(1.2)=f(1.9)f(1.2) = f(1.9) although 1.2≠1.91.2 \neq 1.9. Two different elements of the domain have the same image, so ff is not one-one.

    (The same thing happens on every unit step: every xx with n≤x<n+1n \leq x < n + 1 is sent to the single value nn.)

    ff is not onto.

    By its definition [x][x] is always an integer. So the range of ff is contained in Z\mathbb{Z}, while the co-domain is the whole of R\mathbb{R}.

    Take 0.70.7 in the co-domain. If 0.70.7 had a pre-image, there would be a real number xx with [x]=0.7[x] = 0.7; but [x][x] is an integer and 0.70.7 is not. So 0.70.7 has no pre-image, and ff is not onto.

    Conclusion. The Greatest Integer Function is neither one-one nor onto.

    gr greatest int

    The picture shows both failures at once: each horizontal step is flat, so a whole interval of inputs shares one output (not one-one), and the graph only ever sits at integer heights, so no non-integer height is reached (not onto).

  4. 4

    Exercise 1.2 Question 4

    Show that the Modulus Function f:R→Rf : \mathbb{R} \to \mathbb{R}, given by f(x)=∣x∣f(x) = |x|, is neither one-one nor onto, where ∣x∣|x| is xx, if xx is positive or 00 and ∣x∣|x| is −x-x, if xx is negative.

    Easy
    3 marks
    Solve with AI
    Written solution

    By definition,

    ∣x∣={x,if x≥0−x,if x<0|x| = \begin{cases} x, & \text{if } x \geq 0 \\ -x, & \text{if } x < 0 \end{cases}

    ff is not one-one.

    Take x1=−1x_1 = -1 and x2=1x_2 = 1. Since −1<0-1 < 0 we use the second line, f(−1)=−(−1)=1f(-1) = -(-1) = 1; since 1≥01 \geq 0 we use the first, f(1)=1f(1) = 1. So

    f(−1)=f(1)=1but−1≠1f(-1) = f(1) = 1 \qquad \text{but} \qquad -1 \neq 1

    Two different inputs have the same image, so ff is not one-one. (Any non-zero aa gives the same clash, because f(−a)=f(a)=∣a∣f(-a) = f(a) = |a|.)

    ff is not onto.

    For every real number xx we have ∣x∣≥0|x| \geq 0, so the range of ff is [0,∞)[0, \infty), while the co-domain is the whole of R\mathbb{R}.

    Take −1-1 in the co-domain. If it had a pre-image there would be a real xx with ∣x∣=−1|x| = -1, which is impossible since a modulus is never negative. So −1-1 has no pre-image, and ff is not onto.

    Conclusion. The Modulus Function is neither one-one nor onto.

    gr modulus

    The dashed horizontal line at y=2y = 2 meets the V-shape at the two points x=−2x = -2 and x=2x = 2, which is the failure of one-one; no part of the graph lies below the xx-axis, which is the failure of onto.

  5. 5

    Exercise 1.2 Question 5

    Show that the Signum Function f:R→Rf : \mathbb{R} \to \mathbb{R}, given by

    f(x)={1,if x>00,if x=0−1,if x<0f(x) = \begin{cases} 1, & \text{if } x > 0 \\ 0, & \text{if } x = 0 \\ -1, & \text{if } x < 0 \end{cases}

    is neither one-one nor onto.

    Easy
    3 marks
    Solve with AI
    Written solution

    ff is not one-one.

    Take x1=1x_1 = 1 and x2=2x_2 = 2. Both are positive, so both fall in the first line of the definition:

    f(1)=1andf(2)=1f(1) = 1 \qquad \text{and} \qquad f(2) = 1

    So f(1)=f(2)f(1) = f(2) although 1≠21 \neq 2, and ff is not one-one. In fact every positive number is sent to 11 and every negative number is sent to −1-1, so infinitely many inputs share each of these two images.

    ff is not onto.

    Whatever xx is, f(x)f(x) is one of the three numbers −1-1, 00, 11. So the range of ff is the three-element set {−1,0,1}\{-1, 0, 1\}, while the co-domain is the whole of R\mathbb{R}.

    Take 22 in the co-domain. Since 22 is not one of −1-1, 00, 11, there is no real xx with f(x)=2f(x) = 2, so 22 has no pre-image. Hence ff is not onto.

    Conclusion. The Signum Function is neither one-one nor onto.

    gr signum

    The graph is made of just three pieces sitting at heights −1-1, 00 and 11: each flat piece is a whole half-line of inputs with a single image (not one-one), and every other height is empty (not onto).

  6. 6

    Exercise 1.2 Question 6

    Let A={1,2,3}A = \{1, 2, 3\}, B={4,5,6,7}B = \{4, 5, 6, 7\} and let f={(1,4),(2,5),(3,6)}f = \{(1, 4), (2, 5), (3, 6)\} be a function from AA to BB. Show that ff is one-one.

    Easy
    2 marks
    Solve with AI
    Written solution

    Reading the ordered pairs of ff gives the three values

    f(1)=4,f(2)=5,f(3)=6f(1) = 4, \qquad f(2) = 5, \qquad f(3) = 6

    To prove ff is one-one we check that no two distinct elements of AA share an image. Since AA has only three elements, there are just three pairs to compare:

    f(1)=4≠5=f(2),f(2)=5≠6=f(3),f(1)=4≠6=f(3)f(1) = 4 \neq 5 = f(2), \qquad f(2) = 5 \neq 6 = f(3), \qquad f(1) = 4 \neq 6 = f(3)

    The images 44, 55, 66 are all different, so distinct elements of AA have distinct images in BB.

    Hence ff is one-one (injective).

    Arrow diagram from A = {1, 2, 3} to B = {4, 5, 6, 7}: 1 to 4, 2 to 5, 3 to 6, and 7 has no arrow

    Notice the shape in the diagram: no two arrows land on the same dot, which is what one-one means. Here ff is also into rather than onto, because 7∈B7 \in B receives no arrow — but the question only asks for one-one, and that is settled by the three distinct images.

  7. 7

    Exercise 1.2 Question 7

    In each of the following cases, state whether the function is one-one, onto or bijective. Justify your answer.

    (i) f:R→Rf : \mathbb{R} \to \mathbb{R} defined by f(x)=3−4xf(x) = 3 - 4x

    (ii) f:R→Rf : \mathbb{R} \to \mathbb{R} defined by f(x)=1+x2f(x) = 1 + x^2

    Easy
    4 marks
    Solve with AI
    Written solution

    (i) f:R→Rf : \mathbb{R} \to \mathbb{R}, f(x)=3−4xf(x) = 3 - 4x

    One-one. Let x1,x2∈Rx_1, x_2 \in \mathbb{R} with f(x1)=f(x2)f(x_1) = f(x_2). Then

    3−4x1=3−4x2  ⟹  −4x1=−4x2  ⟹  x1=x23 - 4x_1 = 3 - 4x_2 \;\Longrightarrow\; -4x_1 = -4x_2 \;\Longrightarrow\; x_1 = x_2

    So ff is one-one.

    Onto. Let y∈Ry \in \mathbb{R} be any element of the co-domain. Solving y=3−4xy = 3 - 4x for xx gives

    x=3−y4x = \frac{3 - y}{4}

    which is a real number for every real yy, so it lies in the domain. Checking it,

    f(3−y4)=3−4⋅3−y4=3−(3−y)=yf\left(\frac{3 - y}{4}\right) = 3 - 4 \cdot \frac{3 - y}{4} = 3 - (3 - y) = y

    So every real number is an image, and ff is onto.

    Being both one-one and onto, ff is bijective.

    gr 3 minus 4x

    The graph is a straight line of slope −4-4: any horizontal line crosses it exactly once, which is one-one and onto together.

    (ii) f:R→Rf : \mathbb{R} \to \mathbb{R}, f(x)=1+x2f(x) = 1 + x^2

    Not one-one. Take x1=−2x_1 = -2 and x2=2x_2 = 2. Then

    f(−2)=1+4=5andf(2)=1+4=5f(-2) = 1 + 4 = 5 \qquad \text{and} \qquad f(2) = 1 + 4 = 5

    so f(−2)=f(2)f(-2) = f(2) although −2≠2-2 \neq 2. (In general f(x1)=f(x2)f(x_1) = f(x_2) gives x12=x22x_1^2 = x_2^2, that is x1=±x2x_1 = \pm x_2, which does not force x1=x2x_1 = x_2.)

    Not onto. For every real xx we have x2≥0x^2 \geq 0, so

    f(x)=1+x2≥1f(x) = 1 + x^2 \geq 1

    The range is therefore [1,∞)[1, \infty). Take 00 in the co-domain: 1+x2=01 + x^2 = 0 would need x2=−1x^2 = -1, which no real number satisfies, so 00 has no pre-image.

    Being neither one-one nor onto, ff is not bijective.

    gr 1 plus x2

    The dashed line at y=5y = 5 meets the parabola twice (not one-one), and nothing on the graph lies below y=1y = 1 (not onto).

  8. 8

    Exercise 1.2 Question 8

    Let AA and BB be sets. Show that f:A×B→B×Af : A \times B \to B \times A such that f(a,b)=(b,a)f(a, b) = (b, a) is bijective function.

    Easy
    3 marks
    Solve with AI
    Written solution

    The rule ff takes an ordered pair and swaps its two entries. A typical element of the domain A×BA \times B is (a,b)(a, b) with a∈Aa \in A and b∈Bb \in B, and its image (b,a)(b, a) has first entry in BB and second entry in AA, so it really does lie in B×AB \times A. The function is therefore well defined.

    ff is one-one.

    Let (a1,b1)(a_1, b_1) and (a2,b2)(a_2, b_2) be elements of A×BA \times B with

    f(a1,b1)=f(a2,b2)f(a_1, b_1) = f(a_2, b_2)

    that is, (b1,a1)=(b2,a2)(b_1, a_1) = (b_2, a_2). Two ordered pairs are equal exactly when their corresponding entries are equal, so

    b1=b2anda1=a2b_1 = b_2 \qquad \text{and} \qquad a_1 = a_2

    Hence (a1,b1)=(a2,b2)(a_1, b_1) = (a_2, b_2), and ff is one-one.

    ff is onto.

    Let (b,a)(b, a) be any element of the co-domain B×AB \times A, so b∈Bb \in B and a∈Aa \in A. Then (a,b)(a, b) is an element of A×BA \times B, and

    f(a,b)=(b,a)f(a, b) = (b, a)

    So every element of B×AB \times A has a pre-image in A×BA \times B, and ff is onto.

    Conclusion. ff is one-one and onto, hence f:A×B→B×Af : A \times B \to B \times A is a bijective function.

    Dot grids for A x B and B x A; arrows f send (a, b) to (b, a), and a dashed arrow g sends one back

    The dashed arrow in the picture is the swap performed a second time: the map g(b,a)=(a,b)g(b, a) = (a, b) undoes ff, which is another way of seeing that ff is a bijection.

  9. 9

    Exercise 1.2 Question 9

    Let f:N→Nf : \mathbb{N} \to \mathbb{N} be defined by

    f(n)={n+12,if n is oddn2,if n is evenfor all n∈Nf(n) = \begin{cases} \dfrac{n+1}{2}, & \text{if } n \text{ is odd} \\ \dfrac{n}{2}, & \text{if } n \text{ is even} \end{cases} \quad \text{for all } n \in \mathbb{N}

    State whether the function ff is bijective. Justify your answer.

    Easy
    3 marks
    Solve with AI
    Written solution

    It helps to compute the first few values before arguing. The table below lists them.

    nn12345678
    f(n)f(n)11223344

    The pattern is already visible: the values come in equal pairs.

    ff is not one-one.

    Take n=1n = 1 (odd) and n=2n = 2 (even). Then

    f(1)=1+12=1andf(2)=22=1f(1) = \frac{1+1}{2} = 1 \qquad \text{and} \qquad f(2) = \frac{2}{2} = 1

    So f(1)=f(2)f(1) = f(2) although 1≠21 \neq 2, and ff is not one-one. (The same clash happens at every pair: f(2a−1)=f(2a)=af(2a - 1) = f(2a) = a.)

    ff is onto.

    Let aa be any natural number in the co-domain. Consider n=2an = 2a. Since a∈Na \in \mathbb{N}, the number 2a2a is a natural number, and it is even, so the second line of the definition applies:

    f(2a)=2a2=af(2a) = \frac{2a}{2} = a

    So aa has the pre-image 2a2a. As aa was arbitrary, every element of the co-domain N\mathbb{N} is an image, and ff is onto.

    This one line settles surjectivity for every aa at once — odd or even, and including a=1a = 1, which takes the pre-image n=2n = 2 — so no case split is needed.

    Conclusion.

    ff is onto but not one-one. A bijective function must be both, so ff is not bijective.

    Two arrow diagrams for n = 1 to 8: h swaps each pair (a bijection); f, this question's function, sends both members of each pair to one value

    The right-hand panel of the picture is exactly this function ff drawn for n=1n = 1 to 88: each of the targets 11 to 44 has two arrows coming into it, so the map is onto but not one-one. The left-hand panel shows a different parity rule hh that is a bijection, which is worth comparing so that "the definition splits into odd and even" is not mistaken for a reason either way.

  10. 10

    Exercise 1.2 Question 10

    Let A=R−{3}A = \mathbb{R} - \{3\} and B=R−{1}B = \mathbb{R} - \{1\}. Consider the function f:A→Bf : A \to B defined by f(x)=x−2x−3f(x) = \dfrac{x - 2}{x - 3}. Is ff one-one and onto? Justify your answer.

    Easy
    3 marks
  11. 11

    Exercise 1.2 Question 11

    Let f:R→Rf : \mathbb{R} \to \mathbb{R} be defined as f(x)=x4f(x) = x^4. Choose the correct answer.

    MCQEasy
    1 mark
  12. 12

    Exercise 1.2 Question 12

    Let f:R→Rf : \mathbb{R} \to \mathbb{R} be defined as f(x)=3xf(x) = 3x. Choose the correct answer.

    MCQEasy
    1 mark
AI Tutor

Stuck on one of these? Work it through out loud

A finished solution tells you the answer. The AI tutor takes one question of Ex 1.2 at a time and works it with you until you can do the next one on your own.

  • Ask it out loud, in your own words
  • It gives you the next step, not the answer
  • Stuck on part (ii)? Start there
The rest of Ch 1

The other exercise in Relation and Functions

Every exercise in Class 12 Maths Ch 1, solved the same way. Or open the whole chapter on one page.

Common questions

What students ask about Ex 1.2

How many questions are in Ex 1.2 of Class 12 Maths?

Ex 1.2 has 12 questions, 2 of them multiple choice. Every one is solved step by step on this page, free to read.

Where does Ex 1.2 come in Chapter 1?

It is the second of the 2 exercises in Class 12 Maths Chapter 1, Relation and Functions. It is the last one in the chapter.

How many marks is Ex 1.2 worth?

The 12 questions here carry 34 marks between them, at easy difficulty overall. Marks are shown on each question so you can see what a full answer needs.

Are these Ex 1.2 solutions free?

Yes. Every question and its full working is free to read, with no account needed.

Can I download Ex 1.2 solutions as a PDF?

There is no PDF to download. Every solution is on this page instead, which means it is searchable, always the current 2026-27 syllabus, and readable on a phone. Use your browser's print option if you want it on paper.