CBSE · NCERT · Class 12 Maths · Chapter 1

NCERT Solutions: Class 12 Maths Chapter 1 - Relations and Functions

35 textbook Q&A35 verifiedFree Content

Chapter-wise NCERT intext questions and exercise answers for Relations and Functions, grounded in the official textbook.

Questions are taken verbatim from the NCERT textbook; answers were grounded against the chapter's content during generation. Items needing review are marked.
Sections in this chapter
Exercise 1.1 16Exercise 1.2 12Miscellaneous Exercise 7
Your Progress - Chapter 10% complete
1Exercise 1.116 questions
Q.1Determine whether each of the following relations are reflexive, symmetric and transitive: (i) Relation $R$ in the set $A = \{1, 2, 3, \ldots, 13, 14\}$ defined as $R = \{(x, y) : 3x - y = 0\}$. (ii) Relation $R$ in the set $\mathbb{N}$ of natural numbers defined as $R = \{(x, y) : y = x + 5 \text{ and } x < 4\}$. (iii) Relation $R$ in the set $A = \{1, 2, 3, 4, 5, 6\}$ as $R = \{(x, y) : y \text{ is divisible by } x\}$. (iv) Relation $R$ in the set $\mathbb{Z}$ of all integers defined as $R = \{(x, y) : x - y \text{ is an integer}\}$. (v) Relation $R$ in the set $A$ of human beings in a town at a particular time given by (a) $x$ and $y$ work at the same place; (b) $x$ and $y$ live in the same locality; (c) $x$ is exactly 7 cm taller than $y$; (d) $x$ is wife of $y$; (e) $x$ is father of $y$.v
Solution

(i) $R = \{(1,3),(2,6),(3,9),(4,12)\}$. $(1,1)\notin R$ so not reflexive; $(1,3)\in R$ but $(3,1)\notin R$ so not symmetric; $(1,3),(3,9)\in R$ but $(1,9)\notin R$ so not transitive.
(ii) $R=\{(1,6),(2,7),(3,8)\}$. $(1,1)\notin R$ (not reflexive); $(1,6)\in R$ but $(6,1)\notin R$ (not symmetric); no pair has a first element equal to another pair's second element, so transitivity is satisfied vacuously.
(iii) $x$ divides $x$, so reflexive; $(1,2)\in R$ but $(2,1)\notin R$, not symmetric; if $x\mid y$ and $y\mid z$ then $x\mid z$, so transitive.
(iv) $x-x=0$ is an integer (reflexive); $x-y$ integer $\Rightarrow y-x$ integer (symmetric); $x-y$ and $y-z$ integers $\Rightarrow x-z$ integer (transitive). Hence equivalence.
(v) (a),(b): 'same place'/'same locality' are reflexive, symmetric and transitive, hence equivalence relations. (c) $x$ is not 7 cm taller than himself (not reflexive); if $x$ is 7 cm taller than $y$ then $y$ is not 7 cm taller than $x$ (not symmetric); $x$ 7 cm taller than $y$ and $y$ 7 cm taller than $z$ gives $x$ 14 cm taller than $z$ (not transitive). (d) $x$ is not her own wife (not reflexive); if $x$ is wife of $y$, $y$ is not wife of $x$ (not symmetric); no $y$ is simultaneously a wife and has a wife, so transitivity holds vacuously. (e) $x$ is not his own father (not reflexive); not symmetric; if $x$ is father of $y$ and $y$ is father of $z$, then $x$ is the grandfather, not father, of $z$ (not transitive).

Answer:

(i) Neither reflexive, nor symmetric, nor transitive. (ii) Not reflexive, not symmetric, but transitive. (iii) Reflexive and transitive but not symmetric. (iv) Reflexive, symmetric and transitive (an equivalence relation). (v) (a) and (b) are equivalence relations; (c), (d) and (e) are none — (c) and (e) fail all three, (d) is neither reflexive nor symmetric.

Q.2Show that the relation $R$ in the set $\mathbb{R}$ of real numbers, defined as $R = \{(a, b) : a \le b^2\}$ is neither reflexive nor symmetric nor transitive.v
Solution

