Functions
Functions
Introduction
The above definition is a very broad one and does not imply anything regarding
the possibility of expressing the relationship between x and y by some kind of analytic expression. It
stresses the basic idea of a relationship between two sets. Set theory has naturally extended the concept of
function to embrace relationships between any two sets of elements.
In this chapter we focus our attention on a special type of relation, a function,
that plays an important role in mathematics and its many applications. Here we study its basic properties and
then discuss several special types of functions. In order to have various important applications of functions
later, it is essential to get a good grasp of the concepts in this chapter.
1.0.2 Examples
If A = {1, 2, 3} , B = {x, y} then
A×B = {(1, x), (1, y), (2, x), (2, y), (3, x), (3, y)}
B× A = {(x, 1), (x, 2), (x, 3), (y, 1), (y, 2), (y, 3)}
A×A = {(1, 1), (1, 2), (1, 3), (2, 1), (2, 2), (2, 3), (3, 1), (3, 2), (3, 3)}
B× B = {(x, x), (x, y), (y, x), (y, y)}
1.0.3 Note
1. If A and B are distinct non-empty sets then A× B ≠ B× A .
2. If one of the sets A and B is empty, then A× B is also empty.
3. Some particular notations
¡ or R : set of all real numbers
R+ : set of all positive real numbers : {x| x ∈ R , x > 0}
Q : set of all rational numbers
Q+ : set of all positive rational numbers
N : set of all natural numbers
Z : set of all integers
Functions 3
If a, b ∈ R , a < b then
(a, b) = {x ∈ R | a < x < b}
(a, b] = {x ∈ R | a < x ≤ b}
[a, b) = {x ∈ R | a ≤ x < b}
[a, b] = {x ∈ R | a ≤ x ≤ b}
[a, ∞ ) = {x ∈ R | a ≤ x}
(a, ∞ ) = {x ∈ R | a < x}
(− ∞ , a) = {x ∈ R | x < a}
(− ∞ , a] = {x ∈ R | x ≤ a}
1.0.5 Examples
If A = {1, 2, 3} , B = {α , β } then
1.1.1Definition (Function)
Let A and B be non-empty sets and f be a relation from A to B. If for each element
a ∈ A , there exists a unique b ∈ B such that ( a, b ) ∈ f , then f is called a function (or
mapping) from A to B (or A into B). It is denoted by f : A → B . The set A is called the
domain of f and B is called the co-domain of f.
A function f can also be seen in the following way, which takes an input x and returns an output
f (x).
4 Mathematics - IA
↓ x
↓
f (x)
For example, if f : A → B is a function defined as f(x) = x + 1 and A = {1, 2, 3}, then
f (A) = {2, 3, 4}.
↓ x∈A
f (x) = x + 1
↓
f(A)
1.1.2 Note
A relation f from A to B (i.e. f ⊆ A × B) is a function from A to B if for each a ∈ A , there
exists exactly one b ∈ B such that (a, b) ∈ f and this 'b' will be denoted by f ( a ) . In other words, for each
a ∈ A , there exists a unique element f (a ) ∈ B such that ( a, f (a) ) ∈ f .
If f : A → B is a function and if f ( a ) = b , then ' b ' is called the image of ' a ' under f or
the f-image of a. The element ' a ' is called a pre-image or an inverse image of b under f and
is denoted by f −1(b) . More generally if E ⊆ B, f −1(E) = {x| x ∈ A, f (x) ∈ E} is called the
inverse image of E under f. Then f −1(b) = f −1({b}) if b ∈ B.
1.1.4 Examples
1. Example: The relation f = {( x, x 2 + 1) | x ∈ R} is a function from R to R+, since every x ∈ R has
association with unique element x 2 + 1 in R+. The function f : R → R+ is given by f ( x ) = x 2 + 1 .
Observe that f (1) = 2 and f ( −1) = 2 . Note that the numbers less than 1 have no pre-image under f.
1
2. Example: The relation f = ( x, ) | 0 ≠ x ∈ R is not a function from R to R since there is no b in
x
R such that (0, b ) ∈ f . But f (x ) = is a function from R {0} → R since every x ∈ R {0} has
1
x
association with a unique element in R .
Functions 5
1.1.6 Examples
1.1.8 Examples
1. Example
(i) If f = {(a, 3) , (b, 5) , (c, 1) , (d , 4)} then f is a function from A into B and for different
elements in A, there are different f - images in B. Hence f is an injection.
(ii) If g = {(a, 2) , (b, 2) , (c, 3) , (d , 5)}, then g is a function from A into B, but g (a ) = g (b) .
Hence ‘g’ is not an injection.
2. Example
Let f : R → R be defined by f ( x ) = 2 x + 1 . Then ' f ' is an injection since for any a1 , a2 ∈R
and f (a1 ) = f (a2 ) ⇒ 2a1 + 1 = 2a2 + 1 ⇒ a1 = a2 .
3. Example
Let f : R → R be defined by f (x ) = x 2 . Then ' f ' is not an injection because f ( −1) = 1 = f (1) .
6 Mathematics - IA
4. Example
Let f : N → N be defined by f ( x) = x 2 . Then ' f ' is an injection since for a1 , a2 ∈ N and
5. Example
Let A = {a,b,c,d } and B = {x, y,z} . We can’t define an injection from A to B because atleast
two distinct elements in A have the same f - image in B for any function f : A → B .
Hence we may conclude that f : A → B is a surjection if every element of B occurs as the image
of atleast one element of A (i.e., every element in B has a ‘pre image’ in A). A surjection is also called an
onto function.
1.1.10 Examples
1. Example
f
Let A = {1, 2, 3, 4} and B = {a, b, c}
(i) If f = {(1, a), (2, b), (3, c), (4, c)} then
A B
(ii) If g = {(1, b), (2, b), (3, c), (4, c)} then g
g
is a function from A to B but not a surjection
because there is no pre image to the element
a ∈ B . Note that g is not an injection.
4. Example
1.1.13 Remarks
(i) In particular, if A and B are two finite sets with |A| > |B| then we can’t define an injection from A into
B. Hence if there is an injection from A to B then |A| ≤ |B|. The converse of this also holds good, that
is, if A and B are finite sets such that |A| ≤ |B|, then we can define an injection f : A → B , for, if
A = {a1 , a2 , .....,an } then there exist distinct elements b1 , b2 ,....,bn ∈ B (since n = A ≤ B ) and
the function f : A → B , defined by f (ai ) = bi , for 1 ≤ i ≤ n , is an injection.
(ii) Let A and B be two finite sets and |A| < |B|, then we can’t define a surjection from A to B. Since
if f : A → B then range f = f (A) contains atmost |A| elements ≠ | B| (codomain) 3 A < B .
Hence if there is an onto function from A to B then A ≥ B . The converse of this also holds good.
That is if A and B are finite sets such that A ≥ B , then we can define a surjection f : A → B ; for
if B = {b1 , b2 ,....,bn } then n ≤ | A | and hence there exist distinct elements a1 , a2 , ........,an ∈ A
and we can define f : A → B by
(iii) Note that if there is a bijection ' f ' from a finite set A to a finite set B then, since f is both injection and
surjection, A ≤ B and A ≥ B hence |A| = |B|. Thus for any two finite sets A and B, A = B if and
only if there is a bijection f : A → B .
1.1.14 Example
Observe that the natural numbers less than 5 and the even natural numbers in the
co-domain N of f have no pre-images in domain N.
Problem : On what domain the functions f (x) = x2 − 2x and g(x) = − x + 6 are equal?
Solution : f (x) = g(x)
⇔ x2 − 2x = − x + 6
⇔ x2 − x − 6 = 0
⇔ (x − 3) (x + 2) = 0
⇔ x = −2, 3
∴ f (x) and g(x) are equal on the domain {−2, 3}.
1.1.17 Example
Let A = {a, b, c, d}, B = {1, 2, 3} and f = {(a, 2), (b, 2), (c, 2), (d, 2)} then f : A → B is a
constant function.
1.1.19 Example
If A = {a, b, c}, then IA = {(a, a) , (b, b) , (c, c)} .
1
Solution: Since f ( x) = x +
x
1 1 1
f (x 2 ) + f (1) = x 2 + + 1 + = x 2 + 2 + 2
1
2
x x
2
1
=x+ = (f (x) ) .
2
x
3x − 2,x > 3
2. Problem: If the function f is defined by f (x) = x 2 − 2, − 2 ≤ x ≤ 2
2 x + 1,x < −3
then find the values, if exist, of f(4), f(2.5), f(−2), f(−4), f(0), f(−7).
Solution: Note that the domain of f is ( − ∞, − 3) ∪ [−2, 2] ∪ (3,∞) .
(i) Since f ( x ) = 3 x − 2, for x > 3 , we have f (4) = 12 − 2 = 10
(ii) 2.5 does not belong to domain f, f (2.5) is not defined.
(iii) Since f ( x ) = x 2 − 2, − 2 ≤ x ≤ 2 , we have f (−2) = (−2) 2 − 2 = 2
(iv) Since f ( x) = 2 x + 1, x < −3, we have f ( −4) = 2 ( −4) + 1 = −7
(v) Since f (x) = x2 − 2 when − 2 ≤ x ≤ 2, we have f (0) = 02 − 2 = − 2
(vi) Since f ( x) = 2 x + 1, for x < - 3, we have f ( −7) = 2 ( −7) + 1 = −13 .
π π π π
3. Problem: If A = 0, , , , and f : A → B is a surjection defined
6 4 3 2
by f (x) = cos x then find B.
Solution: Let f : A → B be a surjection defined by f ( x ) = cos x .
π π π π
Then B = range f = f (A) = f (0), f , f , f , f
6 4 3 2
π π π π
= cos 0, cos , cos , cos , cos
6 4 3 2
3 1 1
= 1, , , , 0 .
2 2 2
4. Problem: Determine whether the function f : R → R defined by
e − e− x
x
f ( x) = is an injection or a surjection or a bijection.
e x + e− x
e − e− x
x
Solution: Let f : R → R be defined by f ( x ) = x , then f is not an injection as
e + e− x
Functions 11
e0 − e0 e−e
f (0) = 0 0 = 0 and f (−1) = −1 = 0 and also f is not a surjection since, for y = 1
e +e e +e
there is no x ∈ R such that f ( x) = 1 .
If there is such x ∈ R then e x − e − x = e x + e − x , clearly x ≠ 0
for x > 0 this equation gives − e − x = e − x which is not possible
for x < 0 this equation gives − e − x = e x which is also not possible.
5. Problem: Determine whether the function f : R → R defined by
x if x > 2
f ( x) = is an injection or a surjection or a bijection.
5 x − 2 if x ≤ 2
Solution: Since 3 > 2, we have f (3) = 3,
Since 1 < 2, we have f (1) = 5(1) − 2 = 3
∴ 1 and 3 have same ‘f’ image. Hence f is not an injection.
Let y ∈ R then y > 2 (or) y ≤ 2
If y > 2 take x = y ∈ R so that f ( x) = x = y .
y+2 y+2
If y ≤ 2 take x = ∈ R and x = < 1.
5 5
y+2
∴ f ( x) = 5 x − 2 = 5 − 2 = y.
5
∴ f is a surjection.
Since f is not an injection, it is not a bijection.
6. Problem: Find the domain of definition of the function y(x), given by the equation
2 x + 2 y = 2.
Solution: 2x = 2 − 2y < 2 (3 2y > 0)
⇒ log2 2x < log2 2
⇒ x<1
∴ Domain = (− ∞ , 1).
7. Problem: If f : R → R is defined as f (x + y) = f (x) + f (y) ∀ x, y ∈ R and f (1) = 7,
n
then find ∑ f (r ) .
r =1
Solution: Consider f (2) = f (1 + 1) = f (1) + f (1) = 2 f (1)
f (3) = f (2 + 1) = f (2) + f (1) = 3 f (1)
Similarly f (r) = r f (1)
n
∴ ∑ f (r ) = f (1) + f (2) + ..... + f (n)
r =1
= f (1) + 2 f (1) + ..... + n f (1)
12 Mathematics - IA
= f (1) (1 + 2 + ..... + n)
7 n( n + 1)
= .
2
cos 2 x + sin 4 x
8. Problem : If f ( x) = ∀ x ∈ R then show that f(2012) = 1.
sin 2 x + cos 4 x
cos 2 x + sin 4 x
Solution: f ( x) =
sin 2 x + cos 4 x
1 − sin 2 x + sin 4 x
=
1 − cos 2 x + cos 4 x
1 − sin 2 x cos 2 x
=
1 − sin 2 x cos 2 x
= 1.
∴ f (2012) = 1.
Exercise 1(a)
x + 2, x > 1
I. 1. If the function f is defined by f ( x) = 2 , − 1 ≤ x ≤ 1 , then find the values of
x − 1, − 3 < x < −1
1
2. If f : R {0} → R is defined by f (x) = x − , then show that f ( x ) + f (1/ x ) = 0 .
3
x3
1 − x2
3. If f : R → R is defined by f ( x) = , then show that f (tan è) = cos 2è .
1 + x2
1+ x 2x
4. If f : R {+1} → R is defined by f ( x ) = log , then show that f 2
= 2 f ( x) .
1− x 1+ x
Functions 13
(i) f : A → A (ii) g : A → A
2. Which of the following are injections or surjections or bijections? Justify your answers.
2x +1
(i) f : R → R defined by f ( x) =
3
(ii) f : R → (0, ∞ ) defined by f ( x) = 2 x
2
f ( x + y ) + f ( x − y ) = 2 f ( x) f ( y ) .
4x
5. If the function f : R → R defined by f ( x) = , then show that
4x + 2
1 1 3
f (1 − x ) = 1 − f ( x ) , and hence deduce the value of f + 2 f + f .
4 2 4
6. If the function f : {−1, 1} → {0, 2} , defined by f ( x ) = ax + b is a surjection, then find
a and b.
1.2.1 Theorem
If f : A → B is an injection, then f −1 is a bijection from f (A) to A.
∴ f −1 : f (A) → A is a bijection.
1.2.2 Corollary
( )
−1
Note : Since f −1 = f , it follows from 1.2.2 that f −1 : B → A is a bijection if and only if f : A → B is
a bijection.
1.2.4 Examples
1. Example: If A = {1, 2, 3}, B = {a, b, c} then f = {(1, c), (2, b), (3, a)} is a bijection from A to B
and f −1 = {(a,3), (b, 2), (c,1)} is a bijection from B to A.
2. Example: If A = {1, 2, 3}, B = {a, b, c, d } then f = {(1, c), (2, b), (3, a)} is an injection but not a
surjection, f −1 = {(c, 1), (b, 2), (a, 3)} is a relation from B to A but not a function because ' d ' ∈ B has
no f −1 image in A.
3. Example: If A = {1, 2, 3}, B = {a, b} ; then f = {(1, a), (2, b), (3, a)} is a surjection but not an
injection, f −1 = {(a, 1), (b, 2), (a, 3)} is a relation from B to A but not a function from B to A because
for a ∈ B there are two f −1 images in A.
Functions 15
Hence gof is an injection but g is not an injection. However, if gof is an injection then necessarily f
is an injection.
1.2.10 Theorem: Let f : A → B , g : B → C be surjections. Then gof : A → C is a surjection.
Proof : Let c ∈ C . Since g : B → C is a surjection then there exists b ∈ B such that g (b) = c . Since
f : A → B is a surjection then there exists ' a ' ∈ A such that f ( a ) = b .
∴ for each ' c ' ∈ C there exists ' a ' ∈ A such that ( gof ) ( a ) = c .
Hence gof : A → C is a surjection.
∴ g is a surjection.
1.2.12 Note
If f : A → B, g : B → C are such that gof is a surjection then f need not be a surjection. In Note
1.2.9, gof is a surjection but f is not a surjection. However, if gof is a surjection then necessarily ‘g’ is
a surjection.
∴ The functions ( gof ) −1 and f −1og −1 are defined on the same domain ‘C’.
Let c ∈ C . Since g : B → C is a bijection, there exists a unique b ∈ B such that g (b) = c i.e.,
g −1 (c) = b .
Now b ∈ B and f : A → B is a bijection. Hence there exists a unique a ∈ A such that f ( a ) = b
i.e., f −1 (b) = a .
Functions 17
∴ I B of = f ... (2)
From (1) and (2) we have foI A = f = I B of .
∴ fof −1 = I B
∴ f −1of = I A .
1.2.18 Theorem: Let f : A → B be a function. Then f is a bijection if and only if there exists a
function g : B → A such that fog = I B and gof = I A and, in this case, g = f −1 .
Conversely, if there exists a function g : B → A such that fog = I B and gof = I A then gof = I A is an
injection, we get from Theorem 1.2.8 that f is an injection. Also, since fog = I B is a surjection, we get from
Theorem 1.2.11 that f is a surjection.
Thus ho ( gof ) and ( hog ) of have the same domain A . Let ‘a’ be any element of A. Now
[ho ( gof )] (a) = h (( gof ) (a) ) = h ( g ( f (a) )) = ( hog ) ( f ( a )) = ((hog )of ) (a)
∴ ho ( gof ) = ( hog ) of .
Functions 19
Solution
a +1 a +1 a +1
2
(ii) from (1) we have ( gof ) = 16 − 8 +3= a +2
2
4 4 4
(iii) ( fof ) ( x) = f ( f ( x) ) = f (4 x − 1) = 4 (4 x − 1) − 1 = 16 x − 5 ... (2)
(iv) from (2) we have ( fof ) (0) = 0 − 5 = −5
∴ go ( fof ) (0) = g ( fof (0) ) = g (−5) = 25 + 2 = 27 .
1 + x, 0 ≤ x ≤ 2
2. Problem: If f : [0,3] → [0,3] is defined by f ( x ) = , then show that
3 − x, 2 < x ≤ 3
f [0, 3] ⊆ [0, 3] and find fof.
Solution: 0≤x≤2 ⇒ 1 ≤ 1+x ≤ 3 ... (1)
2<x ≤ 3 ⇒ − 3 ≤ − x< − 2
⇒ 3−3 ≤ 3− x<3−2
⇒ 0 ≤ 3−x<1 ... (2)
From (1) and (2), f [0, 3] ⊆ [0, 3].
When 0 ≤ x ≤ 1 we have
( fof ) ( x) = f ( f ( x) ) = f (1+ x) =1 + 1 + x = 2 + x. [31 ≤ 1 + x ≤ 2]
When 1 < x ≤ 2 we have
fof ( x) = f ( f ( x) ) = f (1+ x) = 3 − (1 + x) = 2 − x. [3 2 < 1 + x ≤ 3]
When 2 < x ≤ 3 we have
fof ( x) = f ( f ( x) ) = f (3 − x) = 1 + 3 − x = 4 − x. [3 0 ≤ 3 − x < 1]
2 + x, 0 ≤ x < 1
∴ ( fof ) ( x) = 2 − x, 1 < x ≤ 2
4 − x, 2 < x ≤ 3
20 Mathematics - IA
0 if x ∈Q
3. Problem: If f , g : R → R are defined by f ( x) =
1 if x ∉Q
−1 if x ∈Q
and g ( x) = then find ( fog) (π) + (gof )(e).
0 if x ∉ Q
Solution: ( fog) (π) = f (g(π)) = f(0) = 0
(gof ) (e) = g( f (e)) = g(1) = −1
∴ ( fog) (π) + (gof ) (e) = −1.
4. Problem: Let A = {1, 2,3}, B = {a, b, c}, C = { p, q, r} . If f : A → B, g : B → C are defined by
f = {(1, a), (2, c), (3, b)}, g = {(a, q), (b, r ), (c, p)} then show that f −1og −1 = ( gof ) −1 .
Solution: Given that f = {(1, a), (2, c), (3, b)} and g = {(a, q), (b, r ), (c, p)} then
gof = {(1, q), (2, p), (3, r )} ⇒ ( gof ) −1 = {(q,1), ( p, 2), (r ,3)} .
∴ f −1 : Q → Q is a bijection.
We have fof −1 ( x) = I ( x)
( )
f f −1 ( x ) = x
5 f −1 ( x) + 4 = x
x−4
f −1 ( x) = for all x ∈Q .
5
Functions 21
Exercise 1(b)
I. 1. If f ( x) = e x and g ( x) = log e x , then show that fog = gof and find f −1 and g −1 .
y y
2. If f ( y ) = , g ( y) = then show that ( fog ) ( y ) = y .
1− y2 1+ y2
3. If f : R → R and g : R → R are defined by f ( x) = 2 x 2 + 3 and g ( x ) = 3 x − 2 , then find
(i ) ( fog ) ( x), (ii ) ( gof ) ( x), (iii ) fof (0), (iv ) go ( fof ) (3) .
4. If f : R → R , g : R → R are defined by f ( x) = 3 x − 1, g ( x) = x 2 + 1 , then find
x +1
7. If f ( x) = ( x ≠ ±1) then find ( fofof ) ( x ) and ( fofofof ) ( x) .
x −1
In this section a function f is defined through a formula, without mentioning the domain and the range
explicitly. In such cases, the domain of f is taken to be the set of all real x for which the formula is
meaningful. The range of f is the set { f ( x ) | x is in the domain of f }.
When n = 2, 2
x is called the square root of x . 2
x is written simply as x.
If x is any real number and n is an odd positive integer there exists a unique real number y such that
1
y = x so that we write y = n x or x n .
n
1.3.1 Examples
1. Example: The domain of the real valued function f ( x) = a 2 − x 2 (a > 0) is [−a, a ] .
[Since a − x ∈ R, (a > 0) ⇔ a − x ≥ 0 ⇔ x ≤ a ⇔ x ≤ a ⇔ −a ≤ x ≤ a] .
2 2 2 2 2 2
is R − .
1 1
2. Example: The domain of the real valued function f ( x) =
2x +1 2
1 1
Since 2 x + 1 ∈ R ⇔ 2 x + 1 ≠ 0 ⇔ x ≠ − 2
Functions 23
If f and g are real valued functions with domains A and B respectively, then both
f and g are defined on A ∩ B when A ∩ B ≠ φ .
f
(ii) Let E = {x ∈ A ∩ B g ( x ) ≠ 0} ≠ φ . We define on E by
g
f f ( x) f ( x)
( x) = for all x ∈ E . Note that if g ( x ) = 0 , then is not
g g ( x) g ( x)
defined.
f ( x) = f ( x) , for all x ∈ E .
In view of the above, we can conclude that if f, g are defined on their
respective domains then
domain ( f + g) = domain of f ∩ domain of g
domain ( fg) = domain of f ∩ domain of g
f
domain = domain of f ∩ domain of g ∩ {x : g(x) ≠ 0}
g
⇔ x ≠ 1,5
∴ Domain of f is R {1, 5}.
1
(ii) f ( x) = ∈ R ⇔ x2 − a2 > 0
x −a
2 2
⇔ ( x − a) ( x + a) > 0
⇔ x < −a (or) x > a
⇔ x ∈ ( −∞, − a ) ∪ ( a, ∞ )
∴ Domain of f is ( −∞, − a ) ∪ ( a, ∞ ) = R [ − a, a ] .
(iii) f ( x) = ( x + 2) ( x − 3) ∈ R ⇔ ( x + 2) ( x − 3) ≥ 0
⇔ x ≤ −2 or x ≥ 3
⇔ x ∈ ( −∞, − 2] ∪ [3, ∞ ) = R (−2, 3)
∴ Domain of f is ( −∞, − 2] ∪ [3, ∞ ) = R (−2, 3).
(iv) f ( x) = ( x − α ) ( β − x) ∈ R ⇔ ( x − α ) ( β − x) ≥ 0
⇔ α ≤ x ≤ β (3 α < β )
⇔ x ∈ [α , β ]
∴ Domain of f is [α , β ] .
(v) f ( x) = 2 − x + 1 + x ∈ R ⇔ 2 − x ≥ 0 and 1 + x ≥ 0
⇔ 2 ≥ x and x ≥ −1
⇔ −1 ≤ x ≤ 2
⇔ x ∈ [−1, 2]
∴ Domain of f is [ − 1, 2].
Functions 25
1
(vi) f ( x) = x 2 − 1 + ∈ R ⇔ x 2 − 1 ≥ 0 and x 2 − 3 x + 2 > 0
x − 3x + 2
2
⇔ ( x + 1) ( x − 1) ≥ 0 and ( x − 1) ( x − 2) > 0
1
(vii) f ( x) = ∈R ⇔ x − x > 0 ⇔ x > x
x −x
⇔ x ∈ ( −∞, 0) .
∴ Domain of f is ( −∞, 0) .
2. Problem: If f = {(4,5), (5, 6), (6, −4)} and g = {(4, −4), (6,5), (8,5)} then find
(i) f + g (ii) f − g (iii) 2f + 4g (iv) f + 4
(v) fg (vi) f / g (vii) | f | (viii) f
2 3
(ix) f (x) f
Domain of f ± g = A ∩ B = {4, 6} .
∴ 2 f = {(4,10), (5,12), (6, −8)}, 4 g = {(4, −16), (6, 20), (8, 20)} .
Domain of 2 f + 4 g = {4, 6}
{
∴ f = (4, 5), (5, 6) . }
(ix) Domain of f 2 = A = {4,5, 6} .
∴ Domain of f is R .
If x = 0 then f (x) = 0, If x ≠ 0 then f (x) ≠ 0.
Functions 27
x 1± 1− 4 y2
Let y = f ( x) = ⇒ x y−x+ y =0⇒ x =
2
is a real number
1 + x2 2y
iff 1 − 4 y 2 ≥ 0 ⇔ (1 + 2 y ) (1 − 2 y ) ≥ 0;
−1 1
⇒ y∈ ,
2 2
−1 1
∴ range of f = , .
2 2
(iii) f ( x) = 9 − x 2 ∈ R ⇔ 9 − x 2 ≥ 0
⇔ (3 + x) (3 − x) ≥ 0 ⇔ x ∈ [−3,3] .
∴ domain of f = [−3,3] .
∴ range of f = [0,3] .
1.3.4 Some more types of functions
1. Even and odd functions : Let A be a nonempty subset of R such that − x ∈ A for all x ∈ A and
f :A → R.
(i) If f (− x ) = f ( x ) for every x in A then f is called an even function.
(ii) If f ( − x ) = − f ( x ) for every x in A then f is called an odd function.
Examples
(i) f ( x) = x 2 , g ( x) = cos x, h( x) = x ( x ∈ R ) are all even functions.
(ii) f ( x ) = x, ( x ∈R ) is an odd function.
2n + 1
g (x) = tan x is an odd function on R π , n ∈ Z .
2
(iii) f ( x) = x + x , g ( x) = cos x + sin x are neither even nor odd.
2 3
Every real valued function defined on a nonempty subset A of R such that x ∈ A ⇒ − x ∈ A can be
written as sum of an even and odd functions.
f ( x) + f (− x) f ( x) − f (− x)
Consider g ( x) = and h ( x) = then g is even and h is odd since
2 2
g (x) = g (− x) and h (x) = − h (− x). Clearly
f ( x) = g ( x) + h ( x) .
28 Mathematics - IA
2. Polynomial function : If n is a non negative integer, a0 , a1 , a2 , ...., an are real numbers (at least
one ai ≠ 0 ) then the function f defined on R by
f ( x ) = a0 + a1 x + a2 x 2 + .... + an x n for all x ∈R is called a polynomial function.
Examples
(i) f ( x ) = ax + b ( a, b ∈ R ) is a polynomial function.
0 X
1
Fig. 1.4 Graph of f ( x) = .
x
4. Algebraic function: Operations like addition, subtraction, multiplication, division and extraction
of square root etc., are called algebraic operations. A function obtained by applying a finite number
of algebraic operations on polynomial functions is called an algebraic function.
3x 2 + 9 − x 2
Examples : (i ) f ( x) = , ( x ∈ [−3,3] {0} ).
2x
( ii ) f ( x) = x 2 − a 2 + 7 x, (a > 0), ( x ∈ R ( − a, a )) .
Functions 29
5. Exponential function: The function ax when 1 ≠ a > 0 and x is rational, is already defined in this
chapter. This can be extended to real x as well, inheriting all the exponential properties. We do not
present a formal definition of ax (x ∈ R ) but assume the existence of such a (unique) function. This
function is called an exponential function. Even though the definition presented in chapter 9 is
slightly different, these two are equivalant. The domain of the function ax is R and the range is R+.
Y
Y Y
y = ax, (a > 1)
y = ax, (a = 1) y = ax, (0 < a < 1)
0 X 0 X 0 X
7. Greatest Integer function: For any real number x, we denote by [ x ] , the greatest integer less than or
equal to x. For example [1.72] = 1,[ −3.41] = −4, [0.22] = 0, [ −0.71] = −1 .
30 Mathematics - IA
−3 −2 −1 0 1 2 3 X
−1
−2
−3
8. Modulus function : The function f : R → R defined by f (x) = |x| for each x ∈R is called
modulus function. For each non-negative value of x, f (x) is equal to x. But for negative values of
x, the value of f (x) is the negative of the value of x i.e.,
x, x ≥ 0
f ( x) =
− x, x < 0
The graph is
y = |x|
0
X
1, x > 0
|x|
sgn( x) = f ( x) = = 0, x = 0 is called signum function. The domain is R and range is
x
−1, x < 0
Y
{−1, 0, 1}.
y=1
1
X′
0 X
y=−1 −1
Y′
Fig. 1.9 Graph of Signum function
x − x, x < 0
x 2 − x, x ≥ 0
(ii) ( f − g ) ( x) = f ( x) − g ( x) = x − x = 22
x + x, x < 0
x 3 , x ≥ 0
(iii) ( fg ) ( x) = f ( x) g ( x) = x 2 x = 3
− x , x < 0
(iv) (2 f ) ( x) = 2 f ( x) = 2 x .
2
f 2 ( x) = ( f ( x) ) = ( x 2 ) 2 = x 4 .
2
(v)
(vi) ( f + 3) ( x) = f ( x) + 3 = x 2 + 3 .
2. Problem: Determine whether the following functions are even or odd.
ex −1
(i) f ( x ) = a − a
x −x
+ sin x , (ii) f ( x) = x x ,
e +1
32 Mathematics - IA
(iii) f ( x) = log ( x + x 2 + 1)
Solution: Clearly in all the cases domain f = R
x + x +1
2
∴ f (− x) = − log ( x + x 2 + 1) = − f ( x) .
∴ f is an odd function.
3. Problem: Find the domains of the following real valued functions.
(ii) f ( x) = log ( x − [ x ])
1
(i) f ( x) =
[ x] − [ x] − 2
2
3− x 1
(iii) f ( x) = log10 (iv) f ( x) = x + 2 +
x log10 (1 − x)
(v) f ( x) = 3 + x + 3 − x
x
Solution
1
(i) f ( x) = ∈ R ⇔ [ x] − [ x] − 2 > 0
2
[ x] − [ x] − 2
2
⇔ ([ x ] + 1) ([ x ] − 2 ) > 0
⇔ [ x ] < −1 (or) [ x ] > 2 .
Functions 33
⇔ x is a non-integer
∴ Domain of f is R Z.
3− x 3− x 3− x
(iii) f ( x) = log10 ∈ R ⇔ log 10 ≥ 0 and >0
x x x
3− x
⇔ ≥ 100 = 1 and 3 − x > 0, x > 0
x
⇔ 3 − x ≥ x and 0 < x < 3
⇔ x ≤ 3 / 2 and 0 < x < 3
3 3
⇔ x ∈ −∞, ∩ (0, 3) = 0,
2 2
3
∴ Domain of f is 0, .
2
1
(iv) f ( x) = x + 2 + ∈ R ⇔ x + 2 ≥ 0 and 1 − x > 0 and 1 − x ≠ 1
log10 (1 − x)
⇔ x ∈ [−3,3] {0}
Exercise 1(c)
1
(v) f (x) = 4x − x 2 (vi) f (x) =
1 − x2
3x
(vii) f (x) = (viii) f (x) = x 2 − 25
x +1
(ix) f (x) = x − [ x] (x) f (x) = [ x] − x
2. Find the ranges of the following real valued functions.
sin π [ x ]
(i ) log 4 − x 2 (ii ) [ x ] − x (iii )
1 + [ x]
2
x2 − 4
( iv ) (v) 9 + x2
x−2
3. If f and g are real valued functions defined by f ( x ) = 2 x − 1 and g ( x) = x 2 then find
f
(iii)
g
(i) (3 f − 2 g ) ( x ) (ii) ( fg ) ( x) ( x)
(iv) ( f + g + 2) ( x )
x x
2. Prove that the real valued function f ( x ) = + + 1 is an even function on
e −1 2
x
R {0}.
3. Find the domain and range of the following functions.
tan π [ x ] x
(i) f (x) = (ii) f (x) = (iii) f (x) = x + 1 + x
1 + sin π [ x ] + x 2 2 − 3x
Key Concepts
Historical Note
The history of the term “Function” furnishes an interesting example of the enthusiasm in
mathematicians to modify, refine and generalize their concepts.
The word “Function” seems to have been known to Descartes (1596 - 1650) in 1637,
who employed the term simply to mean some positive integral powers, x n , of a variable x. Somewhat
later, Leibnitz (1646 - 1716) employed the term to denote any quantity connected with a curve,
such as the coordinates of a point on the curve, the slope of the curve etc. Johann Bernoulli
(1667 - 1748) regarded a function as any expression made up of a variable and some constants and
Euler (1707 - 1783) gave a symbolic representation as f(x) to a function. Euler’s concept remains
unchanged till Fourier (1768 - 1830) has modified the earlier definition of a function in his
investigations of trigonometric series. These series involve a more general type of relationship between
variables that had previously been studied and have become instrumental in his attempt to furnish the
present definition of function broad enough to encompass such relationships by Lejeune Dirichlet
(1805 - 1859).
Answers
Exercise 1(a)
5. {3, 1, 7}
1 7 13
6. ,1, ,
2 4 5
(v) not an injection but a surjection (vi) neither injection nor surjection
3. a = 2; b = −1 5. 2 6. a = ± 1, b = 1
Functions 37
Exercise 1(b)
I. 1. f −1 ( x) = log e x, g −1 ( x) = e x
1
5. 6. x 7. 2
x
x−b
8. (i) (ii) log 5 x (iii) 2 x
a
1 + 4 log 2 x
10.
2
x−7
1/ 3
25
II. 3. (i) (ii) 9 x − 30 x + 26
2
5.
9 2
6. x = 0, 2 7. f ( x ) , x
Exercise 1(c)
3. (i) −2 x 2 + 6 x − 3 (ii) 2x 3 − x 2
2x −1
(iii) (iv) ( x + 1) 2
x2
38 Mathematics - IA
4. (i) {(1, 4), (2, −6), (3, −2)} (ii) {(1, 4), (2, −1), (3,1)}
(vii) (0, ∞ )
2 −1
(ii) Domain R , Range R
3 3