NCERT Exemplar For Class 12 Maths Chapter 1 - Relations and Functions (Book Solutions)
NCERT Exemplar For Class 12 Maths Chapter 1 - Relations and Functions (Book Solutions)
Mathematics
Chapter 1: Relations and Functions
Solved Examples
Example 2 For the set A = {1, 2, 3}, define a relation R in the set A as follows: R =
{(1, 1), (2, 2), (3, 3), (1, 3)}. Write the ordered pairs to be added to R to make it is
the smallest equivalence relation.
Ans: (3, 1) is the single ordered pair which needs to be added to R to make it the
smallest equivalence relation.
⇒ 4 x 1 = 4 x 2 , i.e., x 1 = x 2
Hence, f is one-one.
Example 8 If f = {(5, 2), (6, 3)} and g = {(2, 5), (3, 6)}, write the range of f and g.
Ans: The range of f = {2, 3} and the range of g = {5, 6}.
Example 10 If A = {a, b, c, d} and f = {(a, b), (b, d), (c, a), (d, c)}, show that f is
one one from A onto A. Find f-1.
Ans: f is one-one since each element of A is assigned to a distinct element of the set
A. Also, f is onto since f (A) = A.
Moreover, f 1 = {(b, a), (d, b), (a, c), (c, d)}.
4
A0∪A1 ∪A2∪A3∪A4= i 0
Ai = N .
x
Example 13 Show that the function f : R → R defined by f (x) = , ∀x∈ R,
x 1
2
f ( x1 ) = f ( x2 )
x1 x2
⇒ =
x 12 1 x 2 2 1
⇒ x1 x 2 2 + x 1 = x 2 x12 + x 2
⇒ x1 x 2 ( x 2 - x 1 ) = x 2 - x 1
⇒ x 1 = x 2 or x 1 x 2 =1
We note that there are point, x 1 and x 2 with x 1 ≠ x 2 and f ( x 1 ) = f ( x 2 ), for instance,
1 2
if we take x 1 = 2 and x 2 = , then we have f ( x 1 ) = and
2 5
2 1
f ( x2 ) = but 2 ≠ .
5 2
Hence f is not one-one. Also, f is not onto for if so then for 1∈R ∃ x ∈ R such that f (x)
=1
x
Which gives = 1. But there is no such x in the domain R, since the equation
x 1 2
f (x) = { 2x ,if x ≥ 0
0, if x <0
Similarly, the function g defined by g (x) = x - x may be redefined as g (x) = {0 if x
≥ 0 -2 x if x < 0
Therefore, g o f gets defined as:
For x ≥ 0, (g o f) (x) = g (f (x) = g (2x) = 0
and for x < 0, (g o f ) (x) = g (f (x) = g (0) = 0.
Consequently, we have (g o f) (x) = 0, ∀ x ∈ R.
Similarly, f o g gets defined as:
For x ≥ 0, (f o g ) (x) = f (g (x) = f (0) = 0,and for x < 0, (f o g ) (x) = f (g(x)) = f (–2 x)
= – 4x.
i.e. (fog)(x) = {0, x > 0-4 x , x < 0}
y-5 y-5
Similarly (fog) (y) = f(g(y) = f = 4 +5 = y
4 4
Or, fog = I R
Choose the correct answer from the given four options in each of the Examples
17 to 25.
Example 18 Let L denote the set of all straight lines in a plane. Let a relation R be
defined by lRm if and only if l is perpendicular to m ∀ l, m ∈ L. Then R is
(A) reflexive
(B) symmetric
(C) transitive
(D) none of these
Ans: The correct choice is (B).
(B) sinx
2
(C ) sin x 2
sin x
(D)
x2
Ans: (C) is the correct choice.
Example 28 Let Z be the set of integers and R be the relation defined in Z such
that aRb if a – b is divisible by 3. Then R partitions the set Z into ________
pairwise disjoint subsets.
Ans: Three.
Example 29 Let R be the set of real numbers and * be the binary operation
defined on R as a * b = a + b – ab ∀ a, b ∈ R. Then, the identity element with
respect to the binary operation * is _______.
Ans: 0 is the identity element with respect to the binary operation *.
Example 31 Let A be a finite set. Then, each injective function from A into itself
is not subjective.
Ans: False.
Example 34 Let N be the set of natural numbers. Then, the binary operation * in
N defined as a * b = a + b, ∀ a, b ∈ N has identity element.
Ans: False.
Ans: Given real valued function f(x), such that f(x) = 25 x 2 , since, f(x) is real
valued.
We must have
25 x 2 0
x 2 25
-5 x 5
The domain is D = [-5,5]
5.If A = {a, b, c, d} and the function f = {(a, b), (b, d), (c, a), (d, c)}, write f-1.
Ans: Let f:A A , then inverse f 1 is such that
f-1 = {(b,a),(d,b),(a,c),(c,d)}
f-1: A A and f-1 = {(b,a),(d,b),(a,c),(c,d)}
Ans: Yes g is a function since every element in the domain has a unique image.
Now, let g(x) = α x + β
Then given,
g(1) = α + β = 1
g(2) = 2 α + β = 3
We have β = -1.
8. Are the following set of ordered pair’s functions? If so, examine whether the
mapping is injective or subjective.
(i){(x,y) : x is a person, y is the mother of x}
Ans: Given set of ordered pairs is:
{(x,y) : x is a person, y is the mother of x}.
It represents a function. Here the image of distinct elements of x under f are not
distinct, so it's not injective but it is subjective.
9.If the mapping f and g are given by f = {(1,2),(3,5), (4,1)} and g ={ (2,3), (5,1),
(1,3)}, write fog.
Ans: Given that,
f = {(1,2),(3,5), (4,1)}
And g={(2,3), (5,1), (1,3)}
Now, fog(2) = f{g(2)} = f(3) = 5
fog(5) = f{g(5)} = f(1) = 2
fog(1) = f{g(1)} = f(3) = 5
fog = {(2,5),(5,2),(1,5)}.
10. Let C be the set of complex numbers. Prove that the mapping f: C R given
by f(z) = z ,∀ z ∈ C, is neither one-one nor onto.
f(1) = |1| = 1
f(-1) = |-1| = 1
f (1) = f(-1)
But,1 -1
So, f(z) is not one-one. Also, f(z) is not onto as there is no pre-image for any negative
element of R under the mapping f(z).
π π
Now, f = cos =0
2 2
-π π
f = cos = 0
2 2
π -π
f = f
2 2
-π π
f = f
2 2
π -π
But, 0
2 2
So, f(x) is not one-one.
Now, f(x) = cos x, ∀ x ∈ R is not onto as there is no pre- image for any real number,
which does not belong to the intervals [-1,1], the range of cos x.
12.Let X = {1, 2, 3} and Y = {4, 5}. Find whether the following subsets of X ×Y are
functions from X to Y or not.
(i) f = {(1, 4), (1, 5), (2, 4), (3, 5)}
Ans: f is not a function because f has no unique image.
(ii) g = {(1, 4), (2, 4), (3, 4)}
Ans: g is a function as each element of the domain has a unique image.
(iii) h = {(1,4), (2, 5), (3, 5)}
Ans: h is a function
(iv) k = {(1,4), (2, 5)}.
Ans: k is not a function as 3 does not have any image under the mapping.
x1 = x2
1
14. Let f:R R be the function defined f(x) = , ∀ x ∈ R. Then find the
2 cos x
range of f.
1
Ans: Given function, f(x) = ,∀ x ∈ R
2 cos x
1
Let y =
2 cos x
2y - y cos x = 1
y cos x = 2y - 1
2y - 1 1
cos x = 2
y y
1
cos x = 2
y
-1 cos x 1
1
-1 2 1
y
1
-3 -1
y
1
3 1
y
Long Answers:
So, it is symmetric.
(c) reflexive, symmetric and transitive.
Ans: Given that: A = {1, 2, 3, 4}
Let R 3 = {(1,2),(2,1),(1,1),(2,2),(3,3), (1,3), (3,1),(2,3)}
18. Given A = {2, 3, 4}, B = {2, 5, 6, 7}. Construct an example of each of the
following:
(a) an injective mapping from A to B
Ans:Given that, A = {2, 3, 4}, B = {2, 5, 6, 7}.
Let f : A B denote a mapping
f= {(x,y) : y = x + 3}
I.e f = {(2,5),(3,-6),(4, 7)}
Which is an injective mapping.
(b) a mapping from A to B which is not injective
Ans: Given that A = {2, 3, 4}, B = {2, 5, 6, 7}.
Let g : A B denote a mapping
Such that g = {(2,2),(3,5),(4,7)} which is not an injective mapping.
(c) a mapping from B to A.
Ans: Given that A = {2, 3, 4}, B = {2, 5, 6, 7}.
Let h : B A denote a mapping
Such that h = { (2,2),(5,3),(6,4),(7,4)} which is a mapping from B A .
x1 x 2
Further f is not onto, as for 1 N, there does not exist any x in N such that f(x) = 2x +
1.
(ii) which is not one-one but onto
Ans: Let f: N N , given by f(1) = f(2) = 1 and f(x) = x- 1 for every x> 2 is onto but
not one-one.f is not one-one as f(1)= f(2) = 1. But f is onto.
(iii) which is neither one-one nor onto.
Ans: The mapping f: R R defined by f(x) = x 2 , is neither one -one nor onto.
x 2
20. Let A = R – {3}, B = R – {1}. Let f : A → B be defined by f (x) = ∀x∈A.
x 3
Then show that f is bijective.
Ans: Given that, A = R- {3} , B = R -{1}.
x- 2
f: A B is defined by f(x) = ∀ x ∈ A.
x -3
For injectivity
Let f(x1) = f(x2)
x1 2 x 2 2
=
x1 3 x2 3
( x 1 2 )( x 2 3 ) = ( x 2 2 )( x 1 3 )
x1 x 2 - 3 x 1 - 2 x 2 + 6 = x1 x 2 - 3 x 2 - 2 x 1 + 6
- 3 x1 - 2 x2 = - 3 x2 - 2 x1
- x1 = - x2
x1 = x2
21. Let A = [–1, 1]. Then, discuss whether the following functions defined on A
are one-one, onto or bijective:
x
(i) f(x) =
2
Ans:Given : A = [-1,1]
x
f(x) =
2
Let f( x 1 ) = f( x 2 )
x1 x 2
=
2 2
x1 = x2
x 12 = x 22
x1 = x 2
x= y A, ∀ y ∈A
x= y A,∀ y ∈A
As for y = -1, x = 1 A
Hence, k(x) is neither one-one nor onto.
23. Let A = {1, 2, 3, ..... 9} and R be the relation in A × A defined by (a, b) R (c, d)
if a + d = b + c for (a, b), (c, d) in A ×A.Prove that R is an equivalence relation
and also obtain the equivalent class [(2, 5)].
24. Using the definition, prove that the function f : A→ B is invertible if and only
if f is both one-one and onto.
Ans: A function f: x y is defined to be invertible, if there exist a function
g = y x such that gof = I x and fog = I y . The function is called the inverse of f and
is denoted by f 1 .
A function f = x y is invertible if f is a bijective function.
= 2x 3 3 2 x 3 1
2
= 4 x 2 + 9 - 12 x + 6x -9x + 1
= 4 x2 - 6 x + 1
(ii) g o f
Ans: Given that f(x) = x 2 + 3x + 1, g(x) = 2 x - 3
gof = g { f(x) } = g ( x 2 + 3x + 1)
= 2( x 2 + 3x + 1 )- 3
= 2 x2 + 6 x + 2 - 3
= 2 x2 + 6 x - 1
(iii) f o f
Ans: Given that f(x) = x 2 + 3x + 1, g(x) = 2 x - 3
fof = f{f(x)} = f( x 2 + 3x + 1)
= x 2 3 x 1 3 x 2 3 x 1 1
2
= x4 9 x 2 + 1 + 6 x 3 + 6x + 2 x 2 + 3 x 2 + 9 x + 3+ 1
= x 4 + 6 x 3 + 14 x 2 + 15 x + 5
(iv) g o g
Ans: Given that f(x) = x 2 + 3x + 1, g(x) = 2 x - 3
gog = g{g(x)} = g( 2 x- 3)
= 2(2 x -3)-3
=4x-6-3
=4x-9
(iv) a * b = a b ∀ a, b ∈ Q
2
Ans: a * b = (a-b)2∀ a, b ∈ Q
b * a = (b-a)2
Since, (a-b)2=(b-a)2
Hence, * is commutative.
28.Let T be the set of all triangles in the Euclidean plane, and let a relation R on
T be defined as aRb if a is congruent to b ∀ a, b ∈ T. Then R is
(A) reflexive but not transitive
(B) transitive but not symmetric
(C) equivalence
(D) none of these
Ans:
Consider that aRb, if a is congruent to b, ∀ a, b ∈ T.
Then, aRa a a,
Which is true for all a ∈ T.
So, R is reflexive----------- (i)
Let aRb a b,
b a
29. Consider the non-empty set consisting of children in a family and a relation R
defined as aRb if a is brother of b. Then R is
(A) symmetric but not transitive
(B) transitive but not symmetric
(C) neither symmetric nor transitive
(D) both symmetric and transitive
Ans:
Given:aRb a is brother of b.
Therefore aRa a is brother of a, which is not true.
So, R is not reflexive.
aRb a is brother of b.
This doesn't mean b is also a brother of a as b can be sister of a.
Hence, R is not symmetric.
aRb a is brother of b.
And, bRc b is brother of c.
So, a is brother of c
Hence, R is transitive.
30. The maximum number of equivalence relations on the set A = {1, 2, 3} are
R 5 1,2,3 A X A A2
34. The identity element for the binary operation * defined on Q ~ {0} as a * b =
ab
,∀ a, b ∈ Q ~ {0} is
2
35. If the set A contains 5 elements and the set B contains 6 elements, then the
number of one-one and onto mappings from A to B is
(A) 720
(B) 120
(C) 0
(D) none of these
Ans: We know that, if A and B are two non- empty finite set containing m and n
elements respectively, then the number of one-one and onto mapping from A to B is
n! If m = n
0, if m n
Given that m = 5 and n = 6
Therefore, m n
Number of mapping = 0
(B) 2n-2
(C) 2n – 1
(D) None of these
Ans: (A)
Given that:
A = {1, 2, 3, ...n} and B = {a, b}
We know that, if A and B are two non- empty finite set containing
m and n elements respectively, then the number of surjectionsfrom A to B is
n
Cm m!
(if n m ),
0, if m < n.
Here, m = 2.
n
Cm 2!
n!
2!
2! n 2 !
n C2
n n 1 n 2 !
2!
2 1 n 2 !
n2– n
1
37.Let f : R → R be defined by f (x) = , ∀ x ∈ R. Then f is
x
(A) one-one
(B) onto
x
38.Let f:R R be defined by f(x) = 3x2-5 and g :R R by g(x) = . Then gof
x 1
2
is:
3x 2 5
(A)
9 x 4 30x 2 26
3x 2 5
(B)
9 x 4 6x 2 26
3x 2
(C) 4
x 2x 2 4
3x 2
(D)
9x 4 30x 2 2
Ans: (A)
x
Given that f(x) = 3 x 2 5 and g(x) =
x 1
2
gof = g{f(x)}= g (3 x 2 5 )
3x 2 - 5
=
3x - 5
2 2
+1
3x 2 - 5
=
9 x 4 -30x 2 + 25 + 1
3x 2 - 5
=
9 x 4 -6x 2 + 26
(A) (x 5) 3
1
(B) (x 5) 3
(C ) (5 x ) 3
(D) 5 - x
Ans: (B)
Given that, f(x) = x 3 5
Let y = x 3 5
x3 = y-5
1
x (y 5) 3
f 1 x = (x 5) 3
(A) f 1 o g 1
(B) fog
(C) g 1 o f 1
(D) gof
Ans: (A)
Given that f: A B and g:B C be the bijective functions.
gof
1
= f 1 o g 1
3 3x 2
42. Let f:R- R be defined by f(x) = . Then
5 5x 3
x,if xisrational
43. Let f:[0,1] [0,1] be defined by f(x) =
1 - x,if xisirrational
Then (fof)x is
(A) Constant
(B) 1+x
(C) x
(D) none of these
Ans: (C)
Given that f:[0,1] [0,1] be defined by
44. Let f : [2, ∞) → R be the function defined by f (x) = x2-4x+5, then the range of
f is
(A) R
(B) [1, ∞)
(C) [4, ∞)
(D) [5, ∞)
Ans: (B)
Given that, f (x) = x 2 – 4x + 5,
y = x 2 – 4x + 5
y= x2 – 4x + 4+ 1 = (x-2)2+1
(x-2)2 = y - 1
(x - 2) = y 1
x=2+ y 1
Therefore, (y -1) 0, y 1.
Range = [1, ∞)
2x 1
45. Let f : N → R be the function defined by f (x) = and g : Q → R be
2
3
another function defined by g (x) = x + 2. Then (g o f) is
2
(A) 1
(B) 3
2x : x > 3
f(x) = x 2 :1 x 3
3x : x 1
f(–1) + f(2) + f(4)
= 3(-1) + 22 + (2 4)
= -3 + 4 + 8
=9
50. Let f = {(1, 2), (3, 5), (4, 1) and g = {(2, 3), (5, 1), (1, 3)}. Then g o f = ______
and f o g = ________.
Ans:
Given that
f = {(1, 2), (3, 5), (4, 1) and g = {(2, 3), (5, 1), (1, 3)}.
gof(1) = g{f(1)} = g(2) = 3
gof(3) = g{f(3)} = g(5) = 1
gof(4) = g{f(4)} = g(1) = 3
gof = {(1,3),(3,1),(4, 3)}
fog(x) = f{ g(x)}
fog(2) = f {g(2)} = f(3) = 5
fog(5) = f {g(5)} = f(1) = 2
fog(1) = f {g(1)} = f(3) = 5
fog={(2,5),(5,2),(1,5)}
x
51. Let f : R → R be defined by f(x) = , then ( f o f o f ) (x) = _______.
1 x 2
Ans:
x
Given that, f(x) =
1 x2
(fofof)(x) = f[f{f(x)}]
x
= f 1 x2
x2
1
1 x2
x 1 x2
= f
1 x 2 2x 2 + 1
x
x 1 + 2x 2
= f 2
f
1 + 2x 1 x x
2 2
1 x2
x
= f 2
1 + 2x
x
2
= 1 + 2x
x2
1
1 x2
x 1 + 2x 2
=
1 + 2x 2 1 + 3x 2
x
=
1 + 3x 2
Let y = [4 - x 7 ]
3
x 7
3
=4-y
x = 7 4 y
1/ 3
f (x) = 7 + (4 - x)
-1 3
True/False:
53. Let R = {(3, 1), (1, 3), (3, 3)} be a relation defined on the set A = {1, 2, 3}. Then
R is symmetric, transitive but not reflexive.
Ans: The given statement is false.
Given that, R = {(3,1),(1,3),(3, 3)} be defined on the set A= {1,2,3}
(1,1) R
So, R is not reflexive.
(3,1) R, (1,3) R
Hence, R is symmetric.
Since,(3,1) R,(1,3) R
But (1,1) R
Hence, R is not transitive.
57. Let A = {0, 1} and N be the set of natural numbers. Then the mapping f : N →
A defined by f (2n–1) = 0, f (2n) = 1, ∀ n ∈ N, is onto.
Ans: The given statement is true.
Given, A = {0,1}
F(2n - 1) = 0 , f(2n) = 1,∀ n ∈ N
So, the mapping f: N A is onto.
58.The relation R on the set A = {1, 2, 3} defined as R = {{1, 1), (1, 2), (2, 1), (3, 3)}
is reflexive, symmetric and transitive.
Ans: The given statement is false.
Given that R = {(1,1),(1,2),(2,1),(3,3)}
(2,2) R
So, R is not reflexive.
= x 1 x 2 2x + 1
2
gof(x) = g{f(x)} = g ( x 2 ) = x 2 + 1