#### NCERT Solutions for Class 12th: Ch 1 Relations and Functions Miscellaneous Exercise Math

Page No: 29

**Exercise 1.3**

1. Let f : R â†’ R be defined as f(x) = 10x + 7. Find the function g : R â†’ R such
that gof = fog = I

_{R}.**Answer**

It is given that f: R â†’ R is defined as f(x) = 10x + 7.

For one â€“ one

Let f(x) = f(y), where x, y âˆˆ R.

â‡’ 10x + 7 = 10y + 7

â‡’ x = y

âˆ´ f is a one â€“ one function.

For onto

For y âˆˆ R, let y = 10x + 7.

âˆ´ f is onto.

Therefore, f is oneâ€“one and onto.

Thus, f is an invertible function.

Let us define g: R â†’ R as g(y) = yâˆ’7/10

Now, we have

2. Let f : W â†’ W be defined as f(n) = nâ€“1, if n is odd and f(n) = n+1, if n is
even. Show that f is invertible. Find the inverse of f. Here, W is the set of all
whole numbers.

**Answer**

It is given that:

For oneâ€“one

Let f(n) = f(m).

It can be observed that if n is odd and m is even, then we will have nâˆ’1 = m + 1.

â‡’ n âˆ’ m = 2

However, this is impossible.

Similarly, the possibility of n being even and m being odd can also be ignored

under a similar argument.

âˆ´ Both n and m must be either odd or even. Now, if both n and m are odd,

Then, we have

f(n) = f(m)

â‡’ n âˆ’ 1 = m â€“ 1

â‡’ n = m

Again, if both n and m are even,

Then, we have

f(n) = f(m)

â‡’ n + 1 = m + 1

â‡’ n = m

âˆ´ f is oneâ€“one.

For onto:

It is clear that any odd number 2r + 1 in co-domain N is the image of 2r in domain

N and any even number 2r in co-domain N is the image of 2r + 1 in domain N.

âˆ´ f is onto.

Hence, f is an invertible function.

Now, when n is odd

gof(n) = g(f(n)) = g(n âˆ’ 1) = n âˆ’ 1 + 1 = n and

When n is even

gof(n) = g(f(n)) = g(n + 1) = n + 1 âˆ’ 1 = n

Similarly,

When m is odd

fog(m) = f(g(m)) = f(m âˆ’ 1) = m âˆ’ 1 + 1 = m and

When m is even

fog(m) = f(g(m)) = f(m + 1) = m + 1 âˆ’ 1 = m

âˆ´ gof = I

_{W}Â and fog = I_{W}
Thus, f is invertible and the inverse of f is given by f

^{-1}= g, which is the same as f. Hence, the inverse of f is f itself.
3. If f : R â†’ R is defined by f(x) = x

^{2}Â - 3x + 2, find f (f(x)).**Answer**

It is given that f: R â†’ R is defined as f(x) = x

^{2}Â âˆ’ 3x + 2.
f(f(x)) = f(x

^{2}Â âˆ’ 3x + 2)
= (x

^{2}Â âˆ’ 3x + 2)^{2}Â âˆ’ 3(x^{2}Â âˆ’ 3x + 2) + 2
= (x

^{4}Â + 9x^{2}Â + 4 âˆ’ 6x^{3}Â âˆ’ 12x + 4x^{2}) + (âˆ’3x^{2}Â + 9x âˆ’ 6) + 2
= x

^{4}Â âˆ’ 6x^{3}Â + 10x^{2}Â âˆ’ 3x
4. Show that the function f : R â†’ {x âˆˆ R : â€“1 < x < 1} defined by

Â , x âˆˆ R is one one and onto function.

**Answer**

For one â€“ one

Suppose f(x) = f(y), where x, y âˆˆ R.

Since, x is positive and y is negative

x > y â‡’ x âˆ’ y > 0

But, 2xy is negative.

Then 2xy â‰ x âˆ’ y

Thus, the case of x being positive and y being negative can be ruled out.

Under a similar argument, x being negative and y being positive can also be ruled out.

âˆ´ x and y have to be either positive or negative.

When x and y are both positive, we have

âˆ´ f is one â€“ one.

For onto

Now, let y âˆˆ R such that âˆ’1 < y < 1.

If y is negative, then, there exists x =y/1+y âˆˆ R such that

âˆ´ f is onto.

Hence, f is oneâ€“one and onto.

5. Show that the function f : R â†’ R given by f(x) = x

^{3}Â is injective.**Answer**

f: R â†’ R is given as f(x) = x3.

For one â€“ one

Suppose f(x) = f(y), where x, y âˆˆ R.

â‡’ x

