Functions
Functions
Functions
8 FUNCTIONS
8.1 Introduction:
Under mapping, we saw that many members are mapped to many
image points. But under this topic, we shall see the relationship that
maps a single object to a single image.
Definition:
A function is a relation which maps a single object onto a single
image. In other words, it is a rule that assigns to each element x in
set A, one element known as f (x) in B.
Suppose set A has elements x1 , x2 , x3 and set B has elements
y1 , y2 , y3 and that each element of A is mapped to one element in set
B as shown below.
X Y
x1
y1
x2
y 2
x
3 y 3
Set A is called the domain of the function and set B is called the
range of the function. Each member of X has one and only one
corresponding member in Y , f is therefore a function and it is
written as:
f : AB
Meaning that, the input values of f come from A, and the output
values of f are stored in B. The action of a function on an element is
denoted by: A f (x)
141
Kawanda Secondary School
Shining UCE Mathematics – Wendi Kassim
b) f : x 3x 4
Example
A function f (x) is defined by: f ( x) 3x 3 , find f (5)
Solution
f ( x) 3 x 3
f (5) f ( x 5) ?
f (5) 3(5) 3 15 3
f (5) 18
Example
1
Given that f ( x) .
x
Find:
i. f (a)
ii. f ( x h)
Solution
1 1
i. f ( x) f ( x a)
x a
1
ii. f ( x x h)
xh
142
Kawanda Secondary School
Shining UCE Mathematics – Wendi Kassim
Example
Given that f ( x) x 2 3x 9
Find:
i. f (1)
ii. f ( 5)
Solution
f ( x) x 2 3 x 9
i. f ( x 1) 12 3(1) 9
1 3 9
5
ii. f ( 5) ( 5) 2 3( 5) 9
1 3 9
5
Example
A function is defined by the formula f ( x) 3x 1. If f (a) 19 , find
the value of a.
Solution
f ( x) 3 x 1
f (a) 3(a) 1 3a 1, but : f (a) 19
3a 1 19 3a 18
a 18 6
3
Example
2
Given that f ( x) . Find the value of p for which f ( p) 1.
2x 6
2
143
Kawanda Secondary School
Shining UCE Mathematics – Wendi Kassim
Solution
2
f ( x)
2x 6
2
2
f ( p) 1 2 2 p2 6
2p 6
2
2 p2 8 p2 4
p 4 2
p 2, p 2
Example
Given that g ( x) ax 2 b, g ( 2) 3, and , g (1) 3 . Find the value of a
and b
Solution
g ( x) ax 2 b
For g (-2):
g ( 2) a( 2) 2 b
g ( 2) 4a b g ( 2) 3
4a b 3.............................(1)
For g (1):
g (1) a(1) 2 b
g (1) a b g (1) 3
a b 3.............................(2)
Equation (1) equation (2)
4a b 3
a b 3
6
3a 6 a
3
a 2
144
Kawanda Secondary School
Shining UCE Mathematics – Wendi Kassim
From (2):
2 b 3.
b 5
Example
Find the unknown values in the arrow diagrams for the mapping.
x 2( x 1)
5 12
p 16
q 22
11 24
13 r
Solution
We know the range and the domain: x is the domain and range 2( x 1)
f ( x) 2( x 1)
145
Kawanda Secondary School
Shining UCE Mathematics – Wendi Kassim
f ( x) 2( x 1)
f (13) 2(13 1) 28, but , f (13) r
r 28
x 2( x 1)
5 12
7 16
10 22
11 24
13 28
Example
Given that f ( x) 2 3x2 4 . Express the f (x) in the form
x2 x 4
Px , and hence state the value of P and Q.
f ( x) 2
x Q
Solution
2 3x 4
f ( x) 2
x2 x 4
146
Kawanda Secondary School
Shining UCE Mathematics – Wendi Kassim
Example
Given that f ( x) 1
1 x
i. Find f (2)
ii. Find the value of x for which f (x) is not defined.
Solution
1
i. f ( x)
1 x
1 1
f (2) 1
1 2 1
Example
Solution
5x 6
f ( x)
4 x2
f (x) is undefined if, 4 x 2 0
x 2 4 x 4 2
x 2, or , x 2
147
Kawanda Secondary School
Shining UCE Mathematics – Wendi Kassim
8.3.1 Introduction:
If a function f maps elements of A onto elements of B i.e.
f : A B
A B
a1
1
a2
2
a
3 3
Example
Given that f ( x) 4 x 8 .
Find:
a) f 1 ( x)
b) f 1 (1)
148
Kawanda Secondary School
Shining UCE Mathematics – Wendi Kassim
Solution
a) Step 1: let f ( x) y y 4 x 8
Step 2: make x the subject
y 8 4x
y 8
x
4
Step 3: replace x with f 1 ( x) and y with x. i.e.
1 x 8
f ( x) This is the inverse function of f (x)
4
1 (1) 8 7
b) f (1)
4 4
Example
Given that g ( x) 2 x 17 .
Find:
a) g 1 ( x)
b) g 1 (3)
c) g 1 ( 4)
Solution
a) g ( x) 2 x 17
Let y g ( x) y 2 x 17
y 17 2 x
y 17
x
2
x g 1 ( x), y x
x 17
g 1 ( x)
2
3 17
b) g 1 (3) 10
2
17 4 13
c) g 1 ( 4) 6.5
2 2
149
Kawanda Secondary School
Shining UCE Mathematics – Wendi Kassim
Example
Obtain the inverse of the function f ( x) x 1 , hence find f 1 ( 2)
x 1
Solution
x 1
f ( x)
x 1
x 1
Let y f ( x) y
x 1
y ( x 1) ( x 1)
yx y x 1
yx x y 1
x( y 1) y 1
x( y 1) 1 y
y 1
x
y 1
1
Replacing x with f ( x) and y with x
x 1
f 1 ( x)
x 1
1 2 1 1 1
Hence f ( x 2)
2 1 3 3
8.4.1 Introduction:
A composite function is a function, which is composed of a sequence
of simple functions.
Example
If f ( x) x 2 , and , g ( x) x 1 , find:
a) i) gf (x)
ii) gf (x) , when x 3
150
Kawanda Secondary School
Shining UCE Mathematics – Wendi Kassim
b) i) fg (x)
ii) fg (x) , when x 3
Solution
a) i) gf ( x) g f ( x), but f ( x) x 2
g ( x 2 ), and , g ( x) x 1
( x) 2 1
gf ( x) x 2 1
ii) When x 3 :
Method 1:
gf ( x 3) (3) 2 1 10
Method 2:
f ( x) x 2
f (3) (3) 2 9
gf (3) g (9), but : g ( x) x 1
9 1
10
b) i) fg ( x) f g ( x), but : g ( x) x 1
f ( x 1), and : f ( x) x 2
( x 1) 2
fg ( x) x 2 2 x 1
ii) If x 3 :
Method 1:
fg ( x 3) (3) 2 2(3) 1
9 6 1
16
151
Kawanda Secondary School
Shining UCE Mathematics – Wendi Kassim
Method 2:
g ( x) x 1
g (3) 3 1 4
fg (3) f (4), but : f ( x) x 2
( 4) 2
16
Example
The functions f and g are given by:
8 ,where x 1 and
f ( x) g ( x) 2 x 1
x 1
Find:
a) fg
b) g 2
c) ( fg ) 1
d) ( gf ) 1
e) f 1 ( x) g 1 ( x)
152
Kawanda Secondary School
Shining UCE Mathematics – Wendi Kassim
Solution
a) fg ( x) f g ( x), but : g ( x) 2 x 1
8
f ( 2 x 1), and : f ( x )
x 1
8
( 2 x 1) 1
8
2x
4
fg ( x)
x
b) g 2 ( x) gg ( x) g g ( x), but : g ( x) 2 x 1
g ( 2 x 1)
2( 2 x ) 1
4x 2 1
4x 3
4
c) fg ( x)1 ? but fg ( x)
x
4 4
Let y fg ( x) y x
x y
Replacing x with fg ( x) and y with x, we obtain:
1
fg ( x) 1 4
x
In this case, the composite function fg and its inverse ( fg ) 1 are
the same.
d) ( gf ) 1 ? Find gf first.
gf ( x) g f ( x), f ( x)
8
x 1
8
g , and : g ( x) 2 x 1
x 1
8
2 1
x 1
16
gf ( x) 1
x 1
16
y gf ( x) y 1
x 1
153
Kawanda Secondary School
Shining UCE Mathematics – Wendi Kassim
gf ( x) 1 16
1
x 1
1
e) f ( x) g 1 ( x) ? first find f 1
( x), and , g 1 ( x)
1
For f ( x) :
8
f ( x) .let , y f ( x )
x 1
8
y
x 1
8
x 1
y
8
f 1 ( x ) 1
x
For g 1 ( x) :
g ( x) 2 x 1 : let , y g ( x )
y 2x 1
y 1
x
2
1 x 1
g ( x)
2
f g ( x) f 1 g 1 ( x)
1 1
154
Kawanda Secondary School
Shining UCE Mathematics – Wendi Kassim
x 1
1
f
2
8
1
1
x
2
8 2
1
x 1
1 16
f g 1 ( x) 1
x 1
8.6 Conclusion:
If g (x) and f (x) two functions, then:
gf 1 f 1
g 1
Example
If g ( x) 2 x, and , f ( x) x 3 . Find gf (x) and hence, evaluate gf (2)
Solution
g ( x) 2 x, f ( x) x 3
gf ( x) g f ( x)
g ( x 3)
2( x 3)
2x 6
Example
Given that f ( x) x 3 3 and g ( x) x 1 .
Find the value of a such that:
fg (a) gf (a)
155
Kawanda Secondary School
Shining UCE Mathematics – Wendi Kassim
Solution
f ( x) x 3 3, g ( x) x 1
fg ( x) f g ( x)
f ( x 1)
( x 1) 2 3
x 2 2x 1 3
fg ( x) x 2 2 x 4
fg (a) a 2 2a 4...........................(1)
Also: gf ( x) g f ( x)
g ( x 2 3)
( x 2 3) 1
gf ( x) x 2 2
gf (a) a 2 2...............................(2)
i. f (2)
ii. g ( 1)
iii. h( 3)
2. i) If f ( x) x 2 5x c, and , f ( 6) 0, find c.
p 150
r 366
13 510
15 m
b) fg ( 1)
c) gf (5)
d) fgf (x)
e) g 1 f (3)
x3 1 2x
7. Given the functions f ( x) and g ( x) . Determine the
2 5
value of x for which fg ( x) 9 24 x 8 x
2
10
157
Kawanda Secondary School
Shining UCE Mathematics – Wendi Kassim
9. For the following functions, find the value of x for which f (x) is
undefined.
x2
a)
2x 4
1
b)
1 x2
5x 6
c)
9 x2
3x 1
d)
x 3x 40
2
4x 9
e)
20 x 2 x 1
qx c
10. Given that f ( x) 2 4
. Express f (x) in the form 2
x3 x 9 2
x r
and hence, find the value of x for which f (x) is not defined.
158
Kawanda Secondary School