Reflexive: take $a = \dfrac12$. Then $a \le a^2$ means $\dfrac12 \le \dfrac14$, which is false, so $\left(\dfrac12, \dfrac12\right)\notin R$; $R$ is not reflexive.
Symmetric: $(1, 2)\in R$ since $1 \le 2^2 = 4$, but $(2, 1)\notin R$ since $2 \le 1^2 = 1$ is false; not symmetric.
Transitive: $(3, 2)\in R$ since $3 \le 4$, and $(2, 1.5)\in R$ since $2 \le (1.5)^2 = 2.25$, but $(3, 1.5)\notin R$ since $3 \le 2.25$ is false; not transitive.

Answer:

$R$ is neither reflexive, nor symmetric, nor transitive.

Q.3Check whether the relation $R$ defined in the set $\{1, 2, 3, 4, 5, 6\}$ as $R = \{(a, b) : b = a + 1\}$ is reflexive, symmetric or transitive.v
Solution

$R = \{(1,2),(2,3),(3,4),(4,5),(5,6)\}$. $(1,1)\notin R$, so not reflexive. $(1,2)\in R$ but $(2,1)\notin R$, so not symmetric. $(1,2),(2,3)\in R$ but $(1,3)\notin R$, so not transitive.

Answer:

$R$ is neither reflexive, nor symmetric, nor transitive.

Q.4Show that the relation $R$ in $\mathbb{R}$ defined as $R = \{(a, b) : a \le b\}$, is reflexive and transitive but not symmetric.v
Solution

Reflexive: $a \le a$ holds for every real $a$, so $(a,a)\in R$. Transitive: if $a \le b$ and $b \le c$ then $a \le c$, so $(a,b),(b,c)\in R \Rightarrow (a,c)\in R$. Not symmetric: $(1,2)\in R$ since $1 \le 2$, but $(2,1)\notin R$ since $2 \le 1$ is false.

Answer:

$R$ is reflexive and transitive but not symmetric.

Q.5Check whether the relation $R$ in $\mathbb{R}$ defined by $R = \{(a, b) : a \le b^3\}$ is reflexive, symmetric or transitive.v
Solution

Reflexive: for $a = \dfrac12$, $a \le a^3$ means $\dfrac12 \le \dfrac18$, which is false; not reflexive.
Symmetric: $(1, 2)\in R$ since $1 \le 2^3 = 8$, but $(2, 1)\notin R$ since $2 \le 1^3 = 1$ is false; not symmetric.
Transitive: $(10, 3)\in R$ since $10 \le 3^3 = 27$, and $(3, 1.5)\in R$ since $3 \le (1.5)^3 = 3.375$, but $(10, 1.5)\notin R$ since $10 \le 3.375$ is false; not transitive.

Answer:

$R$ is neither reflexive, nor symmetric, nor transitive.

Q.6Show that the relation $R$ in the set $\{1, 2, 3\}$ given by $R = \{(1, 2), (2, 1)\}$ is symmetric but neither reflexive nor transitive.v
Solution

Symmetric: the only pairs are $(1,2)$ and $(2,1)$, and each one's reverse is also present, so $R$ is symmetric. Not reflexive: $(1,1)\notin R$. Not transitive: $(1,2),(2,1)\in R$ but $(1,1)\notin R$.

Answer:

$R$ is symmetric but neither reflexive nor transitive.

Q.7Show that the relation $R$ in the set $A$ of all the books in a library of a college, given by $R = \{(x, y) : x \text{ and } y \text{ have the same number of pages}\}$ is an equivalence relation.v
Solution

Reflexive: a book $x$ has the same number of pages as itself, so $(x,x)\in R$. Symmetric: if $x$ has the same number of pages as $y$, then $y$ has the same number of pages as $x$, so $(x,y)\in R \Rightarrow (y,x)\in R$. Transitive: if $x$ and $y$ have the same number of pages and $y$ and $z$ have the same number of pages, then $x$ and $z$ have the same number of pages, so $(x,y),(y,z)\in R \Rightarrow (x,z)\in R$. Hence $R$ is an equivalence relation.

Answer:

$R$ is an equivalence relation (reflexive, symmetric and transitive).

Q.8Show that the relation $R$ in the set $A = \{1, 2, 3, 4, 5\}$ given by $R = \{(a, b) : |a - b| \text{ is even}\}$, is an equivalence relation. Show that all the elements of $\{1, 3, 5\}$ are related to each other and all the elements of $\{2, 4\}$ are related to each other. But no element of $\{1, 3, 5\}$ is related to any element of $\{2, 4\}$.v
Solution