^{3}Â = y^{3}Â ....(1)
Now, we need to show that x = y.

Suppose x â‰ y, their cubes will also not be equal.

â‡’ x

^{3}Â â‰ y^{3}
However, this will be a contradiction to (1).

âˆ´ x = y

Hence, f is injective.

6. Give examples of two functions f : N â†’ Z and g : Z â†’ Z such that g o f is
injective but g is not injective.

(Hint : Consider f(x) = x and g (x) = | x |).Â

**Answer**

Define f: N â†’ Z as f(x) = x and g: Z â†’ Z as g (x) = |x|.

We first show that g is not injective.

It can be observed that

g (âˆ’1) =|âˆ’1| = 1

g (1) = |1| = 1

âˆ´ g (âˆ’1) = g (1), but âˆ’1 â‰ 1.

âˆ´ g is not injective.

Now, g of: N â†’ Z is defined as gof(x) = g(f(x)) = g(x) = |x|.

Let x, y âˆˆ N such that g of(x) = g of(y).

â‡’ |x| = |y|

Since x and y âˆˆ N, both are positive.

âˆ´ |x| = |y| â‡’ x = y

Hence, gof is injective.

7. Give examples of two functions f : N â†’ N and g : N â†’ N such that g o f is onto
but f is not onto.

**Answer**

Define f: N â†’ N by f(x) = x + 1 and,

We first show that g is not onto.

For this, consider element 1 in co-domain N. It is clear that this element is not an image of any of the elements in domain N.

âˆ´ f is not onto.

Now, gof: N â†’ N is defined by

gof(x) = g(f(x)) = g(x + 1) = x + 1 âˆ’ 1 = x [x âˆˆ N â‡’ x + 1 > 1]

Then, it is clear that for y âˆˆ N, there exists x = y âˆˆ N such that gof(x) = y.

Hence, gof is onto.

8. Given 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 âŠ‚ B. Is R an equivalence relation
on P(X)? Justify your answer.

**Answer**

Since every set is a subset of itself, ARA for all A âˆˆ P(X).

âˆ´ R is reflexive.

Let ARB â‡’ A âŠ‚ B.

This cannot be implied to B âŠ‚ A.

For instance, if A = {1, 2} and B = {1, 2, 3}, then it cannot be implied that B is

related to A.

âˆ´ R is not symmetric.

Further, if ARB and BRC, then A âŠ‚ B and B âŠ‚ C.

â‡’ A âŠ‚ C

â‡’ ARC

âˆ´ R is transitive.

Hence, R is not an equivalence relation as it is not symmetric.

Page No. 30

9. Given a non-empty set X, consider the binary operation âˆ— : P(X) Ã— P(X) â†’ P(X)
given by A âˆ— B = A âˆ© B âˆ€ A, B in P(X), where P(X) is the power set of X.
Show that X is the identity element for this operation and X is the only invertible
element in P(X) with respect to the operation âˆ—.

**Answer**

It is given the binary operation *:

P(X) Ã— P(X) â†’ P(X) given by A * B = A âˆ© B âˆ€ A, B in P(X)

We know that A âˆ© X = A = X âˆ© A for all A âˆˆ P(X)

â‡’ A * X = A = X * A for all A âˆˆ P(X)

Thus, X is the identity element for the given binary operation *.

Now, an element A âˆˆ P(X) is invertible if there exists B âˆˆ P(X) such that

A * B = X = B * A [As X is the identity element]

or

A âˆ© B = X = B âˆ© A

This case is possible only when A = X = B.

Thus, X is the only invertible element in P(X) with respect to the given operation*.

Hence, the given result is proved.

10. Find the number of all onto functions from the set {1, 2, 3, ... , n} to itself.

**Answer**

Onto functions from the set {1, 2, 3, ... , n} to itself is simply a permutation on n symbols 1, 2, ..., n.

Thus, the total number of onto maps from {1, 2, ... , n} to itself is the same as the total number of permutations on n symbols 1, 2, ..., n, which is n.

11. Let S = {a, b, c} and T = {1, 2, 3}. Find F

^{-1}Â of the following functions F from S to T, if it exists.
(i) F = {(a, 3), (b, 2), (c, 1)}

(ii) F = {(a, 2), (b, 1), (c, 1)}

**Answer**

S = {a, b, c}, T = {1, 2, 3}

(i) F: S â†’ T is defined as F = {(a, 3), (b, 2), (c, 1)}

â‡’ F (a) = 3, F (b) = 2, F(c) = 1

Therefore, F

^{-1}: T â†’ S is given by F^{-1}Â = {(3, a), (2, b), (1, c)}.
(ii) F: S â†’ T is defined as F = {(a, 2), (b, 1), (c, 1)}

