You are about to erase your work on this activity. Are you sure you want to do this?
Updated Version Available
There is an updated version of this activity. If you update to the most recent version of this activity, then your current progress on this activity will be erased. Regardless, your record of completion will remain. How would you like to proceed?
Mathematical Expression Editor
We discuss compositions of functions.
Given two functions, we can compose them. Let’s give an example in a “real
context.”
Let
\[ g(m) = \text {the amount of gas one can buy with $m$ dollars,} \]
and let
\[ f(g) = \text {how far one can drive with $g$ gallons of gas.} \]
What does \(f(g(m))\) represent in this setting?
With \(f(g(m))\) we first relate how far one
can drive with \(\answer [given]{g}\) gallons of gas, and this in turn is determined by how much
money \(\answer [given]{m}\) one has. Hence \(f(g(m))\) represents how far one can drive with \(\answer [given]{m}\) dollars.
Composition of functions can be thought of as putting one function inside another.
We use the notation
\[ (f\circ g)(x) = f(g(x)). \]
The composition \(f\circ g\) only makes sense if
\[ \{\text {the range of $g$}\} \text { is contained in or equal to } \{\text {the domain of $f$}\} \]
In other words, the
domain of a composite function \(f\circ g\) is the set of those inputs \(x\) in the domain of \(g\) for
which \(g(x)\) is in the domain of \(f\).
Find the formula for \(f(g(x))\) and state its domain.
The range of \(g\) is \((-\infty , \infty )\), which is equal to the
domain of \(f\). This means the domain of \(f\circ g\) is \((-\infty , \infty )\), since for any \(x\) in \((-\infty , \infty )\), the value \(g(x)\) is defined and
will be in the domain of \(f\). Next, we substitute \(x+7\) for each instance of \(\answer [given]{x}\) found in
Find a formula for \(f(g(x))\) and state its domain.
The domain of \(g\) is \((0, \infty )\). From this we can see
that the range of \(g\) is the interval \(\left ( \answer [given]{0}, \infty \right )\). This is contained in the domain of \(f\). This means
that the domain of \(f\circ g\) is \((0, \infty )\).
Next, we substitute \(\answer [given]{\sqrt {x}}\) for each instance of \(x\) found in
Find the formula for \(f(g(x))\) and state its domain.
While the domain of \(g\) is \((-\infty , \infty )\), its
range is only \((0, \infty )\). This is exactly the domain of \(f\). That means for any \(x\) in \((-\infty , \infty )\), the
value of \(g(x)\) is in \((0,\infty )\) which means it lies in the domain of \(f\). This means that the
domain of \(f\circ g\) is \((-\infty , \infty )\). Now we may substitute \(\answer [given]{x^2}\) for each instance of \(\answer [given]{x}\) found in
Compare and contrast the previous two examples. We used the same functions for
each example, but composed them in different ways. The resulting compositions are
not only different, they have different domains! When finding the composition of two
different functions remember that the order matters!