Skip to main content

Section 2.5 Combining and Composing Functions (FN5)

Subsection 2.5.1 Activities

Activity 2.5.1.

Let \(f(x)=x^2-3x\) and \(g(x)= x^3-4x^2+7\text{.}\)
(a)
Which of the following seems likely to be the most simplified form of \(f(x)+g(x)\text{?}\)
  1. \(\displaystyle x^2-3x+x^3-4x^2+7 \)
  2. \(\displaystyle x^5-7x^3+7\)
  3. \(\displaystyle -x^3+5x^2-3x-7 \)
  4. \(\displaystyle x^3-3x^2-3x+7\)
Answer.
D.
A isn’t simplified, B added exponents and coefficients down the line, C is subtraction
(b)
Which of the following seems likely to be the most simplified form of \(f(x)-g(x)\text{?}\)
  1. \(\displaystyle x^3-3x^2-3x+7 \)
  2. \(\displaystyle -x^3+5x^2-3x-7\)
  3. \(\displaystyle -x^3-3x^2-3x+7 \)
  4. \(\displaystyle x^2-3x-x^3+4x^2-7\)
Answer.
B.
A is added, C didn’t distribute the negative to all terms of \(g(x)\text{,}\) D isn’t simplified

Activity 2.5.2.

Let \(f(x)=\sqrt{x+1}\) and \(g(x)= 5x\text{.}\)
(a)
Which of the following seems likely to be the most simplified form of \(f(x)\cdot g(x)\text{?}\)
  1. \(\displaystyle \sqrt{5x+1} \)
  2. \(\displaystyle 5\sqrt{x+1}\)
  3. \(\displaystyle \sqrt{5x^2+5x}\)
  4. \(\displaystyle 5x\sqrt{x+1}\)
Answer.
D.
A is f(g(x)), B is \(g(f(x))\text{,}\) C distributed under the radical
(b)
Which of the following seems likely to be the most simplified form of \(\frac{f(x)}{g(x)}\text{?}\)
  1. \(\displaystyle \frac{5x}{\sqrt{x+1}}\)
  2. \(\displaystyle \frac{\sqrt{x+1}}{5x}\)
  3. \(\displaystyle \sqrt{\frac{x}{5x}+\frac{1}{5x}} \)
  4. \(\displaystyle \sqrt{\frac{5x}{x}+\frac{5x}{1}} \)
Answer.
B.
A is g/f, C divides each term under the radical by g, D flips the fractions in C

Remark 2.5.3.

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:
\begin{align*} (f+g)(x) \amp = f(x)+g(x) \\ (f-g)(x) \amp = f(x)-g(x) \\ (f\cdot g)(x) \amp = f(x)\cdot g(x) \\ \left(\frac{f}{g}\right)(x) \amp = \frac{f(x)}{g(x)} \end{align*}
With \(\left(\frac{f}{g}\right)(x) \text{,}\) we note that the quotient is only defined when \(g(x)\neq 0\text{.}\)

Activity 2.5.4.

Let \(\displaystyle f(x)=\frac{1}{3x-5}\text{.}\)
(a)
Find \(f(4)\text{.}\)
  1. \(\displaystyle \frac{4}{3x-5}\)
  2. \(\displaystyle \frac{1}{4(3x-5)}\)
  3. \(\displaystyle \frac{1}{7}\)
  4. \(\displaystyle 7\)
Hint.
See Remark 2.2.6 for a reminder of what this notation means!
Answer.
C.
(b)
If you were asked to find \(f(x^3-2)\text{,}\) how do you think you would proceed?
  1. Multiply the original function \(\frac{1}{3x-5}\) by \(x^3-2\text{.}\)
  2. Plug the expression \(x^3-2\) in for all the \(x\)-values in \(\frac{1}{3x-5}\text{.}\)
  3. Plug the original function \(\frac{1}{3x-5}\) in for all the \(x\)-values in \(x^3-2\text{.}\)
  4. Multiply \(3x-5\) by \(x^3-2\text{.}\)
