Compositefunctions
Compositefunctions
Functions
R Horan & M Lavelle
The aim of this document is to provide a short, self
assessment programme for students who wish to acquire
a basic understanding of the concept of functions.
Version 1.0
Table of Contents
1.
2.
3.
4.
5.
Functions (Introduction)
Flow Diagrams
Composite Functions
Inverse Functions
Quiz on Functions
Solutions to Exercises
Solutions to Quizzes
1. Functions (Introduction)
The concept of a function is essential in mathematics. There are two
common notations in use:
(a) f (x)= x2 + 2 ,
(b) f : x 7x2 + 2 .
Part (a) is commonly used. Part (b) is interpreted as
the function f maps x to x2 + 2.
Example 1 If two functions are given as f (x) = 2x + 3,
and g(x) = 3 x2 , then
(a)
(b)
(c)
(d)
f (2) = 2 2 + 3 = 7
f (3) = 2 (3) + 3 = 6 + 3 = 3
g(0) = 3 (0)2 = 3
g(4) = 3 (4)2 = 3 16 = 13
Example 2
(b) h(2)
(d) g(3)
(f) the values of x such that h(x) = 12
2. Flow Diagrams
The function f (x) = 2x + 3 in example 1 may be represented as a
flow diagram.
x
2x
2x+3
multiply by 2 add 3
From the diagram it is clear that the order of the operations cannot
be confused. First multiply by 2 and then add 3.
Example 3
3x
3x2
(3x2)2
4x2
x
4x
4x2
3
(b)
multiply by 4 subtract 2 divide by 3
2x2
(e) g : x 7
+ 5 (f) g : x 7 x2 + 2
3
x3
2
(1) + 4
(b)
4
x 3
2
(d)
+ (1) + 4
4
3. Composite Functions
The function f (x) = 2x + 3, from example 1, is composed of two
simpler functions, i.e. multiply by 2 and add 3. If these two functions
are written as h : x 7 2x and g : x 7 x + 3 then the composition of
these two functions is written gh (sometimes as gh or g(h(x))).
x2
2x2
2x2 +5
2x2 +5
(b) f : x 7 2x 1, g : x 7 x2
(d) f : x 7 x + 3, g : x 7 x 3
x
(f) f : x 7 3x2 , g : x 7 2
3
The functions in part (b) above are reversed in part (c). The results
show that, in general, reversing the order of two functions changes
the composite function. In simpler terms if h and k are two functions
then, in general, hk 6= kh.
Quiz Two functions are given as
f : x 7 2x2 1 and g : x 7 x 3 .
Which of the following is a solution to f (g(x)) = 7?
(a) x = 5
(b) x = 5
(c) x = 2
(d) x = 2
4. Inverse Functions
If a function f maps m to n then the inverse function, written as f 1 ,
maps n to m.
Example 5
4x 3
.
2
4x
4x3
2
multiply by 4 subtract 3 divide by 2
Now draw a flow diagram, starting from the right, with each operation replaced by its inverse.
2x+3
2x+3
2x
The inverse of h : x 7
4x 3
2x + 3
is thus h1 : x 7
.
2
4
10
2x+3
h1 (x)
2x+3
2x
4
multiply by 4 subtract 3 divide by 2
|
{z
}
h(x)= 4x3
2
11
(b) f : x 7 4(x 1)
(d) g : x 7 8x + 3
(e) g(x) =
1
(3x + 4) + 6
2
(f) g : x 7
2x + 1
3
(a) h1 : x 7
(c) h1
12
5. Quiz on Functions
Begin Quiz If three functions are given as f : x 7 x2 , g : x 7
4x , h : x 7 x + 5, choose the correct options for the following.
(a) 8x2 ,
f g : x 7 . . .
(b) 4x2 ,
(c) 16x ,
(d) 16x2 .
(a) 8x2 ,
gf : x 7 . . .
(b) 4x2 ,
(c) 16x ,
(d) 16x2 .
(a) 5 + 4x ,
gh : x 7 . . .
(b) 4 + 5x ,
(c) 4x + 5 ,
(d) 4(x + 5) .
1.
2.
3.
4.
(hg)1 : x 7 . . .
1
1
(a) (x 5) , (b) (x + 5) ,
4
4
(c)
1
(x + 4) ,
5
Correct
(d)
1
(x 4) .
5
Solutions to Exercises
13
Solutions to Exercises
Exercise 1(a) The function is h(x) = x2 4 so
h(1) = (1)2 4
= 14
= 3
Click on the green square to return
Solutions to Exercises
14
Solutions to Exercises
15
Solutions to Exercises
16
Solutions to Exercises
17
Solutions to Exercises
18
Solutions to Exercises
19
Exercise 2(a)
For h : x 7 6x + 1 the flow diagram is
x
6x
6x+1
multiply by 6 add 1
Click on the green square to return
Solutions to Exercises
20
Exercise 2(b)
For h : x 7 4(3 2x) the flow diagram is
2x
32x
4(32x)
Solutions to Exercises
21
Exercise 2(c)
For h : x 7 (2x 5)2 the flow diagram is
2x
2x5
(2x5)2
Solutions to Exercises
22
Exercise 2(d)
For g : x 7 3x2 4 the flow diagram is
x2
3x2
3x2 4
Solutions to Exercises
23
Exercise 2(e)
2x2
For g : x 7
+ 5 the flow diagram is
3
x2
2x2
2x2
3
square multiply by 2 divide by 3
add 5
2x2
3
+5
Solutions to Exercises
24
Exercise 2(f )
For g : x 7 x2 + 2 the flow diagram is
x2
x2 +2
x2 +2
Solutions to Exercises
25
Exercise 3(a)
For the functions f (x) = 2x + 1, g(x) = x 3 the function f g is
f g : x 7 2(x 3) + 1 = 2x 6 + 1 = 2x 5 .
The flow diagram is
x
2(x3)
x3
subtract 3 multiply by 2
|
{z
}
|
{z
g
add 1
}
2(x3)+1
f (g(x))
2g(x) + 1
2(x 3) + 1
2x 5 .
Solutions to Exercises
26
Exercise 3(b)
For the functions f : x 7 2x 1, g : x 7 x2 the function f g is
f g : x 7 2x2 1 .
The flow diagram is
x2
2x2
2x2 1
Solutions to Exercises
27
Exercise 3(c)
For the functions f : x 7 x2 , g : x 7 2x 1 the function f g is
f g : x 7 (2x 1)2 .
The flow diagram is
x
2x
(2x1)2
2x1
Solutions to Exercises
28
Exercise 3(d)
For the functions f : x 7 x + 3, g : x 7 x 3 the function f g is
f g : x 7 x .
The flow diagram is
x
x3
subtract 3 add 3
|
{z
}
| {z }
g
(x3)+3
Solutions to Exercises
29
Exercise 3(e)
x
For the functions f : x 7 2, g : x 7 3x2 the function f g is
3
f g : x 7 x2 2 .
The flow diagram is
x
x2
3x2
x2
x2 2
z
Writing f (x) = 2 and g(x) = 3x2 and substituting z = g(x),
3
g(x)
f g(x) = f (g(x)) =
2
3
3x2
2
=
3
2
= x 2.
Click on the green square to return
Solutions to Exercises
30
Exercise 3(f )
x
For the functions f : x 7 3x2 , g : x 7 2 the function f g is
3
x
2
f g : x 7 3
2 .
3
The flow diagram is
x
3
3
divide by 3
subtract 2
square
|
{z
}
|
( x3 2)
multiply by 3
{z
}
3( x
3 2)
x
2. Thus
3
f g(x) = f (g(x))
= 3(g(x))2
x
= 3( 2)2 .
3
Click on the green square to return
Solutions to Exercises
31
Exercise 4(a)
For the function f : x 7 3x + 4 the flow diagram is
3x
3x+4
multiply by 3 add 4
The inverse is thus
x4
x4
divide by 3 subtract 4
so
f 1 : x 7
Click on the green square to return
x4
.
3
Solutions to Exercises
32
Exercise 4(b)
For the function f : x 7 4(x 1) the flow diagram is
x
4(x1)
x1
subtract 1 multiply by 4
+1
4
4
add 1
divide by 4
Thus
f 1 : x 7
Click on the green square to return
x
+ 1.
4
Solutions to Exercises
33
Exercise 4(c)
For the function f : x 7 3(2x + 5) the flow diagram is
x
2x
2x+5
3(2x+5)
x
x
( x3 5)
x
3
3 5
divide by 3
subtract 5
divide by 2
Thus
f 1 : x 7
1 x
5
2 3
Solutions to Exercises
34
Exercise 4(d)
For the functions g : x 7 8x + 3 the flow diagram is
8x
multiply by 8 add 3
8x+3
x3
divide by 8 subtract 3
Solutions to Exercises
35
Exercise 4(e)
Before beginning this question the function may be simplified by noting that
1
1
12
1
(3x + 4) + 6 = (3x + 4) +
= (3x + 16)
2
2
2
2
1
so that the function is g : x 7 (3x + 16). The flow diagram for this
2
function is
x
3x
3x+16
1
2 (3x+16)
2x16
1
(2x 16).
3
Click on the green square to return
and
2x
Solutions to Exercises
36
Exercise 4(f )
For the functions g : x 7
x
2x + 1
the flow diagram is
3
2x
2x+1
1
3 (2x+1)
3x
3x1
so that
g 1 : x 7
1
(3x 1) .
2
Solutions to Quizzes
37
Solutions to Quizzes
Solution to Quiz:
The flow diagram
x
x3
x3
4
4
subtract 1
cube divide by 4
x3
4
1
square
x3
4
2
add 4
x3
1
4
x3
4
2
+4
2
+ 4.
End Quiz
Solutions to Quizzes
38
Solution to Quiz:
For the functions f : x 7 2x2 1 and g : x 7 x 3 , the composite
function is f g(x) = 2(x 3)2 1.
2(x 3)2 1
2(x 3)2
(x 3)2
x3
x
=
=
=
=
=
7
1+7=8
4
2
32
Solutions to Quizzes
39
Solution to Quiz:
1
(3x + 16). This is the function
2
obtained by simplifying the function of exercise 4(e). The inverse of
the function is thus
1
h1 : x 7 (2x 16) ,
3
as shown in that exercise.
End Quiz
The function h = f g is h : x 7