Reflexive: $|a-a| = 0$ is even, so $(a,a)\in R$. Symmetric: $|a-b| = |b-a|$, so $(a,b)\in R \Rightarrow (b,a)\in R$. Transitive: $|a-b|$ even means $a,b$ have the same parity; if also $|b-c|$ is even then $b,c$ have the same parity, so $a,c$ have the same parity and $|a-c|$ is even. Hence $R$ is an equivalence relation.
The elements $1, 3, 5$ are all odd, so the difference of any two is even — they are mutually related. The elements $2, 4$ are even, so they are related. An odd number and an even number differ by an odd amount, so no element of $\{1,3,5\}$ is related to any element of $\{2,4\}$.

Answer:

$R$ is an equivalence relation; $\{1,3,5\}$ and $\{2,4\}$ are the two equivalence classes, with no element of one related to an element of the other.

Q.9Show that each of the relation $R$ in the set $A = \{x \in \mathbb{Z} : 0 \le x \le 12\}$, given by (i) $R = \{(a, b) : |a - b| \text{ is a multiple of } 4\}$ (ii) $R = \{(a, b) : a = b\}$ is an equivalence relation. Find the set of all elements related to 1 in each case.v
Solution

(i) Reflexive: $|a-a| = 0 = 4\cdot 0$ is a multiple of 4. Symmetric: $|a-b| = |b-a|$. Transitive: if $|a-b| = 4m$ and $|b-c| = 4n$, then $a-c$ is a sum/difference of these, so $|a-c|$ is a multiple of 4. Hence equivalence. Elements related to 1 satisfy $|a-1|$ is a multiple of 4 with $0\le a\le 12$: $a \in \{1, 5, 9\}$.
(ii) $a = b$ is reflexive, symmetric and transitive, so it is an equivalence relation (the identity relation). The only element related to 1 is 1 itself, i.e. $\{1\}$.

Answer:

(i) Equivalence relation; elements related to 1 are $\{1, 5, 9\}$. (ii) Equivalence relation; the only element related to 1 is $\{1\}$.

Q.10Give an example of a relation which is (i) Symmetric but neither reflexive nor transitive. (ii) Transitive but neither reflexive nor symmetric. (iii) Reflexive and symmetric but not transitive. (iv) Reflexive and transitive but not symmetric. (v) Symmetric and transitive but not reflexive.v
Solution

(i) On $\{1,2,3\}$, $R=\{(1,2),(2,1)\}$ is symmetric, but $(1,1)\notin R$ (not reflexive) and $(1,2),(2,1)\in R$ while $(1,1)\notin R$ (not transitive).
(ii) On $\mathbb{R}$, $R=\{(a,b):a<b\}$ is transitive, but $a<a$ is false (not reflexive) and $1<2$ while $2<1$ is false (not symmetric).
(iii) On $\{1,2,3\}$, $R=\{(1,1),(2,2),(3,3),(1,2),(2,1),(2,3),(3,2)\}$ is reflexive and symmetric, but $(1,2),(2,3)\in R$ and $(1,3)\notin R$ (not transitive).
(iv) On $\mathbb{R}$, $R=\{(a,b):a\le b\}$ is reflexive and transitive but not symmetric (Q4).
(v) On $\{1,2,3\}$, $R=\{(1,1),(2,2),(1,2),(2,1)\}$ is symmetric and transitive, but $(3,3)\notin R$ (not reflexive).

Answer:

(i) $R=\{(1,2),(2,1)\}$ on $\{1,2,3\}$. (ii) $R=\{(a,b):a<b\}$ on $\mathbb{R}$. (iii) $R=\{(1,1),(2,2),(3,3),(1,2),(2,1),(2,3),(3,2)\}$ on $\{1,2,3\}$. (iv) $R=\{(a,b):a\le b\}$ on $\mathbb{R}$. (v) $R=\{(1,1),(2,2),(1,2),(2,1)\}$ on $\{1,2,3\}$.

Q.11Show that the relation $R$ in the set $A$ of points in a plane given by $R = \{(P, Q) : \text{distance of the point } P \text{ from the origin is same as the distance of the point } Q \text{ from the origin}\}$, is an equivalence relation. Further, show that the set of all points related to a point $P \ne (0, 0)$ is the circle passing through $P$ with origin as centre.v
Solution