Since F (b) = F (c) = 1, F is not one â€“ one.

Hence, F is not invertible i.e., F

^{-1}Â does not exist.
12. Consider the binary operations âˆ— : R Ã— R â†’ R and o : R Ã— R â†’ R defined as
a âˆ—b = |a â€“ b| and a o b = a, âˆ€ a, b âˆˆ R. Show that âˆ— is commutative but not
associative, o is associative but not commutative. Further, show that âˆ€ a, b, c âˆˆ R,
a âˆ— (b o c) = (a âˆ— b) o (a âˆ— c). [If it is so, we say that the operation âˆ— distributes
over the operation o]. Does o distribute over âˆ—? Justify your answer.

**Answer**

It is given that *: R Ã— R â†’ and o: R Ã— R â†’ R is defined as a âˆ— b = |a âˆ’ b| and

aob = a, âˆ€ a, b âˆˆ R

For a, b âˆˆ R, we have

a âˆ— b = |a âˆ’ b| and b âˆ— a = |b âˆ’ a| = |âˆ’(a âˆ’ b)| = |a âˆ’ b|

âˆ´ a * b = b * a

Hence, the operation * is commutative.

It can be observed that

(1 âˆ— 2) âˆ— 3 = (|1 âˆ’ 2|) âˆ— 3 = 1 âˆ— 3 = |1 âˆ’ 3| = 2

and

1 âˆ— (2 âˆ— 3) = 1 âˆ— (|2 âˆ’ 3|) = 1 âˆ— 1 = |1 âˆ’ 1| = 0

âˆ´ (1 âˆ— 2) âˆ— 3 â‰ 1 âˆ— (2 âˆ— 3) where 1, 2, 3 âˆˆ R.

Hence, the operation * is not associative.

Now, consider the operation o

It can be observed that 1 o 2 = 1 and 2 o 1 = 2.

âˆ´ 1 o 2 â‰ 2 o 1 where 1, 2 âˆˆ R.

Hence, the operation o is not commutative.

Let a, b, c âˆˆ R. Then, we have

(a o b) o c = a o c = a

and

a o (b o c) = a o b = a

âˆ´ (a o b) o c = a o (b o c), where a, b, c âˆˆ R

Hence, the operation o is associative.

Now, let a, b, c âˆˆ R, then we have

a * (b o c) = a * b =|a âˆ’ b|

(a * b) o (a * c) = (|a âˆ’ b|)o(|a âˆ’ c|) = |a âˆ’ b|

Hence, a * (b o c) = (a * b) o (a * c).

Now,

1 o (2 âˆ— 3) = 1o(|2 âˆ’ 3|) = 1o1 = 1

(1 o 2) * (1 o 3) = 1 * 1 = |1 âˆ’ 1| = 0

âˆ´ 1 o (2 * 3) â‰ (1 o 2) * (1 o 3) where 1, 2, 3 âˆˆ R

Hence, the operation o does not distribute over *.

13. Given a non-empty set X, let âˆ— : P(X) Ã— P(X) â†’ P(X) be defined as
A * B = (Aâ€“B) âˆª (Bâ€“A), âˆ€ A, B âˆˆ P(X). Show that the empty set Ï† is the
identity for the operation âˆ— and all the elements A of P(X) are invertible with
A

^{-1}Â = A. (Hint : (Aâ€“Ï†) âˆª (Ï†â€“A) = A and (Aâ€“A) âˆª (Aâ€“A) = A âˆ— A = Ï†).**Answer**

It is given that *: P(X) Ã— P(X) â†’ P(X) is defined

as A * B = (A âˆ’ B) âˆª (B âˆ’ A) âˆ€ A, B âˆˆ P(X).

Let A âˆˆ P(X). Then, we have

A * Î¦ = (A âˆ’ Î¦) âˆª (Î¦ âˆ’ A) = A âˆª Î¦ = A

Î¦ * A = (Î¦ âˆ’ A) âˆª (A âˆ’ Î¦) = Î¦ âˆª A = A

âˆ´ A * Î¦ = A = Î¦ * A for all A âˆˆ P(X)

Thus, Î¦ is the identity element for the given operation*.

Now, an element A âˆˆ P(X) will be invertible if there exists B âˆˆ P(X) such that

A * B = Î¦ = B * A. [As Î¦ is the identity element]

Now, we observed that,

A * A = ( A â€“ A) âˆª (A â€“ A) = Î¦ âˆª Î¦ = Î¦ for all A âˆˆ P(X).

Hence, all the elements A of P(X) are invertible with A

^{-1}Â = A.
14. Define a binary operation âˆ— on the set {0, 1, 2, 3, 4, 5} as

