SN Function
SN Function
SHORT NOTES
on
RELATION
&
FUNCTION
2 RELATION & FUNCTION
1. ORDERED PAIRS :
2. RELATION :
Defination :
Relation is a linear operation which establishes relationship between the element's of two set's according
to some definite rule of relationship.
R : {(a, b) | (a, b) A × B and a R b}
Eg :1 A is {2, 3, 5}
B is {1, 4, 9, 25, 30}
If aRb b is square of a
Discreet element of relation are {(2, 4), (3, 9), (5, 25)}
Eg :2 A = {Jaipur, Patna, Kanpur, Lucknow}
B = {Rajasthan, Uttar Pradesh, Bihar}
aRb a is capital of b,
A × B = {(Jaipur, Rajasthan), (Patna, Bihar), (Lucknow, Uttar Pradesh) }
SHORT NOTES
RELATION & FUNCTION 3
If R be a relation from a set A to set B. Then set of all first component's or coordinates of ordered pairs
is called the domain of R, while the set of all second component's or coordinates of the ordered pairs is
called as range of relation.
Let R : A B (R is a relation defined from set A to set B) then domain of this relation is
Domain : Set of all the first entries in R
{a | (a, b) R}
Range : Set of all the second entries in R Domain Range
{b | (a, b) R}
E.g. A = {1, 3, 5, 7}; B = {2, 4, 6, 8} 3 2
Relation is aRb a > b; a A, b B 5 4
R = {(3, 2), (5, 2), (5, 3), (7, 2), (7, 4), (7, 6) }
7 7
Domain = {3, 5, 7}
Range = {2, 4, 6}
SHORT NOTES
4 RELATION & FUNCTION
(ii) Reflexive:
A relation defined on a set A is said to be an Identity relation if each & every element ofA is related to
itself.
i.e. if (a, b) R then (a, a) R. However if there is a single ordered pair of (a, b) R such
(a, a) R then R is not reflexive.
Eg. 1 : Let A = {1, 2, 3} be a set then R = {(1, 1), (2, 2), (3, 3), (1, 3), (2, 1)} is a reflexive relation on A.
R1 = {(1, 1), (3, 3), (2, 1), (6, 2)} is not a reflexive relation on A, because 2 A but (2, 2) R.
SHORT NOTES
RELATION & FUNCTION 5
Illustration :
Check the following relations for being reflexive, symmetric, transitive and thus choose the
equivalence relations if any.
(i) a R b if a b; a, b set of real numbers.
(ii) a R b iff a < b; a, b N.
1
(iii) a R b iff a b > ; a, b R.
2
(iv) a R b iff a divides b; a, b N.
(v) a R b iff (a – b) is divisble by n; a, b I, n is a fixed positive integer.
Sol.
(i) Not reflexive, not symmetric but transitive
Let a = –2 and b = 3; (–2, 3) R. Since 2 3 is true
x 2 | x | hence symmetric.
3 1 5 1
Let a = 1, b = – 1 and c = , ab 2 so ( a ,b ) R; b c so (b, c) R
2 2 2 2
3 1 1
But a c 1 so ( a ,c ) R . Hence R is not a transitive relation.
2 2 2
SHORT NOTES
6 RELATION & FUNCTION
a
Since = 1 i.e. every number divides itself, hence R is reflexive.
a
If a divides b then b does not divide a (unless (a = b) hence the relation is not symmetric
(but anti-symmetric).
If a divides b and b divides c then it is clear that a will divide c. Hence transitive.
0
Since 0 is divisible by n 0 so given relation is reflexive
n
If a – b is divisible by n, then (b – a) will also be divisible by n. Hence, symmetric.
If a – b = nI1 and b – c = nI2 , where I1 , I2 are integer.
Then, a – c = (a – b) + (b – c) = n(I1 + I2) so a – c is also divisible by n, hence transitive.
Practice Problem
Q.1 If R is a relation from a finite set A having m elements to a finite set B having n elements, then the number
of relations from A to B is-
(A) 2mn (B) 2mn – 1 (C) 2mn (D) mn
Q.2 Let L denote the set of all straight lines in a plane. Let a relation R be defined by R , , L.
Then R is -
(A) Reflexive (B) Symmetric (C) Transitive (D) None of these
Q.3 Two points A and B in a plane are related if OA = OB, where O is a fixed point. This relation is -
(A) Reflexive but not symmetric (B) Symmetric but not transitive
(C) An equivalence relation (D) None of these
Answer key
SHORT NOTES
RELATION & FUNCTION 7
FUNCTION
3. INTRODUCTION :
A function is like a machine which gives unique output for each input that is fed into it. But every machine
is designed for certain defined inputs for eg. a juicer is designed for fruits & not for wood. Similarly
functions are defined for certain inputs which are called as its "domain and corresponding outputs are
called "Range".
Definition-1 :
Let A and B be two sets and let there exist a rule or manner or correspondence ‘ f ’ which associates to
each element of A to a unique element in B,then f is called a function or mapping from A to B. It is
denoted by the symbol
f
f : A B or A B
which reads ‘ f ’ is a function from A to B’ or ‘f maps A to B,
A function f : A B can be expressed as a set of ordered pairs in which each ordered pair is such that
its first element belongs to A and second element is the corresponding element of B.
As such a function f : A B can be considered as a set of ordered pairs (a, f(a) ) where a A and
f (a) B which is the f image of a. Hence f is a subset of A × B.
f f f f
A B A B A B A B
a p a p a p a p
b q b q b q b q
c r c r c r c r
d s d s d s d s
Function Not a function Function t
Not a function
As a particular type of relation, we can define a function as follows :
SHORT NOTES
8 RELATION & FUNCTION
Definition-2 :
Thus the ordered pairs of f must satisfy the property that each element of A appears in some ordered
pair and no two ordered pairs have same first element.
Note : Every function is a relation but every relation is not necessarily a function.
Let f : A B, then the set A is known as the domain of f & the set B is known as codomain of f.
The set of all f images of elements of A is known as the range of f . Thus :
Domain of f = {a a A, (a, f(a)) f}
Range of f = {f(a) a A, f(a) B, (a, f (a) ) f}
It should be noted that range is a subset of codomain . If only the rule of function is given then the
domain of the function is the set of those real numbers, where function is defined. For a continuous
function, the interval from minimum to maximum value of a function gives the range.
Let f and g be function with domain D1 and D2 then the functions
Note :
f + g, f – g, fg, f g are defined as
(f + g)(x) = f (x) + g (x); Domain D1 D2
(f – g)(x) = f (x) – g (x); Domain D1 D2
(f g)(x) = f (x) · g (x); Domain D1 D2
f f (x )
(x) = ; Domain = {x D1 D2 | g (x) 0}
g g( x )
SHORT NOTES
RELATION & FUNCTION 9
Let f be a mapping with domain D such that y = f(x) should assume angle value for each x,(i.e. the straight
line drawn parallel to y-axis in its domain should cut at only one point.
Eg. y = x3
Here all the straight lines parallel to y-axis cut y = x3 only at one print.
y
Eg. x2 + y2 = 12
Here line parallel to y-axis is intersecting the circle at two points hence it is not a function.
y
x
(–1,0) (1,0)
3.5 Domain :
NOTE: (A) A polynomial of degree one with no constant term is called an odd linear function
i.e. f(x) = ax , a 0
(B) There are two polynomial functions , satisfying the relation ;
f(x).f(1/x) = f(x) + f(1/x) . They are :
(a) f(x) = xn + 1 & (b) f(x) = 1 xn , where n is a positive integer.
(C) A polynomial of degree odd has its range (– , ) put a polynomial of degree even has a range
which is always subset of R.
SHORT NOTES
10 RELATION & FUNCTION
1
f (x) = with domain R+ – {1}, range is R – {0}
ln x
(v) Logarithmic function: A function of the form y = logax, x > 0, a > 0, a 1, is called Logarithmic
function.
a>1
y = loga x
a<1
SHORT NOTES
RELATION & FUNCTION 11
x
It is also written as Sgn x = |x|/ x or
|x|
x 0 ; f (0) = 0
Note that Sgn(Sgn x) = Sgn x;
1 , | x | 1
y = Sgn (x2 – 1) = 0 , | x | 1
1, | x | 1
SHORT NOTES
12 RELATION & FUNCTION
e.g. f (x) = [{x}]; g(x) = sin2x + cos2x; h (x) = sgn(x2 – 3x + 4) etc, all are constant functions.
Illustration :
1 5 x x2
(v) f (x) = (vi) f (x) = log 1
[ x] x 2
4
1 x2
(vii) f(x) = cos (sin x ) + sin–1
2 x (viii) f(x) = log4 log2 log1/2 (x)
Sol.
(i) f (x) = x2 5 x 6
positive negative positive
x2 – 5x + 6 0
2 3
(x – 2) (x – 3) 0
x (–, 2] [3, )
SHORT NOTES
RELATION & FUNCTION 13
1
(ii) f (x) = x2 3x 2
x2 3x 4
x2 – 3x + 2 0 and x2 – 3x – 4 > 0
x2 – 3x + 2 0
positive negative positive
(x – 2) (x – 1) 0
1 2
x (–, 1] [2, ) …(i)
and x2 – 3x – 4 > 0
positive negative positive
(x – 4) (x + 1) > 0
–1 4
x (–, –1) (4, ) …(ii)
Taking union of (i) & (ii)
x (–, –1) (4, )
2
(iii) f (x) = + log10 (x3 – x)
x 4
2
1
(iv) f (x) =
| x | x
|x|–x>0
|x|>x
This is possible only when x is negative i.e. x < 0, hence
x (–, 0)
1
(v) f (x) =
[ x] x
[x] – x > 0
[x] > x
but we know that [x] x
Hence domain is
SHORT NOTES
14 RELATION & FUNCTION
5 x x2
(vi) f (x) = log 1
2 4
5 x x2
0
4
x (5 – x) > 0 x (x – 5) < 0
x (0, 5) …(i)
5 x x2
Also log 1 0
2 4
0
5 x x2 1
5x – x2 4
4 2
x2 – 5x + 4 0
1 4
x (–, 1] [4, ) …(ii)
Using (i) and (ii)
x (0, 1] [4, 5)
1 x2
(vii) f(x) = cos(sin x ) + sin–1
2 x
cos(sin x) 0
–1 sin x 1 x R
cos > 0 for
2 2
hence x R ... (i)
1 x2
sin–1 2 x
1 x2
2 x 1 | 1 + x2 | | 2x |
| x |2 – 2| x | + 1 0
(| x | – 1)2 0
Only at x = ± 1 ... (ii)
Using (i) and (ii)
x {–1, 1}
SHORT NOTES
RELATION & FUNCTION 15
RANGE :
Range of y = f(x) is the collection of all outputs corresponding to each real number of the domain.
Illustration :
SHORT NOTES
16 RELATION & FUNCTION
x2 x x( x 1 )
(v) y= 2 =
x 2x x( x 2 )
Domain is x R – {–2, 0}
x( x 1 )
y=
x( x 2 )
x 1 1 2y
when x 0, y = x=
x2 1 y
If x is real y – 1 0 y 1
1 2y
Also for x = ; x 0
1 y
1 1
hence y – Hence range y R – , 1
2 2
(vi) y = 3 – 2x
Domain is x R
0 2x <
Range (–, 3)
Illustration :
x2
(iii) f(x) = log0.3
x
1
(iv) f(x) =
[ x 1 ] [| 7 x |] 6
1
(v) f(x) = log cos x
2
SHORT NOTES
RELATION & FUNCTION 17
Sol.
2 5 2 5 25
2
2
5 9 5 3
sin x sin x 2 or sin x –
4 16 4 4
1 7
sin x 2 sin x x 2 n , 2 n , n I
2 6 6
x2
(iii) f(x) = log0.3
x
for f(x) to be defined
x2
0< 1
x
x2 x2
–1 1 and 0 ... (i)
x x
Solving LHS
x2
+ 1 0
x
x < 0, x 1 ... (ii)
SHORT NOTES
18 RELATION & FUNCTION
Solving RHS
x2
11
x
x > 0 ... (iii)
hence from (i), (ii) and (iii)
x [1, ) – {2}
1
(iv) f(x) =
[| x 1 |] [| 7 x |] 6
[| x – 1 |] + [ | 7 – x | ] – 6 0
Case I :
1<x<7
[x – 1] + [7 – x] – 6 0
[x] – 1 + [–x] + 7 0
[x] + [–x] 0
x I
x (1, 7) – {2, 3, 4, 5, 6}
Case II :
x 1
[1 – x] + [7 + x] – 6 0
2 + 2[–x] 0
[–x] –1
–x –1
x (0, 1] x (–, 0]
Case III :
[x – 1] + [x – 7] – 6 0
2[x] 14
[x] 7
x [7, 8)
using can I, II and III we get
x R – (0, 1] – [7, 8) – {2, 3, 4, 5, 6)
1
(v) f(x) = log cos x
2
1
cos x > 0
2
1
cos x < – 1
2 y
2
2 4
x 2 n , 2 n
3 3
SHORT NOTES
RELATION & FUNCTION 19
Practice Problem
1
cos x
(i) f(x) = 2 (ii) f(x) = ( x 2 3x 10)ln 2 ( x 3)
6 35x 6 x 2
(iii) f(x) = log2{x} – 3 (x2 – 5x + 13) (iv) f(x) = log x 2 2 + 9 x2
x 3
x2 x 1 92
(i) y (ii) y = 3sin x2
x2 x 2 16
e x e|x|
(iii) y = 3 sin x + 4 sin x + 7 (iv) y = x |x|
3 e e
(v) y = [x2] – [x]2
Illustration :
Find the domain of x for which the function f(x) = ln x2 and g(x) = 2ln x are identical.
Sol. f(x) = ln x2 = 2 ln | x |
g(x) = 2ln x
if f(x) = g(x)
2ln | x | = 2ln x
function are equal only if x (0, )
SHORT NOTES
20 RELATION & FUNCTION
Illustration :
Find out which of the following functions are identical.
1 1
(i) f(x) = cosec x, g(x) = (ii) f(x) = tan x, g(x) =
sin x cot x
1 cos 2 x
(iii) f(x) = ln ex, g(x) = eln x (iv) f(x) = , g(x) = sin x
2
1
(v) f (x) = , g(x) = x 2
|x|
Sol.
1
(i) f(x) = cosec x, g(x) =
sin x
Domain of f(x) x n
Domain of g(x) x n
Since domain and range are same hence identical fucntion
1
(ii) f(x) = tan x, g(x) =
cot x
f(x) = tan x, x = 0 is domain of f(x)
1
g(x) =
cot x
x = 0 is not in the domain of g(x)
hence f(x) and g(x) are not identical.
1 cos 2 x
(iv) f(x) = , g(x) = sin x
2
f(x) = | sin x | Range [0, 1]
g(x) = sin x Range [0, 1]
hence not identical.
1
(v) f (x) = , g(x) = x 2
|x|
1
f(x) =
|x|
1 1
g(x) = =
x2 | x|
hence identical functions.
SHORT NOTES
RELATION & FUNCTION 21
Practice Problem
1 x
(v) f(x) = x | x | ; g(x) = x2 sgn x (vi) f(x) = ; g(x) =
1 1 x
1
x
(vii) f(x) = [{x}] ; g(x) = {[x]}
5. CLASSIFICATION OF FUNCTIONS:
OR
Note:
(i) A continuous function which is always increasing or decreasing in whole domain, then f(x) is oneone.
(ii) A function is one to one if and only if a horizontal line intersects its graph at most once.
SHORT NOTES
22 RELATION & FUNCTION
A function f : A B is said to be a many one function if two or more elements of A have the same
f image in B. Thus f : A B is many one if for;
x1, x2 A , f(x1) = f(x2) but x1 x2.
OR
Note:
(i) Any continuous function which has atleast one local maximum or local minimum in its domain, then f(x)
is manyone. In other words, if a line parallel to xaxis cuts the graph of the function atleast at two
points, then f is manyone.
(ii) If a function is oneone, it cannot be manyone and vice versa.
One One + Many One = Total number of mappings.
If the function f : A B is such that each element in B (codomain) is the f image of atleast one element
in A, then we say that f is a function of A 'onto' B. Thus f : A B is surjective iff b B, some
a A such that f (a) = b.
f : R R f (x) = 2x +1; f : R R+ f (x) = ex; f : R+ R f (x) = ln x
OR
Note that: If range = codomain, then f (x) is onto. Any polynomial of degree odd , f : R R is onto.
SHORT NOTES
RELATION & FUNCTION 23
If f : A B is such that there exists atleast one element in codomain which is not the image of any
element in domain, then f(x) is into.
e.g. f : R R f (x) = [x], | x |, sgn x, f (x) = ax2 + bx + c
OR
Note :
(i) If a function is onto, it cannot be into and vice versa . A polynomial of degree even define from R R
will always be into & a polynomial of degree odd defined from R R will always be onto.
(iii) If f is both injective & surjective, then it is called a Bijective mapping. The bijective functions are also
named as invertible, non singular or biuniform functions.
Illustration :
Classify the following functions as many-one, one-one, onto or into functions.
(i) f(x) = ex + e–x (ii) f(x) = x3
f : [–1, 1] [–1, 1], f(x) = sin 2x
2
(iii) f(x) = 1 x (iv)
Sol.
SHORT NOTES
24 RELATION & FUNCTION
(ii) f(x) = x3
y
Domain R
Range R
x
we know that (y = x3) cubic, equation has a solution for all x R.
f(x) is one-one onto y = x3.
(iii) f(x) = 1 x 2
Domain x R
Range y [1, )
f(x) = f(–x)
f(x) is many one-into y
(iv) f : [–1, 1] [–1, 1], f(x) = sin 2x 4 x
From graph we can say that –2 2
4
–1
f(x) is many one onto.
Illustration :
The function f : [2, ) y defined by f(x) = x2 – 4x + 5 is both one-one and onto if
(A) y = R (B) y = [1, ) (C) y = [4, ] (D) y = [5, ]
Sol. f(x) = x2 – 4x + 5
Minima at x = 2
y
at x = 2, y = 4 – 8 + 5 = 1
For function to be one-one it should be monotonic. x
O
Hence, for x [2, ), f(x) is increasing.
at x = 2, y = 1. Hence y [1, )
Illustration :
If f(x) = x2 + bx + 3 is not injective for values of x in the interval, 0 x 1. Find the interval in
which b lies .
(A) (–, ) (B) (–2, ) (C) (–2, 0) (D) (–, 2)
Sol. If f(x) is not one-one then atleast one horizontal line should intersect it at two points
b
0< <1
2
0 < –b < 2 0 –b 1
b (–2, 0) 2
SHORT NOTES
RELATION & FUNCTION 25
Illustration :
A function f : A B, such that set "A" and "B" contain four elements each then find
(i) Total number of functions (ii) Number of one-one functions
(iii) Number of many one functions (iv) Number of onto functions
(v) Number of into functions
Sol.
(i) Ist element of A can have its image in 4 ways.
Similarly II, III and IV can have 4 options for their image each.
hence number of functions = 44
(iv) Since 4 elements in B are given hence each should be image of atleast one.
So number of onto function = 4!
Illustration :
A function f : A B, such that set "A" contains five element and "B" contains four elements then
find
(i) Total number of functions (ii) Number of one-one functions
(iii) Number of onto function (iv) Number of many one function
(v) Number of into functions
Sol.
(i) Total number of functions
Hence number of functions = 4 × 4 × 4 × 4 × 4 = 45
SHORT NOTES
26 RELATION & FUNCTION
Illustration :
A function f : A B such that set A contains 4 elements and set B contains 5 elements, then find the
(i) Total number of functions (ii) Number of injective (one-one) mapping.
(iii) Number of many-one functions (iv) Number of onto function.
(v) Number of into functions
Sol.
(i) Total number of functions
Every element in A has 5 options for image, hence
Total number of functions = 54 = 625.
(ii) Number of injective (one-one) mapping.
4 elements in A needs four images hence number of one one functions = 5C4 × 4! = 120.
(iii) Number of many-one functions
Number of many-one mapping
= Total number of mapping – number of one-one mapping
= 54 – 5C4 × 4! = 505
(iv) Number of onto function = 0
(v) Number of into functions = 54 = 625
Practice Problem
Q.1 Show that there are exactly two distinct linear function which map[–2, 0] onto [1, 3].
Q.2 Let f be a one-one function with domain {x, y, z} and range {1, 2, 3}. It is given that exactly one of
the following statements is true & the remaining two are false. f(x) = 1, f(y) 1, f(z) 2. Find
f(x), f(y) & f(z).
x2
Q.3 If f : R – {3} R – {1}, where f (x) = . Find out if f(x) is bijective or not.
x 3
x 2 2mx 1 for x 0
Q.4 f : R R is defined as f (x) = . If f (x) is one-one then m must lie in the
mx 1 for x 0
interval
(A) (–, 0) (B) (–, 0] (C) (0, ) (D) [0, )
Answer key
SHORT NOTES
RELATION & FUNCTION 27
6. FUNCTIONAL EQUATIONS :
Illustration :
1
If f(0) = 1, f(1) = 2 & f(x) = [f (x + 1) + f (x + 2)], find the value of f (5).
2
Sol. f(x + 2) = 2f(x) – f(x + 1)
thus f(0 + 2) = f(2) = 2f(0) – f(1)
= 2(1) – 2 = 0
f(3) = 2f(1) – f(2) = 2(2) – 0 = 4
f(4) = 2f(2) – f(3) = 0 – 4 = –4
f(5) = 2f(3) – f(4) = 2(4) – (–4) = 12
Illustration :
Illustration :
1
If 2f(x2) + 3f 2 = x2 – 1 (x 0) then find f(x2).
x
1
Sol. 2f(x2) + 3f 2 = x2 – 1 …(i)
x
1
Replace x by
x
SHORT NOTES
28 RELATION & FUNCTION
1 1
2f 2 + 3f(x2) = 2 – 1 …(ii)
x
x
Solving (i) & (ii) we get
1
9f(x)2 – 4f(x2) = 3 2 1 – 2(x2 – 1)
x
3
5f(x2) = 2 – 2x2 – 1
x
2 x4 x2 3
f(x ) = –
2
5 x2
Illustration :
Let f(x) & g(x) be functions which take integers as arguments let f(x + y) = f(x) + g(y) + 8 for all
integer x & y. Let f(x) = x for all negative integers x let g(8) = 17, find f(0).
Practice Problem
Q.1 Let f(x) = ax5 + bx3 + cx – 5, where a, b & c are constants. If f(–7) = 7, then find f(7).
Q.2 The function f : R R satisfies the condition mf(x – 1) + nf(–x) = 2|x| + 1. If f (–2) = 5 and f(1) = 1,
then find (m + n).
n
Q.3 If f(x + y) = f(x) f(y) x, y N, f(1) = 2 and f (a k ) = 16(2n – 1). Find a.
k 1
Q.4 Solve the inequality |f(x) – g(x)| < |f(x)| + |g(x)| where f(x) = x – 3 and g(x) = 4 – x.
Answer key
4
Q.1 –17 Q.2 Q.3 a=3 Q.4 x (3, 4)
3
SHORT NOTES
RELATION & FUNCTION 29
7. COMPOSITE FUNCTION :
Illustration :
f : R R be the function defined by f(x) = ax2 – 2 for some positive a. If (fof ) 2 = – 2 , then
find a.
Sol. f(x) = ax2 – 2
(fof )(x) = a(ax2 – 2 )2 – 2
2
1
4 a a 0
2
1
= a = 0,
2
Illustration :
Let f(x) = x ; g(x) = 2 x find the domain of
(i) (fog) (x) (ii) (gof) (x) (iii) (fof) (x) (iv) (gog) (x)
Sol.
(i) (fog) (x) = f g ( x ) f 2x 2x
Domain 2 – x 0
x2
x (–, 2]
SHORT NOTES
30 RELATION & FUNCTION
0 2 x 2 0 2 – x 4 –2 x 4
x [–2, 2]
Illustration :
Sol.
f g ( x ) f x 2 x x 2 x
x2 x 2x
x 2 x .x x 2 x
2 x 1
(ii) The composite of functions is associative i.e. if f, g, h are three functions such that
fo (goh) & (fog) oh are defined, then fo (goh) = (fog) oh.
Associativety : f : (N) I0 f(x) = 2x
1
g : I0 Q g(x) =
x
1
h : Q R h(x) = ex
(hog)of = ho(gof) = e2x
(iii) The composite of two bijections is a bijection i.e. if f and g are two bijections such that gof is defined,
then gof is also a bijection.
Proof: Let f : A B and g : B C be two bijections. Then gof exists such that
gof : A C
We have to prove that gof is one-one and onto.
SHORT NOTES
RELATION & FUNCTION 31
Illustration :
Evaluate f f ( x ) , wheree
f(x) = (1 – x), 0 x 1
= (x + 2), 1 < x 2
= (4 – x), 2 < x 4
1 x , 0 x 1
4
Sol. f ( x ) x 2, 1 x 2
4 x , 2 x 4 3
graph of f (x) 2
1 f ( x ), 0 f(x)1 1
f f ( x ) f ( x ) 2 , 1 f( x) 2
4 f ( x ), 2 f(x) 4 1 2 3 4
from the graph we can see that
0 f(x) 1 when x [0, 1] [3, 4]
1 < f(x) 2 when x (2, 3]
2 < f(x) 4 when x [1, 2]
1 ( 1 x ), f ( x ) 1 x, 0 x 1
1 ( 4 x ), f ( x ) 4 x, 3 x 4
f f ( x )
( 4 x ) 2 , f ( x ) 4 x, 2 x 3
4 ( x 2 ), f ( x ) x 2, 1 x 2
x, 0 x1
x 3, 3 x4
f f ( x )
6 x , 2 x3
2 x , 1 x 2
Alternative method :
We have
f {f (x)} = 1 – f 0f1 …(i)
= f+2 1<f2 …(ii)
=4–f 2<f4 …(iii)
Putting the values of f(x) in (i)
1 – f = 1 – (1 – x), 0 f 1, 0x1
= 1 – (x + 2), 0 x + 2 1, 1 < x 2
= 1 – (4 – x), 0 4 – x 1, 2 < x 4
On solving 0 1 – x 1 & 0 < x 1 we get 0x1
Solving 0x+21 & 2<x4 null set
Solving 04–x1 & 2<x4 3<x4
x , 0 x 1
thus 1 – f = x 3, 3 x 4 …(iv)
f + 2 = (1 – x) + 2, 1 < (1 – x) 2, 0x1
= (x + 2) + 2, 1 < (x + 2) 2, 1<x2
= (4 – x) + 2, 1 < (4 – x) 2, 2<x4
SHORT NOTES
32 RELATION & FUNCTION
Solving 1 < (1 – x) 2, we have –1 x 0 & its intersection with 0 x 1 gives null set
Solving 1 < (x + 2) 2, we get –1 x 0 & intersection with 1 < x 2 gives null set
Solving 1 < (4 – x) 2, we get 2 x < 3 & its intersection with 2 < x 4 gives 2 < x < 3
thus f + 2 = 6 – x, 2 < x < 3 …(v)
Putting the values of f(x) in (iii), we have
4 – f = 4 – (1 – x), 2 < 1 – x 4, 0x1
= 4 – (x + 2), 2 < x + 2 4, 1 < x 2
= 4 – (4 – x), 2 < 4 – x 4, 2<x4
Solving 2 (1 – x) 4, we get –3 x –1 & its intersection with 0 x 1 gives null set
Solving 2 < (x + 2) 4, we get 0 < x 2 & intersection with 1 < x 2 gives 1 < x 2
Solving 2 < (4 – x) 4, we get 0 x < 3 & its intersection with 2 < x 4 gives null set
thus 4 – f = 2 – x, 1 < x 2 …(vi)
Using (iv),(v) & (vi)
x, 0 x1
2 x , 1 x 2
f f ( x )
6 x , 2x3
x 3 , 3 x4
Practice Problem
1 x if 0 x 1
Q.1 If f ( x ) x 2 if 1 x 2 . Find fof(x)
4 x if 2 x 4
Q.2 If g(x) = 2x + 1 & h(x) = 4x2 + 4x + 7, find a function f such that fog = h.
2x 7
Q.3 If f(x) = , find a function g such that g[f(x)] = x for all x in the domain of f and find its
x3
domain & range.
Answer key
x, 0 x 1
2 x , 1 x 2
Q.1 f f ( x ) Q.2 f (x) = x2 + 6
6 x, 2x3
x 3, 3 x 4
x, x 1
3 1
( x 2) 2 , 1 x 0
Q.3 Domain = R – {–3}, Range = R – {2} Q.4 gf ( x ) 1
( x 2 2) 3 , 0 x 1
x, x 1
SHORT NOTES
RELATION & FUNCTION 33
A function is said to be homogeneous with respect to any set of variables when each of its terms is of
the same degree with respect to those variables.
For example 5x2 + 3y2 – xy is homogeneous in x & y.
f (x, y) is a homogeneous function iff
f (tx , ty) = tn f(x, y)
y x
or f (x, y) = xn g = yn h , where n is the degree of homogenity
x y
x y cos x
f (x, y) = is not a homogeneous function and
y sin x x
x y y x y
f (x, y) = l n ln ; x 2 y 2 + x; x + y cos are homogeneous functions of degree one.
y x x y x
A function defined by an equation not solved for the dependent variable is called an IMPLICIT FUNCTION.
For eg. the equation x3 + y3 = 1 defines y as an implicit function. If y has been expressed in terms of
x alone then it is called an EXPLICIT FUNCTION .
If f (x) = f (x) for all x in the domain of ‘f’ then f is said to be an even function.
e.g. f (x) = cos x ; g (x) = x² + 3.
If f (x) = f (x) for all x in the domain of ‘f’ then f is said to be an odd function.
e.g. f (x) = sin x; g (x) = x3 + x.
y=x y = x3 y = x2
y = cos x
O O O O
Odd functions (Symmetric about origin) Even functions (Symmetric about y-axis)
SHORT NOTES
34 RELATION & FUNCTION
NOTE :
(a) f (x) f (x) = 0 => f (x) is even & f (x) + f (x) = 0 => f (x) is odd .
(b) A function may neither be odd nor even .
(c) Inverse of an even function is not defined and an even function can not be strictly monotonic
(d) Every even function is symmetric about the yaxis & every odd function is symmetric about the origin.
(e) Every function can be expressed as the sum of an even & an odd function.
f ( x ) f ( x ) f ( x) f ( x ) 2x 2x 2 x 2 x
e.g. f ( x) 2x = +
2 2 2 2
(f) The only function which is defined on the entire number line & is even and odd at the same time is f(x) =0.
Any non zero constant is even.
(g) If f and g both are even or both are odd then the function f.g will be even but if any one of them is odd
then f.g will be odd .
f (x) g (x) f (x) + g (x) f (x) - g (x) f (x).g (x) f(x) / g(x) (gof )(x) (f o g) (x)
odd odd odd odd even even odd odd
even even even even even even even even
odd even neither odd nor even neither odd nor even odd odd even even
even odd neither odd nor even neither odd nor even odd odd even even
Illustration :
Sol.
(i)
f(x) = ln 1 x 2
f(–x) = ln x 1 x 2 ln 1 x x
2
1 x x 1 x x
2 2
1 x x ln 1 x f ( x )
l n
2
2
Hence odd function.
SHORT NOTES
RELATION & FUNCTION 35
2x 1
(ii) f(x) = x· x
2 1
2 x 1
f(–x) = (–x) x
2 1
1 2x 2x 1
( x )
x
x x f ( x )
1 2 2 1
hence even function
(iv) f(x) = 3
f(–x) = 3 = f(x)
Hence even function
Practice Problem
Q.3 Identify whether the given function is even odd or neither even nor odd
where
x | x |, x 1
f ( x ) [1 x ] [1 x ], 1 x 1
x | x |, x 1
where | | & [·] represents modulus and greatest integral function
Answer key
SHORT NOTES
36 RELATION & FUNCTION
9. INVERSE OF A FUNCTION :
Let f : A B be a oneone & onto function, then their exists a unique function
g : B A such that f(x) = y g(y) = x, x A & y B. Then g is said to be inverse of f.
Thus g = f1 : B A = {(f(x), x) (x, f(x)) f}.
Consider a one-one onto function with domain A= {a, b, c} & range B = {1, 2, 3}
f f –1
A B B A
a 1 1 a
b 2 2 b
c 3 3 c
Note: (a) Only one-one onto functions (i.e., Bijections) are invertible.
(b) To find the inverse
Step-1: write y = f (x)
Step-2: solve this equation for x in terms of y (if possible)
Step-3: To express f –1 as a function of x, interchange x and y.
Illustration :
Find the inverse of the following bijective function
(i) f : R R+ , f(x) = 10x+1 (ii) f(x) = 3x – 5
1 2x
(iii) f : [1, ) [2, ), f(x) = x + (iv) f : R (0, 1), f(x) =
x 1 2x
Sol.
(i) y = 10x+1
x + 1 = log10 y
x = –1 + log10 y
f–1 = y = –1 + log10 x, f–1 : R+ R
(ii) f(x) = 3x – 5
y = 3x – 5
y5
x=
3
x5
f–1 (x) = y =
3
SHORT NOTES
RELATION & FUNCTION 37
y y2 4
x=
2
x x2 4
f–1
(x) =
2
Since range is [1, ), hence
x x2 y
f–1 (x) =
2
2x
(iv) f : R (0, 1), f(x) =
1 2x
2x
y= y + 2x y = 2x
1 2x
y y
2x = x = log2
1 y 1 y
x
f–1 (x) = y = log2
1 x
(vi) The graphs of f & g are the mirror images of each other in the line y = x. As shown in the figure given
below a point (x ', y' ) corresponding to y = x2(x > 0) changes to (y', x') corresponding to y x ,
the changed form of x = y .
Illustration :
SHORT NOTES
38 RELATION & FUNCTION
Illustration :
If the function f & g be defined as f(x) = ex and g(x) = 3x – 2 where f : R R and g : R R then
find the function fog and gof. Also find the domain of (fog)–1 and (gof )–1 .
log y 2 log x 2
x= (fog)–1 x =
3 3
Domain of (fog)–1 is x > 0 i.e. x (0, )
Again gof (x) = y = 3ex – 2
x2
Domain of (gof )–1 is >0
3
x > –2
x (–2, )
Illustration :
e x e x
If f: [0, ) [1, ), f (x) = . Find f–1(x).
2
e x e x
Sol. f (x) =
2
1
2y = ex + e2x – 2ex y + 1 = 0
ex
e2x – 2ex y + y2 = y2 – 1 (ex – y)2 = y2 – 1
ex = y ± y2 1
x = log y y 2 1
f–1 (x) = y = log x x 2 1
Since range is [0, ) hence
f–1 (x) = y = log x x 2 1
SHORT NOTES
RELATION & FUNCTION 39
Illustration :
Practice Problem
Q.1 If y = ax + b and the equation f(x) = f–1 (x) is satisfied by every real value of x then
(A) a = 2, b = –1 (B) a = –1, b R
(C) a = 1, b R (D) a = 1, b = –1
Answer key
x , x 1
5 4e x 3
Q.1 B 1
Q.2 (i) f ( x ) e log5 x 1
(ii) f ( x ) x , 1 x 16 (ii) f 1 ( x )
log2 x, 16 x 2
A function f(x) is called periodic if there exists a positive number T(T > 0) called the period of the
function such that f (x + T) = f(x), for all values of x within the domain of x.
e.g. The function sin x & cos x both are periodic over 2 & tan x is periodic over .
Graphically : ,1
2
If the graph repeats at fixed interval then function is said
to be periodic and its period is the width of that interval.
For example graph of sin x repeats itself at an interval 0 2
of 2
f (x) = sin x
SHORT NOTES
40 RELATION & FUNCTION
T
(v) if f(x) has a period T then f(ax + b) has a period .
|a|
(vi) If f (x) has a period T & g (x) also has a period T then it does not mean that f (x) + g (x)
must have a period T. e.g. f (x) =| sin x | + | cos x |; sin4x + cos4x has fundamental period equal
to .
2
(vii) If f (x) and g (x) are periodic then f (x) + g (x) need not be periodic.
e.g. f (x) = cos x and g (x) = { x }
Illustration :
4 x 2 5
Period of sin = ×5=
5 4 2
5
L.C.M. of 3 & = 15
2
(ii) f (x) = cos (sin x)
Since cos is even functions f ( + x) = cos (sin ( + x)) = cos (–sin x) = cos (sin x) = f(x)
Hence is period.
SHORT NOTES
RELATION & FUNCTION 41
n( n 1 )
(iv) f (x) = [x] + [2x] + [3x] + …… + [nx] – x
2
= –{x} – {2x} – …… – {nx}
Period of {x} = 1
1
period of {2x} =
2
1
period of {3x} =
3
……………………
……………………
1 1 1
L.C.M. of 1, , , , = 1
2 3 n
Illustration :
sin nx
If f (x) = has its period as 4, then find the integral values of n.
x
sin
n
2
Sol. Period of sin nx =
n
x
Period of sin = 2n
n
2
L.C.M. of , 2 n = 2n
n
2n = 4
n = 2, – 2
Illustration :
Find the period of f (x) = | sin x | + | cos x | .
Sol. | sin x | has period
| cos x | has period
f (x) is an even function & sin x, cos x are complementary then period of
1
f (x) = {LCM of & } =
2 2
Illustration :
Prove that if f (x) = sin x + cos ax is a periodic function then a must be rational.
Sol. f (x) = sin x + cos ax
Period of sin x = 2
2
Period of cos ax =
a
2
LCM of 2 & is possible only when a is rational, hence a must be rational.
a
SHORT NOTES
42 RELATION & FUNCTION
Practice Problem
1 | sin x | sin x
2 cos x | cos x |
Q.1 Find the period of the function f(x) =
Q.3 Let a function satisfying f(x + 4) + f(x – 4) = f(x) for all real x is periodic, then period p for them is
(A) 8 (B) 12 (C) 16 (D) 24
Answer key
2
Q.1 2 Q.2 (i) 1, (ii) Q.3 D Q.4 a = –3
3
Y
y – = f(x – )
(i) Graph of y – = f (x – ) is drawn by shifting the
origin to (, ) & then translating the graph of
y = f(x) w.r.t. new axes (,)
X
O
Y
y = – f(x)
SHORT NOTES
RELATION & FUNCTION 43
y = |f (x)|
y = f (| x |)
(iv) y = f (|x|) is drawn by taking the mirror image of
positive x-axis graph in y-axis.
X
O
Y
(v) The graph of |y| = f(x) is drawn by deleting
|y| = f(x)
those portions of the graph y = f(x) which lie
below the X-axis and then taking the mirror X
O
image of the remaining portion in the X-axis, as
shown alongside.
Y
x = f (y)
y=x
y = f (x)
y = f(–x)
(vii) y = f(–x) is drawn by taking the mirror image
of y = f(x) in Y-axis. X
O
SHORT NOTES
" The only time SUCCESS
occurs before WORK is in
Dictonary "