Let $d(P)$ denote the distance of $P$ from the origin. Reflexive: $d(P) = d(P)$. Symmetric: $d(P) = d(Q) \Rightarrow d(Q) = d(P)$. Transitive: $d(P) = d(Q)$ and $d(Q) = d(S) \Rightarrow d(P) = d(S)$. Hence equivalence.
For a fixed $P \ne (0,0)$ with $d(P) = r > 0$, the points $Q$ related to $P$ are exactly those with $d(Q) = r$, i.e. all points at distance $r$ from the origin. That set is the circle of radius $r$ centred at the origin, which passes through $P$.

Answer:

$R$ is an equivalence relation; the set of points related to a given $P \ne (0,0)$ is the circle centred at the origin and passing through $P$.

Q.12Show that the relation $R$ defined in the set $A$ of all triangles as $R = \{(T_1, T_2) : T_1 \text{ is similar to } T_2\}$, is an equivalence relation. Consider three right angle triangles $T_1$ with sides 3, 4, 5, $T_2$ with sides 5, 12, 13 and $T_3$ with sides 6, 8, 10. Which triangles among $T_1$, $T_2$ and $T_3$ are related?v
Solution

Similarity of triangles is reflexive (every triangle is similar to itself), symmetric (if $T_1\sim T_2$ then $T_2\sim T_1$) and transitive (if $T_1\sim T_2$ and $T_2\sim T_3$ then $T_1\sim T_3$); hence $R$ is an equivalence relation.
The sides of $T_3$ are $6, 8, 10 = 2\times(3, 4, 5)$, the sides of $T_1$, so corresponding sides are proportional and $T_1 \sim T_3$. The ratios $\dfrac{3}{5}, \dfrac{4}{12}, \dfrac{5}{13}$ are unequal, so $T_2$ is not similar to $T_1$ (nor to $T_3$). Thus only $T_1$ and $T_3$ are related.

Answer:

$R$ is an equivalence relation; $T_1$ and $T_3$ are related (similar), while $T_2$ is similar to neither.

Q.13Show that the relation $R$ defined in the set $A$ of all polygons as $R = \{(P_1, P_2) : P_1 \text{ and } P_2 \text{ have same number of sides}\}$, is an equivalence relation. What is the set of all elements in $A$ related to the right angle triangle $T$ with sides 3, 4 and 5?v
Solution

Reflexive: a polygon has the same number of sides as itself. Symmetric: if $P_1$ and $P_2$ have the same number of sides, so do $P_2$ and $P_1$. Transitive: equal side-counts pass through a middle polygon. Hence equivalence.
The triangle $T$ has 3 sides, so the polygons related to it are exactly those with 3 sides — that is, the set of all triangles.

Answer:

$R$ is an equivalence relation; the set of polygons related to $T$ is the set of all triangles (all 3-sided polygons).

Q.14Let $L$ be the set of all lines in XY plane and $R$ be the relation in $L$ defined as $R = \{(L_1, L_2) : L_1 \text{ is parallel to } L_2\}$. Show that $R$ is an equivalence relation. Find the set of all lines related to the line $y = 2x + 4$.v
Solution

Taking a line to be parallel to itself, $R$ is reflexive; if $L_1 \parallel L_2$ then $L_2 \parallel L_1$ (symmetric); if $L_1 \parallel L_2$ and $L_2 \parallel L_3$ then $L_1 \parallel L_3$ (transitive). Hence equivalence.
Lines parallel to $y = 2x + 4$ are exactly the lines with the same slope, $2$. These are $y = 2x + c$ for any real constant $c$.

Answer:

$R$ is an equivalence relation; the lines related to $y = 2x + 4$ are all lines of the form $y = 2x + c$, $c \in \mathbb{R}$ (all lines with slope 2).

Q.15Let $R$ be the relation in the set $\{1, 2, 3, 4\}$ given by $R = \{(1, 2), (2, 2), (1, 1), (4, 4), (1, 3), (3, 3), (3, 2)\}$. Choose the correct answer.v
  1. i. $R$ is reflexive and symmetric but not transitive.
  2. ii. $R$ is reflexive and transitive but not symmetric.
  3. iii. $R$ is symmetric and transitive but not reflexive.
  4. iv. $R$ is an equivalence relation.