Show that zero is the identity for this operation and each element a â‰ 0 of the set
is invertible with 6â€“a being the inverse of a

**Answer**

Let X = {0, 1, 2, 3, 4, 5}.

An element e âˆˆ X is the identity element for the operation *, if

a âˆ— e = a = e âˆ— a for all a âˆˆ X

For a âˆˆ X, we have

a âˆ— 0 = a + 0 = a [a âˆˆ X â‡’ a + 0 < 6]

0 âˆ— a = 0 + a = a [a âˆˆ X â‡’ 0 + a < 6]

âˆ´ a âˆ— 0 = a = 0 âˆ— a for all a âˆˆ X

Thus, 0 is the identity element for the given operation *.

An element a âˆˆ X is invertible if there exists b âˆˆ X such that a * b = 0 = b * a.

â‡’ a = âˆ’b or b = 6 âˆ’ a

But, X = {0, 1, 2, 3, 4, 5} and a, b âˆˆ X. Then, a â‰ âˆ’b.

âˆ´ b = 6 âˆ’ a is the inverse of a for all a âˆˆ X.

Hence, the inverse of an element a âˆˆX, a â‰ 0 is 6 âˆ’ a i.e., a

^{-1}Â = 6 âˆ’ a.
15. Let A = {â€“ 1, 0, 1, 2}, B = {â€“ 4, â€“ 2, 0, 2} and f, g : A â†’ B be functions defined by

Justify your answer. (Hint: One may note that two functions f : A â†’ B and
g : A â†’ B such that f(a) = g (a) âˆ€ a âˆˆ A, are called equal functions).

**Answer**

It is given that A = {âˆ’1, 0, 1, 2}, B = {âˆ’4, âˆ’2, 0, 2}.

Also, it is given that f, g: A â†’ B are defined by

âˆ´ f(a) = g(a) for all a âˆˆ A

Hence, the functions f and g are equal.

16. Let A = {1, 2, 3}. Then number of relations containing (1, 2) and (1, 3) which are

reflexive and symmetric but not transitive is

(A) 1

(B) 2

(C) 3

(D) 4

**Answer**

The given set is A = {1, 2, 3}.

The smallest relation containing (1, 2) and (1, 3) which is reflexive and symmetric, but not transitive is given by:

R = {(1, 1), (2, 2), (3, 3), (1, 2), (1, 3), (2, 1), (3, 1)}

This is because relation R is reflexive as (1, 1), (2, 2), (3, 3) âˆˆ R.

Relation R is symmetric since (1, 2), (2, 1) âˆˆ R and (1, 3), (3, 1) âˆˆ R.

But relation R is not transitive as (3, 1), (1, 2) âˆˆ R, but (3, 2) âˆ‰ R.

Now, if we add any two pairs (3, 2) and (2, 3) (or both) to relation R, then relation R will become transitive.

Hence, the total number of desired relations is one.

The correct answer is A.

17. Let A = {1, 2, 3}. Then number of equivalence relations containing (1, 2) is

(A) 1

(B) 2

(C) 3

(D) 4

**Answer**

It is given that A = {1, 2, 3}.

The smallest equivalence relation containing (1, 2) is given by,

R1 = {(1, 1), (2, 2), (3, 3), (1, 2), (2, 1)}

Now, we are left with only four pairs i.e., (2, 3), (3, 2), (1, 3), and (3, 1).

If we odd any one pair [say (2, 3)] to R1, then for symmetry we must add (3, 2).

Also, for transitivity we are required to add (1, 3) and (3, 1).

Hence, the only equivalence relation (bigger than R1) is the universal relation.

This shows that the total number of equivalence relations containing (1, 2) is two.

The correct answer is B.

Page No. 31

18. Let f : R â†’ R be the Signum Function defined as

and g : R â†’ R be the Greatest Integer Function given by g (x) = [x], where [x] is
greatest integer less than or equal to x. Then, does fog and gof coincide in (0, 1]?

**Answer**

It is given that,

Also, g: R â†’ R is defined as g(x) = [x], where [x] is the greatest integer less than or equal to x.

Now, let x (0, 1].

Then, we have

[x] = 1 if x = 1 and [x] = 0 if 0 < x < 1.

19. Number of binary operations on the set {a, b} are

(A) 10Â

(B) 16Â

(C) 20

(D ) 8

**Answer**

A binary operation * on {a, b} is a function from {a, b} Ã— {a, b} â†’ {a, b}

i.e., * is a function from {(a, a), (a, b), (b, a), (b, b)} â†’ {a, b}.

Hence, the total number of binary operations on the set {a, b} is 2

^{4}Â i.e., 16.
The correct answer is B.