Composite Functions: Functions and Relations - CHAPTER
Composite Functions: Functions and Relations - CHAPTER
We now investigate another way in which we can combine functions, namely composition.
Consider the two functions f ( x ) = 3x and g ( x ) = x 2 + 1 . Observe what happens to the value
x = 2 as we first apply the function f ( x ) and then the function g ( x ) to the image of the first
mapping, i.e.,
f ( x ) = 3x g( x ) = x2 + 1
2
2 3×2 6 6 +1 37
Value of x from Image of 2 using Image of 6 using
the domain of f. f(x) = 3x. g(x) = x 2 + 1
Such a combination of functions leads to the question
“Is there a third function that will enable us to produce the same result in one step?”
We consider any value x that belongs to the domain of f and follow ‘its path’:
g( f ( x)) This path will provide the end result in one step.
We can now test our result by using the value of x = 2 with the mapping x 9 x 2 + 1.
For x = 2, we have 9 ( 2 ) 2 + 1 = 9 × 4 + 1 = 37 , which agrees with our previous result.
1. That the image under the first mapping must belong to the domain of the second mapping.
2. The expression g ( f ( x ) ) exists.
Notation
The expression g ( f ( x ) ) is called the composite function of f and g and is denoted by g o f .
149
MM Chapter 005 [105 – 166] Page 150 Sunday, April 1, 2007 10:53 PM
S
o The composite function ( g o f ) ( x ) = g ( f ( x ) )
l = ln ( f ( x ) – 1 )
u = ln ( x 2 + 1 – 1 )
t
i = ln x 2
o
n
S
o The composite function ( g o f ) ( x ) = g ( f ( x ) )
l
= f ( x) – 1
u
t = (2 – x) – 1
i
= 1–x
o
n
Stage 1: An element from the domain of the first function, f ( x ) is used to produce
an image. That is, using x = a we produce the image f ( a ) .
Stage 1 Stage 2
f g
a f (a) f (a) g( f (a))
df rf dg rg
f (a) ∈ r f
From the diagram, the result of stage 1 is f ( a ) (which belongs to the range of f ) we also observe
that at stage 2, when using the value f ( a ) (produced from stage 1) we have assumed that f ( a )
belongs to the domain of g ( x ) . This is where problems can arise – as seen in Example 5.31.
150
MM Chapter 005 [105 – 166] Page 151 Sunday, April 1, 2007 10:53 PM
What we need to prove is that all values produced from stage 1, i.e., f ( a ) , are values in the
domain of the function in stage 2, i.e., f ( a ) ∈ d g. Making use of a mapping diagram, we show
the inter-relation between the range of f, r f , and the domain of g, d g .
f
x
f ( x)
rf
df
dg g
(go f )( x) g( f ( x))
For ( g o f ) ( x ) = g ( f ( x ) ) to exist, then r f ⊆ d g.
rg
S
o For g o f to exist we must have that r f ⊆ d g.
l
Using the TI–83 we obtain the range of f from its sketch, in this case, r f = (1 ,∞).
u
t The domain of g is (–∞,∞) (i.e., the real field).
i Then, given that (1 ,∞) ⊆ (– ∞ ,∞) , g o f does exist.
o We are now able to determine g o f .
n
First we determine the equation g ( f ( x ) ) : g ( f ( x ) ) = g ( x + 1 )
= ( x + 1 )3
3⁄2
= ( x + 1) .
Next we need the domain of g o f . As we have seen, d go f = d f , ∴d go f = (0 ,∞) .
3⁄2
Therefore, g o f :(0 ,∞) , (go f )( x) = ( x + 1) .
151
MM Chapter 005 [105 – 166] Page 152 Sunday, April 1, 2007 10:53 PM
When solving problems that involve the use of composition, it is useful to set up a domain–range
table in order to help us determine the existence of the composition. Such a table includes
information about the domain and range of both the functions under consideration:
domain range
f df rf
g dg rg
The existence of g o f can then be established by looking at r f and d g . Similarly, the existence of
f o g can be established by comparing r g and d f .
EXAMPLE 5.33 1
Find g o f and its range, given that g ( x ) = -------------, x ∈ \ { – 1 } and
x+1
f ( x ) = 2 x, x ∈ .
S
o We first sketch the graphs of both functions to help us complete the domain–range table:
l 1
u g ( x ) = ------------
x + 1-
, x ∈ \ {–1 } , f ( x ) = 2 x, x ∈ . We now complete the table:
t
i
domain range
o
n f ]0, ∞[
g \ {–1 } \ {0 }
S
o For f o g to exist it is necessary that r g ⊆ d f. To determine the range of g we need to know the
l
domain of g. Using the implied domain we have that d g = ] 0, ∞[ and so, r g = .
u
t However, the implied domain of f is [1, ∞[ . Then, as r g ⊄ d f , f o g does not exist.
i
o In order that f o g exists we need to have r ⊆ [ 1, ∞[ , i.e., we must have that g ( x ) ≥ 1. What
g
n
152
MM Chapter 005 [105 – 166] Page 153 Sunday, April 1, 2007 10:53 PM
So, if the domain of g is restricted to [e, ∞[ or any subset of [e, ∞[, then f o g will exist.
Does go f = f o g ?
1
Consider Example 5.33, where g ( x ) = -------------, x ∈ \ { – 1 } and f ( x ) = 2 x, x ∈ .
x+1
1
From our previous working, we have that ( g o f ) ( x ) = ---------------
x
-.
2 +1
1
g( x) ------------
We then have, ( f og)( x) = f (g( x)) = 2 = 2x + 1 .
S
o We first set up the domain–range table:
l y y = f ( x) y
u y = g( x) domain range
t
f [0, ∞[ [1, ∞[
i
o g [1, ∞[ [0, ∞[
(0,1)
n
x (1,0) x From the table we see that r g ⊆ d f and r f ⊆ d g ,
and so, both ( f o g ) ( x ) and ( g o f ) ( x ) exist. We
can now determine both composite functions.
We start with ( f o g ) ( x ) :
( f og )( x ) = f ( g( x ) ) = ( g( x ) )2 + 1 = ( x – 1 )2 + 1
153
MM Chapter 005 [105 – 166] Page 154 Sunday, April 1, 2007 10:53 PM
Next, we find ( g o f ) ( x ) :
( go f )( x ) = g( f ( x ) ) = f ( x ) – 1 = ( x2 + 1 ) – 1
= x2
EXERCISES 5.4.1
1. Fully define the functions (a) f +g (b) fg
given that i. f ( x) = x2 and g ( x ) = x
1
ii. f ( x ) = ln x and g ( x ) = --x-
iii. f ( x) = 9 – x 2 and g ( x ) = x2 – 4
Find the range for case (a).
154
MM Chapter 005 [105 – 166] Page 155 Sunday, April 1, 2007 10:53 PM
1
6. The functions f and g are defined by f : x x + 1, x ∈ andg: x x + ---, x ∈ \ {0 } .
x
Find the composite functions (where they exist) of
(a) f og (b) go f (c) gog stating the range in each case.
x 2 + 4, x ≥ 1
11. Find ( h o f ) ( x ) , given that h ( x ) = and f : x x – 1, x ∈ .
4 – x, x < 1
Sketch the graph of ( h o f ) ( x ) and use it to find its range.
1
13. Given the functions f ( x ) = e 2 x – 1 and g ( x ) = --- ( ln x + 1 ) find, where they exist
2
(a) ( f og) (b) (go f ) (c) (fof)
In each case find the range of the composite function.
1
14. Given that h ( x ) = log ( 4x – 1 ), x > --- and k ( x ) = 4x – 1, x ∈ ]–∞, ∞[ , find, where
10 4
they exist, (a) (hok ) (b) (koh) .
155