Solution

All of $(1,1),(2,2),(3,3),(4,4)$ are in $R$, so $R$ is reflexive. $(1,2)\in R$ but $(2,1)\notin R$, so $R$ is not symmetric. Checking the chains: $(1,3),(3,2)\in R$ gives $(1,2)\in R$; $(1,2),(2,2)$ gives $(1,2)$; $(3,2),(2,2)$ gives $(3,2)$ — every required pair is present, so $R$ is transitive. Hence option (ii).

Answer:

(ii) $R$ is reflexive and transitive but not symmetric.

Q.16Let $R$ be the relation in the set $\mathbb{N}$ given by $R = \{(a, b) : a = b - 2,\ b > 6\}$. Choose the correct answer.v
  1. i. $(2, 4) \in R$
  2. ii. $(3, 8) \in R$
  3. iii. $(6, 8) \in R$
  4. iv. $(8, 7) \in R$
Solution

A pair $(a,b)$ is in $R$ when $a = b - 2$ and $b > 6$. (2,4): $b=4 \not> 6$. (3,8): $a = 8-2 = 6 \ne 3$. (6,8): $a = 8-2 = 6$ and $b = 8 > 6$ — both conditions hold. (8,7): $a = 7-2 = 5 \ne 8$. Hence $(6,8)\in R$, option (iii).

Answer:

(iii) $(6, 8) \in R$

2Exercise 1.212 questions
Q.1Show that the function $f : \mathbb{R}_* \to \mathbb{R}_*$ defined by $f(x) = \dfrac{1}{x}$ is one-one and onto, where $\mathbb{R}_*$ is the set of all non-zero real numbers. Is the result true, if the domain $\mathbb{R}_*$ is replaced by $\mathbb{N}$ with co-domain being same as $\mathbb{R}_*$?v
Solution

One-one: $f(x) = f(y) \Rightarrow \dfrac{1}{x} = \dfrac{1}{y} \Rightarrow x = y$. Onto: for any $y \in \mathbb{R}_*$, take $x = \dfrac{1}{y} \in \mathbb{R}_*$; then $f(x) = y$. So $f$ is a bijection on $\mathbb{R}_*$.
With domain $\mathbb{N}$, $g(x) = \dfrac{1}{x}$ is still one-one. But it is not onto: e.g. $\dfrac{2}{3} \in \mathbb{R}_*$ has no preimage, since $\dfrac{1}{n} = \dfrac{2}{3}$ gives $n = \dfrac{3}{2}\notin \mathbb{N}$. Hence the result fails for domain $\mathbb{N}$.

Answer:

$f$ is one-one and onto on $\mathbb{R}_*$. With domain $\mathbb{N}$ (and co-domain $\mathbb{R}_*$), $f$ is one-one but not onto, so the result is not true.

Q.2Check the injectivity and surjectivity of the following functions: (i) $f : \mathbb{N} \to \mathbb{N}$ given by $f(x) = x^2$ (ii) $f : \mathbb{Z} \to \mathbb{Z}$ given by $f(x) = x^2$ (iii) $f : \mathbb{R} \to \mathbb{R}$ given by $f(x) = x^2$ (iv) $f : \mathbb{N} \to \mathbb{N}$ given by $f(x) = x^3$ (v) $f : \mathbb{Z} \to \mathbb{Z}$ given by $f(x) = x^3$.v
Solution

(i) On $\mathbb{N}$, $x^2 = y^2 \Rightarrow x = y$ (positive), so injective; but $2 \in \mathbb{N}$ is not a perfect square, so not surjective.
(ii) On $\mathbb{Z}$, $f(-1) = f(1) = 1$, not injective; negative integers (and $2$) are not attained, not surjective.
(iii) On $\mathbb{R}$, $f(-1) = f(1)$, not injective; negative reals are never values of $x^2$, not surjective.
(iv) On $\mathbb{N}$, $x^3 = y^3 \Rightarrow x = y$, injective; $2$ is not a perfect cube, not surjective.
(v) On $\mathbb{Z}$, $x \mapsto x^3$ is strictly increasing, so injective; $2$ is not a perfect cube, not surjective.

Answer:

(i) Injective, not surjective. (ii) Neither injective nor surjective. (iii) Neither injective nor surjective. (iv) Injective, not surjective. (v) Injective, not surjective.

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