Answer.
B.
A is multiplying, C is g(f)
(c)
Find \(f(x^3-2)\text{.}\)
  1. \(\displaystyle \frac{1}{3x-5} \cdot (x^3-2)\)
  2. \(\displaystyle \frac{1}{3(x^3-2)-5}\)
  3. \(\displaystyle \left(\frac{1}{3x-5} \right)^3-2\)
  4. \(\displaystyle (3x-5)(x^3-2)\)
Answer.
B.
These mirror the previous answer choices.
(d)
What if we gave the expression \(x^3-2\) a name? Let’s define \(g(x)=x^3-2\text{.}\) What’s another way we could denote \(f(x^3-2)\text{?}\)
  1. \(\displaystyle f(x) \cdot g(x)\)
  2. \(\displaystyle g(f(x))\)
  3. \(\displaystyle f(g(x))\)
  4. \(\displaystyle \frac{f(x)}{g(x)} \)
Answer.
C.

Definition 2.5.5.

Given the functions \(f(x)\) and \(g(x)\text{,}\) we define the composition of \(f\) and \(g\) to be the new function \(h(x)\) given by
\begin{equation*} h(x) = f(g(x))\text{.} \end{equation*}
We also sometimes use the notation
\begin{equation*} f \circ g \end{equation*}
or
\begin{equation*} (f \circ g)(x) \end{equation*}
to refer to \(f(g(x))\text{.}\)

Remark 2.5.6.

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.

Activity 2.5.7.

Let \(\displaystyle f(x)=\frac{1}{3x-5}\) and \(g(x)=x^3-2\text{.}\)
(a)
Find \(f(g(x))\text{.}\)
  1. \(\displaystyle \frac{x^3-2}{3x-5}\)
  2. \(\displaystyle \frac{1}{(3x-5)(x^3-2)}\)
  3. \(\displaystyle \frac{1}{3(x^3-2)-5}\)
  4. \(\displaystyle \left( \frac{1}{3x-5} \right)^{3} -2\)
Answer.
C.
(b)
Find \(g(f(x))\text{.}\)
  1. \(\displaystyle \frac{x^3-2}{3x-5}\)
  2. \(\displaystyle \frac{1}{(3x-5)(x^3-2)}\)
  3. \(\displaystyle \frac{1}{3(x^3-2)-5}\)
  4. \(\displaystyle \left( \frac{1}{3x-5} \right)^{3} -2\)
Answer.
D.

Remark 2.5.8.

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{.}\)

Activity 2.5.9.

Let \(\displaystyle f(x)=2x^3\) and \(g(x)=\sqrt{6-x}\text{.}\)
(a)
Find \(f(g(2))\text{.}\)
  1. \(\displaystyle 14\)
  2. \(\displaystyle 16\)
  3. \(\displaystyle 18\)
  4. \(\displaystyle 20\)
  5. undefined
Answer.
B.
(b)
Find \((g \circ f)(-3)\text{.}\)
  1. \(\displaystyle 50\)
  2. \(\displaystyle 54\)
  3. \(\displaystyle \sqrt{60}\)
  4. \(\displaystyle \sqrt{-48}\)
  5. undefined
Answer.
C.
B is \(f \circ g\text{,}\) D has a mistake in subtraction
(c)
Find \((f \circ g)(10)\text{.}\)
  1. \(\displaystyle 2(\sqrt{-4})^3\)
  2. \(\displaystyle 16\)
  3. \(\displaystyle \sqrt{-1994}\)
  4. \(\displaystyle -16\)
  5. undefined
Answer.
E.
A ignores domain, B assumes \(\sqrt{-4}\) is 2, C is \(g \circ f\text{,}\) but ignoring domain, D assumes \(\sqrt{-4}\) is -2

Remark 2.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.

Remark 2.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.

Activity 2.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.
\(-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]\)

Activity 2.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\)
Table 2.5.14.
\(x\) \(g(x)\)
\(0\) \(1\)
\(1\) \(3\)
\(2\) \(0\)
\(3\) \(5\)
\(4\) \(2\)
Table 2.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)\)
(d)
For what value(s) of \(x\) is \(f(g(x)) = 4\text{?}\)
Answer.
\(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 \}\)

Subsection 2.5.2 Videos

It would be great to include videos down here, like in the Calculus book!