Module 4 – Topic 4
Composite Functions
A composite function puts one function inside another: the output of \(g\) becomes the input of \(f\).
We write \((f\circ g)(x)=f(g(x))\) and read it “\(f\) of \(g\) of \(x\).” Work from the inside out: first find \(g(x)\), then put that result into \(f\).
Composite Function
Order matters. In general, \((f\circ g)(x)\) and \((g\circ f)(x)\) are different.
Example 1
Let \(f(x)=2x+1\) and \(g(x)=4x-5\). Find:
- \((f\circ g)(2)\)
- \((f\circ g)(x)\)
- \((g\circ f)(x)\)
a. Work from the inside out: find \(g(2)\) first, then put it into \(f\).
b. Put \(g(x)=4x-5\) into \(f\).
c. Put \(f(x)=2x+1\) into \(g\).
Notice \((f\circ g)(x)\ne(g\circ f)(x)\). Order matters.
An \(x\)-value is allowed only if it works in the inside function first, and then the result works in the outside function. So check the domain of the inside function, and check the final simplified form.
Example 2
Let \(f(x)=\dfrac{1}{2+x}\) and \(g(x)=4x+1\). Find \((f\circ g)(x)\) and \((g\circ f)(x)\), and state the domain of each.
\((f\circ g)(x)\): put \(g(x)=4x+1\) into \(f\).
The inside function \(g(x)=4x+1\) takes every \(x\). The final form needs \(4x+3\ne0\), so \(x\ne-\tfrac34\).
Domain: \(\left(-\infty,\,-\tfrac34\right)\cup\left(-\tfrac34,\,\infty\right)\)
\((g\circ f)(x)\): put \(f(x)=\dfrac{1}{2+x}\) into \(g\), then combine into one fraction.
The inside function \(f(x)=\dfrac{1}{2+x}\) needs \(x\ne-2\). The final form also needs \(x\ne-2\).
Domain: \((-\infty,\,-2)\cup(-2,\,\infty)\)