Not one-one: $[1.2] = 1 = [1.5]$, so $f(1.2) = f(1.5)$ although $1.2 \ne 1.5$. Not onto: the values of $[x]$ are integers only, so a non-integer such as $0.5 \in \mathbb{R}$ has no preimage. Hence $f$ is neither one-one nor onto.

Answer:

$f$ is neither one-one nor onto.

Q.4Show that the Modulus Function $f : \mathbb{R} \to \mathbb{R}$, given by $f(x) = |x|$, is neither one-one nor onto, where $|x|$ is $x$ if $x$ is positive or $0$, and $|x|$ is $-x$ if $x$ is negative.v
Solution

Not one-one: $|-1| = 1 = |1|$, so $f(-1) = f(1)$ while $-1 \ne 1$. Not onto: $|x| \ge 0$ for all $x$, so a negative number such as $-1 \in \mathbb{R}$ is not a value of $f$. Hence $f$ is neither one-one nor onto.

Answer:

$f$ is neither one-one nor onto.

Q.5Show that the Signum Function $f : \mathbb{R} \to \mathbb{R}$, given by $f(x) = 1$ if $x > 0$, $f(x) = 0$ if $x = 0$, and $f(x) = -1$ if $x < 0$, is neither one-one nor onto.v
Solution

Not one-one: $f(1) = 1 = f(2)$ although $1 \ne 2$ (every positive number maps to $1$). Not onto: the range of $f$ is $\{-1, 0, 1\}$, so any other real number, for example $2$, has no preimage. Hence $f$ is neither one-one nor onto.

Answer:

$f$ is neither one-one nor onto.

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

The images $f(1) = 4$, $f(2) = 5$, $f(3) = 6$ are all distinct. Since distinct elements of $A$ have distinct images in $B$, $f$ is one-one (injective).

Answer:

$f$ is one-one.

Q.7In each of the following cases, state whether the function is one-one, onto or bijective. Justify your answer. (i) $f : \mathbb{R} \to \mathbb{R}$ defined by $f(x) = 3 - 4x$ (ii) $f : \mathbb{R} \to \mathbb{R}$ defined by $f(x) = 1 + x^2$.v
Solution

(i) One-one: $3 - 4x_1 = 3 - 4x_2 \Rightarrow x_1 = x_2$. Onto: for any $y \in \mathbb{R}$, $x = \dfrac{3 - y}{4} \in \mathbb{R}$ gives $f(x) = y$. Hence bijective.
(ii) Not one-one: $f(1) = 2 = f(-1)$. Not onto: $1 + x^2 \ge 1$, so any value less than $1$ (e.g. $0$) has no preimage. Hence neither one-one nor onto.

Answer:

(i) $f$ is bijective (one-one and onto). (ii) $f$ is neither one-one nor onto.

Q.8Let $A$ and $B$ be sets. Show that $f : A \times B \to B \times A$ such that $f(a, b) = (b, a)$ is a bijective function.v
Solution

One-one: $f(a_1, b_1) = f(a_2, b_2) \Rightarrow (b_1, a_1) = (b_2, a_2) \Rightarrow a_1 = a_2$ and $b_1 = b_2$, so $(a_1,b_1) = (a_2,b_2)$. Onto: any element of $B \times A$ has the form $(b, a)$, and $f(a, b) = (b, a)$, so it has a preimage. Hence $f$ is bijective.

Answer:

$f$ is bijective.

Q.9Let $f : \mathbb{N} \to \mathbb{N}$ be defined by $f(n) = \dfrac{n+1}{2}$ if $n$ is odd, and $f(n) = \dfrac{n}{2}$ if $n$ is even, for all $n \in \mathbb{N}$. State whether the function $f$ is bijective. Justify your answer.v
Solution

$f(1) = \dfrac{1+1}{2} = 1$ (since $1$ is odd) and $f(2) = \dfrac{2}{2} = 1$ (since $2$ is even). Thus $f(1) = f(2) = 1$ with $1 \ne 2$, so $f$ is not one-one. Therefore $f$ is not bijective. (It is, however, onto, since every $m \in \mathbb{N}$ is attained, e.g. $f(2m) = m$.)

Answer:

$f$ is not bijective (it is onto but not one-one).

