# Decomposing Composite Functions Composite functions can be decomposed into two or more functions using methods such as the properties of operations, the properties of exponents, and the word form of the function.

Decomposing functions can be useful when working with complicated functions. When the complicated function is written as a composition of simpler functions, it can be easier to understand things about the function. There is often more than one way to decompose a function.

The function $h(x)=(x+1)^{12}$ can be decomposed as $f(g(x))$ in many ways. For example:

• $f(x)=x^{12}$ and $g(x)=x+1$
• $f(x)=x^2$ and $g(x)=(x+1)^6$
• $f(x)=x^4$ and $g(x)=(x+1)^3$
• $f(x)=(x+2)^{12}$ and $g(x)=x-1$

One method for decomposing a function is to focus on how its equation can be written in words or spoken aloud. The word form can help to identify the parts of the function rule and the order of these parts.

Step-By-Step Example
Decompose the given function into two functions:
$h(x)=\sqrt{x^{2}-5}$
Step 1

State the function in words, and identify two separate parts.

Word phrase: ${\color{#0047af} \text{the cube root of }}$ ${\color{#c42126} x \text{ squared minus 5 }}$

First part: ${\color{#0047af}\text{the cube root of }}$
Second part: ${\color{#c42126} x \text{ squared minus 5 }}$

Step 2
Translate the second part back into symbols, and set it equal to $g(x)$. This will be the inside function of the composition.
\begin{aligned}{\color{#c42126} x \text{ squared minus 5}}&=x^{2}-5\\g(x)&=x^2-5\end{aligned}
Step 3
In the full word phrase, replace the second part with $x$. Then translate the remaining phrase back into symbols, and set it equal to $f(x)$.
\begin{aligned}{\color{#0047af}\text{the cube root of }}x&=\sqrt{x}\\ f(x)&=\sqrt{x}\end{aligned}
Solution
Check that the functions can be composed into $h(x)$.
$h(x)=\sqrt{x^{2}-5}$
Remember that:
\begin{aligned}f(x) &= \sqrt{x}\\g(x) &= x^{2}-5\end{aligned}
Use the values to check the function:
$f(g(x)) = \sqrt{x^{2}-5} = h(x)$
So, the function can be decomposed as $f(g(x))$.
Step-By-Step Example
Decomposing a Rational Function
Decompose the given function into two functions.
$h(x)=\frac{1}{x+3}$
Step 1

State the function in words, and identify two separate parts.

Word phrase: ${\color{#0047af}\text{one divided by}}$ ${\color{#c42126} \text{the quantity}}$ ${\color{#c42126}x}$ ${\color{#c42126} \text{plus 3}}$

First part: ${\color{#0047af}\text{one divided by}}$
Second part: ${\color{#c42126} \text{the quantity}}$ ${\color{#c42126}x}$ ${\color{#c42126} \text{plus 3}}$

Another way to state the function in words is to replace divided by into reciprocal.

Word phrase: ${\color{#0047af}\text{the reciprocal of}}$ ${\color{#c42126} \text{the quantity}}$ ${\color{#c42126} x}$ ${\color{#c42126} \text{plus 3}}$

First part: ${\color{#0047af}\text{the reciprocal of}}$
Second part: ${\color{#c42126} \text{the quantity}}$ ${\color{#c42126} x}$ ${\color{#c42126} \text{plus 3}}$

Step 2
Translate the second part back into symbols, and set it equal to $g(x)$. This will be the inside function of the composition.
\begin{aligned}{\color{#c42126}\text{the quantity } x \text{ plus 3}}&=x+3\\g(x)&=x+3\end{aligned}
Step 3
In the full word phrase, replace the second part with $x$. Then translate the remaining phrase back into symbols and set it equal to $f(x)$.
\begin{aligned}{\color{#0047af}\text{one divided by }x} \text{ or } {\color{#0047af} \text{the reciprocal of }x}&=\frac{1}{x}\\ f(x) &=\frac{1}{x}\end{aligned}
Solution
Check that the functions can be composed into $h(x)$.
$h(x)=\frac{1}{x+3}$
Remember that:
\begin{aligned}f(x)&= \frac{1}{x} \\ g(x)&=x+3\end{aligned}
Use the values to check the functions:
$f(g(x)) = \frac{1}{x+3} = h(x)$
So, the given function can be decomposed as $f(g(x))$.

### Associative Property Since composition of functions is associative, the way in which three or more functions are grouped in a composite function does not change the result.
Composition of functions is associative, which means that the way in which functions are grouped when they are composed does not matter.
$(f \circ (g \circ h))(x)=((f \circ g) \circ h)(x)$
Step-By-Step Example
Confirming That Composition Is Associative
Consider the given values for $f(x)$, $g(x)$, and $h(x)$:
\begin{aligned}f(x)&=x+6\\g(x)&=8x\\h(x)&=\frac{x}{2}\end{aligned}
Identify $(f \circ (g \circ h))(x)$ and $((f \circ g) \circ h)(x)$, and then determine if they are equivalent.
Step 1
Identify the composition of the two inside functions of $(f \circ (g \circ h))(x)$.
\begin{aligned}g(h(x))&=g\left(\frac{x}{2}\right)\\&=8\left(\frac{x}{2}\right)\\&=4x\end{aligned}
Step 2
Use the result to find $(f \circ (g \circ h))(x)$.
\begin{aligned}(f \circ(g(h(x)))&=f(4x)\\&=(4x)+6\\&=4x+6\end{aligned}
Step 3
Identify the composition of the two inside functions of $((f \circ g) \circ h)(x)$.
\begin{aligned}f(g(x))&=f(8x)\\&=(8x)+6\\&=8x+6\end{aligned}
Step 4
Use the result to find $((f \circ g) \circ h)(x)$.
\begin{aligned}f(g(x))\circ h(x)&=f\left(g\left(\frac{x}{2}\right)\right)\\&=8\left(\frac{x}{2}\right)+6\\&=4x+6\end{aligned}
Solution
Compare the two composite functions.
\begin{aligned}4x+6&=4x+6\\(f \circ (g \circ h))(x)&=((f \circ g) \circ h)(x)\end{aligned}
Since the composite functions are equal, the composition of the functions can be written without grouping, such as:
$(f \circ g \circ h)(x)$
The meaning will not change.

### Composition Is Not Commutative Composition is not commutative, so composing functions in a different order does not necessarily yield the same result.
In general, the composition of functions is not commutative, which means that if two functions are composed in a different order, the composite functions are not necessarily equal.
$(f \circ g)(x) \neq (g \circ f)(x)$
Step-By-Step Example
Determining Whether a Composition is Non-Commutative

Let $f(x)=2x$ and $g(x)=x^2$. Identify $(f \circ g)(x)$ and $(g \circ f)(x)$, and determine whether they are equivalent.

Step 1
Identify $(f \circ g)(x)$. Substitute the inside function into the outside function, and simplify.
\begin{aligned}(f \circ g)(x)&=f(g(x))\\&=2\left(x^2\right)\\&=2x^2\end{aligned}
Step 2
Identify $(g \circ f)(x)$. Substitute the inside function into the outside function, and simplify.
\begin{aligned}(g \circ f)(x)&=g(f(x))\\&=(2x)^2\\&=4x^2\end{aligned}
Solution
Compare the two composite functions.
\begin{aligned}2x^2&\neq 4x^2\\(f \circ g)(x) &\neq (g \circ f)(x) \end{aligned}