In Activity 2.5.1 and Activity 2.5.2, we have found the sum, difference, product, and quotient of two functions. We can use the following notation for these newly created functions:
When discussing the composite function \(f(g(x))\text{,}\) also written as \((f\circ g)(x)\text{,}\) we often call \(g(x)\) the "inner function" and \(f(x)\) the "outer function". It is important to note that the inner function is actually the first function that gets applied to a given input, and then the outer function is applied to the output of the inner function.
Activity2.5.7.
Let \(\displaystyle f(x)=\dfrac{1}{3x-5}\) and \(g(x)=x^3-2\text{.}\)
We can also evaluate the composition of two functions at a particular value just as we did with one function. For example, we may be asked to find something like \(f(g(2))\) or \((g\circ f)(-3)\text{.}\)
Activity2.5.9.
Let \(\displaystyle f(x)=2x^3\) and \(g(x)=\sqrt{6-x}\text{.}\)
(a)
Find \(f(g(2))\text{.}\)
\(\displaystyle 14\)
\(\displaystyle 16\)
\(\displaystyle 18\)
\(\displaystyle 20\)
undefined
Answer.
B
(b)
Find \((g \circ f)(-3)\text{.}\)
\(\displaystyle 50\)
\(\displaystyle 54\)
\(\displaystyle \sqrt{60}\)
\(\displaystyle \sqrt{-48}\)
undefined
Answer.
C
(c)
Find \((f \circ g)(10)\text{.}\)
\(\displaystyle 2(\sqrt{-4})^3\)
\(\displaystyle 16\)
\(\displaystyle \sqrt{-1994}\)
\(\displaystyle -16\)
undefined
Answer.
E
Remark2.5.10.
As we saw in Activity 2.5.9, in order for a composite function to make sense, we need to ensure that the range of the inner function lies within the domain of the outer function so that the resulting composite function is defined at every possible input.
Remark2.5.11.
In addition to the possibility that functions are given by formulas, functions can be given by tables or graphs. We can think about composite functions in these settings as well, and the following activities prompt us to consider functions given in this way.
Activity2.5.12.
Let functions \(p\) and \(q\) be given by the graphs below.
Find each of the following. If something is not defined, explain why.
(a)
\((p \circ q)(0)\)
Answer.
\(1\)
(b)
\(q(p(0)) \)
Answer.
\(2\)
(c)
\(p(p(1))\)
Answer.
\(-\dfrac{1}{2}\)
(d)
\((q \circ p)(-3)\)
Answer.
\(0\)
(e)
Find two values of \(x\) such that \(q(p(x)) = 2\text{.}\)
Answer.
\(x\)-values on the interval \([-2,1.5]\)
Activity2.5.13.
Let functions \(f\) and \(g\) be given by the tables below.
\(x\)
\(f(x)\)
\(0\)
\(6\)
\(1\)
\(4\)
\(2\)
\(3\)
\(3\)
\(4\)
\(4\)
\(7\)
Table2.5.14.
\(x\)
\(g(x)\)
\(0\)
\(1\)
\(1\)
\(3\)
\(2\)
\(0\)
\(3\)
\(5\)
\(4\)
\(2\)
Table2.5.15.
Find each of the following. If something is not defined, explain why.
(a)
\((f \circ g)(2)\)
Answer.
\(6\)
(b)
\((g \circ f)(3)\)
Answer.
\(2\)
(c)
\(g(f(4))\)
Answer.
Not defined because \(f(4)=7\) and \(7\) isn’t in the domain of \(g(x)\text{.}\)
(d)
For what value(s) of \(x\) is \(f(g(x)) = 4\text{?}\)
Answer.
\(x=0,1\)
(e)
What are the domain and range of \((f\circ g)(x)\text{?}\)
Answer.
Domain: \(\{0,1,2,3,4 \}\) and Range: \(\{3,4,6 \}\)