Q.10Let $A = \mathbb{R} - \{3\}$ and $B = \mathbb{R} - \{1\}$. Consider the function $f : A \to B$ defined by $f(x) = \dfrac{x - 2}{x - 3}$. Is $f$ one-one and onto? Justify your answer.v
Solution

One-one: suppose $\dfrac{x_1 - 2}{x_1 - 3} = \dfrac{x_2 - 2}{x_2 - 3}$. Cross-multiplying, $(x_1 - 2)(x_2 - 3) = (x_2 - 2)(x_1 - 3)$. Expanding, $x_1 x_2 - 3x_1 - 2x_2 + 6 = x_1 x_2 - 3x_2 - 2x_1 + 6$, which gives $-3x_1 - 2x_2 = -3x_2 - 2x_1$, i.e. $-x_1 = -x_2$, so $x_1 = x_2$.
Onto: let $y \in B$, so $y \ne 1$. Solving $y = \dfrac{x-2}{x-3}$ gives $y(x-3) = x-2$, so $x(y-1) = 3y - 2$ and $x = \dfrac{3y - 2}{y - 1}$, which is defined for $y \ne 1$. Also $x \ne 3$, because $x = 3$ would force $3y - 2 = 3y - 3$, i.e. $-2 = -3$, impossible. So every $y \in B$ has a preimage $x \in A$. Hence $f$ is one-one and onto.

Answer:

$f$ is both one-one and onto (a bijection).

Q.11Let $f : \mathbb{R} \to \mathbb{R}$ be defined as $f(x) = x^4$. Choose the correct answer.v
  1. i. $f$ is one-one onto
  2. ii. $f$ is many-one onto
  3. iii. $f$ is one-one but not onto
  4. iv. $f$ is neither one-one nor onto
Solution

$f(1) = 1 = f(-1)$ with $1 \ne -1$, so $f$ is many-one (not one-one). Also $x^4 \ge 0$ for all $x$, so negative reals are not attained and $f$ is not onto. Hence $f$ is neither one-one nor onto, option (iv).

Answer:

(iv) $f$ is neither one-one nor onto.

Q.12Let $f : \mathbb{R} \to \mathbb{R}$ be defined as $f(x) = 3x$. Choose the correct answer.v
  1. i. $f$ is one-one onto
  2. ii. $f$ is many-one onto
  3. iii. $f$ is one-one but not onto
  4. iv. $f$ is neither one-one nor onto
Solution

One-one: $3x_1 = 3x_2 \Rightarrow x_1 = x_2$. Onto: for any $y \in \mathbb{R}$, $x = \dfrac{y}{3} \in \mathbb{R}$ gives $f(x) = y$. Hence $f$ is one-one and onto, option (i).

Answer:

(i) $f$ is one-one onto.

3Miscellaneous Exercise7 questions
Q.1Show that the function $f : \mathbb{R} \to \{x \in \mathbb{R} : -1 \lt x \lt 1\}$ defined by $f(x) = \dfrac{x}{1+|x|}$, $x \in \mathbb{R}$, is one one and onto function.v
Solution

For $x \ge 0$, $f(x) = \dfrac{x}{1+x}$, so $f$ is increasing and has values in $[0,1)$. For $x \lt 0$, $f(x) = \dfrac{x}{1-x}$, so $f$ is increasing and has values in $(-1,0)$. Hence two unequal inputs on the same side of $0$ cannot have the same image, and inputs on opposite sides of $0$ have images of opposite signs. Also $f(0)=0$, so $f$ is one-one.
To prove onto, take any $y \in \{x \in \mathbb{R}: -1 \lt x \lt 1\}$. If $0 \le y \lt 1$, put $x=\dfrac{y}{1-y}$. Then $x \ge 0$ and $f(x)=\dfrac{x}{1+x}=y$. If $-1 \lt y \lt 0$, put $x=\dfrac{y}{1+y}$. Then $x \lt 0$ and $f(x)=\dfrac{x}{1-x}=y$. Thus every element of the codomain has a preimage, so $f$ is onto. Therefore $f$ is one-one and onto.

Answer:

$f$ is one-one and onto.

Q.2Show that the function $f : \mathbb{R} \to \mathbb{R}$ given by $f(x) = x^3$ is injective.v
Solution

