Functions
Functions
Functions
4.1. Functions
38
Example 4.1. The following rules define functions from
into :
1. f (x ) x 1 for all x . For if x , y such that x y , then
x 1 y 1, and hence f (x ) f ( y ) . Thus f is a well-defined
function.
2. f (x ) e x for all x . For if x , y , such that x y , then
e x e y . Thus f (x ) f ( y ) . Hence f is a well-defined
function.
3. f (x ) sin x for all x . For if x , y , such that x y , then
sin x sin y . Thus f (x ) f ( y ) . Hence f is a well-defined
function.
4. f (x ) x 2 2 for all x . For if x , y , such that x y ,
then x 2 y 2 , and so x 2 1 y 2 1 . Thus f (x ) f ( y ) . Hence f
is a well-defined function.
5. f (x ) 3 x for all x . For if x , y , such that f (x ) f ( y ) ,
then 3 x 3 y , and thus x y . Hence f is a well-defined
function.
39
3. R 3 (1, 2), (3, 4), (4,1)is a relation on A , but it is not a function
of A into A , for 2 A , but has no image in A , that is 2
does not appear as the first element in any order pair in R 3 .
4. g (1, 2), (2, 2), (3, 2), (4, 2) is a relation on A and also is a
function of A into A . Thus f (1) 2, f (2) 2, f (3) 2 , and
f (4) 2 .
Example 4.6. Let f (x ) x 2 for all x 1, 2,3 , and g (x ) x 2 for all
x 1, 2,5 . Then f g , for D f D g . But if D f D g , then f g .
40
Example 4.8. Let A a, b , c and B b ,c , d , e . Then the function
f : A B defined by f (a ) d , f (b ) d , f (c ) e is not a constant
function with f (A ) d , e .
41
Therefore, f is well-defined function . Next, 3,3 , and
f (3) f (3) 9 , that is the images of two different real numbers 3,3
is the same number 9 . Hence, f is not a one to one fuction.
42
Example 4.16. Let A 1, 2,3, 4 and B 1, 2,3 . Then define a
function f : A B by f (1) f (4) 2, f (2) f (3) 3 . Then
R f f (A ) 2,3 B . Therefore, f is not an onto function.
43
1. Let R (a, c ), (b , c ), (b , d ) and S (c , e ), (d , g ) . Then
S R (a, e ), (b , e ), (b , g )
44
(f g )(x ) f ( g (x )) g (x 2 ) x 2 2
It is clear that, in general f g g f . Also
(f f )(x ) f (f (x )) f (x 2) (x 2) 2 x 4
and
( g g )(x ) g ( g (x )) g (x 2 ) (x 2 ) 2 x 4
45
3. If f and g are both one to one and onto (bijective)
functions, then g f is a one to one , and onto (bijective)
function.
4. If g f is a one to one and an onto (bijective) function,
then f is a one to one (injective), and g is an onto
(surjective) function.
Proof.
1. Let f and g be both one to one (injective) functions, and
let x , y A such that ( g f )(x ) ( g f )( y ) , and hence
g (f (x )) g (f ( y )) . But g is a one to one function . Then
f (x ) f ( y ) . As f is a one to one function, we have x y .
Therefore, g f is a one to one function.
2. Let f and g be both onto (surjective) functions, and let
c C . We want to show that there is a A such that
( g f )(a ) c . Since c C , and g is onto, there is b B such
that g (b ) c . Also, b B , and f is onto, there is a A such
that f (a ) b . Thus
( g f )(a ) g (f (a )) g (b ) c .
Therefore, g f is an onto function.
46
Let f : A B be a function between two sets A and B .
Then the inverse of an element b B is the set
f 1
(b ) a A f (a ) b A
that is f 1 (b ) is the set consists of those elements in A which are
mapped onto b . We read f 1 as f " inverse ".
47
Example 4.30. Let f : be defined by f (x ) 2x 5 . We want
to find f 1 : if it is exist. First, we prove that f is a function
and one to one. Let x , y . Then
x y 2x 2 y 2x 5 2 y 5 f ( x ) f ( y )
Next, we show that f is onto. So, let b . Then there is exist an
element x such that f (x ) b . Hence
b 5
2x 5 b 2x b 5 x
2
b 5 b 5
and f (x ) f ( ) 2( ) 5 b . Therefore, f 1 : exist. To
2 2
find a formula for f 1 , we set b f (x ) f 1 (b ) x . Then b 2x 3 ,
and hence x b 5 . Thus f 1 (b ) b 5 . Replace b by x to get
2 2
x 5
f 1 (x ) .
2
48
So f is onto. Therefore, f 1 exist. To find a formula for f 1
, we
set b f (x ) f 1 (b ) x . Then f 1 (x ) x 2 1 .
x 2
Example 4.33. Let f : 3 1 be defined by f (x ) .
x 3
Let x , y 3 . Then
f (x ) f ( y )
x 2 y 2
x 3 y 3
(x 2)( y 3) (x 3)( y 2)
xy 2 y 3x 6 xy 3 y 2x 6
x y
Thus f is a function. Next, let
f (x ) f ( y )
x 2 y 2
x 3 y 3
(x 2)( y 3) (x 3)( y 2)
xy 2 y 3x 6 xy 3 y 2x 6
x y
49
Theorem 4.3. Let A , and B be sets, and let f : A B be a one to
one and onto (bijective) function. Then
1. f 1 : B A is a one to one and onto (bijective) function.
2. (f 1 )1 f .
3. f 1 f I A , and f f 1 I B .
Proof.
1. Now, we see that the function f 1 is a one to one (injective)
function. Let u ,v B such that x f 1 (u ) f 1 (v ) . Then
u f (x ) v . Thus f 1 is a one to one (injective) function.
Next, to prove that f 1 is an onto (surjective) function, we
let a A , then there exists an element b B such that
f 1 (b ) a . But f is onto, hence for b B , there is a A such
that b f (a ) , that is f 1 (b ) a . Hence f 1 is onto (surjective).
2. We notice that (f 1 )1 : A B is a function and its domain is
A . Let x A . By the definition of the inverse of a function,
we have
1 1 1
(f ) (x ) y x f ( y ) f (x ) y
Thus, (f 1 )1 f .
3. Let x A , and let f (x ) y B . Then x f 1 ( y ) ,
in and
1
(f f )(x ) f 1 (f (x )) f 1 ( y ) x I A (x )
1
Thus, f f I A .
1 1
Similarly, we prove f f IB . Let y B , and let f (y ) x
in A . Then f (x ) y , and
1 1
(f f )( y ) f (f ( y )) f (x ) y I B ( y )
50
1. f 1 (U V ) f 1 (U ) f 1 (V ) .
2. f 1 (U V ) f 1 (U ) f 1 (V ) .
Proof.
1. We show that x f 1 (U V ) x f 1
(U ) f 1
(V ) .
1
x f (U V ) f (x ) U V
f (x ) U f (x ) V
1 1
x f (U ) x f (V )
1 1
x f (U ) f (V )
1 1 1
2. We show that x f (U V ) x f (U ) f (V ) .
1
x f (U V ) f (x ) U V
f (x ) U f (x ) V
1 1
x f (U ) x f (V )
1 1
x f (U ) f (V )
4. If b , b B with b b , then f 1 (b ) f 1
(b ) .
Proof.
1. We show that x f 1 ( V i ) x f 1
(V i ). Then
i X i X
1
x f ( V i ) f (x ) Vi
i X i X
f (x ) V i , for each i X
1
x f (V i ), for each i X
1
x f (V i ).
i X
1 1
Thus f ( Vi ) f (V i ) .
i X i X
1 1
2. We show that x f ( Vi ) x f (V i ). Then
i X i X
51
1
x f ( V i ) f (x ) Vi
i X i X
f ( x ) V i , for some i X
1
x f (V i ), for some i X
1
x f (V i ).
i X
1 1
Thus, f ( Vi ) f (V i ) .
i X i X
52