Composition of Functions
Composition of Functions
⚫ Composition of Function is an operation
that takes two functions f and h and
produces a function f o h such that (f o
h)(x) = f(h(x)).
Composite Function – When you
combine two or more functions
⚫ The composition of
function g with
function f is written (g f )(x ) = g ( f (x ))
as
1
1. Evaluate the inner function f(x) first. 2
2. Then use your answer as the input of
the outer function g(x).
Example – Composition of
Functions
Example – Composition of
Functions
Let f (x ) = x − 2 and g (x ) = x 2 . Find (g f )(− 5)
Method 1: Method 2:
(g f )(x ) = g ( f (x )) (g f )(x ) = g ( f (x ))
g (x ) = g ( x − 2) = ( x − 2) 2 g ( f (− 5)) = g (−5 − 2)
(g f )(− 5) = (− 5 − 2) 2
= g (−7)
= (−7) = 49
2
= (−7) = 49
2
Let’s try some
Let f (x ) = x3 and g (x ) = x 2 + 7. Find (g f )(2)
Solution
Let f (x ) = x3 and g (x ) = x 2 + 7. Find (g f )(2)
Composition of Functions
A. If f(x) = 2x + 1 and h(x) = 3x, evaluate
the following:
1. (f o h)(x) = f(h(x))
2. (f o h)(1) = f(h(1))
3. (h o f)(1) = h(f(1))
4. (f o f)(− 2/3 ) = f(f(− 2/3 ))
A. If f(x) = 2x + 1 and h(x) = 3x, evaluate
the following:
1. (f o h)(x) = f(h(x))
= f(3x)
= 2(3x) + 1
(f o h)(x) = 6x + 1
A. If f(x) = 2x + 1 and h(x) = 3x,
evaluate the following:
2. (f o h)(1) = f(h(1))
= f(3(1))
= f(3)
= 2(3) + 1
(f o h)(1) = 7
A. If f(x) = 2x + 1 and h(x) = 3x,
evaluate the following:
3. (h o f)(1) = h(f(1))
= h(2(1) + 1)
= h(3)
= 3(3)
(h o f)(1) = 9
A. If f(x) = 2x + 1 and h(x) = 3x,
evaluate the following:
Composition of Functions
1) (f o g)(x) = f(g(x))
2) (g o f)(x – 3) = g(f(x – 3))
3) (f o g)(-3) = f(g(-3))
Composition of Functions
Composition of Functions
2
Composition of Functions