Let $x_1, x_2 \in \mathbb{R}$ and suppose $f(x_1)=f(x_2)$. Then $x_1^3=x_2^3$, so $x_1^3-x_2^3=0$. Hence $(x_1-x_2)(x_1^2+x_1x_2+x_2^2)=0$. If $x_1 \ne x_2$, the second factor is positive, which is impossible. Therefore $x_1=x_2$, and $f$ is injective.

Answer:

$f$ is injective.

Q.3Given a non empty set $X$, consider $P(X)$ which is the set of all subsets of $X$. Define the relation $R$ in $P(X)$ as follows: For subsets $A, B$ in $P(X)$, $ARB$ if and only if $A \subset B$. Is $R$ an equivalence relation on $P(X)$? Justify your answer.v
Solution

For an equivalence relation, the relation must be reflexive, symmetric and transitive. Since $X$ is non-empty, choose an element $a \in X$. Then $\{a\} \subset X$, so $\{a\}RX$. But $X \subset \{a\}$ is false unless $X=\{a\}$, and in general the subset relation is not symmetric; for example $\varnothing \subset X$ but $X \subset \varnothing$ is false. Hence $R$ is not symmetric, so it is not an equivalence relation.

Answer:

$R$ is not an equivalence relation on $P(X)$.

Q.4Find the number of all onto functions from the set $\{1, 2, 3, \ldots, n\}$ to itself.v
Solution

The domain and codomain are the same finite set with $n$ elements. Any onto function from this set to itself must also be one-one, because all $n$ elements of the codomain are already hit by the $n$ elements of the domain. Thus the onto functions are exactly the permutations of the set. The number of such functions is $n!$.

Answer:

$n!$

Q.5Let $A = \{-1, 0, 1, 2\}$, $B = \{-4, -2, 0, 2\}$ and $f, g : A \to B$ be functions defined by $f(x) = x^2 - x$, $x \in A$ and $g(x) = 2\left|x - \dfrac{1}{2}\right| - 1$, $x \in A$. Are $f$ and $g$ equal? Justify your answer. (Hint: One may note that two functions $f : A \to B$ and $g : A \to B$ such that $f(a) = g(a)$ $\forall a \in A$, are called equal functions).v
Solution

Compare the values at every element of $A$. For $f(x)=x^2-x$: $f(-1)=2$, $f(0)=0$, $f(1)=0$ and $f(2)=2$. For $g(x)=2\left|x-\dfrac{1}{2}\right|-1$: $g(-1)=2\left| -\dfrac{3}{2}\right|-1=2$, $g(0)=2\left| -\dfrac{1}{2}\right|-1=0$, $g(1)=2\left|\dfrac{1}{2}\right|-1=0$ and $g(2)=2\left|\dfrac{3}{2}\right|-1=2$. Thus $f(a)=g(a)$ for every $a \in A$. Therefore $f$ and $g$ are equal.

Answer:

Yes. $f$ and $g$ are equal functions.

Q.6Let $A = \{1, 2, 3\}$. Then number of relations containing $(1, 2)$ and $(1, 3)$ which are reflexive and symmetric but not transitive isv
  1. i. $1$
  2. ii. $2$
  3. iii. $3$
  4. iv. $4$
Solution

A reflexive relation must contain $(1,1),(2,2),(3,3)$. Since it contains $(1,2)$ and $(1,3)$ and is symmetric, it must also contain $(2,1)$ and $(3,1)$. The only remaining possible symmetric pair is $(2,3)$ together with $(3,2)$. If this pair is included, the relation becomes the universal relation on $A$, which is transitive. If this pair is not included, the relation is not transitive because $(2,1)$ and $(1,3)$ are present but $(2,3)$ is absent. Hence exactly one relation satisfies the conditions, option (i).

Answer:

(i) $1$

Q.7Let $A = \{1, 2, 3\}$. Then number of equivalence relations containing $(1, 2)$ isv
  1. i. $1$
  2. ii. $2$
  3. iii. $3$
  4. iv. $4$
Solution

An equivalence relation on $A$ is determined by a partition of $A$. Since $(1,2)$ must be in the relation, $1$ and $2$ must lie in the same equivalence class. There are two possible partitions: $\{\{1,2\},\{3\}\}$ and $\{\{1,2,3\}\}$. Therefore there are exactly two such equivalence relations, option (ii).

Answer:

(ii) $2$